Tome
A generic data editor for games supporting arbitrary input and output formats.
project.h
1 #ifndef PROJECT_H
2 #define PROJECT_H
3 
4 #include <QString>
5 #include <QStringList>
6 #include <QVector>
7 #include <QLocale>
8 
9 #include "recordidtype.h"
10 #include "../../Components/Model/componentsetlist.h"
11 #include "../../Export/Model/recordexporttemplatelist.h"
12 #include "../../Fields/Model/fielddefinitionsetlist.h"
13 #include "../../Import/Model/recordtableimporttemplatelist.h"
14 #include "../../Records/Model/recordsetlist.h"
15 #include "../../Types/Model/customtypesetlist.h"
16 
17 
18 namespace Tome
19 {
23  class Project
24  {
25  public:
29  Project();
30 
34  QString name;
35 
39  QString path;
40 
44  QLocale locale;
45 
50 
54  RecordIdType::RecordIdType recordIdType;
55 
59  ComponentSetList componentSets;
60 
64  FieldDefinitionSetList fieldDefinitionSets;
65 
69  RecordExportTemplateList recordExportTemplates;
70 
74  RecordTableImportTemplateList recordTableImportTemplates;
75 
79  RecordSetList recordSets;
80 
84  CustomTypeSetList typeSets;
85  };
86 }
87 
88 #endif // PROJECT_H
Definition: commandlineoptions.h:6
RecordSetList recordSets
Record sets of this project.
Definition: project.h:79
Main model of Tome. Sets up and owns all other models.
Definition: project.h:23
ComponentSetList componentSets
Component sets of this project.
Definition: project.h:59
QLocale locale
Number format of this project.
Definition: project.h:44
CustomTypeSetList typeSets
Custom type sets of this project.
Definition: project.h:84
FieldDefinitionSetList fieldDefinitionSets
Field definition sets of this project.
Definition: project.h:64
Project()
Constructs a new, empty project.
Definition: project.cpp:6
RecordTableImportTemplateList recordTableImportTemplates
Record import templates of this project.
Definition: project.h:74
QString path
Absolute path to this project, without file name.
Definition: project.h:39
QString name
Name of this project, as shown in the UI.
Definition: project.h:34
bool ignoreReadOnly
Whether this project allows to edit read-only data.
Definition: project.h:49
RecordExportTemplateList recordExportTemplates
Record export templates of this project.
Definition: project.h:69
RecordIdType::RecordIdType recordIdType
Type of the ids of the records of this project.
Definition: project.h:54