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;
34 const KeyList &enumerateForwardKeys()
const;
35 const KeyList &enumerateBackwardKeys()
const;
36 bool enumerateSkipFirst()
const;
37 const KeyList &enumerateGroupForwardKeys()
const;
38 const KeyList &enumerateGroupBackwardKeys()
const;
39 const KeyList &togglePreeditKeys()
const;
41 bool activeByDefault()
const;
51 PropertyPropagatePolicy resetStateWhenFocusIn()
const;
52 bool showInputMethodInformation()
const;
53 bool showInputMethodInformationWhenFocusIn()
const;
54 bool compactInputMethodInformation()
const;
55 bool showFirstInputMethodInformation()
const;
56 PropertyPropagatePolicy shareInputState()
const;
57 bool preeditEnabledByDefault()
const;
59 const KeyList &defaultPrevPage()
const;
60 const KeyList &defaultNextPage()
const;
62 const KeyList &defaultPrevCandidate()
const;
63 const KeyList &defaultNextCandidate()
const;
64 int defaultPageSize()
const;
76 bool overrideXkbOption()
const;
89 const std::string &customXkbOption()
const;
97 bool allowInputMethodForPassword()
const;
105 bool showPreeditForPassword()
const;
113 int autoSavePeriod()
const;
122 int modifierOnlyKeyTimeout()
const;
136 bool checkModifierOnlyKeyTimeout(uint64_t lastPressedTime)
const;
138 const std::vector<std::string> &enabledAddons()
const;
139 const std::vector<std::string> &disabledAddons()
const;
141 void setEnabledAddons(
const std::vector<std::string> &addons);
142 void setDisabledAddons(
const std::vector<std::string> &addons);
144 bool preloadInputMethod()
const;
146 void load(
const RawConfig &rawConfig,
bool partial =
false);
148 bool safeSave(
const std::string &path =
"config")
const;
153 std::unique_ptr<GlobalConfigPrivate> d_ptr;
158 #endif // _FCITX_GLOBALCONFIG_H_
Class to represent a key.