7 #ifndef _FCITX_GLOBALCONFIG_H_ 8 #define _FCITX_GLOBALCONFIG_H_ 14 #include <fcitx-config/configuration.h> 15 #include <fcitx-config/rawconfig.h> 17 #include <fcitx-utils/macros.h> 18 #include <fcitx/fcitxcore_export.h> 19 #include <fcitx/inputcontextmanager.h> 23 class GlobalConfigPrivate;
29 const KeyList &triggerKeys()
const;
30 bool enumerateWithTriggerKeys()
const;
31 const KeyList &altTriggerKeys()
const;
32 const KeyList &activateKeys()
const;
33 const KeyList &deactivateKeys()
const;
46 bool consumeRedundantActivateKeys()
const;
47 const KeyList &enumerateForwardKeys()
const;
48 const KeyList &enumerateBackwardKeys()
const;
49 bool enumerateSkipFirst()
const;
50 const KeyList &enumerateGroupForwardKeys()
const;
51 const KeyList &enumerateGroupBackwardKeys()
const;
52 const KeyList &togglePreeditKeys()
const;
54 bool activeByDefault()
const;
64 PropertyPropagatePolicy resetStateWhenFocusIn()
const;
65 bool showInputMethodInformation()
const;
66 bool showInputMethodInformationWhenFocusIn()
const;
67 bool compactInputMethodInformation()
const;
68 bool showFirstInputMethodInformation()
const;
69 PropertyPropagatePolicy shareInputState()
const;
70 bool preeditEnabledByDefault()
const;
72 const KeyList &defaultPrevPage()
const;
73 const KeyList &defaultNextPage()
const;
75 const KeyList &defaultPrevCandidate()
const;
76 const KeyList &defaultNextCandidate()
const;
77 int defaultPageSize()
const;
89 bool overrideXkbOption()
const;
102 const std::string &customXkbOption()
const;
110 bool allowInputMethodForPassword()
const;
118 bool showPreeditForPassword()
const;
126 int autoSavePeriod()
const;
135 int modifierOnlyKeyTimeout()
const;
149 bool checkModifierOnlyKeyTimeout(uint64_t lastPressedTime)
const;
151 const std::vector<std::string> &enabledAddons()
const;
152 const std::vector<std::string> &disabledAddons()
const;
154 void setEnabledAddons(
const std::vector<std::string> &addons);
155 void setDisabledAddons(
const std::vector<std::string> &addons);
157 bool preloadInputMethod()
const;
159 void load(
const RawConfig &rawConfig,
bool partial =
false);
161 bool safeSave(
const std::string &path =
"config")
const;
166 std::unique_ptr<GlobalConfigPrivate> d_ptr;
171 #endif // _FCITX_GLOBALCONFIG_H_
A raw configuration tree that stores key-value pairs in a hierarchical structure. ...
Class to represent a key.