-
Notifications
You must be signed in to change notification settings - Fork 2
/
ConfigKeys.h
34 lines (29 loc) · 1.21 KB
/
ConfigKeys.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef JETBRAINSRUNNER_CONFIGKEYS_H
#define JETBRAINSRUNNER_CONFIGKEYS_H
#include <QObject>
struct Config {
constexpr static const auto launchByAppName = "LaunchByAppName";
constexpr static const auto launchByProjectName = "LaunchByProjectName";
constexpr static const auto notifyUpdates = "NotifyUpdates";
constexpr static const auto formatString = "FormatString";
constexpr static const auto formatStringDefault = "%APPNAME launch %PROJECT";
constexpr static const auto displayInCategories = "DisplayInCategories";
constexpr static const auto customMappingGroup = "CustomMapping";
constexpr static const auto checkedUpdateDate = "checkedUpdateDate";
constexpr static const auto filterSearchResults = "filterSearchResults";
};
// Text display inside KRunner
struct FormatString {
constexpr static const auto PROJECT = "%PROJECT";
constexpr static const auto APPNAME = "%APPNAME";
constexpr static const auto APP = "%APP";
constexpr static const auto DIR = "%DIR";
};
// Used for filtering the project in KRunner
enum SearchResultChoice {
ProjectNameContains,
PathContains,
ProjectNameStartsWith,
};
Q_ENUMS(SearchResultChoice)
#endif // JETBRAINSRUNNER_CONFIGKEYS_H