diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /kxkb/kcmlayout.h | |
download | tdebase-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 'kxkb/kcmlayout.h')
-rw-r--r-- | kxkb/kcmlayout.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/kxkb/kcmlayout.h b/kxkb/kcmlayout.h new file mode 100644 index 000000000..76c8b6d55 --- /dev/null +++ b/kxkb/kcmlayout.h @@ -0,0 +1,62 @@ +#ifndef __KCM_LAYOUT_H__ +#define __KCM_LAYOUT_H__ + + +#include <kcmodule.h> + +#include <qstring.h> +#include <qlistview.h> + +#include "kxkbconfig.h" + + +class OptionListItem; +class LayoutConfigWidget; +class XkbRules; + +class LayoutConfig : public KCModule +{ + Q_OBJECT + +public: + LayoutConfig(QWidget *parent = 0L, const char *name = 0L); + virtual ~LayoutConfig(); + + void load(); + void save(); + void defaults(); + void initUI(); + +protected: + QString createOptionString(); + void updateIndicator(QListViewItem* selLayout); + +protected slots: + void moveUp(); + void moveDown(); + void variantChanged(); + void displayNameChanged(const QString& name); + void latinChanged(); + void layoutSelChanged(QListViewItem *); + void loadRules(); + void updateLayoutCommand(); + void updateOptionsCommand(); + void add(); + void remove(); + + void changed(); + +private: + LayoutConfigWidget* widget; + + XkbRules *m_rules; + KxkbConfig m_kxkbConfig; + QDict<OptionListItem> m_optionGroups; + + QWidget* makeOptionsTab(); + void updateStickyLimit(); + static LayoutUnit getLayoutUnitKey(QListViewItem *sel); +}; + + +#endif |