blob: 6f588ac11e1c3ee9917e2f86d37dea1c361e86d3 (
plain)
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
|
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSettings>
#include "ui_MainWindow.h"
#include "newdialog.h"
#include "coreview.h"
#include "cachecontent.h"
#include "cachestatistics.h"
#include "registersdock.h"
#include "qtmipsmachine.h"
#include "machineconfig.h"
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void start();
void create_core(machine::MachineConfig *config);
bool configured();
public slots:
// Actions signals
void new_machine();
void show_cache_content();
void show_cache_statictics();
void show_registers();
// Machine signals
void machine_status(enum machine::QtMipsMachine::Status st);
void machine_exit();
void machine_trap(machine::QtMipsException &e);
protected:
void closeEvent(QCloseEvent *event);
private:
Ui::MainWindow *ui;
NewDialog *ndialog;
CoreView *coreview;
CoreViewScene *corescene;
CacheContentDock *cache_content;
CacheStatisticsDock *cache_statictics;
RegistersDock *registers;
QSettings *settings;
machine::QtMipsMachine *machine; // Current simulated machine
void show_dockwidget(QDockWidget *w);
};
#endif // MAINWINDOW_H
|