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__
32 class ToolTipComboBox
: public QComboBox
37 ToolTipComboBox(QWidget
* owner
, char const * const * toolTips_
)
39 , toolTips(toolTips_
) {}
42 void changed() {this->setToolTip( i18n(toolTips
[currentIndex()]) );}
45 char const * const * toolTips
;
50 class KTitleBarActionsConfig
: public KCModule
56 KTitleBarActionsConfig( bool _standAlone
, KConfig
*_config
, const KComponentData
&inst
, QWidget
*parent
);
57 ~KTitleBarActionsConfig( );
64 void changed() { emit
KCModule::changed(true); }
73 QComboBox
* coTiInAct1
;
74 QComboBox
* coTiInAct2
;
75 QComboBox
* coTiInAct3
;
77 ToolTipComboBox
* coMax
[3];
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
);
92 void paletteChanged();
96 class KWindowActionsConfig
: public KCModule
102 KWindowActionsConfig( bool _standAlone
, KConfig
*_config
, const KComponentData
&inst
, QWidget
*parent
);
103 ~KWindowActionsConfig( );
110 void changed() { emit
KCModule::changed(true); }
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
);