|
fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
00001 // 00002 // "$Id: function_panel.cxx 8172 2011-01-03 08:28:38Z matt $" 00003 // 00004 // Code dialogs for the Fast Light Tool Kit (FLTK). 00005 // 00006 // Copyright 1998-2010 by Bill Spitzak and others. 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Library General Public 00010 // License as published by the Free Software Foundation; either 00011 // version 2 of the License, or (at your option) any later version. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // Library General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU Library General Public 00019 // License along with this library; if not, write to the Free Software 00020 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00021 // USA. 00022 // 00023 // Please report all bugs and problems on the following page: 00024 // 00025 // http://www.fltk.org/str.php 00026 // 00027 00028 // generated by Fast Light User Interface Designer (fluid) version 1.0300 00029 00030 #include "function_panel.h" 00031 #include <FL/Fl_Pixmap.H> 00032 #include "Fl_Type.h" 00033 #include "undo.h" 00034 extern class Fl_Pixmap *pixmap[]; 00035 extern class Fl_Type *Fl_Type_make(const char*); 00036 extern void select_only(Fl_Type*); 00037 extern void exit_cb(Fl_Widget*, void*); 00038 extern void toggle_widgetbin_cb(Fl_Widget*, void*); 00039 00040 Fl_Double_Window *function_panel=(Fl_Double_Window *)0; 00041 00042 Fl_Choice *f_public_member_choice=(Fl_Choice *)0; 00043 00044 Fl_Menu_Item menu_f_public_member_choice[] = { 00045 {"private", 0, 0, (void*)(0), 0, FL_NORMAL_LABEL, 0, 11, 0}, 00046 {"public", 0, 0, (void*)(1), 0, FL_NORMAL_LABEL, 0, 11, 0}, 00047 {"protected", 0, 0, (void*)(2), 0, FL_NORMAL_LABEL, 0, 11, 0}, 00048 {0,0,0,0,0,0,0,0,0} 00049 }; 00050 00051 Fl_Choice *f_public_choice=(Fl_Choice *)0; 00052 00053 Fl_Menu_Item menu_f_public_choice[] = { 00054 {"local", 0, 0, (void*)(0), 0, FL_NORMAL_LABEL, 0, 11, 0}, 00055 {"global", 0, 0, (void*)(1), 0, FL_NORMAL_LABEL, 0, 11, 0}, 00056 {0,0,0,0,0,0,0,0,0} 00057 }; 00058 00059 Fl_Light_Button *f_c_button=(Fl_Light_Button *)0; 00060 00061 Fl_Input *f_name_input=(Fl_Input *)0; 00062 00063 Fl_Input *f_return_type_input=(Fl_Input *)0; 00064 00065 Fl_Return_Button *f_panel_ok=(Fl_Return_Button *)0; 00066 00067 Fl_Button *f_panel_cancel=(Fl_Button *)0; 00068 00069 Fl_Text_Editor *f_comment_input=(Fl_Text_Editor *)0; 00070 00071 Fl_Double_Window* make_function_panel() { 00072 { function_panel = new Fl_Double_Window(343, 232, "Function/Method Properties"); 00073 { Fl_Group* o = new Fl_Group(10, 10, 270, 20); 00074 { f_public_member_choice = new Fl_Choice(10, 10, 75, 20); 00075 f_public_member_choice->tooltip("Change member access attribute."); 00076 f_public_member_choice->down_box(FL_BORDER_BOX); 00077 f_public_member_choice->labelsize(11); 00078 f_public_member_choice->textsize(11); 00079 f_public_member_choice->when(FL_WHEN_CHANGED); 00080 f_public_member_choice->menu(menu_f_public_member_choice); 00081 } // Fl_Choice* f_public_member_choice 00082 { f_public_choice = new Fl_Choice(10, 10, 75, 20); 00083 f_public_choice->tooltip("Change widget accessibility."); 00084 f_public_choice->down_box(FL_BORDER_BOX); 00085 f_public_choice->labelsize(11); 00086 f_public_choice->textsize(11); 00087 f_public_choice->when(FL_WHEN_CHANGED); 00088 f_public_choice->menu(menu_f_public_choice); 00089 } // Fl_Choice* f_public_choice 00090 { f_c_button = new Fl_Light_Button(95, 10, 80, 20, "C declaration"); 00091 f_c_button->tooltip("Declare with a C interface instead of C++."); 00092 f_c_button->labelsize(11); 00093 } // Fl_Light_Button* f_c_button 00094 { Fl_Box* o = new Fl_Box(235, 10, 45, 20); 00095 Fl_Group::current()->resizable(o); 00096 } // Fl_Box* o 00097 o->end(); 00098 } // Fl_Group* o 00099 { f_name_input = new Fl_Input(10, 50, 320, 20, "Name(args): (blank for main())"); 00100 f_name_input->tooltip("The name of the function or method."); 00101 f_name_input->labelfont(1); 00102 f_name_input->labelsize(11); 00103 f_name_input->textfont(4); 00104 f_name_input->textsize(11); 00105 f_name_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00106 f_name_input->when(FL_WHEN_NEVER); 00107 } // Fl_Input* f_name_input 00108 { f_return_type_input = new Fl_Input(10, 90, 320, 20, "Return Type: (blank to return outermost widget)"); 00109 f_return_type_input->tooltip("The return type of the function or method."); 00110 f_return_type_input->labelfont(1); 00111 f_return_type_input->labelsize(11); 00112 f_return_type_input->textfont(4); 00113 f_return_type_input->textsize(11); 00114 f_return_type_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00115 f_return_type_input->when(FL_WHEN_NEVER); 00116 } // Fl_Input* f_return_type_input 00117 { Fl_Group* o = new Fl_Group(10, 200, 320, 20); 00118 { f_panel_ok = new Fl_Return_Button(220, 200, 50, 20, "OK"); 00119 f_panel_ok->tooltip("Apply the changes."); 00120 f_panel_ok->labelsize(11); 00121 f_panel_ok->window()->hotspot(f_panel_ok); 00122 } // Fl_Return_Button* f_panel_ok 00123 { f_panel_cancel = new Fl_Button(280, 200, 50, 20, "Cancel"); 00124 f_panel_cancel->tooltip("Cancel the changes."); 00125 f_panel_cancel->shortcut(0xff1b); 00126 f_panel_cancel->labelsize(11); 00127 } // Fl_Button* f_panel_cancel 00128 { Fl_Box* o = new Fl_Box(10, 200, 205, 20); 00129 Fl_Group::current()->resizable(o); 00130 } // Fl_Box* o 00131 o->end(); 00132 } // Fl_Group* o 00133 { f_comment_input = new Fl_Text_Editor(10, 125, 320, 65, "Comment:"); 00134 f_comment_input->tooltip("Function comment in Doxygen format"); 00135 f_comment_input->box(FL_DOWN_BOX); 00136 f_comment_input->labelfont(1); 00137 f_comment_input->labelsize(11); 00138 f_comment_input->textfont(4); 00139 f_comment_input->textsize(11); 00140 f_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00141 Fl_Group::current()->resizable(f_comment_input); 00142 f_comment_input->buffer(new Fl_Text_Buffer()); 00143 } // Fl_Text_Editor* f_comment_input 00144 function_panel->set_modal(); 00145 function_panel->end(); 00146 } // Fl_Double_Window* function_panel 00147 return function_panel; 00148 } 00149 00150 Fl_Double_Window *code_panel=(Fl_Double_Window *)0; 00151 00152 CodeEditor *code_input=(CodeEditor *)0; 00153 00154 Fl_Return_Button *code_panel_ok=(Fl_Return_Button *)0; 00155 00156 Fl_Button *code_panel_cancel=(Fl_Button *)0; 00157 00158 Fl_Double_Window* make_code_panel() { 00159 { Fl_Double_Window* o = code_panel = new Fl_Double_Window(540, 180, "Code Properties"); 00160 code_panel->labelsize(11); 00161 { CodeEditor* o = code_input = new CodeEditor(10, 10, 520, 130); 00162 code_input->box(FL_DOWN_BOX); 00163 code_input->color(FL_BACKGROUND2_COLOR); 00164 code_input->selection_color(FL_SELECTION_COLOR); 00165 code_input->labeltype(FL_NORMAL_LABEL); 00166 code_input->labelfont(0); 00167 code_input->labelsize(11); 00168 code_input->labelcolor(FL_FOREGROUND_COLOR); 00169 code_input->textfont(4); 00170 code_input->textsize(11); 00171 code_input->align(Fl_Align(FL_ALIGN_TOP)); 00172 code_input->when(FL_WHEN_RELEASE); 00173 Fl_Group::current()->resizable(code_input); 00174 o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE); 00175 } // CodeEditor* code_input 00176 { Fl_Group* o = new Fl_Group(10, 150, 520, 20); 00177 o->labelsize(11); 00178 { code_panel_ok = new Fl_Return_Button(400, 150, 60, 20, "OK"); 00179 code_panel_ok->labelsize(11); 00180 code_panel_ok->window()->hotspot(code_panel_ok); 00181 } // Fl_Return_Button* code_panel_ok 00182 { code_panel_cancel = new Fl_Button(470, 150, 60, 20, "Cancel"); 00183 code_panel_cancel->shortcut(0xff1b); 00184 code_panel_cancel->labelsize(11); 00185 } // Fl_Button* code_panel_cancel 00186 { Fl_Box* o = new Fl_Box(10, 150, 380, 20); 00187 o->labelsize(11); 00188 Fl_Group::current()->resizable(o); 00189 } // Fl_Box* o 00190 o->end(); 00191 } // Fl_Group* o 00192 o->size_range(200, 150); 00193 code_panel->set_modal(); 00194 code_panel->end(); 00195 } // Fl_Double_Window* code_panel 00196 return code_panel; 00197 } 00198 00199 Fl_Double_Window *codeblock_panel=(Fl_Double_Window *)0; 00200 00201 Fl_Input *code_before_input=(Fl_Input *)0; 00202 00203 Fl_Input *code_after_input=(Fl_Input *)0; 00204 00205 Fl_Return_Button *codeblock_panel_ok=(Fl_Return_Button *)0; 00206 00207 Fl_Button *codeblock_panel_cancel=(Fl_Button *)0; 00208 00209 Fl_Double_Window* make_codeblock_panel() { 00210 { Fl_Double_Window* o = codeblock_panel = new Fl_Double_Window(300, 115, "Code Block Properties"); 00211 codeblock_panel->labelsize(11); 00212 { code_before_input = new Fl_Input(10, 15, 280, 20, "Conditional code block"); 00213 code_before_input->tooltip("#ifdef or similar conditional code block."); 00214 code_before_input->labelsize(11); 00215 code_before_input->textfont(4); 00216 code_before_input->textsize(11); 00217 code_before_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00218 code_before_input->when(FL_WHEN_NEVER); 00219 } // Fl_Input* code_before_input 00220 { code_after_input = new Fl_Input(10, 55, 280, 20, "\"{...child code...}\" is inserted here"); 00221 code_after_input->tooltip("#endif or similar conditional code block."); 00222 code_after_input->labelsize(11); 00223 code_after_input->textfont(4); 00224 code_after_input->textsize(11); 00225 code_after_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00226 code_after_input->when(FL_WHEN_NEVER); 00227 Fl_Group::current()->resizable(code_after_input); 00228 } // Fl_Input* code_after_input 00229 { Fl_Group* o = new Fl_Group(10, 85, 280, 20); 00230 { codeblock_panel_ok = new Fl_Return_Button(160, 85, 60, 20, "OK"); 00231 codeblock_panel_ok->labelsize(11); 00232 codeblock_panel_ok->window()->hotspot(codeblock_panel_ok); 00233 } // Fl_Return_Button* codeblock_panel_ok 00234 { codeblock_panel_cancel = new Fl_Button(230, 85, 60, 20, "Cancel"); 00235 codeblock_panel_cancel->shortcut(0xff1b); 00236 codeblock_panel_cancel->labelsize(11); 00237 } // Fl_Button* codeblock_panel_cancel 00238 { Fl_Box* o = new Fl_Box(10, 85, 140, 20); 00239 Fl_Group::current()->resizable(o); 00240 } // Fl_Box* o 00241 o->end(); 00242 } // Fl_Group* o 00243 o->size_range(o->w(), o->h(), Fl::w(), o->h()); 00244 codeblock_panel->set_modal(); 00245 codeblock_panel->end(); 00246 } // Fl_Double_Window* codeblock_panel 00247 return codeblock_panel; 00248 } 00249 00250 Fl_Double_Window *declblock_panel=(Fl_Double_Window *)0; 00251 00252 Fl_Choice *declblock_public_choice=(Fl_Choice *)0; 00253 00254 Fl_Menu_Item menu_declblock_public_choice[] = { 00255 {"in source code only", 0, 0, (void*)(0), 0, FL_NORMAL_LABEL, 0, 11, 0}, 00256 {"in header and source", 0, 0, (void*)(1), 0, FL_NORMAL_LABEL, 0, 11, 0}, 00257 {0,0,0,0,0,0,0,0,0} 00258 }; 00259 00260 Fl_Light_Button *declblock_public_button_x=(Fl_Light_Button *)0; 00261 00262 Fl_Input *decl_before_input=(Fl_Input *)0; 00263 00264 Fl_Input *decl_after_input=(Fl_Input *)0; 00265 00266 Fl_Return_Button *declblock_panel_ok=(Fl_Return_Button *)0; 00267 00268 Fl_Button *declblock_panel_cancel=(Fl_Button *)0; 00269 00270 Fl_Double_Window* make_declblock_panel() { 00271 { Fl_Double_Window* o = declblock_panel = new Fl_Double_Window(300, 135, "Declaration Block Properties"); 00272 declblock_panel->labelsize(11); 00273 { Fl_Group* o = new Fl_Group(10, 10, 280, 20); 00274 { declblock_public_choice = new Fl_Choice(10, 10, 140, 20); 00275 declblock_public_choice->tooltip("Change widget accessibility."); 00276 declblock_public_choice->down_box(FL_BORDER_BOX); 00277 declblock_public_choice->labelsize(11); 00278 declblock_public_choice->textsize(11); 00279 declblock_public_choice->when(FL_WHEN_NEVER); 00280 declblock_public_choice->menu(menu_declblock_public_choice); 00281 } // Fl_Choice* declblock_public_choice 00282 { declblock_public_button_x = new Fl_Light_Button(10, 10, 60, 20, "public"); 00283 declblock_public_button_x->tooltip("Make the declaration publicly accessible."); 00284 declblock_public_button_x->labelsize(11); 00285 declblock_public_button_x->when(FL_WHEN_NEVER); 00286 declblock_public_button_x->hide(); 00287 } // Fl_Light_Button* declblock_public_button_x 00288 { Fl_Box* o = new Fl_Box(155, 10, 135, 20); 00289 Fl_Group::current()->resizable(o); 00290 } // Fl_Box* o 00291 o->end(); 00292 } // Fl_Group* o 00293 { decl_before_input = new Fl_Input(10, 40, 280, 20); 00294 decl_before_input->tooltip("#ifdef or similar conditional declaration block."); 00295 decl_before_input->labelsize(11); 00296 decl_before_input->textfont(4); 00297 decl_before_input->textsize(11); 00298 decl_before_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00299 decl_before_input->when(FL_WHEN_NEVER); 00300 Fl_Group::current()->resizable(decl_before_input); 00301 } // Fl_Input* decl_before_input 00302 { decl_after_input = new Fl_Input(10, 75, 280, 20, "\"\\n...child code...\\n\" is inserted here"); 00303 decl_after_input->tooltip("#endif or similar declaration code block."); 00304 decl_after_input->labelsize(11); 00305 decl_after_input->textfont(4); 00306 decl_after_input->textsize(11); 00307 decl_after_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00308 decl_after_input->when(FL_WHEN_NEVER); 00309 } // Fl_Input* decl_after_input 00310 { Fl_Group* o = new Fl_Group(10, 105, 280, 20); 00311 { declblock_panel_ok = new Fl_Return_Button(160, 105, 60, 20, "OK"); 00312 declblock_panel_ok->labelsize(11); 00313 declblock_panel_ok->window()->hotspot(declblock_panel_ok); 00314 } // Fl_Return_Button* declblock_panel_ok 00315 { declblock_panel_cancel = new Fl_Button(230, 105, 60, 20, "Cancel"); 00316 declblock_panel_cancel->shortcut(0xff1b); 00317 declblock_panel_cancel->labelsize(11); 00318 } // Fl_Button* declblock_panel_cancel 00319 { Fl_Box* o = new Fl_Box(10, 105, 140, 20); 00320 Fl_Group::current()->resizable(o); 00321 } // Fl_Box* o 00322 o->end(); 00323 } // Fl_Group* o 00324 o->size_range(o->w(), o->h(), Fl::w(), o->h()); 00325 declblock_panel->set_modal(); 00326 declblock_panel->end(); 00327 } // Fl_Double_Window* declblock_panel 00328 return declblock_panel; 00329 } 00330 00331 Fl_Double_Window *decl_panel=(Fl_Double_Window *)0; 00332 00333 Fl_Choice *decl_choice=(Fl_Choice *)0; 00334 00335 Fl_Menu_Item menu_decl_choice[] = { 00336 {"in source file only", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00337 {"in header file only", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00338 {"\"static\" in source file", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00339 {"in source and \"extern\" in header", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00340 {0,0,0,0,0,0,0,0,0} 00341 }; 00342 00343 Fl_Choice *decl_class_choice=(Fl_Choice *)0; 00344 00345 Fl_Menu_Item menu_decl_class_choice[] = { 00346 {"private", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00347 {"public", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00348 {"protected", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00349 {0,0,0,0,0,0,0,0,0} 00350 }; 00351 00352 Fl_Input *decl_input=(Fl_Input *)0; 00353 00354 Fl_Return_Button *decl_panel_ok=(Fl_Return_Button *)0; 00355 00356 Fl_Button *decl_panel_cancel=(Fl_Button *)0; 00357 00358 Fl_Text_Editor *decl_comment_input=(Fl_Text_Editor *)0; 00359 00360 Fl_Double_Window* make_decl_panel() { 00361 { decl_panel = new Fl_Double_Window(343, 237, "Declaration Properties"); 00362 decl_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE)); 00363 { Fl_Group* o = new Fl_Group(10, 10, 270, 20); 00364 { Fl_Box* o = new Fl_Box(200, 10, 80, 20); 00365 Fl_Group::current()->resizable(o); 00366 } // Fl_Box* o 00367 { decl_choice = new Fl_Choice(10, 10, 185, 20); 00368 decl_choice->down_box(FL_BORDER_BOX); 00369 decl_choice->labelsize(11); 00370 decl_choice->textsize(11); 00371 decl_choice->menu(menu_decl_choice); 00372 } // Fl_Choice* decl_choice 00373 { decl_class_choice = new Fl_Choice(10, 10, 75, 20); 00374 decl_class_choice->down_box(FL_BORDER_BOX); 00375 decl_class_choice->labelsize(11); 00376 decl_class_choice->textsize(11); 00377 decl_class_choice->menu(menu_decl_class_choice); 00378 } // Fl_Choice* decl_class_choice 00379 o->end(); 00380 } // Fl_Group* o 00381 { decl_input = new Fl_Input(10, 40, 320, 20, "This can be any declaration, like \"int x;\", an external symbol like \"exter\ 00382 n int foo();\", a #directive like \"#include <foo.h>\", a comment like \"//foo\ 00383 \" or \"/*foo*/\", or typedef like \"typedef char byte;\" or \"using std::list\ 00384 ;\"."); 00385 decl_input->tooltip("Declaration text."); 00386 decl_input->labelsize(11); 00387 decl_input->textfont(4); 00388 decl_input->textsize(11); 00389 decl_input->align(Fl_Align(134)); 00390 decl_input->when(FL_WHEN_NEVER); 00391 } // Fl_Input* decl_input 00392 { Fl_Group* o = new Fl_Group(10, 205, 320, 20); 00393 { decl_panel_ok = new Fl_Return_Button(200, 205, 60, 20, "OK"); 00394 decl_panel_ok->labelsize(11); 00395 decl_panel_ok->window()->hotspot(decl_panel_ok); 00396 } // Fl_Return_Button* decl_panel_ok 00397 { decl_panel_cancel = new Fl_Button(270, 205, 60, 20, "Cancel"); 00398 decl_panel_cancel->shortcut(0xff1b); 00399 decl_panel_cancel->labelsize(11); 00400 } // Fl_Button* decl_panel_cancel 00401 { Fl_Box* o = new Fl_Box(10, 205, 185, 20); 00402 Fl_Group::current()->resizable(o); 00403 } // Fl_Box* o 00404 o->end(); 00405 } // Fl_Group* o 00406 { decl_comment_input = new Fl_Text_Editor(10, 130, 320, 65, "Comment:"); 00407 decl_comment_input->tooltip("Declaration comment in Doxygen format"); 00408 decl_comment_input->box(FL_DOWN_BOX); 00409 decl_comment_input->labelfont(1); 00410 decl_comment_input->labelsize(11); 00411 decl_comment_input->textfont(4); 00412 decl_comment_input->textsize(11); 00413 decl_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00414 Fl_Group::current()->resizable(decl_comment_input); 00415 decl_comment_input->buffer(new Fl_Text_Buffer()); 00416 } // Fl_Text_Editor* decl_comment_input 00417 decl_panel->size_range(343, 237); 00418 decl_panel->end(); 00419 } // Fl_Double_Window* decl_panel 00420 return decl_panel; 00421 } 00422 00423 Fl_Double_Window *data_panel=(Fl_Double_Window *)0; 00424 00425 Fl_Choice *data_choice=(Fl_Choice *)0; 00426 00427 Fl_Menu_Item menu_data_choice[] = { 00428 {"in source file only", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00429 {"in header file only", 0, 0, 0, 16, FL_NORMAL_LABEL, 0, 11, 0}, 00430 {"\"static\" in source file", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00431 {"in source and \"extern\" in header", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00432 {0,0,0,0,0,0,0,0,0} 00433 }; 00434 00435 Fl_Choice *data_class_choice=(Fl_Choice *)0; 00436 00437 Fl_Menu_Item menu_data_class_choice[] = { 00438 {"private", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00439 {"public", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00440 {"protected", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 11, 0}, 00441 {0,0,0,0,0,0,0,0,0} 00442 }; 00443 00444 Fl_Input *data_input=(Fl_Input *)0; 00445 00446 Fl_Input *data_filename=(Fl_Input *)0; 00447 00448 Fl_Button *data_filebrowser=(Fl_Button *)0; 00449 00450 Fl_Return_Button *data_panel_ok=(Fl_Return_Button *)0; 00451 00452 Fl_Button *data_panel_cancel=(Fl_Button *)0; 00453 00454 Fl_Text_Editor *data_comment_input=(Fl_Text_Editor *)0; 00455 00456 Fl_Double_Window* make_data_panel() { 00457 { data_panel = new Fl_Double_Window(343, 237, "Binary Data Properties"); 00458 data_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE)); 00459 { Fl_Group* o = new Fl_Group(10, 10, 270, 20); 00460 { Fl_Box* o = new Fl_Box(200, 10, 80, 20); 00461 Fl_Group::current()->resizable(o); 00462 } // Fl_Box* o 00463 { data_choice = new Fl_Choice(10, 10, 185, 20); 00464 data_choice->down_box(FL_BORDER_BOX); 00465 data_choice->labelsize(11); 00466 data_choice->textsize(11); 00467 data_choice->menu(menu_data_choice); 00468 } // Fl_Choice* data_choice 00469 { data_class_choice = new Fl_Choice(10, 10, 75, 20); 00470 data_class_choice->down_box(FL_BORDER_BOX); 00471 data_class_choice->labelsize(11); 00472 data_class_choice->textsize(11); 00473 data_class_choice->menu(menu_data_class_choice); 00474 } // Fl_Choice* data_class_choice 00475 o->end(); 00476 } // Fl_Group* o 00477 { data_input = new Fl_Input(10, 52, 320, 20, "Variable Name:"); 00478 data_input->tooltip("Binary Data variables are declared \"const unsigned char []\"."); 00479 data_input->labelfont(1); 00480 data_input->labelsize(11); 00481 data_input->textfont(4); 00482 data_input->textsize(11); 00483 data_input->align(Fl_Align(133)); 00484 data_input->when(FL_WHEN_NEVER); 00485 } // Fl_Input* data_input 00486 { data_filename = new Fl_Input(10, 90, 280, 20, "Filename:"); 00487 data_filename->tooltip("Name and path of binary file that will be included."); 00488 data_filename->labelfont(1); 00489 data_filename->labelsize(11); 00490 data_filename->textfont(4); 00491 data_filename->textsize(11); 00492 data_filename->align(Fl_Align(133)); 00493 data_filename->when(FL_WHEN_NEVER); 00494 } // Fl_Input* data_filename 00495 { data_filebrowser = new Fl_Button(290, 90, 40, 20, "@fileopen"); 00496 data_filebrowser->labelcolor((Fl_Color)134); 00497 } // Fl_Button* data_filebrowser 00498 { Fl_Group* o = new Fl_Group(10, 205, 320, 20); 00499 { data_panel_ok = new Fl_Return_Button(200, 205, 60, 20, "OK"); 00500 data_panel_ok->labelsize(11); 00501 data_panel_ok->window()->hotspot(data_panel_ok); 00502 } // Fl_Return_Button* data_panel_ok 00503 { data_panel_cancel = new Fl_Button(270, 205, 60, 20, "Cancel"); 00504 data_panel_cancel->shortcut(0xff1b); 00505 data_panel_cancel->labelsize(11); 00506 } // Fl_Button* data_panel_cancel 00507 { Fl_Box* o = new Fl_Box(10, 205, 185, 20); 00508 Fl_Group::current()->resizable(o); 00509 } // Fl_Box* o 00510 o->end(); 00511 } // Fl_Group* o 00512 { data_comment_input = new Fl_Text_Editor(10, 130, 320, 65, "Comment:"); 00513 data_comment_input->tooltip("Declaration comment in Doxygen format"); 00514 data_comment_input->box(FL_DOWN_BOX); 00515 data_comment_input->labelfont(1); 00516 data_comment_input->labelsize(11); 00517 data_comment_input->textfont(4); 00518 data_comment_input->textsize(11); 00519 data_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00520 Fl_Group::current()->resizable(data_comment_input); 00521 data_comment_input->buffer(new Fl_Text_Buffer()); 00522 } // Fl_Text_Editor* data_comment_input 00523 data_panel->size_range(343, 237); 00524 data_panel->end(); 00525 } // Fl_Double_Window* data_panel 00526 return data_panel; 00527 } 00528 00529 Fl_Double_Window *class_panel=(Fl_Double_Window *)0; 00530 00531 Fl_Light_Button *c_public_button=(Fl_Light_Button *)0; 00532 00533 Fl_Input *c_name_input=(Fl_Input *)0; 00534 00535 Fl_Input *c_subclass_input=(Fl_Input *)0; 00536 00537 Fl_Text_Editor *c_comment_input=(Fl_Text_Editor *)0; 00538 00539 Fl_Return_Button *c_panel_ok=(Fl_Return_Button *)0; 00540 00541 Fl_Button *c_panel_cancel=(Fl_Button *)0; 00542 00543 Fl_Double_Window* make_class_panel() { 00544 { class_panel = new Fl_Double_Window(342, 196, "Class Properties"); 00545 class_panel->labelsize(11); 00546 { Fl_Group* o = new Fl_Group(10, 10, 280, 20); 00547 o->hide(); 00548 { c_public_button = new Fl_Light_Button(10, 10, 60, 20, "public"); 00549 c_public_button->tooltip("Make the class publicly accessible."); 00550 c_public_button->labelsize(11); 00551 c_public_button->when(FL_WHEN_NEVER); 00552 c_public_button->hide(); 00553 } // Fl_Light_Button* c_public_button 00554 { Fl_Box* o = new Fl_Box(80, 10, 210, 20); 00555 Fl_Group::current()->resizable(o); 00556 } // Fl_Box* o 00557 o->end(); 00558 } // Fl_Group* o 00559 { c_name_input = new Fl_Input(10, 20, 320, 20, "Name:"); 00560 c_name_input->tooltip("Name of class."); 00561 c_name_input->labelfont(1); 00562 c_name_input->labelsize(11); 00563 c_name_input->textfont(4); 00564 c_name_input->textsize(11); 00565 c_name_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00566 c_name_input->when(FL_WHEN_NEVER); 00567 } // Fl_Input* c_name_input 00568 { c_subclass_input = new Fl_Input(10, 55, 320, 20, "Subclass of (text between : and {)"); 00569 c_subclass_input->tooltip("Name of subclass."); 00570 c_subclass_input->labelfont(1); 00571 c_subclass_input->labelsize(11); 00572 c_subclass_input->textfont(4); 00573 c_subclass_input->textsize(11); 00574 c_subclass_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00575 c_subclass_input->when(FL_WHEN_NEVER); 00576 } // Fl_Input* c_subclass_input 00577 { c_comment_input = new Fl_Text_Editor(10, 90, 320, 65, "Comment:"); 00578 c_comment_input->tooltip("Class comment in Doxygen format"); 00579 c_comment_input->box(FL_DOWN_BOX); 00580 c_comment_input->labelfont(1); 00581 c_comment_input->labelsize(11); 00582 c_comment_input->textfont(4); 00583 c_comment_input->textsize(11); 00584 c_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); 00585 Fl_Group::current()->resizable(c_comment_input); 00586 c_comment_input->buffer(new Fl_Text_Buffer()); 00587 } // Fl_Text_Editor* c_comment_input 00588 { Fl_Group* o = new Fl_Group(10, 165, 320, 20); 00589 { c_panel_ok = new Fl_Return_Button(200, 165, 60, 20, "OK"); 00590 c_panel_ok->labelsize(11); 00591 c_panel_ok->window()->hotspot(c_panel_ok); 00592 } // Fl_Return_Button* c_panel_ok 00593 { c_panel_cancel = new Fl_Button(270, 165, 60, 20, "Cancel"); 00594 c_panel_cancel->shortcut(0xff1b); 00595 c_panel_cancel->labelsize(11); 00596 } // Fl_Button* c_panel_cancel 00597 { Fl_Box* o = new Fl_Box(10, 165, 185, 20); 00598 Fl_Group::current()->resizable(o); 00599 } // Fl_Box* o 00600 o->end(); 00601 } // Fl_Group* o 00602 class_panel->set_modal(); 00603 class_panel->size_range(343, 188); 00604 class_panel->end(); 00605 } // Fl_Double_Window* class_panel 00606 return class_panel; 00607 } 00608 00609 Fl_Double_Window *comment_panel=(Fl_Double_Window *)0; 00610 00611 CodeEditor *comment_input=(CodeEditor *)0; 00612 00613 Fl_Return_Button *comment_panel_ok=(Fl_Return_Button *)0; 00614 00615 Fl_Button *comment_panel_cancel=(Fl_Button *)0; 00616 00617 Fl_Light_Button *comment_in_source=(Fl_Light_Button *)0; 00618 00619 Fl_Light_Button *comment_in_header=(Fl_Light_Button *)0; 00620 00621 Fl_Menu_Button *comment_predefined=(Fl_Menu_Button *)0; 00622 00623 Fl_Button *comment_load=(Fl_Button *)0; 00624 00625 Fl_Double_Window* make_comment_panel() { 00626 { Fl_Double_Window* o = comment_panel = new Fl_Double_Window(550, 280, "Comment Properties"); 00627 comment_panel->labelsize(11); 00628 { CodeEditor* o = comment_input = new CodeEditor(110, 10, 430, 230); 00629 comment_input->box(FL_DOWN_BOX); 00630 comment_input->color(FL_BACKGROUND2_COLOR); 00631 comment_input->selection_color(FL_SELECTION_COLOR); 00632 comment_input->labeltype(FL_NORMAL_LABEL); 00633 comment_input->labelfont(0); 00634 comment_input->labelsize(11); 00635 comment_input->labelcolor(FL_FOREGROUND_COLOR); 00636 comment_input->textfont(4); 00637 comment_input->textsize(11); 00638 comment_input->align(Fl_Align(FL_ALIGN_TOP)); 00639 comment_input->when(FL_WHEN_RELEASE); 00640 Fl_Group::current()->resizable(comment_input); 00641 o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE); 00642 } // CodeEditor* comment_input 00643 { Fl_Group* o = new Fl_Group(110, 250, 430, 20); 00644 o->labelsize(11); 00645 { comment_panel_ok = new Fl_Return_Button(370, 250, 80, 20, "OK"); 00646 comment_panel_ok->labelsize(11); 00647 comment_panel_ok->window()->hotspot(comment_panel_ok); 00648 } // Fl_Return_Button* comment_panel_ok 00649 { comment_panel_cancel = new Fl_Button(460, 250, 80, 20, "Cancel"); 00650 comment_panel_cancel->shortcut(0xff1b); 00651 comment_panel_cancel->labelsize(11); 00652 } // Fl_Button* comment_panel_cancel 00653 { Fl_Box* o = new Fl_Box(110, 250, 250, 20); 00654 o->labelsize(11); 00655 Fl_Group::current()->resizable(o); 00656 } // Fl_Box* o 00657 o->end(); 00658 } // Fl_Group* o 00659 { Fl_Group* o = new Fl_Group(10, 10, 90, 243); 00660 o->labelsize(11); 00661 { comment_in_source = new Fl_Light_Button(10, 10, 90, 20, "In Source"); 00662 comment_in_source->tooltip("Put the comment into the source (.cxx) file."); 00663 comment_in_source->labelsize(11); 00664 comment_in_source->when(FL_WHEN_NEVER); 00665 } // Fl_Light_Button* comment_in_source 00666 { comment_in_header = new Fl_Light_Button(10, 40, 90, 20, "In Header"); 00667 comment_in_header->tooltip("Put the comment into the header (.h) file."); 00668 comment_in_header->labelsize(11); 00669 comment_in_header->when(FL_WHEN_NEVER); 00670 } // Fl_Light_Button* comment_in_header 00671 { comment_predefined = new Fl_Menu_Button(10, 70, 90, 20, "Predefined"); 00672 comment_predefined->labelsize(11); 00673 comment_predefined->textsize(11); 00674 } // Fl_Menu_Button* comment_predefined 00675 { comment_load = new Fl_Button(10, 100, 90, 20, "Import..."); 00676 comment_load->labelsize(11); 00677 } // Fl_Button* comment_load 00678 { Fl_Box* o = new Fl_Box(10, 132, 90, 121); 00679 o->labelsize(11); 00680 Fl_Group::current()->resizable(o); 00681 } // Fl_Box* o 00682 o->end(); 00683 } // Fl_Group* o 00684 o->size_range(320, 180); 00685 comment_panel->set_modal(); 00686 comment_panel->end(); 00687 } // Fl_Double_Window* comment_panel 00688 return comment_panel; 00689 } 00690 00691 void type_make_cb(Fl_Widget*,void*d) { 00692 undo_checkpoint(); 00693 Fl_Type *t = Fl_Type_make((char*)d); 00694 if (t) { 00695 select_only(t); 00696 set_modflag(1); 00697 t->open(); 00698 } else { 00699 undo_current --; 00700 undo_last --; 00701 } 00702 } 00703 00704 Fl_Window *widgetbin_panel=(Fl_Window *)0; 00705 00706 static void cb_widgetbin_panel(Fl_Window* o, void* v) { 00707 if (Fl::event()==FL_SHORTCUT && Fl::event_key()==FL_Escape) 00708 exit_cb((Fl_Widget*)o, v); 00709 else 00710 toggle_widgetbin_cb((Fl_Widget*)o, v); 00711 } 00712 00713 Fl_Window* make_widgetbin() { 00714 { widgetbin_panel = new Fl_Window(574, 85, "Widget Bin"); 00715 widgetbin_panel->callback((Fl_Callback*)cb_widgetbin_panel); 00716 widgetbin_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE)); 00717 { Fl_Group* o = new Fl_Group(3, 3, 79, 79); 00718 { Fl_Button* o = new Fl_Button(5, 5, 24, 24); 00719 o->tooltip("Function"); 00720 o->box(FL_THIN_UP_BOX); 00721 o->callback((Fl_Callback*)type_make_cb, (void*)("Function")); 00722 o->image(pixmap[7]); 00723 } // Fl_Button* o 00724 { Fl_Button* o = new Fl_Button(30, 5, 24, 24); 00725 o->tooltip("Class"); 00726 o->box(FL_THIN_UP_BOX); 00727 o->callback((Fl_Callback*)type_make_cb, (void*)("Class")); 00728 o->image(pixmap[12]); 00729 } // Fl_Button* o 00730 { Fl_Button* o = new Fl_Button(55, 5, 24, 24); 00731 o->tooltip("Comment"); 00732 o->box(FL_THIN_UP_BOX); 00733 o->callback((Fl_Callback*)type_make_cb, (void*)("comment")); 00734 o->image(pixmap[46]); 00735 } // Fl_Button* o 00736 { Fl_Button* o = new Fl_Button(5, 30, 24, 24); 00737 o->tooltip("Code"); 00738 o->box(FL_THIN_UP_BOX); 00739 o->callback((Fl_Callback*)type_make_cb, (void*)("Code")); 00740 o->image(pixmap[8]); 00741 } // Fl_Button* o 00742 { Fl_Button* o = new Fl_Button(30, 30, 24, 24); 00743 o->tooltip("Code Block"); 00744 o->box(FL_THIN_UP_BOX); 00745 o->callback((Fl_Callback*)type_make_cb, (void*)("CodeBlock")); 00746 o->image(pixmap[9]); 00747 } // Fl_Button* o 00748 { Fl_Button* o = new Fl_Button(55, 30, 24, 24); 00749 o->tooltip("Widget Class"); 00750 o->box(FL_THIN_UP_BOX); 00751 o->callback((Fl_Callback*)type_make_cb, (void*)("widget_class")); 00752 o->image(pixmap[48]); 00753 } // Fl_Button* o 00754 { Fl_Button* o = new Fl_Button(5, 55, 24, 24); 00755 o->tooltip("Declaration"); 00756 o->box(FL_THIN_UP_BOX); 00757 o->callback((Fl_Callback*)type_make_cb, (void*)("decl")); 00758 o->image(pixmap[10]); 00759 } // Fl_Button* o 00760 { Fl_Button* o = new Fl_Button(30, 55, 24, 24); 00761 o->tooltip("Declaration Block"); 00762 o->box(FL_THIN_UP_BOX); 00763 o->callback((Fl_Callback*)type_make_cb, (void*)("declblock")); 00764 o->image(pixmap[11]); 00765 } // Fl_Button* o 00766 { Fl_Button* o = new Fl_Button(55, 55, 24, 24); 00767 o->tooltip("Binary Data"); 00768 o->box(FL_THIN_UP_BOX); 00769 o->callback((Fl_Callback*)type_make_cb, (void*)("data")); 00770 o->image(pixmap[49]); 00771 } // Fl_Button* o 00772 o->end(); 00773 } // Fl_Group* o 00774 { Fl_Group* o = new Fl_Group(87, 3, 79, 79); 00775 { Fl_Button* o = new Fl_Button(89, 5, 24, 24); 00776 o->tooltip("Window"); 00777 o->box(FL_THIN_UP_BOX); 00778 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Window")); 00779 o->image(pixmap[1]); 00780 } // Fl_Button* o 00781 { Fl_Button* o = new Fl_Button(114, 5, 24, 24); 00782 o->tooltip("Group"); 00783 o->box(FL_THIN_UP_BOX); 00784 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Group")); 00785 o->image(pixmap[6]); 00786 } // Fl_Button* o 00787 { Fl_Button* o = new Fl_Button(139, 5, 24, 24); 00788 o->tooltip("Pack"); 00789 o->box(FL_THIN_UP_BOX); 00790 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Pack")); 00791 o->image(pixmap[22]); 00792 } // Fl_Button* o 00793 { Fl_Button* o = new Fl_Button(89, 30, 24, 24); 00794 o->tooltip("Tabs"); 00795 o->box(FL_THIN_UP_BOX); 00796 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Tabs")); 00797 o->image(pixmap[13]); 00798 } // Fl_Button* o 00799 { Fl_Button* o = new Fl_Button(114, 30, 24, 24); 00800 o->tooltip("Scroll"); 00801 o->box(FL_THIN_UP_BOX); 00802 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Scroll")); 00803 o->image(pixmap[19]); 00804 } // Fl_Button* o 00805 { Fl_Button* o = new Fl_Button(139, 30, 24, 24); 00806 o->tooltip("Table"); 00807 o->box(FL_THIN_UP_BOX); 00808 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Table")); 00809 o->image(pixmap[51]); 00810 } // Fl_Button* o 00811 { Fl_Button* o = new Fl_Button(89, 55, 24, 24); 00812 o->tooltip("Tile"); 00813 o->box(FL_THIN_UP_BOX); 00814 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Tile")); 00815 o->image(pixmap[20]); 00816 } // Fl_Button* o 00817 { Fl_Button* o = new Fl_Button(114, 55, 24, 24); 00818 o->tooltip("Wizard"); 00819 o->box(FL_THIN_UP_BOX); 00820 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Wizard")); 00821 o->image(pixmap[21]); 00822 } // Fl_Button* o 00823 o->end(); 00824 } // Fl_Group* o 00825 { Fl_Group* o = new Fl_Group(171, 3, 54, 79); 00826 { Fl_Button* o = new Fl_Button(173, 5, 24, 24); 00827 o->tooltip("Button"); 00828 o->box(FL_THIN_UP_BOX); 00829 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Button")); 00830 o->image(pixmap[2]); 00831 } // Fl_Button* o 00832 { Fl_Button* o = new Fl_Button(198, 5, 24, 24); 00833 o->tooltip("Return Button"); 00834 o->box(FL_THIN_UP_BOX); 00835 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Return_Button")); 00836 o->image(pixmap[23]); 00837 } // Fl_Button* o 00838 { Fl_Button* o = new Fl_Button(173, 30, 24, 24); 00839 o->tooltip("Light Button"); 00840 o->box(FL_THIN_UP_BOX); 00841 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Light_Button")); 00842 o->image(pixmap[24]); 00843 } // Fl_Button* o 00844 { Fl_Button* o = new Fl_Button(198, 30, 24, 24); 00845 o->tooltip("Repeat Button"); 00846 o->box(FL_THIN_UP_BOX); 00847 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Repeat_Button")); 00848 o->image(pixmap[25]); 00849 } // Fl_Button* o 00850 { Fl_Button* o = new Fl_Button(173, 55, 24, 24); 00851 o->tooltip("Check Button"); 00852 o->box(FL_THIN_UP_BOX); 00853 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Check_Button")); 00854 o->image(pixmap[3]); 00855 } // Fl_Button* o 00856 { Fl_Button* o = new Fl_Button(198, 55, 24, 24); 00857 o->tooltip("Round Button"); 00858 o->box(FL_THIN_UP_BOX); 00859 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Round_Button")); 00860 o->image(pixmap[4]); 00861 } // Fl_Button* o 00862 o->end(); 00863 } // Fl_Group* o 00864 { Fl_Group* o = new Fl_Group(230, 3, 104, 79); 00865 { Fl_Button* o = new Fl_Button(232, 5, 24, 24); 00866 o->tooltip("Slider"); 00867 o->box(FL_THIN_UP_BOX); 00868 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Slider")); 00869 o->image(pixmap[37]); 00870 } // Fl_Button* o 00871 { Fl_Button* o = new Fl_Button(257, 5, 24, 24); 00872 o->tooltip("Scroll Bar"); 00873 o->box(FL_THIN_UP_BOX); 00874 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Scrollbar")); 00875 o->image(pixmap[38]); 00876 } // Fl_Button* o 00877 { Fl_Button* o = new Fl_Button(282, 5, 24, 24); 00878 o->tooltip("Value Slider"); 00879 o->box(FL_THIN_UP_BOX); 00880 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Value_Slider")); 00881 o->image(pixmap[39]); 00882 } // Fl_Button* o 00883 { Fl_Button* o = new Fl_Button(307, 5, 24, 24); 00884 o->tooltip("Value Output"); 00885 o->box(FL_THIN_UP_BOX); 00886 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Value_Output")); 00887 o->image(pixmap[45]); 00888 } // Fl_Button* o 00889 { Fl_Button* o = new Fl_Button(232, 30, 24, 24); 00890 o->tooltip("Adjuster"); 00891 o->box(FL_THIN_UP_BOX); 00892 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Adjuster")); 00893 o->image(pixmap[40]); 00894 } // Fl_Button* o 00895 { Fl_Button* o = new Fl_Button(257, 30, 24, 24); 00896 o->tooltip("Counter"); 00897 o->box(FL_THIN_UP_BOX); 00898 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Counter")); 00899 o->image(pixmap[41]); 00900 } // Fl_Button* o 00901 { Fl_Button* o = new Fl_Button(282, 30, 24, 24); 00902 o->tooltip("Dial"); 00903 o->box(FL_THIN_UP_BOX); 00904 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Dial")); 00905 o->image(pixmap[42]); 00906 } // Fl_Button* o 00907 { Fl_Button* o = new Fl_Button(232, 55, 24, 24); 00908 o->tooltip("Roller"); 00909 o->box(FL_THIN_UP_BOX); 00910 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Roller")); 00911 o->image(pixmap[43]); 00912 } // Fl_Button* o 00913 { Fl_Button* o = new Fl_Button(257, 55, 24, 24); 00914 o->tooltip("Spinner"); 00915 o->box(FL_THIN_UP_BOX); 00916 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Spinner")); 00917 o->image(pixmap[47]); 00918 } // Fl_Button* o 00919 { Fl_Button* o = new Fl_Button(282, 55, 24, 24); 00920 o->tooltip("Value Input"); 00921 o->box(FL_THIN_UP_BOX); 00922 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Value_Input")); 00923 o->image(pixmap[44]); 00924 } // Fl_Button* o 00925 o->end(); 00926 } // Fl_Group* o 00927 { Fl_Group* o = new Fl_Group(339, 3, 54, 79); 00928 { Fl_Button* o = new Fl_Button(341, 5, 24, 24); 00929 o->tooltip("Input"); 00930 o->box(FL_THIN_UP_BOX); 00931 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Input")); 00932 o->image(pixmap[14]); 00933 } // Fl_Button* o 00934 { Fl_Button* o = new Fl_Button(366, 5, 24, 24); 00935 o->tooltip("Output"); 00936 o->box(FL_THIN_UP_BOX); 00937 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Output")); 00938 o->image(pixmap[27]); 00939 } // Fl_Button* o 00940 { Fl_Button* o = new Fl_Button(341, 30, 24, 24); 00941 o->tooltip("Text Edit"); 00942 o->box(FL_THIN_UP_BOX); 00943 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Text_Editor")); 00944 o->image(pixmap[29]); 00945 } // Fl_Button* o 00946 { Fl_Button* o = new Fl_Button(366, 30, 24, 24); 00947 o->tooltip("Text Display"); 00948 o->box(FL_THIN_UP_BOX); 00949 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Text_Display")); 00950 o->image(pixmap[28]); 00951 } // Fl_Button* o 00952 { Fl_Button* o = new Fl_Button(341, 55, 24, 24); 00953 o->tooltip("File Input"); 00954 o->box(FL_THIN_UP_BOX); 00955 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_File_Input")); 00956 o->image(pixmap[30]); 00957 } // Fl_Button* o 00958 o->end(); 00959 } // Fl_Group* o 00960 { Fl_Group* o = new Fl_Group(398, 3, 54, 79); 00961 { Fl_Button* o = new Fl_Button(400, 5, 24, 24); 00962 o->tooltip("Menu Bar"); 00963 o->box(FL_THIN_UP_BOX); 00964 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Menu_Bar")); 00965 o->image(pixmap[17]); 00966 } // Fl_Button* o 00967 { Fl_Button* o = new Fl_Button(425, 5, 24, 24); 00968 o->tooltip("Input Choice"); 00969 o->box(FL_THIN_UP_BOX); 00970 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Input_Choice")); 00971 o->image(pixmap[15]); 00972 } // Fl_Button* o 00973 { Fl_Button* o = new Fl_Button(400, 30, 24, 24); 00974 o->tooltip("Menu Button"); 00975 o->box(FL_THIN_UP_BOX); 00976 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Menu_Button")); 00977 o->image(pixmap[26]); 00978 } // Fl_Button* o 00979 { Fl_Button* o = new Fl_Button(425, 30, 24, 24); 00980 o->tooltip("Menu Item"); 00981 o->box(FL_THIN_UP_BOX); 00982 o->callback((Fl_Callback*)type_make_cb, (void*)("menuitem")); 00983 o->image(pixmap[16]); 00984 } // Fl_Button* o 00985 { Fl_Button* o = new Fl_Button(400, 55, 24, 24); 00986 o->tooltip("Choice"); 00987 o->box(FL_THIN_UP_BOX); 00988 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Choice")); 00989 o->image(pixmap[15]); 00990 } // Fl_Button* o 00991 { Fl_Button* o = new Fl_Button(425, 55, 24, 24); 00992 o->tooltip("Sub Menu"); 00993 o->box(FL_THIN_UP_BOX); 00994 o->callback((Fl_Callback*)type_make_cb, (void*)("submenu")); 00995 o->image(pixmap[18]); 00996 } // Fl_Button* o 00997 o->end(); 00998 } // Fl_Group* o 00999 { Fl_Group* o = new Fl_Group(457, 3, 54, 79); 01000 { Fl_Button* o = new Fl_Button(459, 5, 24, 24); 01001 o->tooltip("Browser"); 01002 o->box(FL_THIN_UP_BOX); 01003 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Browser")); 01004 o->image(pixmap[31]); 01005 } // Fl_Button* o 01006 { Fl_Button* o = new Fl_Button(484, 5, 24, 24); 01007 o->tooltip("Tree"); 01008 o->box(FL_THIN_UP_BOX); 01009 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Tree")); 01010 o->image(pixmap[50]); 01011 } // Fl_Button* o 01012 { Fl_Button* o = new Fl_Button(459, 30, 24, 24); 01013 o->tooltip("Check Browser"); 01014 o->box(FL_THIN_UP_BOX); 01015 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Check_Browser")); 01016 o->image(pixmap[32]); 01017 } // Fl_Button* o 01018 { Fl_Button* o = new Fl_Button(459, 55, 24, 24); 01019 o->tooltip("File Browser"); 01020 o->box(FL_THIN_UP_BOX); 01021 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_File_Browser")); 01022 o->image(pixmap[33]); 01023 } // Fl_Button* o 01024 o->end(); 01025 } // Fl_Group* o 01026 { Fl_Group* o = new Fl_Group(515, 3, 55, 79); 01027 { Fl_Button* o = new Fl_Button(517, 5, 24, 24); 01028 o->tooltip("Box"); 01029 o->box(FL_THIN_UP_BOX); 01030 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Box")); 01031 o->image(pixmap[5]); 01032 } // Fl_Button* o 01033 { Fl_Button* o = new Fl_Button(542, 5, 24, 24); 01034 o->tooltip("Clock"); 01035 o->box(FL_THIN_UP_BOX); 01036 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Clock")); 01037 o->image(pixmap[34]); 01038 } // Fl_Button* o 01039 { Fl_Button* o = new Fl_Button(517, 30, 24, 24); 01040 o->tooltip("Help Browser"); 01041 o->box(FL_THIN_UP_BOX); 01042 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Help_View")); 01043 o->image(pixmap[35]); 01044 } // Fl_Button* o 01045 { Fl_Button* o = new Fl_Button(517, 55, 24, 24); 01046 o->tooltip("Progress"); 01047 o->box(FL_THIN_UP_BOX); 01048 o->callback((Fl_Callback*)type_make_cb, (void*)("Fl_Progress")); 01049 o->image(pixmap[36]); 01050 } // Fl_Button* o 01051 o->end(); 01052 } // Fl_Group* o 01053 widgetbin_panel->set_non_modal(); 01054 widgetbin_panel->end(); 01055 } // Fl_Window* widgetbin_panel 01056 return widgetbin_panel; 01057 } 01058 01059 Fl_Double_Window *sourceview_panel=(Fl_Double_Window *)0; 01060 01061 Fl_Tabs *sv_tab=(Fl_Tabs *)0; 01062 01063 CodeViewer *sv_source=(CodeViewer *)0; 01064 01065 CodeViewer *sv_header=(CodeViewer *)0; 01066 01067 Fl_Light_Button *sv_autorefresh=(Fl_Light_Button *)0; 01068 01069 Fl_Light_Button *sv_autoposition=(Fl_Light_Button *)0; 01070 01071 Fl_Double_Window* make_sourceview() { 01072 { sourceview_panel = new Fl_Double_Window(520, 490, "Code View"); 01073 sourceview_panel->callback((Fl_Callback*)toggle_sourceview_cb); 01074 sourceview_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE)); 01075 { sv_tab = new Fl_Tabs(10, 10, 500, 440); 01076 sv_tab->selection_color((Fl_Color)4); 01077 sv_tab->labelcolor(FL_BACKGROUND2_COLOR); 01078 sv_tab->callback((Fl_Callback*)update_sourceview_position_cb); 01079 { Fl_Group* o = new Fl_Group(10, 35, 500, 415, "Source"); 01080 o->labelsize(13); 01081 o->hide(); 01082 { sv_source = new CodeViewer(20, 50, 480, 390); 01083 sv_source->box(FL_DOWN_FRAME); 01084 sv_source->color(FL_BACKGROUND2_COLOR); 01085 sv_source->selection_color(FL_SELECTION_COLOR); 01086 sv_source->labeltype(FL_NORMAL_LABEL); 01087 sv_source->labelfont(0); 01088 sv_source->labelsize(14); 01089 sv_source->labelcolor(FL_FOREGROUND_COLOR); 01090 sv_source->textfont(4); 01091 sv_source->textsize(11); 01092 sv_source->align(Fl_Align(FL_ALIGN_TOP)); 01093 sv_source->when(FL_WHEN_RELEASE); 01094 Fl_Group::current()->resizable(sv_source); 01095 } // CodeViewer* sv_source 01096 o->end(); 01097 Fl_Group::current()->resizable(o); 01098 } // Fl_Group* o 01099 { Fl_Group* o = new Fl_Group(10, 35, 500, 415, "Header"); 01100 o->labelsize(13); 01101 { sv_header = new CodeViewer(20, 50, 480, 390); 01102 sv_header->box(FL_DOWN_FRAME); 01103 sv_header->color(FL_BACKGROUND2_COLOR); 01104 sv_header->selection_color(FL_SELECTION_COLOR); 01105 sv_header->labeltype(FL_NORMAL_LABEL); 01106 sv_header->labelfont(0); 01107 sv_header->labelsize(14); 01108 sv_header->labelcolor(FL_FOREGROUND_COLOR); 01109 sv_header->textfont(4); 01110 sv_header->textsize(11); 01111 sv_header->align(Fl_Align(FL_ALIGN_TOP)); 01112 sv_header->when(FL_WHEN_RELEASE); 01113 Fl_Group::current()->resizable(sv_header); 01114 } // CodeViewer* sv_header 01115 o->end(); 01116 } // Fl_Group* o 01117 sv_tab->end(); 01118 Fl_Group::current()->resizable(sv_tab); 01119 } // Fl_Tabs* sv_tab 01120 { Fl_Group* o = new Fl_Group(10, 460, 500, 20); 01121 { Fl_Button* o = new Fl_Button(10, 460, 61, 20, "Refresh"); 01122 o->labelsize(11); 01123 o->callback((Fl_Callback*)update_sourceview_cb); 01124 } // Fl_Button* o 01125 { Fl_Light_Button* o = sv_autorefresh = new Fl_Light_Button(76, 460, 91, 20, "Auto-Refresh"); 01126 sv_autorefresh->labelsize(11); 01127 o->callback((Fl_Callback*)update_sourceview_cb); 01128 } // Fl_Light_Button* sv_autorefresh 01129 { sv_autoposition = new Fl_Light_Button(172, 460, 89, 20, "Auto-Position"); 01130 sv_autoposition->labelsize(11); 01131 } // Fl_Light_Button* sv_autoposition 01132 { Fl_Button* o = new Fl_Button(460, 460, 50, 20, "Close"); 01133 o->labelsize(11); 01134 o->callback((Fl_Callback*)toggle_sourceview_b_cb); 01135 } // Fl_Button* o 01136 { Fl_Box* o = new Fl_Box(265, 460, 190, 20); 01137 Fl_Group::current()->resizable(o); 01138 } // Fl_Box* o 01139 o->end(); 01140 } // Fl_Group* o 01141 sourceview_panel->size_range(384, 120); 01142 sourceview_panel->end(); 01143 } // Fl_Double_Window* sourceview_panel 01144 return sourceview_panel; 01145 } 01146 01147 // 01148 // End of "$Id: function_panel.cxx 8172 2011-01-03 08:28:38Z matt $". 01149 //