mirror of
https://github.com/reactos/CMake.git
synced 2024-12-02 00:26:18 +00:00
446ea3b97d
at each callback action
67 lines
1.2 KiB
C++
67 lines
1.2 KiB
C++
|
|
#ifndef FLTKPropertyItemRow_h
|
|
#define FLTKPropertyItemRow_h
|
|
|
|
#include "FLTKPropertyList.h"
|
|
|
|
#include <FL/Fl_Tile.H>
|
|
#include <FL/Fl_Input.H>
|
|
#include <FL/Fl_Button.H>
|
|
|
|
|
|
class CMakeSetupGUIImplementation;
|
|
|
|
|
|
namespace fltk {
|
|
|
|
|
|
/**
|
|
|
|
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();
|
|
|
|
private:
|
|
|
|
PropertyItem * m_PropertyItem;
|
|
ItemValue * m_ItemValue;
|
|
Fl_Button * m_NameButton;
|
|
|
|
static CMakeSetupGUIImplementation * m_CMakeSetup;
|
|
|
|
static void CheckButtonCallback( Fl_Widget *, void *);
|
|
static void NameButtonCallback( Fl_Widget *, void *);
|
|
static void InputTextCallback( Fl_Widget *, void *);
|
|
static void BrowsePathCallback( Fl_Widget *, void *);
|
|
static void ColorSelectionCallback( Fl_Widget * widget, void * data);
|
|
|
|
|
|
public:
|
|
|
|
static void SetCMakeSetupGUI( CMakeSetupGUIImplementation * );
|
|
static void SaveCacheFromGUI( void );
|
|
};
|
|
|
|
|
|
} // end namespace fltk
|
|
|
|
|
|
#endif
|
|
|
|
|