diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2001-05-22 14:43:23 (GMT) |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2001-05-22 14:43:23 (GMT) |
commit | b5b5a68214098079b7a8259be579860e7f46eaf1 (patch) | |
tree | 25586b6bd3938955cb8e5f017592ca42315b0b5a /Source/FLTKDialog | |
parent | 013d428f29f409867903ea78fc1fc68722b7dc84 (diff) | |
download | CMake-b5b5a68214098079b7a8259be579860e7f46eaf1.zip CMake-b5b5a68214098079b7a8259be579860e7f46eaf1.tar.gz CMake-b5b5a68214098079b7a8259be579860e7f46eaf1.tar.bz2 |
ENH: Added support for the fltk::PropertyList class
Diffstat (limited to 'Source/FLTKDialog')
-rw-r--r-- | Source/FLTKDialog/CMakeSetupGUIImplementation.cpp | 36 | ||||
-rw-r--r-- | Source/FLTKDialog/CMakeSetupGUIImplementation.h | 4 |
2 files changed, 32 insertions, 8 deletions
diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cpp b/Source/FLTKDialog/CMakeSetupGUIImplementation.cpp index dade486..b3ce520 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cpp +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cpp @@ -6,6 +6,7 @@ #include "cstring" #include "../cmCacheManager.h" #include "../cmMakefile.h" +#include <iostream> @@ -30,6 +31,23 @@ CMakeSetupGUIImplementation /** + * Insert Properties on the Scroll/Pack widget + */ +void +CMakeSetupGUIImplementation +::InsertProperties( void ) +{ + for(unsigned int i=0; i<20; i++) + { + std::cout << "new button" << std::endl; + new Fl_Button(30,30*i,100,25,"Azucar"); + } +} + + + + +/** * Show the graphic interface */ void @@ -100,7 +118,8 @@ CMakeSetupGUIImplementation return; } - binaryPathTextInput->value( path ); + SetBinaryPath( path ); + } @@ -137,6 +156,7 @@ CMakeSetupGUIImplementation binaryPathTextInput->value( path ); } + LoadCacheFromDiskToGUI(); } @@ -282,7 +302,7 @@ CMakeSetupGUIImplementation { const char* key = i->first.c_str(); const cmCacheManager::CacheEntry& value = i->second; - /* + switch(value.m_Type ) { case cmCacheManager::BOOL: @@ -291,38 +311,38 @@ CMakeSetupGUIImplementation m_CacheEntriesList.AddProperty(key, "ON", value.m_HelpString.c_str(), - CPropertyList::CHECKBOX,""); + fltk::PropertyList::CHECKBOX,""); } else { m_CacheEntriesList.AddProperty(key, "OFF", value.m_HelpString.c_str(), - CPropertyList::CHECKBOX,""); + fltk::PropertyList::CHECKBOX,""); } break; case cmCacheManager::PATH: m_CacheEntriesList.AddProperty(key, value.m_Value.c_str(), value.m_HelpString.c_str(), - CPropertyList::PATH,""); + fltk::PropertyList::PATH,""); break; case cmCacheManager::FILEPATH: m_CacheEntriesList.AddProperty(key, value.m_Value.c_str(), value.m_HelpString.c_str(), - CPropertyList::FILE,""); + fltk::PropertyList::FILE,""); break; case cmCacheManager::STRING: m_CacheEntriesList.AddProperty(key, value.m_Value.c_str(), value.m_HelpString.c_str(), - CPropertyList::EDIT,""); + fltk::PropertyList::EDIT,""); break; case cmCacheManager::INTERNAL: break; } - */ + } this->UpdateData(false); diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.h b/Source/FLTKDialog/CMakeSetupGUIImplementation.h index d2aea6c..793e31c 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.h +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.h @@ -3,6 +3,7 @@ #define CMakeSetupGUIImplementation_h #include "CMakeSetupGUI.h" +#include "FLTKPropertyList.h" /** @@ -32,7 +33,10 @@ public: virtual void SaveCacheFromGUI( void ); virtual void LoadCacheFromDiskToGUI( void ); virtual void FillCacheGUIFromCacheManager( void ); + virtual void InsertProperties(void); +private: + fltk::PropertyList m_CacheEntriesList; }; |