diff options
Diffstat (limited to 'Source/FLTKDialog/FLTKPropertyItemRow.h')
-rw-r--r-- | Source/FLTKDialog/FLTKPropertyItemRow.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/Source/FLTKDialog/FLTKPropertyItemRow.h b/Source/FLTKDialog/FLTKPropertyItemRow.h new file mode 100644 index 0000000..24bac67 --- /dev/null +++ b/Source/FLTKDialog/FLTKPropertyItemRow.h @@ -0,0 +1,83 @@ +/*========================================================================= + + Program: Insight Segmentation & Registration Toolkit + Module: $RCSfile$ + Language: C++ + Date: $Date$ + Version: $Revision$ + + Copyright (c) 2002 Insight Consortium. All rights reserved. + See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + +#ifndef FLTKPropertyItemRow_h +#define FLTKPropertyItemRow_h + +#include "FLTKPropertyList.h" + +#include <FL/Fl_Tile.H> +#include <FL/Fl_Input.H> +#include <FL/Fl_Button.H> + + +class CMakeSetupGUIImplementation; + + +namespace fltk { + + +/** + + Class to manage a GUI row corresponding to a property + + */ +class PropertyItemRow : public Fl_Tile +{ + + // Helper class for passing data to callbacks + struct ItemValue + { + PropertyItem * m_PropertyItem; + Fl_Input * m_InputText; + }; + + + public: + + PropertyItemRow( PropertyItem *); + ~PropertyItemRow(); + + private: + + PropertyItem * m_PropertyItem; + ItemValue * m_ItemValue; + Fl_Button * m_NameButton; + + static CMakeSetupGUIImplementation * m_CMakeSetup; + + static void CheckButtonCallback( Fl_Widget *, void *); + static void NameButtonCallback( Fl_Widget *, void *); + static void InputTextCallback( Fl_Widget *, void *); + static void BrowsePathCallback( Fl_Widget *, void *); + static void ColorSelectionCallback( Fl_Widget * widget, void * data); + + + static void FillCacheManagerFromCacheGUI( void ); + + public: + + static void SetCMakeSetupGUI( CMakeSetupGUIImplementation * ); +}; + + +} // end namespace fltk + + +#endif + + |