diff options
Diffstat (limited to 'Source/FLTKDialog/FLTKPropertyItemRow.h')
-rw-r--r-- | Source/FLTKDialog/FLTKPropertyItemRow.h | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/Source/FLTKDialog/FLTKPropertyItemRow.h b/Source/FLTKDialog/FLTKPropertyItemRow.h index 09a1692..4803b9a 100644 --- a/Source/FLTKDialog/FLTKPropertyItemRow.h +++ b/Source/FLTKDialog/FLTKPropertyItemRow.h @@ -1,30 +1,57 @@ + +#ifndef FLTKPropertyItemRow_h +#define FLTKPropertyItemRow_h + #include "FLTKPropertyList.h" +#include "FLTKPropertyNameButtonWithHelp.h" -#include <Fl/Fl_Widget.H> +#include <Fl/Fl_Tile.H> #include <Fl/Fl_Input.H> namespace fltk { -class PropertyItemRow + +/** + + 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(); + int handle(int event); + private: + PropertyItem * m_PropertyItem; ItemValue * m_ItemValue; + // Button that displays the property name and + // manages the popup help blob + PropertyNameButtonWithHelp * m_NameButton; + static void CheckButtonCallback( Fl_Widget *, void *); - static void NameClickCallback( Fl_Widget *, void *); static void InputTextCallback( Fl_Widget *, void *); static void BrowsePathCallback( Fl_Widget *, void *); + }; } // end namespace fltk + + +#endif + + |