-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_window_file_slots.cpp
48 lines (38 loc) · 1.41 KB
/
main_window_file_slots.cpp
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
#include <QFileDialog>
#include "main_window.h"
void MainWindow::newEmptySession(void) {
MainWindow *new_mainWindow = new(MainWindow);
new_mainWindow->show();
this->close();
}
void MainWindow::newSessionFromScript(void) {
QString scriptName = QFileDialog::getOpenFileName(this,
tr("Selete start script"),
".",
tr("Script files (*.sim)"));
if (!scriptName.isEmpty()) {
}
}
bool MainWindow::saveCheckpoint(void) {
return true;
}
void MainWindow::appendFromScript(void) {
QString scriptName = QFileDialog::getOpenFileName(this,
tr("Selete start script"),
".",
tr("Script files (*.sim)"));
if (!scriptName.isEmpty()) {
}
}
bool MainWindow::loadPresistentState(void) {
return true;
}
bool MainWindow::savePresitentState(void) {
return true;
}
void MainWindow::runPythonFile(void) {
QString scriptName = QFileDialog::getOpenFileName(this,
tr("Run python file"),
".",
tr("Python files (*.py)"));
}