forked from mapmapteam/mapmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMM.h
More file actions
72 lines (60 loc) · 1.99 KB
/
MM.h
File metadata and controls
72 lines (60 loc) · 1.99 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* MM.h
*
* (c) 2013 Sofian Audry -- info(@)sofianaudry(.)com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MM_H_
#define MM_H_
#include <QtGlobal>
#include <QColor>
#include <QPen>
#include <QBrush>
class MM
{
public:
// General.
static const QString APPLICATION_NAME;
static const QString VERSION;
static const QString COPYRIGHT_OWNERS;
static const QString ORGANIZATION_NAME;
static const QString ORGANIZATION_DOMAIN;
static const QString FILE_EXTENSION;
static const QString VIDEO_FILES_FILTER;
static const QString IMAGE_FILES_FILTER;
// GUI.
static const int DEFAULT_WINDOW_WIDTH = 640;
static const int DEFAULT_WINDOW_HEIGHT = 480;
static const int TOP_TOOLBAR_ICON_SIZE = 64;
static const int BOTTOM_TOOLBAR_ICON_SIZE = 32;
// Style.
static const QColor WHITE;
static const QColor BLUE_GRAY;
static const QColor DARK_GRAY;
static const QColor CONTROL_COLOR;
static const QBrush VERTEX_BACKGROUND;
static const QBrush VERTEX_SELECTED_BACKGROUND;
static const qreal SHAPE_STROKE_WIDTH = 2;
static const qreal SHAPE_INNER_STROKE_WIDTH = 0.5;
static const QPen SHAPE_STROKE;
static const QPen SHAPE_INNER_STROKE;
// Control.
static const qreal VERTEX_STICK_RADIUS = 10;
static const qreal VERTEX_SELECT_RADIUS = 10;
static const qreal VERTEX_SELECT_STROKE_WIDTH = 1;
// Time.
static const float FRAMES_PER_SECOND = 29.97f;
};
#endif