#include <EditorWidget.h>
Public Member Functions | |
virtual | ~EditorWidget () |
virtual void | setValue (const std::string &val)=0 |
virtual std::string | getValue () const =0 |
Interface for a custom widget which is capable of editing a string value using GTK widgets appropriate to a certain value type.
Each EditorWidget provides an interface for editing a single string which is set and retrieved with the setValue() and getValue() methods. The EditorWidget constructs the necessary GTK widgets and returns a single parent via the getWidget() method, which may be packed into the parent dialog by the calling code.
The expectation is that a series of EditorWidgets will be created by some kind of factory object, in order to select a suitable editing interface for a particular set of value types.
Definition at line 21 of file EditorWidget.h.
virtual gtkutil::EditorWidget::~EditorWidget | ( | ) | [inline, virtual] |
Definition at line 8 of file EditorWidget.h.
References getValue(), setValue(), and string.
virtual std::string gtkutil::EditorWidget::getValue | ( | ) | const [pure virtual] |
Get the current value of the string which is being edited by this widget.
Implemented in gtkutil::TextPanel.
Referenced by ~EditorWidget().
virtual void gtkutil::EditorWidget::setValue | ( | const std::string & | val | ) | [pure virtual] |
Set the value of the string which should be edited by this widget. The child editing widgets will be immediately updated to reflect the new value.
Implemented in gtkutil::TextPanel.
Referenced by ~EditorWidget().