-
Notifications
You must be signed in to change notification settings - Fork 0
/
project_saver.h
69 lines (58 loc) · 1.84 KB
/
project_saver.h
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
#ifndef PROJECTSAVER_H
#define PROJECTSAVER_H
#include <QObject>
#include <QTextStream>
#include <QTimer>
#include "dbManager.h"
#include "dialogProgress.h"
#include "mfile.h"
#include "parser_placeholder.h"
#include "parser_programm.h"
#include "project.h"
#include "settings.h"
class Project_Saver : public QObject
{
Q_OBJECT
private:
enum Marker {KopfStart, KopfEnd, keinMarker};
int counter;
DBManager* dbManager;
DialogProgress* dialogProgress;
Marker marker;
MFile* mfile;
Parser_PlaceHolder* parser_PlaceHolder;
Parser_Programm* parser_Programm;
Project* project;
bool bool_Repetition;
Settings* settings;
QString string_Destination;
QString string_Programm;
QString string_ProgrammDir;
QString string_ProjectClamping;
QString string_ProjectFullName;
QString string_ProjectName;
QString string_Source;
QStringList stringList_Content_MainProgramm;
QStringList stringList_Programme;
QTimer* timer;
QString formatString(QString);
void init_Saving();
bool finish_Cleaning();
bool finish_BlankControl();
bool finish_Load();
bool finish_Touch_Sp1();
public:
explicit Project_Saver(QObject *parent = nullptr);
bool save_Rustplan(QString, ToolList*);
void set_DBManager(DBManager* dbm) {dbManager = dbm;}
void set_DialogProgress(DialogProgress* dw) {dialogProgress = dw;}
void set_Project(Project* p);
void set_Settings(Settings* s) {settings = s;}
public slots:
void slot_nextProgramm();
void slot_Save_Project(bool);
signals:
void sig_Err(QString);
void sig_Log(QString);
};
#endif // PROJECTSAVER_H