-
Notifications
You must be signed in to change notification settings - Fork 0
/
d_Config.h
46 lines (36 loc) · 1018 Bytes
/
d_Config.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
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
// C++
#include <filesystem>
// Qt
#include "QRect"
// Project-local
#include "History.h"
namespace progsets {
enum class DirMode { INSTALLED, PORTABLE };
extern DirMode dirMode;
}
namespace fname {
extern std::filesystem::path config;
extern std::filesystem::path progsets;
}
namespace path {
// Some path within app’s filesystem to store bundled data
extern std::filesystem::path exeBundled;
// Some path within app’s filesystem that’s somehow accessible to admin
// In Windows exeAdmined == exeBundled
extern std::filesystem::path exeAdmined;
// Some writeable path within system’s/app’s filesystem where configs are placed
extern std::filesystem::path config;
}
namespace config {
extern hist::History history;
namespace window {
extern QSize desktopSize;
extern bool isMaximized;
}
void init(
QRect& winRect);
void save(
const QRect& winRect,
bool isMaximized);
}