add more spacing
[personal-kdebase.git] / workspace / kwin / kcmkwin / kwinoptions / mouse.h
blobc12d67b4e5479b238f47136d20247cbfb98abaf7
1 /*
2 * mouse.h
4 * Copyright (c) 1998 Matthias Ettrich <ettrich@kde.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef __KKWMMOUSECONFIG_H__
23 #define __KKWMMOUSECONFIG_H__
25 class KConfig;
27 #include <kcmodule.h>
28 #include <QComboBox>
29 #include <klocale.h>
32 class ToolTipComboBox: public QComboBox
34 Q_OBJECT
36 public:
37 ToolTipComboBox(QWidget * owner, char const * const * toolTips_)
38 : QComboBox(owner)
39 , toolTips(toolTips_) {}
41 public slots:
42 void changed() {this->setToolTip( i18n(toolTips[currentIndex()]) );}
44 protected:
45 char const * const * toolTips;
50 class KTitleBarActionsConfig : public KCModule
52 Q_OBJECT
54 public:
56 KTitleBarActionsConfig( bool _standAlone, KConfig *_config, const KComponentData &inst, QWidget *parent );
57 ~KTitleBarActionsConfig( );
59 void load();
60 void save();
61 void defaults();
63 public slots:
64 void changed() { emit KCModule::changed(true); }
66 private:
67 QComboBox* coTiDbl;
69 QComboBox* coTiAct1;
70 QComboBox* coTiAct2;
71 QComboBox* coTiAct3;
72 QComboBox* coTiAct4;
73 QComboBox* coTiInAct1;
74 QComboBox* coTiInAct2;
75 QComboBox* coTiInAct3;
77 ToolTipComboBox * coMax[3];
79 KConfig *config;
80 bool standAlone;
82 const char* functionTiDbl(int);
83 const char* functionTiAc(int);
84 const char* functionTiWAc(int);
85 const char* functionTiInAc(int);
86 const char* functionMax(int);
88 void setComboText(QComboBox* combo, const char* text);
89 const char* fixup( const char* s );
91 private slots:
92 void paletteChanged();
96 class KWindowActionsConfig : public KCModule
98 Q_OBJECT
100 public:
102 KWindowActionsConfig( bool _standAlone, KConfig *_config, const KComponentData &inst, QWidget *parent );
103 ~KWindowActionsConfig( );
105 void load();
106 void save();
107 void defaults();
109 public slots:
110 void changed() { emit KCModule::changed(true); }
112 private:
113 QComboBox* coWin1;
114 QComboBox* coWin2;
115 QComboBox* coWin3;
117 QComboBox* coAllKey;
118 QComboBox* coAll1;
119 QComboBox* coAll2;
120 QComboBox* coAll3;
121 QComboBox* coAllW;
123 KConfig *config;
124 bool standAlone;
126 const char* functionWin(int);
127 const char* functionAllKey(int);
128 const char* functionAll(int);
129 const char* functionAllW(int);
131 void setComboText(QComboBox* combo, const char* text);
132 const char* fixup( const char* s );
135 #endif