1 %>@ingroup guigroup mainguis
3 %> @brief OpenSpec main GUI
5 %> Contains shortcuts to major GUIs and allows to see
auto-generated code.
6 %> @image html Screenshot-openspecgui.png
9 function varargout = irootlabgui(varargin)
11 % Edit the above text to modify the response to help openspecgui
13 % Last Modified by GUIDE v2.5 25-Aug-2012 23:16:18
15 % Begin initialization code - DO NOT EDIT
17 gui_State =
struct(
'gui_Name', mfilename, ...
18 'gui_Singleton', gui_Singleton, ...
19 'gui_OpeningFcn', @openspecgui_OpeningFcn, ...
20 'gui_OutputFcn', @openspecgui_OutputFcn, ...
21 'gui_LayoutFcn', [] , ...
23 if nargin && ischar(varargin{1})
24 gui_State.gui_Callback = str2func(varargin{1});
28 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
30 gui_mainfcn(gui_State, varargin{:});
32 % End initialization code - DO NOT EDIT
35 % --- Executes just before openspecgui is made visible.
36 function openspecgui_OpeningFcn(hObject, eventdata, handles, varargin)
38 % Choose
default command line output
for openspecgui
39 handles.output = hObject;
41 % Update handles structure
42 guidata(hObject, handles);
45 set(handles.pushbuttonDatatool,
'BackgroundColor', o.color);
47 set(handles.pushbuttonObjtool,
'BackgroundColor', o.color);
51 global handles_irootlab;
54 handles_irootlab = handles;
61 % --- Outputs from
this function are returned to the command line.
62 function varargout = openspecgui_OutputFcn(hObject, eventdata, handles)
63 % varargout cell array
for returning output args (see VARARGOUT);
64 % hObject handle to figure
65 % eventdata reserved - to be defined in a future version of MATLAB
66 % handles structure with handles and user data (see GUIDATA)
68 % Get
default command line output from handles structure
69 varargout{1} = handles.output;
75 %##########################################################################
76 %##########################################################################
80 function refresh_code()
82 global handles_irootlab IRCODE;
83 set(handles_irootlab.editCode, 'String', IRCODE.s);
84 set(handles_irootlab.text_codefilename, 'String', ['File: ' IRCODE.filename]);
87 %
##########################################################################
88 %##########################################################################
91 % --- Executes on button press in pushbuttonDatatool.
92 function pushbuttonDatatool_Callback(hObject, eventdata, handles)
95 % --------------------------------------------------------------------
96 function Untitled_1_Callback(hObject, eventdata, handles)
98 % --------------------------------------------------------------------
99 function Untitled_2_Callback(hObject, eventdata, handles)
101 % --------------------------------------------------------------------
102 function moAbout_Callback(hObject, eventdata, handles)
105 % --- Executes on button press in pushbuttonObjtool.
106 function pushbuttonObjtool_Callback(hObject, eventdata, handles)
109 function editCode_Callback(hObject, eventdata, handles)
111 % --- Executes during
object creation, after setting all properties.
112 function editCode_CreateFcn(hObject, eventdata, handles)
113 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
114 set(hObject,'BackgroundColor','white');
118 % --- Executes on button press in pushbuttonRefreshCode.
119 function pushbuttonRefreshCode_Callback(hObject, eventdata, handles)
123 % --------------------------------------------------------------------
124 function moExit_Callback(hObject, eventdata, handles)
125 delete(handles.figure1);
129 % --- Executes on button press in pushbuttonReset.
130 function pushbuttonReset_Callback(hObject, eventdata, handles)
136 % --- Executes on button press in pushbutton_save.
137 function pushbutton_save_Callback(hObject, eventdata, handles)
140 if ~isempty(IRCODE) && ~isempty(IRCODE.filename)
141 [name, path, filterindex] = uiputfile({
'*.m',
'MATLAB source file(*.m)'},
'Save as', IRCODE.filename);
143 IRCODE.filename = fullfile(path, name);
144 ircode_eval([], [
'>>>>>>>>>>>>>>>>> Saved as ' IRCODE.filename]);
148 msgbox(ME.message,
'Error!');
154 % --- Executes on button press in checkbox_flag_logtake.
155 function checkbox_flag_logtake_Callback(hObject, eventdata, handles)
157 % --- Executes on button press in pushbutton14.
158 function pushbutton14_Callback(hObject, eventdata, handles)
160 % --- Executes on button press in pushbutton15.
161 function pushbutton15_Callback(hObject, eventdata, handles)
164 % --- Executes on button press in pushbutton_mergetool.
165 function pushbutton_mergetool_Callback(hObject, eventdata, handles)
168 function Untitled_open_help_Callback(hObject, eventdata, handles)
172 % --- Executes on button press in pushbutton_help.
173 function pushbutton_help_Callback(hObject, eventdata, handles)
176 % --- Executes on button press in pushbutton_web.
177 function pushbutton_web_Callback(hObject, eventdata, handles)
183 % --------------------------------------------------------------------
function help2(in prefix)
function ircode_eval(in s, in title)
function colors_markers()
function gui_set_position(in hObject)
function irootlab_version()