fixed crash on layout adding when jrugr is running
[jrugr.git] / src / jcfg.h
blob9280a74c08a696b7883e46ea7754aab8f9a770f8
1 ////////////////////////////////////////
2 // Copyright : GPL //
3 ////////////////////////////////////////
4 #ifndef JRUGCONFIGS_H
5 #define JRUGCONFIGS_H
7 #include "jrugrdefs.h"
8 #include "x11tools.h"
10 #include <sys/types.h>
13 enum JWorkMode {
14 ONLY_INDICATION,
15 USE_XKB
19 enum JSwitchMode {
20 GLOBAL_LAYOUT,
21 APP_LAYOUT,
22 WIN_LAYOUT,
23 DESK_LAYOUT
27 class JrugrCfg {
28 public:
29 JrugrCfg () : workMode(ONLY_INDICATION), switching(GLOBAL_LAYOUT), showFlag(true), useSU(true) {}
31 static JrugrCfg *load (const QString &fname);
32 bool save (const QString &fname) const;
34 public:
35 QString model;
36 QList<LayoutUnit> layouts;
37 QStringList options;
38 JWorkMode workMode;
39 JSwitchMode switching;
40 bool showFlag;
41 bool useSU;
42 bool mplayerHack;
46 #endif