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.
tdebase/kxkb/extension.h

38 lines
949 B

#ifndef __EXTENSION_H__
#define __EXTENSION_H__
#include <X11/Xlib.h>
class XKBExtension
{
public:
XKBExtension(Display *display=NULL);
~XKBExtension();
bool init();
void reset();
static bool setXkbOptions(const TQString& options, bool resetOldOptions);
bool setLayout(const TQString& model,
const TQString& layout, const TQString& variant,
const TQString& includeGroup, bool useCompiledLayouts=true);
bool setGroup(unsigned int group);
unsigned int getGroup() const;
private:
Display *m_dpy;
TQString m_tempDir;
static TQMap<TQString, FILE*> fileCache;
bool setLayoutInternal(const TQString& model,
const TQString& layout, const TQString& variant,
const TQString& includeGroup);
bool compileCurrentLayout(const TQString& layoutKey);
bool setCompiledLayout(const TQString& layoutKey);
TQString getPrecompiledLayoutFilename(const TQString& layoutKey);
// void deletePrecompiledLayouts();
};
#endif