gtkutil::EditorWidget Class Reference

#include <EditorWidget.h>

Inheritance diagram for gtkutil::EditorWidget:
Inheritance graph
[legend]
Collaboration diagram for gtkutil::EditorWidget:
Collaboration graph
[legend]

Public Member Functions

virtual ~EditorWidget ()
virtual void setValue (const std::string &val)=0
virtual std::string getValue () const =0

Detailed Description

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.


Constructor & Destructor Documentation

virtual gtkutil::EditorWidget::~EditorWidget (  )  [inline, virtual]

Definition at line 8 of file EditorWidget.h.

References getValue(), setValue(), and string.


Member Function Documentation

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().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2