1 | function varargout = guideApp(varargin) |
---|
2 | % GUIDEAPP MATLAB code for guideApp.fig |
---|
3 | % GUIDEAPP, by itself, creates a new GUIDEAPP or raises the existing |
---|
4 | % singleton*. |
---|
5 | % |
---|
6 | % H = GUIDEAPP returns the handle to a new GUIDEAPP or the handle to |
---|
7 | % the existing singleton*. |
---|
8 | % |
---|
9 | % GUIDEAPP('CALLBACK',hObject,eventData,handles,...) calls the local |
---|
10 | % function named CALLBACK in GUIDEAPP.M with the given input arguments. |
---|
11 | % |
---|
12 | % GUIDEAPP('Property','Value',...) creates a new GUIDEAPP or raises the |
---|
13 | % existing singleton*. Starting from the left, property value pairs are |
---|
14 | % applied to the GUI before guideApp_OpeningFcn gets called. An |
---|
15 | % unrecognized property name or invalid value makes property application |
---|
16 | % stop. All inputs are passed to guideApp_OpeningFcn via varargin. |
---|
17 | % |
---|
18 | % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one |
---|
19 | % instance to run (singleton)". |
---|
20 | % |
---|
21 | % See also: GUIDE, GUIDATA, GUIHANDLES |
---|
22 | |
---|
23 | % Edit the above text to modify the response to help guideApp |
---|
24 | |
---|
25 | % Last Modified by GUIDE v2.5 21-Jul-2010 07:36:25 |
---|
26 | |
---|
27 | % Begin initialization code - DO NOT EDIT |
---|
28 | gui_Singleton = 1; |
---|
29 | gui_State = struct('gui_Name', mfilename, ... |
---|
30 | 'gui_Singleton', gui_Singleton, ... |
---|
31 | 'gui_OpeningFcn', @guideApp_OpeningFcn, ... |
---|
32 | 'gui_OutputFcn', @guideApp_OutputFcn, ... |
---|
33 | 'gui_LayoutFcn', [] , ... |
---|
34 | 'gui_Callback', []); |
---|
35 | if nargin && ischar(varargin{1}) |
---|
36 | gui_State.gui_Callback = str2func(varargin{1}); |
---|
37 | end |
---|
38 | |
---|
39 | if nargout |
---|
40 | [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); |
---|
41 | else |
---|
42 | gui_mainfcn(gui_State, varargin{:}); |
---|
43 | end |
---|
44 | % End initialization code - DO NOT EDIT |
---|
45 | |
---|
46 | |
---|
47 | % --- Executes just before guideApp is made visible. |
---|
48 | function guideApp_OpeningFcn(hObject, eventdata, handles, varargin) |
---|
49 | % This function has no output args, see OutputFcn. |
---|
50 | % hObject handle to figure |
---|
51 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
52 | % handles structure with handles and user data (see GUIDATA) |
---|
53 | % varargin command line arguments to guideApp (see VARARGIN) |
---|
54 | |
---|
55 | % Choose default command line output for guideApp |
---|
56 | handles.output = hObject; |
---|
57 | |
---|
58 | % Update handles structure |
---|
59 | guidata(hObject, handles); |
---|
60 | |
---|
61 | % Put a layout in the panel |
---|
62 | g = uiextras.GridFlex( 'Parent', handles.uipanel1, ... |
---|
63 | 'Units', 'Normalized', 'Position', [0 0 1 1], ... |
---|
64 | 'Spacing', 5 ); |
---|
65 | uiextras.BoxPanel( 'Parent', g, 'Title', 'Panel 1' ); |
---|
66 | uiextras.BoxPanel( 'Parent', g, 'Title', 'Panel 2' ); |
---|
67 | uiextras.BoxPanel( 'Parent', g, 'Title', 'Panel 3' ); |
---|
68 | uiextras.BoxPanel( 'Parent', g, 'Title', 'Panel 4' ); |
---|
69 | g.RowSizes = [-1 -1]; |
---|
70 | |
---|
71 | % UIWAIT makes guideApp wait for user response (see UIRESUME) |
---|
72 | % uiwait(handles.figure1); |
---|
73 | |
---|
74 | |
---|
75 | % --- Outputs from this function are returned to the command line. |
---|
76 | function varargout = guideApp_OutputFcn(hObject, eventdata, handles) |
---|
77 | % varargout cell array for returning output args (see VARARGOUT); |
---|
78 | % hObject handle to figure |
---|
79 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
80 | % handles structure with handles and user data (see GUIDATA) |
---|
81 | |
---|
82 | % Get default command line output from handles structure |
---|
83 | varargout{1} = handles.output; |
---|
84 | |
---|
85 | |
---|
86 | % --- Executes on button press in pushbutton1. |
---|
87 | function pushbutton1_Callback(hObject, eventdata, handles) |
---|
88 | % hObject handle to pushbutton1 (see GCBO) |
---|
89 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
90 | % handles structure with handles and user data (see GUIDATA) |
---|
91 | |
---|
92 | |
---|
93 | % --- Executes on button press in pushbutton2. |
---|
94 | function pushbutton2_Callback(hObject, eventdata, handles) |
---|
95 | % hObject handle to pushbutton2 (see GCBO) |
---|
96 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
97 | % handles structure with handles and user data (see GUIDATA) |
---|
98 | |
---|
99 | |
---|
100 | % --- Executes on button press in pushbutton3. |
---|
101 | function pushbutton3_Callback(hObject, eventdata, handles) |
---|
102 | % hObject handle to pushbutton3 (see GCBO) |
---|
103 | % eventdata reserved - to be defined in a future version of MATLAB |
---|
104 | % handles structure with handles and user data (see GUIDATA) |
---|