#include <xap_CocoaWidget.h>
Public Member Functions | |
XAP_CocoaWidget (id w) | |
virtual | ~XAP_CocoaWidget () |
The destructor just clean up. | |
virtual void | setState (bool enabled) |
set the widget enabled/disabled state | |
virtual bool | getState (void) |
set the widget enabled/disabled state | |
virtual void | setVisible (bool visible) |
set the widget visible state | |
virtual bool | getVisible (void) |
get the widget visible state | |
virtual void | setValueInt (int val) |
set the widget int value | |
virtual int | getValueInt (void) |
get the widget int value | |
virtual void | setValueString (const UT_UTF8String &val) |
set the widget value as string | |
virtual void | getValueString (UT_UTF8String &val) |
get the widget value as string | |
virtual void | setValueFloat (float val) |
set the widget value as float | |
virtual float | getValueFloat (void) |
get the widget value as float | |
virtual void | setLabel (const UT_UTF8String &val) |
set the widget label | |
virtual void | setLabel (const std::string &val) |
Private Attributes | |
id | m_widget |
XAP_CocoaWidget::XAP_CocoaWidget | ( | id | w | ) |
XAP_CocoaWidget::~XAP_CocoaWidget | ( | ) | [virtual] |
The destructor just clean up.
Must not destroy the real widget.
bool XAP_CocoaWidget::getState | ( | void | ) | [virtual] |
float XAP_CocoaWidget::getValueFloat | ( | void | ) | [virtual] |
int XAP_CocoaWidget::getValueInt | ( | void | ) | [virtual] |
void XAP_CocoaWidget::getValueString | ( | UT_UTF8String & | val | ) | [virtual] |
get the widget value as string
Implements XAP_Widget.
References UT_UTF8String::assign(), and m_widget.
bool XAP_CocoaWidget::getVisible | ( | void | ) | [virtual] |
void XAP_CocoaWidget::setLabel | ( | const UT_UTF8String & | val | ) | [virtual] |
void XAP_CocoaWidget::setLabel | ( | const std::string & | val | ) | [virtual] |
Implements XAP_Widget.
References m_widget, and SetNSControlLabel().
void XAP_CocoaWidget::setState | ( | bool | enabled | ) | [virtual] |
void XAP_CocoaWidget::setValueFloat | ( | float | val | ) | [virtual] |
void XAP_CocoaWidget::setValueInt | ( | int | val | ) | [virtual] |
void XAP_CocoaWidget::setValueString | ( | const UT_UTF8String & | val | ) | [virtual] |
set the widget value as string
Implements XAP_Widget.
References m_widget, and UT_UTF8String::utf8_str().
void XAP_CocoaWidget::setVisible | ( | bool | visible | ) | [virtual] |
id XAP_CocoaWidget::m_widget [private] |
Referenced by getState(), getValueFloat(), getValueInt(), getValueString(), setLabel(), setState(), setValueFloat(), setValueInt(), and setValueString().