scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

globals.h
Go to the documentation of this file.
1 
12 
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
55  {
57  X = 1,
58  Y = 2,
59  Z = 3,
60  xErr = 4,
61  yErr = 5
62  };
63 
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 
77  {
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 
SciDAVis::schemaVersion
static QString schemaVersion()
Return the SciDAVis version string ("SciDAVis x.y.z" without extra version) used in the project file.
Definition: globals.cpp:115
SciDAVis::versionString
static QString versionString()
the user visible release version string (x.Dy usually)
Definition: globals.cpp:123
SciDAVis::version
static int version()
Return the SciDAVis version number.
Definition: globals.cpp:110
SciDAVis::yErr
@ yErr
y errors
Definition: globals.h:61
SciDAVis::TypeQString
@ TypeQString
Definition: globals.h:79
SciDAVis::xErr
@ xErr
x errors
Definition: globals.h:60
SciDAVis::Y
@ Y
y values
Definition: globals.h:58
SciDAVis::noDesignation
@ noDesignation
no plot designation
Definition: globals.h:56
SciDAVis::ColumnDataType
ColumnDataType
Column data type.
Definition: globals.h:77
SciDAVis::SciDAVis
SciDAVis()
Definition: globals.h:49
SciDAVis::copyright_string
static const char * copyright_string
Copyright string containing the author names etc.
Definition: globals.h:120
SciDAVis::extraVersion
static QString extraVersion()
Return the extra version as a string.
Definition: globals.cpp:128
SciDAVis::copyrightString
static QString copyrightString()
Return the copyright string.
Definition: globals.cpp:174
SciDAVis::extra_version
static const char * extra_version
Extra version information string (like "-alpha", "-beta", "-rc1", etc...)
Definition: globals.h:118
SciDAVis::ColumnMode
ColumnMode
The column mode (defines output and input filter for table columns)
Definition: globals.h:66
SciDAVis::release_date
static const char * release_date
Release date as a string.
Definition: globals.h:122
SciDAVis::releaseDateString
static QString releaseDateString()
Return the release date as a string.
Definition: globals.cpp:179
SciDAVis::enumStringToValue
static int enumStringToValue(const QString &string, const QString &enum_name)
Definition: globals.cpp:192
SciDAVis::scidavis_versionNo
static const int scidavis_versionNo
SciDAVis version number.
Definition: globals.h:115
SciDAVis::Month
@ Month
column contains month names
Definition: globals.h:69
SciDAVis::~SciDAVis
virtual ~SciDAVis()
Definition: globals.h:52
SciDAVis::Text
@ Text
column contains strings
Definition: globals.h:68
SciDAVis::DateTime
@ DateTime
column contains dates and/or times
Definition: globals.h:71
SciDAVis::TypeDouble
@ TypeDouble
Definition: globals.h:78
SciDAVis::scidavis_version
static const char * scidavis_version
Definition: globals.h:116
SciDAVis::PlotDesignation
PlotDesignation
Types of plot designations.
Definition: globals.h:55
SciDAVis::Z
@ Z
z values
Definition: globals.h:59
SciDAVis::X
@ X
x values
Definition: globals.h:57
SciDAVis::Day
@ Day
column containts day of week names
Definition: globals.h:70
SciDAVis::TypeQDateTime
@ TypeQDateTime
Definition: globals.h:80
SciDAVis::Numeric
@ Numeric
column contains doubles
Definition: globals.h:67
SciDAVis::about
static void about()
Show about dialog.
Definition: globals.cpp:133
SciDAVis
Definition of global constants and enums.
Definition: globals.h:42
SciDAVis::enumValueToString
static QString enumValueToString(int key, const QString &enum_name)
Definition: globals.cpp:184