diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2001-06-21 13:45:46 (GMT) |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2001-06-21 13:45:46 (GMT) |
commit | cca4d0668612d26c4db7496552004972f5d94c05 (patch) | |
tree | d66b6a870eeca5b26bed09831bb54adc4bb7a96e /Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | |
parent | 446ea3b97d2004f11d9002ec09872a796548e771 (diff) | |
download | CMake-cca4d0668612d26c4db7496552004972f5d94c05.zip CMake-cca4d0668612d26c4db7496552004972f5d94c05.tar.gz CMake-cca4d0668612d26c4db7496552004972f5d94c05.tar.bz2 |
ENH: Clearing and redrawing the property list after a build to load the new cache.
Diffstat (limited to 'Source/FLTKDialog/CMakeSetupGUIImplementation.cxx')
-rw-r--r-- | Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx index d42bd3d..a9e3660 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx @@ -352,8 +352,10 @@ CMakeSetupGUIImplementation // update the GUI with any new values in the caused by the // generation process this->LoadCacheFromDiskToGUI(); + // path is up-to-date now m_BuildPathChanged = false; + // put the cursor back fl_cursor(FL_CURSOR_DEFAULT,FL_BLACK,FL_WHITE); fl_message("Done !"); @@ -405,6 +407,8 @@ CMakeSetupGUIImplementation { // Prepare to add rows to the scroll + m_CacheEntriesList.RemoveAll(); + propertyListPack->clear(); propertyListPack->begin(); const cmCacheManager::CacheEntryMap &cache = @@ -415,7 +419,6 @@ CMakeSetupGUIImplementation const char* key = i->first.c_str(); const cmCacheManager::CacheEntry& value = i->second; - switch(value.m_Type ) { case cmCacheManager::BOOL: @@ -453,6 +456,10 @@ CMakeSetupGUIImplementation fltk::PropertyList::EDIT,""); break; case cmCacheManager::INTERNAL: + m_CacheEntriesList.AddProperty(key, + value.m_Value.c_str(), + value.m_HelpString.c_str(), + fltk::PropertyList::EDIT,""); break; } @@ -462,6 +469,10 @@ CMakeSetupGUIImplementation propertyListPack->init_sizes(); cacheValuesScroll->position( 0, 0 ); + propertyListPack->redraw(); + + Fl::check(); + this->UpdateData(false); } |