From ad0019a740413ad270df38232ddcb31120c1b540 Mon Sep 17 00:00:00 2001 From: Luis Ibanez Date: Sun, 10 Jun 2001 18:19:16 -0400 Subject: [PATCH] ENH: Added Fl_Tiles as row for holding property data. Data to and from the GUI is working --- Source/FLTKDialog/CMakeSetupGUI.fl | 160 +++++++++--------- Source/FLTKDialog/CMakeSetupGUI.h | 4 +- .../FLTKDialog/CMakeSetupGUIImplementation.h | 3 +- Source/FLTKDialog/FLTKPropertyList.h | 2 +- 4 files changed, 84 insertions(+), 85 deletions(-) diff --git a/Source/FLTKDialog/CMakeSetupGUI.fl b/Source/FLTKDialog/CMakeSetupGUI.fl index 8feb7b235..07b0d371b 100644 --- a/Source/FLTKDialog/CMakeSetupGUI.fl +++ b/Source/FLTKDialog/CMakeSetupGUI.fl @@ -1,81 +1,79 @@ -# data file for the Fltk User Interface Designer (fluid) -version 1.0010 -header_name {.h} -code_name {.cpp} -gridx 5 -gridy 5 -snap 3 -class CMakeSetupGUI {open -} { - Function {CMakeSetupGUI()} {} { - Fl_Window dialogWindow { - label CMakeSetupDialog open - xywh {542 411 563 363} resizable visible - } { - Fl_Input sourcePathTextInput { - label {Where is the source code: } - callback {SetSourcePath( sourcePathTextInput->value() );} - xywh {219 15 200 20} labelsize 11 when 8 textsize 11 - } - Fl_Button {} { - label {Browse...} - callback {BrowseForSourcePath();} - xywh {426 14 65 22} labelsize 11 - } - Fl_Input binaryPathTextInput { - label {Where do you want to build the binaries: } - callback {SetBinaryPath( binaryPathTextInput->value() );} - xywh {219 50 200 20} labelsize 11 when 8 textsize 11 - } - Fl_Button {} { - label {Browse...} - callback {BrowseForBinaryPath();} - xywh {426 50 65 22} labelsize 11 - } - Fl_Button {} { - label Close - callback {Close()} - xywh {345 331 77 23} labelsize 11 - } - Fl_Button {} { - label {Build Project Files} - callback {BuildProjectFiles();} - xywh {123 332 101 23} labelsize 11 - } - Fl_Group {} {open selected - xywh {25 80 515 222} box ENGRAVED_FRAME labelsize 11 align 0 resizable - } { - Fl_Scroll {} { - label {Cache Values} open - xywh {40 98 485 190} type VERTICAL_ALWAYS box DOWN_BOX labelsize 11 align 5 - } { - Fl_Pack propertyListPack {open - xywh {40 99 485 185} resizable - code0 {InsertProperties();} - } {} - } - } - Fl_Box {} { - label {Right click on cache entries for additional options} - xywh {141 305 275 25} labelsize 11 - } - } - } - Function {~CMakeSetupGUI()} {} {} - Function {Close(void)} {return_type {virtual void} - } {} - Function {BuildProjectFiles(void)} {return_type {virtual void} - } {} - Function {BrowseForSourcePath(void)} {return_type {virtual void} - } {} - Function {BrowseForBinaryPath(void)} {return_type {virtual void} - } {} - Function {Show(void)} {return_type {virtual void} - } {} - Function {SetBinaryPath(const char *)} {return_type {virtual void} - } {} - Function {SetSourcePath(const char *)} {return_type {virtual void} - } {} - Function {InsertProperties(void)} {open return_type {virtual void} - } {} -} +# data file for the Fltk User Interface Designer (fluid) +version 1.0009 +header_name {.h} +code_name {.cxx} +gridx 5 +gridy 5 +snap 3 +class CMakeSetupGUI {open +} { + Function {CMakeSetupGUI()} {open + } { + Fl_Window dialogWindow { + label CMakeSetupDialog open + xywh {401 125 563 363} resizable visible + } { + Fl_Input sourcePathTextInput { + label {Where is the source code: } + callback {SetSourcePath( sourcePathTextInput->value() );} + xywh {219 15 200 20} labelsize 11 when 8 textsize 11 + } + Fl_Button {} { + label {Browse...} + callback {BrowseForSourcePath();} + xywh {426 14 65 22} shortcut 0x80073 labelsize 11 + } + Fl_Input binaryPathTextInput { + label {Where do you want to build the binaries: } + callback {SetBinaryPath( binaryPathTextInput->value() );} + xywh {219 50 200 20} labelsize 11 when 8 textsize 11 + } + Fl_Button {} { + label {Browse...} + callback {BrowseForBinaryPath();} + xywh {426 50 65 22} shortcut 0x80062 labelsize 11 + } + Fl_Button {} { + label Close + callback {Close()} + xywh {345 331 77 23} shortcut 0x80071 labelsize 11 + } + Fl_Button {} { + label {Build Project Files} + callback {BuildProjectFiles();} + xywh {123 332 101 23} shortcut 0x8006d labelsize 11 + } + Fl_Group {} {open + xywh {25 80 515 222} box ENGRAVED_BOX labelsize 11 align 0 resizable + } { + Fl_Scroll cacheValuesScroll { + label {Cache Values} open + xywh {40 98 485 190} type BOTH_ALWAYS box DOWN_FRAME labelsize 11 align 5 when 1 resizable + } { + Fl_Pack propertyListPack {selected + xywh {40 99 485 185} resizable + } {} + } + } + Fl_Box {} { + label {Right click on cache entries for additional options} + xywh {141 305 275 25} labelsize 11 + } + } + } + Function {~CMakeSetupGUI()} {} {} + Function {Close(void)} {return_type {virtual void} + } {} + Function {BuildProjectFiles(void)} {return_type {virtual void} + } {} + Function {BrowseForSourcePath(void)} {return_type {virtual void} + } {} + Function {BrowseForBinaryPath(void)} {return_type {virtual void} + } {} + Function {Show(void)} {return_type {virtual void} + } {} + Function {SetBinaryPath(const char *)} {return_type {virtual void} + } {} + Function {SetSourcePath(const char *)} {return_type {virtual void} + } {} +} diff --git a/Source/FLTKDialog/CMakeSetupGUI.h b/Source/FLTKDialog/CMakeSetupGUI.h index 8e56bf854..c3dc3eba9 100644 --- a/Source/FLTKDialog/CMakeSetupGUI.h +++ b/Source/FLTKDialog/CMakeSetupGUI.h @@ -1,4 +1,4 @@ -// generated by Fast Light User Interface Designer (fluid) version 1.0010 +// generated by Fast Light User Interface Designer (fluid) version 1.0009 #ifndef CMakeSetupGUI_h #define CMakeSetupGUI_h @@ -33,6 +33,7 @@ private: inline void cb_Build_i(Fl_Button*, void*); static void cb_Build(Fl_Button*, void*); public: + Fl_Scroll *cacheValuesScroll; Fl_Pack *propertyListPack; ~CMakeSetupGUI(); virtual void Close(void); @@ -42,6 +43,5 @@ public: virtual void Show(void); virtual void SetBinaryPath(const char *); virtual void SetSourcePath(const char *); - virtual void InsertProperties(void); }; #endif diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.h b/Source/FLTKDialog/CMakeSetupGUIImplementation.h index 793e31cad..5149ee6df 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.h +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.h @@ -33,10 +33,11 @@ public: virtual void SaveCacheFromGUI( void ); virtual void LoadCacheFromDiskToGUI( void ); virtual void FillCacheGUIFromCacheManager( void ); - virtual void InsertProperties(void); private: fltk::PropertyList m_CacheEntriesList; + std::string m_WhereBuild; + std::string m_WhereSource; }; diff --git a/Source/FLTKDialog/FLTKPropertyList.h b/Source/FLTKDialog/FLTKPropertyList.h index 8c79616ef..f08dd6cb0 100644 --- a/Source/FLTKDialog/FLTKPropertyList.h +++ b/Source/FLTKDialog/FLTKPropertyList.h @@ -11,7 +11,7 @@ using std::string; ///////////////////////////////////////////////////////////////////////////// //PropertyList Items -class PropertyItem +class PropertyItem { // Attributes public: