2001-06-13 02:44:07 +04:00
|
|
|
|
|
|
|
#ifndef FLTKPropertyItemRow_h
|
|
|
|
#define FLTKPropertyItemRow_h
|
|
|
|
|
2001-06-11 02:23:54 +04:00
|
|
|
#include "FLTKPropertyList.h"
|
2001-06-13 02:44:07 +04:00
|
|
|
#include "FLTKPropertyNameButtonWithHelp.h"
|
2001-06-11 02:23:54 +04:00
|
|
|
|
2001-06-14 22:32:20 +04:00
|
|
|
#include <FL/Fl_Tile.H>
|
|
|
|
#include <FL/Fl_Input.H>
|
2001-06-11 02:23:54 +04:00
|
|
|
|
2001-06-13 08:16:35 +04:00
|
|
|
|
2001-06-11 02:23:54 +04:00
|
|
|
namespace fltk {
|
|
|
|
|
2001-06-13 02:44:07 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
Class to manage a GUI row corresponding to a property
|
|
|
|
|
|
|
|
*/
|
|
|
|
class PropertyItemRow : public Fl_Tile
|
2001-06-11 02:23:54 +04:00
|
|
|
{
|
2001-06-13 02:44:07 +04:00
|
|
|
|
|
|
|
// Helper class for passing data to callbacks
|
2001-06-11 02:23:54 +04:00
|
|
|
struct ItemValue
|
|
|
|
{
|
|
|
|
PropertyItem * m_PropertyItem;
|
|
|
|
Fl_Input * m_InputText;
|
|
|
|
};
|
|
|
|
|
2001-06-13 02:44:07 +04:00
|
|
|
|
2001-06-11 02:23:54 +04:00
|
|
|
public:
|
2001-06-13 02:44:07 +04:00
|
|
|
|
2001-06-11 02:23:54 +04:00
|
|
|
PropertyItemRow( PropertyItem * );
|
|
|
|
~PropertyItemRow();
|
2001-06-13 02:44:07 +04:00
|
|
|
int handle(int event);
|
|
|
|
|
2001-06-11 02:23:54 +04:00
|
|
|
private:
|
2001-06-13 02:44:07 +04:00
|
|
|
|
2001-06-11 02:23:54 +04:00
|
|
|
PropertyItem * m_PropertyItem;
|
|
|
|
ItemValue * m_ItemValue;
|
|
|
|
|
2001-06-13 02:44:07 +04:00
|
|
|
// Button that displays the property name and
|
|
|
|
// manages the popup help blob
|
|
|
|
PropertyNameButtonWithHelp * m_NameButton;
|
|
|
|
|
2001-06-13 08:16:35 +04:00
|
|
|
|
2001-06-11 02:23:54 +04:00
|
|
|
static void CheckButtonCallback( Fl_Widget *, void *);
|
|
|
|
static void InputTextCallback( Fl_Widget *, void *);
|
|
|
|
static void BrowsePathCallback( Fl_Widget *, void *);
|
2001-06-13 08:16:35 +04:00
|
|
|
static void ColorSelectionCallback( Fl_Widget * widget, void * data);
|
2001-06-13 02:44:07 +04:00
|
|
|
|
2001-06-11 02:23:54 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // end namespace fltk
|
2001-06-13 02:44:07 +04:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|