SciDAVis
1.D4
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scidavis
src
globals.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : globals.h
3
Project : SciDAVis
4
Description : Definition of global constants and enums
5
--------------------------------------------------------------------
6
Copyright : (C) 2006-2009 Tilman Benkert (thzs*gmx.net)
7
Copyright : (C) 2006-2007 Ion Vasilief (ion_vasilief*yahoo.fr)
8
(replace * with @ in the email addresses)
9
10
***************************************************************************/
11
12
/***************************************************************************
13
* *
14
* This program is free software; you can redistribute it and/or modify *
15
* it under the terms of the GNU General Public License as published by *
16
* the Free Software Foundation; either version 2 of the License, or *
17
* (at your option) any later version. *
18
* *
19
* This program is distributed in the hope that it will be useful, *
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22
* GNU General Public License for more details. *
23
* *
24
* You should have received a copy of the GNU General Public License *
25
* along with this program; if not, write to the Free Software *
26
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
27
* Boston, MA 02110-1301 USA *
28
* *
29
***************************************************************************/
30
31
#ifndef SCIDAVIS_GLOBALS_H
32
#define SCIDAVIS_GLOBALS_H
33
34
#include <QObject>
35
#include <QString>
36
38
41
class
SciDAVis
:
public
QObject
42
{
43
Q_OBJECT
44
Q_ENUMS(
PlotDesignation
)
45
Q_ENUMS(
ColumnMode
)
46
Q_ENUMS(
ColumnDataType
)
47
48
private
:
49
SciDAVis
() {}
// don't allow instancing
50
51
public
:
52
virtual
~SciDAVis
() {}
// avoid the warning message
54
enum
PlotDesignation
55
{
56
noDesignation
= 0,
57
X
= 1,
58
Y
= 2,
59
Z
= 3,
60
xErr
= 4,
61
yErr
= 5
62
};
63
65
enum
ColumnMode
66
{
67
Numeric
= 0,
68
Text
= 1,
69
Month
= 4,
70
Day
= 5,
71
DateTime
= 6,
72
// 2 and 3 are skipped to avoid problems with old obsolete values
73
};
74
76
enum
ColumnDataType
77
{
78
TypeDouble
= 1,
79
TypeQString
= 2,
80
TypeQDateTime
= 3
81
};
82
84
static
int
version
();
85
86
static
QString
enumValueToString
(
int
key,
const
QString& enum_name);
87
static
int
enumStringToValue
(
const
QString&
string
,
const
QString& enum_name);
88
90
static
QString
schemaVersion
();
92
static
QString
versionString
();
93
95
static
QString
extraVersion
();
96
98
static
QString
copyrightString
();
99
101
static
QString
releaseDateString
();
102
104
static
void
about
();
105
106
private
:
107
// Don't forget to change the Doxyfile when changing these!
109
115
static
const
int
scidavis_versionNo
;
116
static
const
char
*
scidavis_version
;
118
static
const
char
*
extra_version
;
120
static
const
char
*
copyright_string
;
122
static
const
char
*
release_date
;
123
};
124
125
#endif
126
Generated by
1.8.1