diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2001-06-21 16:43:52 (GMT) |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2001-06-21 16:43:52 (GMT) |
commit | 796fc4c4959ba18890bdaf01f9891c6ce4bc8a64 (patch) | |
tree | 2ed063a849db737a5be023dc69a0d2c3b927ca51 /Source/FLTKDialog | |
parent | 96545b1d4933fe3e989d5d6830f56c90f96dea13 (diff) | |
download | CMake-796fc4c4959ba18890bdaf01f9891c6ce4bc8a64.zip CMake-796fc4c4959ba18890bdaf01f9891c6ce4bc8a64.tar.gz CMake-796fc4c4959ba18890bdaf01f9891c6ce4bc8a64.tar.bz2 |
ENH: Update the cacheManager from the GUI after each callback.
Only load the cache from disk if the binary path has changed.
Diffstat (limited to 'Source/FLTKDialog')
-rw-r--r-- | Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | 11 | ||||
-rw-r--r-- | Source/FLTKDialog/FLTKPropertyItemRow.cxx | 11 | ||||
-rw-r--r-- | Source/FLTKDialog/FLTKPropertyItemRow.h | 2 |
3 files changed, 15 insertions, 9 deletions
diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx index bba16ab..7f1a20f 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx @@ -230,12 +230,15 @@ CMakeSetupGUIImplementation if( m_WhereBuild != expandedAbsolutePath ) { - m_BuildPathChanged = true; - m_WhereBuild = expandedAbsolutePath; + m_BuildPathChanged = true; + m_WhereBuild = expandedAbsolutePath; + LoadCacheFromDiskToGUI(); + } + else + { + m_BuildPathChanged = false; } - LoadCacheFromDiskToGUI(); - return true; } diff --git a/Source/FLTKDialog/FLTKPropertyItemRow.cxx b/Source/FLTKDialog/FLTKPropertyItemRow.cxx index 6afba11..3c6f591 100644 --- a/Source/FLTKDialog/FLTKPropertyItemRow.cxx +++ b/Source/FLTKDialog/FLTKPropertyItemRow.cxx @@ -229,8 +229,7 @@ NameButtonCallback( Fl_Widget * widget, void * data) delete parentGroup; // Patricide... ? // Redraw the list grandParentGroup->redraw(); - - + FillCacheManagerFromCacheGUI(); return; } break; @@ -244,11 +243,11 @@ NameButtonCallback( Fl_Widget * widget, void * data) void PropertyItemRow:: -SaveCacheFromGUI( void ) +FillCacheManagerFromCacheGUI( void ) { if( m_CMakeSetup ) { - m_CMakeSetup->SaveCacheFromGUI(); + m_CMakeSetup->FillCacheManagerFromCacheGUI(); } } @@ -275,6 +274,7 @@ CheckButtonCallback( Fl_Widget * widget, void * data) } button->redraw(); + FillCacheManagerFromCacheGUI(); } @@ -289,6 +289,7 @@ InputTextCallback( Fl_Widget * widget, void * data) item->m_curValue = input->value(); + FillCacheManagerFromCacheGUI(); } @@ -321,6 +322,7 @@ ColorSelectionCallback( Fl_Widget * widget, void * data) colorButton->redraw(); + FillCacheManagerFromCacheGUI(); } @@ -346,6 +348,7 @@ BrowsePathCallback( Fl_Widget * widget, void * data) inputText->value( newpath ); } + FillCacheManagerFromCacheGUI(); } diff --git a/Source/FLTKDialog/FLTKPropertyItemRow.h b/Source/FLTKDialog/FLTKPropertyItemRow.h index e72d501..aee3998 100644 --- a/Source/FLTKDialog/FLTKPropertyItemRow.h +++ b/Source/FLTKDialog/FLTKPropertyItemRow.h @@ -50,11 +50,11 @@ class PropertyItemRow : public Fl_Tile static void BrowsePathCallback( Fl_Widget *, void *); static void ColorSelectionCallback( Fl_Widget * widget, void * data); + static void FillCacheManagerFromCacheGUI( void ); public: static void SetCMakeSetupGUI( CMakeSetupGUIImplementation * ); - static void SaveCacheFromGUI( void ); }; |