Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
settings.h
1/*
2** Copyright 2007-2024, RTE (https://www.rte-france.com)
3** See AUTHORS.txt
4** SPDX-License-Identifier: MPL-2.0
5** This file is part of Antares-Simulator,
6** Adequacy and Performance assessment for interconnected energy networks.
7**
8** Antares_Simulator is free software: you can redistribute it and/or modify
9** it under the terms of the Mozilla Public Licence 2.0 as published by
10** the Mozilla Foundation, either version 2 of the License, or
11** (at your option) any later version.
12**
13** Antares_Simulator is distributed in the hope that it will be useful,
14** but WITHOUT ANY WARRANTY; without even the implied warranty of
15** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16** Mozilla Public Licence 2.0 for more details.
17**
18** You should have received a copy of the Mozilla Public Licence 2.0
19** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20*/
21#ifndef __ANTARES_TOOLBOX_MAP_SETTINGS_H__
22#define __ANTARES_TOOLBOX_MAP_SETTINGS_H__
23
24#include <wx/colour.h>
25#include <wx/bitmap.h>
26#include <wx/image.h>
27#include <list>
28#include <cstdint>
29
30namespace Antares
31{
32namespace Map
33{
34enum mapImageFormat : uint16_t
35{
36 mfPNG,
37 mfDefaultFormat = 0,
38 mfJPG,
39
40 //
41 mfSVG,
42
43 //--
44 mfFormatCount
45};
46
48{
49 bool mapInFile;
50 mapImageFormat fileFormat;
51 bool transparentBackground;
52 wxColor backgroundColor;
53 uint16_t nbTiles;
54 std::list<uint16_t> layers;
55};
56
58{
59public:
60 static wxColour background;
61
62 static wxColour text;
63 static wxColour textLight;
64
65 static wxColour grid;
66 static wxColour gridCenter;
67
68 static wxColour defaultNodeBackground;
69 static wxColour defaultNodeShadow;
70
71 static wxColour selectionNodeBorder;
72 static wxColour selectionNodeBackground;
73
74 static wxColour clusterBorder;
75 static wxColour clusterBackground;
76 static wxColour clusterBorderSelected;
77 static wxColour clusterBackgroundSelected;
78
79 static wxColour selectionBoxBorder;
80 static wxColour selectionBoxBackground;
81
82 static wxColour selectionBoxBorderHighlighted;
83 static wxColour selectionBoxBackgroundHighlighted;
84
85 static wxColour mouseSelectionBorder;
86 static wxColour mouseSelectionBackground;
87
88 static wxColour connection;
89 static wxColour connectionHighlighted;
90};
91
92} // namespace Map
93} // namespace Antares
94
95#endif // __ANTARES_TOOLBOX_MAP_SETTINGS_H__
Definition settings.h:58
Definition settings.h:48