• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

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:

Inheritance graph
[legend]

List of all members.


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.

Author:
Mark Hollomon
Version:
1.0

Definition at line 32 of file toggleaction.h.


Constructor & Destructor Documentation

ToggleAction::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 
)

Constructor.

Definition at line 20 of file toggleaction.cpp.

ToggleAction::ToggleAction ( const QString &  ontext,
const QString &  offtext,
int  accel,
const QObject *  receiver,
const char *  slot,
QObject *  parent = 0,
const char *  name = 0 
)

Constructor.

Same as above, but without icons.

Definition at line 31 of file toggleaction.cpp.


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:
  • toggleaction.h
  • toggleaction.cpp

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal