-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
74 lines (65 loc) · 1.69 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
/*!
* \file mainwindow.h
* \author Simon Coakley
* \date 2012
* \copyright Copyright (c) 2012 University of Sheffield
* \brief Header file for main window
*/
#ifndef MAINWINDOW_H_
#define MAINWINDOW_H_
#include <QtCore>
#include <QtGui>
#include <QtGui/QMainWindow>
#include <QTableWidgetItem>
#include "./machinemodel.h"
#include "./memorymodel.h"
#include "./simulationthread.h"
#include "./arrow.h"
#include "./machine.h"
#include "./machinescene.h"
#include "./machinetree.h"
namespace Ui {
class MainWindowClass;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
signals:
void clearSceneSelection();
void updateScene();
void startSimulation();
void pauseSimulation();
public slots:
void startModel();
void pauseModel();
void stopModel();
void selectTransition(QString n);
void selectState(QString n);
void updateStatusLabel(QString s);
void insertMemory();
void deleteMemory();
void newModel();
void openModel();
void saveModel();
void machineTreeClicked(QModelIndex);
void machineTreeContextMenu(QPoint);
void repositionView(float x, float y);
private slots:
void on_pushButton_viewModel_clicked();
void on_pushButtonClose_clicked();
void on_actionHelp_triggered();
void on_actionAbout_triggered();
void reload_scene();
private:
void handleNewAndOpenedModel(Machine * m);
void defaultGuiSettings();
Ui::MainWindowClass *ui;
SimulationThread * simulationThread;
QToolBar * fileToolBar;
MachineTree * machineTree;
QList<Machine *> machines;
Machine * currentMachine;
};
#endif // MAINWINDOW_H_