diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-05-18 14:40:10 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-05-18 14:40:10 +0000 |
| commit | 92d0163f407e89db078d58fb51b017458be6e412 (patch) | |
| tree | 9c5d5dc17ad9821453a0457d3da608378239835e /fluid/function_panel.cxx | |
| parent | b0c7fc3ab72bf06f54dc917d6a3b318f6d7941e8 (diff) | |
Declarations in Fluid can now explicitly be made non-static or non-extern. This allows the declaration of types like 'enum'
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5130 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/function_panel.cxx')
| -rw-r--r-- | fluid/function_panel.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fluid/function_panel.cxx b/fluid/function_panel.cxx index 64ba8b58e..7e8fec808 100644 --- a/fluid/function_panel.cxx +++ b/fluid/function_panel.cxx @@ -284,6 +284,8 @@ Fl_Double_Window *decl_panel=(Fl_Double_Window *)0; Fl_Light_Button *decl_public_button=(Fl_Light_Button *)0; +Fl_Light_Button *decl_static_button=(Fl_Light_Button *)0; + Fl_Input *decl_input=(Fl_Input *)0; Fl_Return_Button *decl_panel_ok=(Fl_Return_Button *)0; @@ -300,7 +302,13 @@ Fl_Double_Window* make_decl_panel() { o->labelsize(11); o->when(FL_WHEN_NEVER); } - { Fl_Box* o = new Fl_Box(80, 10, 200, 20); + { Fl_Light_Button* o = decl_static_button = new Fl_Light_Button(80, 10, 60, 20, "static"); + o->tooltip("Prepend \'static\' to private declarations in the source code, or \'extern\' \ +to public declarations in the header file."); + o->labelsize(11); + o->when(FL_WHEN_NEVER); + } + { Fl_Box* o = new Fl_Box(150, 10, 130, 20); Fl_Group::current()->resizable(o); } o->end(); |
