-
Notifications
You must be signed in to change notification settings - Fork 0
/
scicalc.h
executable file
·69 lines (49 loc) · 1.53 KB
/
scicalc.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 SCICALC_H
#define SCICALC_H
#include <QMainWindow>
#include <QStringList>
#include "dialoggeneralsettings.h"
namespace Ui {
class scicalc;
}
class scicalc : public QMainWindow
{
Q_OBJECT
public:
explicit scicalc(QMainWindow *parent = 0);
~scicalc();
static scicalc* app();
void load(QString fileName);
void save(QString fileName);
DialogGeneralSettings* dialogGeneralSettings;
private slots:
void on_actionNew_triggered();
void on_actionOpen_triggered();
void on_actionSave_triggered();
void on_actionSave_as_triggered();
void on_actionRefresh_triggered();
void inputChanged();
void settingsChanged();
void on_actionReadme_triggered();
void on_actionConstants_triggered();
void on_actionFunctions_triggered();
void on_actionGeneral_settings_triggered();
void on_actionAbout_scicalc_triggered();
void on_actionChangelog_triggered();
private:
void closeEvent(QCloseEvent *event);
void askForSave();
void setSaved(bool saved);
void showTextFile(QString filename);
static scicalc* myApp;
bool saved; // this flag is true, if the content of the editor is saved to file.
// it changes to false, if any character of the editor is changed.
QString currentFile; // holds the filename including the path to the current file.
// it is empty in temporary-mode
QString currentPath; // holds the name of the current path
// it is used to remember the open/save/save as location in the file-system
Ui::scicalc *ui;
static const QString tempFile;
static const QString version;
};
#endif // SCICALC_H