blob: 406d498623592f31b35a4505ad0b3f3e9f6e038d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#ifndef __MODIFIERS_MODULE_H
#define __MODIFIERS_MODULE_H
#include <tqwidget.h>
class QCheckBox;
class QLabel;
class KComboBox;
class KListView;
class ModifiersModule : public QWidget
{
Q_OBJECT
public:
ModifiersModule( TQWidget *parent = 0, const char *name = 0 );
void load( bool useDefaults );
void save();
void defaults();
static void setupMacModifierKeys();
signals:
void changed( bool );
protected:
bool m_bMacKeyboardOrig, m_bMacSwapOrig;
TQString m_sLabelCtrlOrig, m_sLabelAltOrig, m_sLabelWinOrig;
TQLabel* m_plblCtrl, * m_plblAlt, * m_plblWin;
TQLabel* m_plblWinModX;
TQCheckBox* m_pchkMacKeyboard;
KListView* m_plstXMods;
TQCheckBox* m_pchkMacSwap;
void initGUI();
// Places the values in the *Orig variables into their
// respective widgets.
void updateWidgetData();
// Updates the labels according to the check-box settings
// and also reads in the X modifier map.
void updateWidgets();
protected slots:
void slotMacKeyboardClicked();
void slotMacSwapClicked();
};
#endif
|