diff options
Diffstat (limited to 'fluid/function_panel.cxx')
| -rw-r--r-- | fluid/function_panel.cxx | 125 |
1 files changed, 78 insertions, 47 deletions
diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx index aeb3124d8..856a1dddd 100644 --- a/fluid/function_panel.cxx +++ b/fluid/function_panel.cxx @@ -66,6 +66,7 @@ Fl_Button *f_panel_cancel=(Fl_Button *)0; Fl_Double_Window* make_function_panel() { { function_panel = new Fl_Double_Window(343, 232, "Function/Method Properties"); + function_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE)); { Fl_Group* o = new Fl_Group(10, 10, 270, 20); { f_public_member_choice = new Fl_Choice(10, 10, 75, 20); f_public_member_choice->tooltip("Change member access attribute."); @@ -254,79 +255,109 @@ Fl_Double_Window* make_codeblock_panel() { Fl_Double_Window *declblock_panel=(Fl_Double_Window *)0; -Fl_Choice *declblock_public_choice=(Fl_Choice *)0; +Fl_Input *declblock_before_input=(Fl_Input *)0; -Fl_Menu_Item menu_declblock_public_choice[] = { - {"in source code only", 0, 0, (void*)(0), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0}, - {"in header and source", 0, 0, (void*)(1), 0, (uchar)FL_NORMAL_LABEL, 0, 11, 0}, - {0,0,0,0,0,0,0,0,0} -}; +Fl_Input *declblock_after_input=(Fl_Input *)0; + +Fl_Check_Button *declblock_code_source=(Fl_Check_Button *)0; -Fl_Light_Button *declblock_public_button_x=(Fl_Light_Button *)0; +Fl_Check_Button *declblock_static_source=(Fl_Check_Button *)0; -Fl_Input *decl_before_input=(Fl_Input *)0; +Fl_Check_Button *declblock_code_header=(Fl_Check_Button *)0; -Fl_Input *decl_after_input=(Fl_Input *)0; +Fl_Check_Button *declblock_static_header=(Fl_Check_Button *)0; + +Fl_Text_Editor *declblock_comment_input=(Fl_Text_Editor *)0; Fl_Return_Button *declblock_panel_ok=(Fl_Return_Button *)0; Fl_Button *declblock_panel_cancel=(Fl_Button *)0; Fl_Double_Window* make_declblock_panel() { - { Fl_Double_Window* o = declblock_panel = new Fl_Double_Window(300, 135, "Declaration Block Properties"); + { Fl_Double_Window* o = declblock_panel = new Fl_Double_Window(300, 355, "Declaration Block Properties"); declblock_panel->labelsize(11); - { Fl_Group* o = new Fl_Group(10, 10, 280, 20); - { declblock_public_choice = new Fl_Choice(10, 10, 140, 20); - declblock_public_choice->tooltip("Change widget accessibility."); - declblock_public_choice->down_box(FL_BORDER_BOX); - declblock_public_choice->labelsize(11); - declblock_public_choice->textsize(11); - declblock_public_choice->when(FL_WHEN_NEVER); - declblock_public_choice->menu(menu_declblock_public_choice); - } // Fl_Choice* declblock_public_choice - { declblock_public_button_x = new Fl_Light_Button(10, 10, 60, 20, "public"); - declblock_public_button_x->tooltip("Make the declaration publicly accessible."); - declblock_public_button_x->labelsize(11); - declblock_public_button_x->when(FL_WHEN_NEVER); - declblock_public_button_x->hide(); - } // Fl_Light_Button* declblock_public_button_x - { Fl_Box* o = new Fl_Box(155, 10, 135, 20); + declblock_panel->align(Fl_Align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE)); + { declblock_before_input = new Fl_Input(10, 23, 280, 20, "Start Code:"); + declblock_before_input->tooltip("#ifdef or similar conditional declaration block."); + declblock_before_input->labelfont(1); + declblock_before_input->labelsize(11); + declblock_before_input->textfont(4); + declblock_before_input->textsize(11); + declblock_before_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); + declblock_before_input->when(FL_WHEN_NEVER); + } // Fl_Input* declblock_before_input + { Fl_Box* o = new Fl_Box(10, 48, 280, 20, "\"\\n...child code...\\n\" is inserted here"); + o->labelsize(11); + } // Fl_Box* o + { declblock_after_input = new Fl_Input(10, 80, 280, 20, "End Code:"); + declblock_after_input->tooltip("#endif or similar declaration code block."); + declblock_after_input->labelfont(1); + declblock_after_input->labelsize(11); + declblock_after_input->textfont(4); + declblock_after_input->textsize(11); + declblock_after_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); + declblock_after_input->when(FL_WHEN_NEVER); + } // Fl_Input* declblock_after_input + { Fl_Group* o = new Fl_Group(10, 105, 280, 120); + { Fl_Box* o = new Fl_Box(10, 105, 270, 20, "Enclose code generated by children in source file:"); + o->labelsize(11); + o->align(Fl_Align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE)); + } // Fl_Box* o + { declblock_code_source = new Fl_Check_Button(20, 125, 260, 20, "implementations"); + declblock_code_source->down_box(FL_DOWN_BOX); + declblock_code_source->labelsize(11); + } // Fl_Check_Button* declblock_code_source + { declblock_static_source = new Fl_Check_Button(20, 145, 260, 20, "static initializations and callbacks"); + declblock_static_source->down_box(FL_DOWN_BOX); + declblock_static_source->labelsize(11); + } // Fl_Check_Button* declblock_static_source + { Fl_Box* o = new Fl_Box(10, 165, 270, 20, "Enclose code in header file:"); + o->labelsize(11); + o->align(Fl_Align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE)); + } // Fl_Box* o + { declblock_code_header = new Fl_Check_Button(20, 185, 260, 20, "forward declarations"); + declblock_code_header->down_box(FL_DOWN_BOX); + declblock_code_header->labelsize(11); + } // Fl_Check_Button* declblock_code_header + { declblock_static_header = new Fl_Check_Button(20, 205, 260, 20, "preprecessor and callback declarations"); + declblock_static_header->down_box(FL_DOWN_BOX); + declblock_static_header->labelsize(11); + } // Fl_Check_Button* declblock_static_header + { Fl_Box* o = new Fl_Box(280, 105, 10, 120); + o->labelsize(11); + o->hide(); Fl_Group::current()->resizable(o); } // Fl_Box* o o->end(); } // Fl_Group* o - { decl_before_input = new Fl_Input(10, 40, 280, 20); - decl_before_input->tooltip("#ifdef or similar conditional declaration block."); - decl_before_input->labelsize(11); - decl_before_input->textfont(4); - decl_before_input->textsize(11); - decl_before_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); - decl_before_input->when(FL_WHEN_NEVER); - Fl_Group::current()->resizable(decl_before_input); - } // Fl_Input* decl_before_input - { decl_after_input = new Fl_Input(10, 75, 280, 20, "\"\\n...child code...\\n\" is inserted here"); - decl_after_input->tooltip("#endif or similar declaration code block."); - decl_after_input->labelsize(11); - decl_after_input->textfont(4); - decl_after_input->textsize(11); - decl_after_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); - decl_after_input->when(FL_WHEN_NEVER); - } // Fl_Input* decl_after_input - { Fl_Group* o = new Fl_Group(10, 105, 280, 20); - { declblock_panel_ok = new Fl_Return_Button(160, 105, 60, 20, "OK"); + { declblock_comment_input = new Fl_Text_Editor(10, 242, 280, 65, "Comment:"); + declblock_comment_input->tooltip("Declaration comment in Doxygen format"); + declblock_comment_input->box(FL_DOWN_BOX); + declblock_comment_input->labelfont(1); + declblock_comment_input->labelsize(11); + declblock_comment_input->textfont(4); + declblock_comment_input->textsize(11); + declblock_comment_input->align(Fl_Align(FL_ALIGN_TOP_LEFT)); + Fl_Group::current()->resizable(declblock_comment_input); + declblock_comment_input->buffer(new Fl_Text_Buffer()); + declblock_comment_input->add_key_binding(FL_Tab, 0, use_tab_navigation); + } // Fl_Text_Editor* declblock_comment_input + { Fl_Group* o = new Fl_Group(10, 321, 280, 20); + { declblock_panel_ok = new Fl_Return_Button(160, 321, 60, 20, "OK"); declblock_panel_ok->labelsize(11); declblock_panel_ok->window()->hotspot(declblock_panel_ok); } // Fl_Return_Button* declblock_panel_ok - { declblock_panel_cancel = new Fl_Button(230, 105, 60, 20, "Cancel"); + { declblock_panel_cancel = new Fl_Button(230, 321, 60, 20, "Cancel"); declblock_panel_cancel->shortcut(0xff1b); declblock_panel_cancel->labelsize(11); } // Fl_Button* declblock_panel_cancel - { Fl_Box* o = new Fl_Box(10, 105, 140, 20); + { Fl_Box* o = new Fl_Box(10, 321, 140, 20); Fl_Group::current()->resizable(o); } // Fl_Box* o o->end(); } // Fl_Group* o declblock_panel->set_modal(); + declblock_panel->size_range(300, 355); o->size_range(o->w(), o->h(), Fl::w(), o->h()); declblock_panel->end(); } // Fl_Double_Window* declblock_panel |
