Public Member Functions | Private Attributes

XAP_CocoaWidget Class Reference

#include <xap_CocoaWidget.h>

Inheritance diagram for XAP_CocoaWidget:
XAP_Widget

List of all members.

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

Constructor & Destructor Documentation

XAP_CocoaWidget::XAP_CocoaWidget ( id  w  ) 
XAP_CocoaWidget::~XAP_CocoaWidget (  )  [virtual]

The destructor just clean up.

Must not destroy the real widget.


Member Function Documentation

bool XAP_CocoaWidget::getState ( void   )  [virtual]

set the widget enabled/disabled state

Implements XAP_Widget.

References m_widget.

float XAP_CocoaWidget::getValueFloat ( void   )  [virtual]

get the widget value as float

Implements XAP_Widget.

References m_widget.

int XAP_CocoaWidget::getValueInt ( void   )  [virtual]

get the widget int value

Implements XAP_Widget.

References m_widget.

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]

get the widget visible state

Implements XAP_Widget.

References UT_ASSERT, and UT_NOT_IMPLEMENTED.

void XAP_CocoaWidget::setLabel ( const UT_UTF8String val  )  [virtual]

set the widget label

Implements XAP_Widget.

References m_widget, and SetNSControlLabel().

void XAP_CocoaWidget::setLabel ( const std::string &  val  )  [virtual]

Implements XAP_Widget.

References m_widget, and SetNSControlLabel().

void XAP_CocoaWidget::setState ( bool  enabled  )  [virtual]

set the widget enabled/disabled state

Implements XAP_Widget.

References m_widget.

void XAP_CocoaWidget::setValueFloat ( float  val  )  [virtual]

set the widget value as float

Implements XAP_Widget.

References m_widget.

void XAP_CocoaWidget::setValueInt ( int  val  )  [virtual]

set the widget int value

Implements XAP_Widget.

References m_widget.

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]

set the widget visible state

Implements XAP_Widget.

References UT_ASSERT, and UT_NOT_IMPLEMENTED.


Member Data Documentation


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