diff options
Diffstat (limited to 'src/tdepowersave.h')
-rw-r--r-- | src/tdepowersave.h | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/src/tdepowersave.h b/src/tdepowersave.h index cb0bd0b..67fc6f7 100644 --- a/src/tdepowersave.h +++ b/src/tdepowersave.h @@ -22,18 +22,13 @@ #ifndef _TDEPOWERSAVE_H_ #define _TDEPOWERSAVE_H_ -// Global Header -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - // KDE - Header -#include <kprocess.h> +#include <tdeprocess.h> #include <ksystemtray.h> #include <dcopobject.h> #include <tdehardwaredevices.h> -// QT - Header +// TQt - Header #include <tqpopupmenu.h> // tdepowersave - Header @@ -64,7 +59,7 @@ class TDEGlobalAccel; class tdepowersave : public KSystemTray, public DCOPObject { - Q_OBJECT + TQ_OBJECT // K_DCOP @@ -164,6 +159,11 @@ private: */ bool autoDimmDown; + // used during dimm down/up transitions + int m_dimmRequestedLevel; + int m_dimmStep; + int m_dimmTimeoutCounter; + //! to temporary hold the resume result int resume_result; @@ -215,9 +215,6 @@ private: //! a menu seperator ID /*! contains the ID of the separator between autosuspend and Help*/ int HELP_SEPARATOR_MENU_ID; - //! a menu ID - /*! contains the ID of the help menu*/ - int HELP_MENU; //! number of white pixel in the kickerapplet icon /*! @@ -258,9 +255,6 @@ private: //! a sub-menu of the kickerapplet /*! TQPopupMenu for the scheme-entries. */ TQPopupMenu *scheme_menu; - //! a sub-menu of the kickerapplet - /*! TQPopupMenu for the help-entries. */ - TQPopupMenu *help_menu; //! icon-pixmap @@ -277,12 +271,12 @@ private: * The timerinterval is defined in \ref BAT_icon_BG_intervall . */ TQTimer *BAT_WARN_ICON_Timer; + //! Timer to dimm down/up the brightness /*! - * This timer is used dimm the display up and down. The timerinterval - * depends on calculated timePerStep in the calling function. + * This timer is used to dimm the display up and down. */ - TQTimer *AUTODIMM_Timer; + TQTimer *m_autoDimmTimer; //! draw all icon related things for \ref redrawPixmap() void drawIcon(); @@ -343,8 +337,6 @@ private slots: void slotHelp(); //! called to open the tdepowersave About dialog void slotAbout(); - //! called to open website to report bugs - void slotReportBug(); //! called if the configure dialog is destroyed void observeConfigDlg(); //! called if user exit from tdepowersave @@ -354,9 +346,9 @@ private slots: void do_downDimm(); //! called if the user get active again and the display should get dimmed up void do_upDimm(); - //! TQT_SLOT do do the dimmining for autodimm feature + //! TQ_SLOT do do the dimmining for autodimm feature void do_dimm(); - //! TQT_SLOT to set autodimm related stuff and start autodimm monitoring + //! TQ_SLOT to set autodimm related stuff and start autodimm monitoring void setAutoDimm( bool resumed ); //! to update the main menu of the kickerapplet @@ -453,10 +445,12 @@ k_dcop: //! dcop function to open the configure dialog bool openConfigureDialog(); - //! dcop function to find out if tdepowersave manages DPMS - bool currentSchemeManagesDPMS(); + //! dcop function to find out if tdepowersave manages DPMS + bool currentSchemeManagesDPMS(); //! dcop funtion to get the current brightness level int brightnessGet(); + //! dcop funtion to set the brightness level + void brightnessSet(int percentage); //! dcop function to return the name of the current scheme TQString currentScheme (); |