-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
115 lines (99 loc) · 2.96 KB
/
mainwindow.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QPainter>
#include <QPrinter>
#include <QPrintPreviewDialog>
#include <QTableView>
#include "c_algin.h"
#include "dbManager.h"
#include "dialogrepetition.h"
#include "dialogSettings.h"
#include "dialogStart.h"
#include "license.h"
#include "magazin.h"
#include "mfile.h"
#include "parser_placeholder.h"
#include "project.h"
#include "project_loader.h"
#include "project_saver.h"
#include "tablemodel.h"
#include "tableprinter.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
private:
Ui::MainWindow *ui;
QPalette* paletteValid;
QPalette* paletteInValid;
QAction *action_AddFile;
QAction *action_Export;
QAction *action_FinishFile;
QAction *action_ImportRpl;
QAction *action_Open;
QAction *action_Print;
QAction *action_RestoreDatabase;
QAction *action_ShowSettings;
C_Algin* c_Algin;
DBManager* dbManager;
DialogRepetition* dialogRepetition;
DialogSettings* dialogSettings;
DialogStart* dialogStart;
DialogProgress* dialogProgress;
License* license;
QList<QString> list_ToolID;
QList<QString> list_ToolDescription;
QList<QString> list_ToolGL;
QList<QString> list_ToolAL;
QList<QString> list_ToolFL;
QList<QString> list_Counter;
Magazin* magazin;
MFile* mfile;
Parser_PlaceHolder* parser_PlaceHolder;
Parser_Programm* parser_Programm;
bool bool_PrintProject;
bool bool_PrintIn;
bool bool_PrintOut;
Project_Loader* project_Loader;
Project_Saver* project_Saver;
Project* project;
Settings* settings;
QStringList stringList_Programme;
TableModel* tableModel;
ToolList* toolList_AllProjects;
ToolList* toolList_IN;
ToolList* toolList_OUT;
ToolList* toolList_Table;
ToolList* toolList_Top100;
bool copyWerkzeugDB();
bool load_Programme();
void FileNameMax(QStringList);
void showTable_Rustplan(bool bool_Print=false);
//void showTable_Top100();
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void frame_Error(QStringList);
signals:
public slots:
void slot_AddFile(bool);
void slot_dialogStart_Closed();
void slot_dialogPrint_Finished(int);
void slot_Err(QString);
void slot_Export(bool b);
void slot_FinishFile(bool b);
void slot_LicenseFaild();
void slot_Log(QString);
void slot_Open(bool);
void slot_Print(bool);
void slot_PrintPage(QPrinter*);
void slot_RepetitionAccepted();
void slot_RestoreDatabase(bool);
void slot_ShowSettings(bool);
void slot_startApplication();
void slot_TableClicked(const QModelIndex &);
};
#endif // MAINWINDOW_H