From 4aed2c8219774f5d797760606b8489a92ddc5163 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcontrol/keys/modifiers.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 kcontrol/keys/modifiers.h (limited to 'kcontrol/keys/modifiers.h') diff --git a/kcontrol/keys/modifiers.h b/kcontrol/keys/modifiers.h new file mode 100644 index 000000000..60ce76ae9 --- /dev/null +++ b/kcontrol/keys/modifiers.h @@ -0,0 +1,49 @@ +#ifndef __MODIFIERS_MODULE_H +#define __MODIFIERS_MODULE_H + +#include + +class QCheckBox; +class QLabel; +class KComboBox; +class KListView; + +class ModifiersModule : public QWidget +{ + Q_OBJECT + public: + ModifiersModule( QWidget *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; + QString m_sLabelCtrlOrig, m_sLabelAltOrig, m_sLabelWinOrig; + + QLabel* m_plblCtrl, * m_plblAlt, * m_plblWin; + QLabel* m_plblWinModX; + QCheckBox* m_pchkMacKeyboard; + KListView* m_plstXMods; + QCheckBox* 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 -- cgit v1.2.1