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

kstars

toggleaction.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           toggleaction.h  -  description
00003                              -------------------
00004     begin                : Son Feb 10 2002
00005     copyright            : (C) 2002 by Mark Hollomon
00006     email                : mhh@mindspring.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef KSTARS_TOGGLEACTION_H
00019 #define KSTARS_TOGGLEACTION_H
00020 
00029 #include <qiconset.h>
00030 #include <kaction.h>
00031 
00032 class ToggleAction : public KAction {
00033     Q_OBJECT
00034         
00035     public:
00037         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 ) ;
00039         ToggleAction(const QString& ontext, const QString& offtext, int accel, const QObject* receiver, const char* slot, QObject* parent = 0, const char* name = 0 ) ;
00040 
00044         void setOnToolTip(QString tip);
00045 
00049         void setOffToolTip(QString tip);
00050 
00051     public slots:
00053         void turnOff();
00055         void turnOn();
00056 
00057     private:
00058         QIconSet officon;
00059         QIconSet onicon;
00060         QString offcap;
00061         QString oncap;
00062         QString onTip;
00063         QString offTip;
00064         bool state;
00065 };
00066 
00067 
00068 #endif

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