diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cpp b/Source/FLTKDialog/CMakeSetupGUIImplementation.cpp index dade486ec..b3ce5200a 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cpp +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cpp @@ -6,6 +6,7 @@ #include "cstring" #include "../cmCacheManager.h" #include "../cmMakefile.h" +#include @@ -29,6 +30,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 */ @@ -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 d2aea6cca..793e31cad 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; };