MLABButtonControl Class Reference
[GUI ControlsCommon GUI Controls]

Button control. More...

Inherits MLABSimpleWidgetControl.

List of all members.

Public Types


Public Slots

void setPixmap (const QPixmap &pixmap)
void setPixmapFile (const QString &filename)
void setRole (ButtonRole role)
void setTitle (const QString &title)


Detailed Description

Button control.

This control shows a push button.

MDL reference: Button


Member Enumeration Documentation

role of button in window/dialog

Enumerator:
AcceptRole  Clicking the button causes the dialog to be accepted (e.g. OK).
RejectRole  Clicking the button causes the dialog to be rejected (e.g. Cancel).
DestructiveRole  Clicking the button causes a destructive change (e.g. for Discarding Changes) and closes the dialog.
ActionRole  Clicking the button causes changes to the elements within the dialog.
HelpRole  The button can be clicked to request help.
YesRole  The button is a "Yes"-like button.
NoRole  The button is a "No"-like button.
ApplyRole  The button applies current changes.
ResetRole  The button resets the dialog's fields to default values.


Member Function Documentation

void MLABButtonControl::setPixmap ( const QPixmap &  pixmap  )  [slot]

set pixmap on the button from given pixmap

void MLABButtonControl::setPixmapFile ( const QString &  filename  )  [slot]

set pixmap on the button from given file (absolute filename required)

void MLABButtonControl::setRole ( ButtonRole  role  )  [slot]

set button role

void MLABButtonControl::setTitle ( const QString &  title  )  [virtual, slot]

set title of the button

Reimplemented from MLABWidgetControl.


Generated on Sat Sep 3 18:38:02 2011 for MeVisLab Scripting Reference by  doxygen 1.5.8