mouse.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __KKWMMOUSECONFIG_H__
00023 #define __KKWMMOUSECONFIG_H__
00024
00025 class KConfig;
00026
00027 #include <qwidget.h>
00028 #include <kcmodule.h>
00029 #include <qcombobox.h>
00030 #include <qtooltip.h>
00031
00032
00033 class ToolTipComboBox: public QComboBox
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 ToolTipComboBox(QWidget * owner, char const * const * toolTips_)
00039 : QComboBox(owner)
00040 , toolTips(toolTips_) {}
00041
00042 public slots:
00043 void changed() {QToolTip::add( this, i18n(toolTips[currentItem()]) );}
00044
00045 protected:
00046 char const * const * toolTips;
00047 };
00048
00049
00050
00051 class KActionsConfig : public KCModule
00052 {
00053 Q_OBJECT
00054
00055 public:
00056
00057 KActionsConfig( bool _standAlone, KConfig *_config, QWidget *parent=0, const char* name=0 );
00058 ~KActionsConfig( );
00059
00060 void load();
00061 void save();
00062 void defaults();
00063
00064 public slots:
00065 void changed() { emit KCModule::changed(true); }
00066
00067 private:
00068 QComboBox* coTiDbl;
00069
00070 QComboBox* coTiAct1;
00071 QComboBox* coTiAct2;
00072 QComboBox* coTiAct3;
00073 QComboBox* coTiInAct1;
00074 QComboBox* coTiInAct2;
00075 QComboBox* coTiInAct3;
00076
00077 ToolTipComboBox * coMax[3];
00078
00079 QComboBox* coWin1;
00080 QComboBox* coWin2;
00081 QComboBox* coWin3;
00082
00083 QComboBox* coAllKey;
00084 QComboBox* coAll1;
00085 QComboBox* coAll2;
00086 QComboBox* coAll3;
00087
00088 KConfig *config;
00089 bool standAlone;
00090
00091 const char* functionTiDbl(int);
00092 const char* functionTiAc(int);
00093 const char* functionTiInAc(int);
00094 const char* functionWin(int);
00095 const char* functionAllKey(int);
00096 const char* functionAll(int);
00097 const char* functionMax(int);
00098
00099 void setComboText(QComboBox* combo, const char* text);
00100 const char* fixup( const char* s );
00101
00102 private slots:
00103 void paletteChanged();
00104
00105 };
00106
00107 #endif
00108
This file is part of the documentation for kwin Library Version 3.4.3.