forked from rpelorosso/pcb-tracer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.h
More file actions
37 lines (28 loc) · 722 Bytes
/
Copy pathConfig.h
File metadata and controls
37 lines (28 loc) · 722 Bytes
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
#ifndef CONFIG_H
#define CONFIG_H
#include <QColor>
#include <QVariantMap>
#include <QMap>
#include "enums.h"
class Editor;
class Link;
class Config {
public:
static Config* instance();
QString color(LinkSide side) const;
QString color(Color color) const;
void apply();
void updateFromConfigDialog(const QVariantMap& dialogConfig);
void update(const QVariantMap& kwargs);
QVariantMap toDict() const;
void readConfigFromBinary(QDataStream& in);
int m_linkWidth;
int m_padSize;
private:
Config();
Config(const Config&) = delete;
Config& operator=(const Config&) = delete;
static Config* m_instance;
QMap<Color, QString> m_colors;
};
#endif // CONFIG_H