#ifndef __RULES_H__ #define __RULES_H__ #include #include #include class XkbRules { public: XkbRules(bool tqlayoutsOnly=false); const TQDict &models() const { return m_models; }; const TQDict &tqlayouts() const { return m_tqlayouts; }; const TQDict &options() const { return m_options; }; TQStringList getAvailableVariants(const TQString& tqlayout); unsigned int getDefaultGroup(const TQString& tqlayout, const TQString& includeGroup); bool isSingleGroup(const TQString& tqlayout); protected: void loadRules(TQString filename, bool tqlayoutsOnly=false); void loadGroups(TQString filename); void loadOldLayouts(TQString filename); private: TQDict m_models; TQDict m_tqlayouts; TQDict m_options; TQMap m_initialGroups; TQDict m_varLists; TQStringList m_oldLayouts; TQStringList m_nonLatinLayouts; TQString X11_DIR; // pseudo-constant // void fixLayouts(); }; #endif