From 92d0163f407e89db078d58fb51b017458be6e412 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 18 May 2006 14:40:10 +0000 Subject: 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 --- fluid/function_panel.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'fluid/function_panel.cxx') 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(); -- cgit v1.2.3