kstars
ToggleAction Class Reference
Subclass of Kaction that allows for the action to have a boolean state (on/off) The class stores the current state, and changes the Action's iconset to reflect the state. More...
#include <toggleaction.h>
Inheritance diagram for ToggleAction:

Public Slots | |
void | turnOff () |
void | turnOn () |
Public Member Functions | |
void | setOffToolTip (QString tip) |
void | setOnToolTip (QString tip) |
ToggleAction (const QString &ontext, const QString &offtext, int accel, const QObject *receiver, const char *slot, QObject *parent=0, const char *name=0) | |
ToggleAction (const QString &ontext, const QIconSet &onpix, const QString &offtext, const QIconSet &offpix, int accel, const QObject *receiver, const char *slot, QObject *parent=0, const char *name=0) |
Detailed Description
Subclass of Kaction that allows for the action to have a boolean state (on/off) The class stores the current state, and changes the Action's iconset to reflect the state.
- Version:
- 1.0
Definition at line 32 of file toggleaction.h.
Constructor & Destructor Documentation
Member Function Documentation
void ToggleAction::setOffToolTip | ( | QString | tip | ) |
Sets the ToolTip text for the "off" state.
tip
the tooltip string
Definition at line 61 of file toggleaction.cpp.
void ToggleAction::setOnToolTip | ( | QString | tip | ) |
Sets the ToolTip text for the "on" state.
tip
the tooltip string
Definition at line 55 of file toggleaction.cpp.
void ToggleAction::turnOff | ( | ) | [slot] |
Put the Action in the "off" state.
Update the icon and tooltip.
Definition at line 41 of file toggleaction.cpp.
void ToggleAction::turnOn | ( | ) | [slot] |
Put the Action in the "on" state.
Update the icon and tooltip.
Definition at line 48 of file toggleaction.cpp.
The documentation for this class was generated from the following files: