diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2001-06-12 22:44:07 (GMT) |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2001-06-12 22:44:07 (GMT) |
commit | 8ef02a496a16e2d05f464909d97ec70242329def (patch) | |
tree | 9a9bd5513fcefe537442b41f4d3fc2f94fa9121f /Source/FLTKDialog/FLTKPropertyItemRow.h | |
parent | 302907efe8f9656ab9b20bccb8d5094dad749e72 (diff) | |
download | CMake-8ef02a496a16e2d05f464909d97ec70242329def.zip CMake-8ef02a496a16e2d05f464909d97ec70242329def.tar.gz CMake-8ef02a496a16e2d05f464909d97ec70242329def.tar.bz2 |
ENH: Added help blobs that popup when the mouse is left on top of the
property name
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 + + |