You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
758 B
41 lines
758 B
#ifndef __RULES_H__
|
|
#define __RULES_H__
|
|
|
|
#include <tqstring.h>
|
|
#include <tqdict.h>
|
|
#include <tqmap.h>
|
|
|
|
#include "layoutunit.h"
|
|
|
|
class XkbRules
|
|
{
|
|
public:
|
|
|
|
XkbRules(bool layoutsOnly=false);
|
|
|
|
const TQDict<char> &models() const { return m_models; };
|
|
const TQDict<char> &layouts() const { return m_layouts; };
|
|
const TQDict<char> &options() const { return m_options; };
|
|
|
|
TQStringList getAvailableVariants(const TQString& layout);
|
|
|
|
TQString getLayoutName(LayoutUnit layout) const;
|
|
|
|
protected:
|
|
void loadRules(TQString filename, bool layoutsOnly=false);
|
|
|
|
private:
|
|
|
|
TQDict<char> m_models;
|
|
TQDict<char> m_layouts;
|
|
TQDict<char> m_options;
|
|
TQDict<TQStringList> m_varLists;
|
|
|
|
TQString X11_DIR; // pseudo-constant
|
|
|
|
// void fixLayouts();
|
|
};
|
|
|
|
|
|
#endif
|