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 --- kxkb/rules.h | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 kxkb/rules.h (limited to 'kxkb/rules.h') diff --git a/kxkb/rules.h b/kxkb/rules.h new file mode 100644 index 000000000..d3e72b7a6 --- /dev/null +++ b/kxkb/rules.h @@ -0,0 +1,46 @@ +#ifndef __RULES_H__ +#define __RULES_H__ + +#include +#include +#include + + +class XkbRules +{ +public: + + XkbRules(bool layoutsOnly=false); + + const QDict &models() const { return m_models; }; + const QDict &layouts() const { return m_layouts; }; + const QDict &options() const { return m_options; }; + + QStringList getAvailableVariants(const QString& layout); + unsigned int getDefaultGroup(const QString& layout, const QString& includeGroup); + + bool isSingleGroup(const QString& layout); + +protected: + + void loadRules(QString filename, bool layoutsOnly=false); + void loadGroups(QString filename); + void loadOldLayouts(QString filename); + +private: + + QDict m_models; + QDict m_layouts; + QDict m_options; + QMap m_initialGroups; + QDict m_varLists; + QStringList m_oldLayouts; + QStringList m_nonLatinLayouts; + + QString X11_DIR; // pseudo-constant + +// void fixLayouts(); +}; + + +#endif -- cgit v1.2.3