Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / FLTKDialog / FLTKPropertyItemRow.h
blob41a29df57c7c73a91554480cd445c1ece1a55be2
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: FLTKPropertyItemRow.h,v $
5 Language: C++
6 Date: $Date: 2005/09/23 21:47:32 $
7 Version: $Revision: 1.12 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
18 #ifndef FLTKPropertyItemRow_h
19 #define FLTKPropertyItemRow_h
21 #include "FLTKPropertyList.h"
23 #include <FL/Fl_Tile.H>
24 #include <FL/Fl_Input.H>
25 #include <FL/Fl_Button.H>
28 class CMakeSetupGUIImplementation;
31 namespace fltk {
34 /**
36 Class to manage a GUI row corresponding to a property
39 class PropertyItemRow : public Fl_Tile
42 // Helper class for passing data to callbacks
43 struct ItemValue
45 PropertyItem * m_PropertyItem;
46 Fl_Input * m_InputText;
50 public:
52 PropertyItemRow( PropertyItem *);
53 ~PropertyItemRow();
55 private:
57 PropertyItem * m_PropertyItem;
58 ItemValue * m_ItemValue;
59 Fl_Button * m_NameButton;
61 static CMakeSetupGUIImplementation * m_CMakeSetup;
63 static void CheckButtonCallback( Fl_Widget *, void *);
64 static void NameButtonCallback( Fl_Widget *, void *);
65 static void InputTextCallback( Fl_Widget *, void *);
66 static void BrowsePathCallback( Fl_Widget *, void *);
67 static void ColorSelectionCallback( Fl_Widget * widget, void * data);
70 static void FillCacheManagerFromCacheGUI( void );
72 public:
74 static void SetCMakeSetupGUI( CMakeSetupGUIImplementation * );
78 } // end namespace fltk
81 #endif