virtual widget accessor. More...
#include <xap_Widget.h>
Public Member Functions | |
| virtual | ~XAP_Widget () |
| The destructor just clean up. | |
| virtual void | setState (bool enabled)=0 |
| set the widget enabled/disabled state | |
| virtual bool | getState (void)=0 |
| set the widget enabled/disabled state | |
| virtual void | setVisible (bool visible)=0 |
| set the widget visible state | |
| virtual bool | getVisible (void)=0 |
| get the widget visible state | |
| virtual void | setValueInt (int val)=0 |
| set the widget int value | |
| virtual int | getValueInt (void)=0 |
| get the widget int value | |
| virtual void | setValueString (const UT_UTF8String &val)=0 |
| set the widget value as string | |
| virtual void | getValueString (UT_UTF8String &val)=0 |
| get the widget value as string | |
| virtual void | setValueFloat (float val)=0 |
| set the widget value as float | |
| virtual float | getValueFloat (void)=0 |
| get the widget value as float | |
| virtual void | setLabel (const UT_UTF8String &val)=0 |
| set the widget label | |
| virtual void | setLabel (const std::string &val)=0 |
Protected Member Functions | |
| XAP_Widget () | |
virtual widget accessor.
This class is pure virtual and must be verry lightweight
| XAP_Widget::XAP_Widget | ( | ) | [inline, protected] |
| virtual XAP_Widget::~XAP_Widget | ( | ) | [inline, virtual] |
The destructor just clean up.
Must not destroy the real widget.
| virtual bool XAP_Widget::getState | ( | void | ) | [pure virtual] |
set the widget enabled/disabled state
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
Referenced by TFTEST_MAIN().
| virtual float XAP_Widget::getValueFloat | ( | void | ) | [pure virtual] |
get the widget value as float
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
| virtual int XAP_Widget::getValueInt | ( | void | ) | [pure virtual] |
get the widget int value
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
Referenced by XAP_Dialog::getWidgetValueInt(), and TFTEST_MAIN().
| virtual void XAP_Widget::getValueString | ( | UT_UTF8String & | val | ) | [pure virtual] |
get the widget value as string
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
| virtual bool XAP_Widget::getVisible | ( | void | ) | [pure virtual] |
get the widget visible state
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
| virtual void XAP_Widget::setLabel | ( | const UT_UTF8String & | val | ) | [pure virtual] |
set the widget label
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
Referenced by XAP_Dialog::setWidgetLabel().
| virtual void XAP_Widget::setLabel | ( | const std::string & | val | ) | [pure virtual] |
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
| virtual void XAP_Widget::setState | ( | bool | enabled | ) | [pure virtual] |
set the widget enabled/disabled state
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
Referenced by TFTEST_MAIN().
| virtual void XAP_Widget::setValueFloat | ( | float | val | ) | [pure virtual] |
set the widget value as float
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
| virtual void XAP_Widget::setValueInt | ( | int | val | ) | [pure virtual] |
set the widget int value
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
Referenced by XAP_Dialog::setWidgetValueInt(), and TFTEST_MAIN().
| virtual void XAP_Widget::setValueString | ( | const UT_UTF8String & | val | ) | [pure virtual] |
set the widget value as string
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
| virtual void XAP_Widget::setVisible | ( | bool | visible | ) | [pure virtual] |
set the widget visible state
Implemented in XAP_CocoaWidget, and XAP_UnixWidget.
1.7.1