summaryrefslogtreecommitdiffstats
path: root/kcontrol/keys/keyconfig.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /kcontrol/keys/keyconfig.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
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
Diffstat (limited to 'kcontrol/keys/keyconfig.h')
-rw-r--r--kcontrol/keys/keyconfig.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/kcontrol/keys/keyconfig.h b/kcontrol/keys/keyconfig.h
new file mode 100644
index 000000000..cba853e4d
--- /dev/null
+++ b/kcontrol/keys/keyconfig.h
@@ -0,0 +1,90 @@
+//
+// KDE Shortcut config module
+//
+// Copyright (c) Mark Donohoe 1998
+// Copyright (c) Matthias Ettrich 1998
+// Converted to generic key configuration module, Duncan Haldane 1998.
+
+#ifndef __KEYCONFIG_H__
+#define __KEYCONFIG_H__
+
+#include <qpushbutton.h>
+#include <qlistbox.h>
+
+#include <kaccel.h>
+#include <kkeydialog.h>
+//#include <kcmodule.h>
+#include <qdict.h>
+
+class QCheckBox;
+
+class KeyChooserSpec;
+
+class KKeyModule : public QWidget
+{
+ Q_OBJECT
+public:
+ KAccelActions actions;
+ //KAccelActions dict;
+ KeyChooserSpec *kc;
+
+ KKeyModule( QWidget *parent, bool isGlobal, bool bSeriesOnly, bool bSeriesNone, const char *name = 0 );
+ KKeyModule( QWidget *parent, bool isGlobal, const char *name = 0 );
+ ~KKeyModule ();
+
+protected:
+ void init( bool isGlobal, bool bSeriesOnly, bool bSeriesNone );
+
+public:
+ virtual void load();
+ //virtual void save();
+ virtual void defaults();
+ static void init();
+
+ bool writeSettings( const QString& sGroup, KConfig* pConfig );
+ bool writeSettingsGlobal( const QString& sGroup );
+
+public slots:
+ //void slotPreviewScheme( int );
+ //void slotAdd();
+ //void slotSave();
+ //void slotRemove();
+ void slotKeyChange();
+ void slotPreferMeta();
+ //void updateKeys( const KAccelActions* map_P );
+ //void readSchemeNames();
+
+signals:
+ void keyChange();
+ //void keysChanged( const KAccelActions* map_P );
+
+protected:
+ QListBox *sList;
+ QStringList *sFileList;
+ QPushButton *addBt;
+ QPushButton *removeBt;
+ QCheckBox *preferMetaBt;
+ int nSysSchemes;
+ bool bSeriesOnly;
+
+ void readScheme( int index=0 );
+
+ QString KeyType;
+ QString KeyScheme;
+ QString KeySet;
+
+};
+
+class KeyChooserSpec : public KKeyChooser
+{
+ Q_OBJECT
+public:
+ KeyChooserSpec( KAccelActions& actions, QWidget* parent,
+ bool bGlobal );
+ //void updateKeys( const KAccelActions* map_P );
+protected:
+ bool m_bGlobal;
+};
+
+#endif
+