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

klaptopdaemon

buttons.h

Go to the documentation of this file.
00001 /*
00002  * pcmcia.h
00003  *
00004  * Copyright (c) 1999 Paul Campbell <paul@taniwha.com>
00005  *
00006  * Requires the Qt widget libraries, available at no cost at
00007  * http://www.troll.no/
00008  *
00009  *  This program is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  This program is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with this program; if not, write to the Free Software
00021  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00022  */
00023 
00024 
00025 #ifndef __BUTTONSCONFIG_H__
00026 #define __BUTTONSCONFIG_H__
00027 
00028 #include <kcmodule.h>
00029 
00030 
00031 class QWidget;
00032 class QSlider;
00033 class Q3ButtonGroup;
00034 class QRadioButton;
00035 class KConfig;
00036 class QCheckBox;
00037 class KComboBox;
00038 
00039 class ButtonsConfig : public KCModule
00040 {
00041   Q_OBJECT
00042 public:
00043   ButtonsConfig( const KComponentData &inst,QWidget *parent=0);
00044     ~ButtonsConfig();
00045   void save( void );
00046   void load();
00047   void defaults();
00048 
00049   virtual QString quickHelp() const;
00050 
00051 private slots:
00052 
00053   void configChanged();
00054 
00055 
00056 private:
00057 
00058   int  getPower();
00059   int  getLid();
00060   void setPower( int, int );
00061 
00062   Q3ButtonGroup *lidBox;
00063   QRadioButton *lidStandby, *lidSuspend, *lidOff, *lidHibernate, *lidShutdown, *lidLogout;
00064   QCheckBox *lidBrightness;
00065   QSlider *lidValBrightness;
00066   QCheckBox *lidThrottle;
00067   KComboBox *lidValThrottle;
00068   QCheckBox *lidPerformance;
00069   KComboBox *lidValPerformance;
00070   Q3ButtonGroup *powerBox;
00071   QRadioButton *powerStandby, *powerSuspend, *powerOff, *powerHibernate, *powerShutdown, *powerLogout;
00072   QCheckBox *powerBrightness;
00073   QSlider *powerValBrightness;
00074   QCheckBox *powerThrottle;
00075   KComboBox *powerValThrottle;
00076   QCheckBox *powerPerformance;
00077   KComboBox *powerValPerformance;
00078   int power_bright_val, lid_bright_val;
00079   bool lid_bright_enabled, power_bright_enabled;
00080   bool lid_throttle_enabled, power_throttle_enabled;
00081   QString lid_throttle_val, power_throttle_val;
00082   bool lid_performance_enabled, power_performance_enabled;
00083   QString lid_performance_val, power_performance_val;
00084 
00085   KConfig *config;
00086   int power, lid, apm;
00087 };
00088 
00089 #endif
00090 

klaptopdaemon

Skip menu "klaptopdaemon"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
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