-
Notifications
You must be signed in to change notification settings - Fork 0
/
qtnqc_main.h
89 lines (77 loc) · 1.8 KB
/
qtnqc_main.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
#ifndef _QTNQC_MAIN_H_
#define _QTNQC_MAIN_H_
#define VERSION "1.00"
/*
** -- Qt Classes --
*/
class QLayout;
class QGroupBox;
class QPopupMenu;
class QStatusBar;
#include <qcursor.h>
#include <qdialog.h>
#include <qmenubar.h>
#include <qstatusbar.h>
#include <qfiledialog.h>
#include <qmainwindow.h>
#include <qmessagebox.h>
#include <qapplication.h>
/*
** -- Local Includes --
*/
#include <editor.h>
#include <diagram_writer.h>
#include <settings_window.h>
#include <qtnqc_download_thread.h>
class qtnqc_main: public QMainWindow
{
Q_OBJECT
public:
qtnqc_main(void);
~qtnqc_main();
bool isSaved(void);
void init(QApplication *);
void setSaved(const bool);
void showMain(void);
QMainWindow *getMainWindow(void);
QValueList<QString> &getUsedTaskNames(void);
QValueList<QString> &getUsedFunctionNames(void);
QValueList<QString> &getUsedSubroutineNames(void);
static int current_id;
static int nextId(void);
static void quit(const char *, const char *, const int, const int);
static void prevId(void);
static void cleanup(void);
private:
bool saved;
editor *edit;
QString filename;
QThread *save_thread;
QStatusBar *statusbar;
QMainWindow *mainwindow;
QValueList<QString> used_task_names;
QValueList<QString> used_function_names;
QValueList<QString> used_subroutine_names;
qtnqc_download_thread *dwnld_thread;
void newFile(void);
void writeToFile(void);
void readFromFile(void);
virtual void closeEvent(QCloseEvent *);
public slots:
void quit(void);
private slots:
bool slotNew(void);
void find(void);
void undo(void);
void enlarge(void);
void funcPal(void);
void showCode(void);
void toolsPal(void);
void slotOpen(void);
void slotSave(void);
void showAbout(void);
void getUpdates(void);
void slotSaveAs(void);
void showSettings(void);
};
#endif