4
* Copyright (c) 1997 Patrick Dowler dowler@morgul.fsh.uvic.ca
5
* Copyright (c) 2001 Waldo Bastian bastian@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.
27
#include <config-workspace.h>
45
#define CLICK_TO_FOCUS 0
46
#define FOCUS_FOLLOW_MOUSE 1
48
#define TITLEBAR_PLAIN 0
49
#define TITLEBAR_SHADED 1
51
#define RESIZE_TRANSPARENT 0
52
#define RESIZE_OPAQUE 1
54
#define SMART_PLACEMENT 0
55
#define MAXIMIZING_PLACEMENT 1
56
#define CASCADE_PLACEMENT 2
57
#define RANDOM_PLACEMENT 3
58
#define CENTERED_PLACEMENT 4
59
#define ZEROCORNERED_PLACEMENT 5
60
#define INTERACTIVE_PLACEMENT 6
61
#define MANUAL_PLACEMENT 7
63
#define CLICK_TO_FOCUS 0
64
#define FOCUS_FOLLOWS_MOUSE 1
65
#define FOCUS_UNDER_MOUSE 2
66
#define FOCUS_STRICTLY_UNDER_MOUSE 3
68
class KFocusConfig : public KCModule
72
KFocusConfig(bool _standAlone, KConfig *_config, const KComponentData &inst, QWidget *parent);
80
void showEvent(QShowEvent *ev);
83
void setDelayFocusEnabled();
84
void focusPolicyChanged();
85
void autoRaiseOnTog(bool);//CT 23Oct1998
86
void delayFocusOnTog(bool);
87
void clickRaiseOnTog(bool);
88
void updateActiveMouseScreen();
90
emit KCModule::changed(true);
97
int getAutoRaiseInterval(void);
98
int getDelayFocusInterval(void);
101
void setAutoRaiseInterval(int);
102
void setAutoRaise(bool);
103
void setDelayFocusInterval(int);
104
void setDelayFocus(bool);
105
void setClickRaise(bool);
106
void setSeparateScreenFocus(bool);
107
void setActiveMouseScreen(bool);
109
void setFocusStealing(int);
110
KComboBox* focusStealing;
114
KComboBox *focusCombo;
115
QLabel *autoRaiseOnLabel;
116
QCheckBox *autoRaiseOn;
117
QLabel *delayFocusOnLabel;
118
QCheckBox *delayFocusOn;
119
QCheckBox *clickRaiseOn;
120
KIntNumInput *autoRaise;
121
KIntNumInput *delayFocus;
122
QCheckBox *separateScreenFocus;
123
QCheckBox *activeMouseScreen;
129
class KMovingConfig : public KCModule
133
KMovingConfig(bool _standAlone, KConfig *config, const KComponentData &inst, QWidget *parent);
141
void showEvent(QShowEvent *ev);
145
emit KCModule::changed(true);
147
void slotBrdrSnapChanged(int);
148
void slotWndwSnapChanged(int);
149
void slotCntrSnapChanged(int);
153
int getResizeOpaque(void);
154
bool getGeometryTip(void); //KS
157
void setResizeOpaque(int);
158
void setGeometryTip(bool); //KS
159
void setMoveResizeMaximized(bool);
161
KButtonGroup *windowsBox;
163
QCheckBox *resizeOpaqueOn;
164
QCheckBox *geometryTipOn;
165
QCheckBox *moveResizeMaximized;
170
int getBorderSnapZone();
171
void setBorderSnapZone(int);
172
int getWindowSnapZone();
173
void setWindowSnapZone(int);
174
int getCenterSnapZone();
175
void setCenterSnapZone(int);
177
KButtonGroup *MagicBox;
178
QLabel *BrdrSnapLabel, *WndwSnapLabel, *CntrSnapLabel;
179
KIntNumInput *BrdrSnap, *WndwSnap, *CntrSnap;
180
QCheckBox *OverlapSnap;
184
class KAdvancedConfig : public KCModule
188
KAdvancedConfig(bool _standAlone, KConfig *config, const KComponentData &inst, QWidget *parent);
196
void showEvent(QShowEvent *ev);
199
void shadeHoverChanged(bool);
202
emit KCModule::changed(true);
205
void tilingOnChanged(bool a);
208
int getShadeHoverInterval(void);
209
void setShadeHover(bool);
210
void setShadeHoverInterval(int);
214
QCheckBox *shadeHoverOn;
215
QLabel *shadeHoverLabel;
216
KIntNumInput *shadeHover;
221
void setHideUtilityWindowsForInactive(bool);
222
QCheckBox* hideUtilityWindowsForInactive;
224
void setInactiveTabsSkipTaskbar(bool);
225
QCheckBox* inactiveTabsSkipTaskbar;
227
void setAutogroupSimilarWindows(bool);
228
QCheckBox* autogroupSimilarWindows;
230
void setAutogroupInForeground(bool);
231
QCheckBox* autogroupInForeground;
233
int getPlacement(void); //CT
234
void setPlacement(int); //CT
236
KComboBox *placementCombo;
238
// ------------------------------
239
// Tiling related widgets/methods
240
// ------------------------------
241
KButtonGroup *tilBox;
243
QLabel *tilingLayoutLabel;
244
QLabel *tilingRaiseLabel;
245
KComboBox *tilingLayoutCombo;
246
KComboBox *tilingRaiseCombo;
247
void setTilingOn(bool);
248
void setTilingLayout(int);
249
void setTilingRaisePolicy(int);
252
#endif // KKWMWINDOWS_H