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-13 02:44:07 +04:00
|
|
|
#include <Fl/Fl_Tile.H>
|
2001-06-11 02:23:54 +04:00
|
|
|
#include <Fl/Fl_Input.H>
|
|
|
|
|
|
|
|
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-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 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
|
|
|
|
|
|
|
|
|