blob: bba1cb751ca8c5c6cdfe93c36c54362b63489354 (
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
|
#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(MachineConfig *config);
public slots:
void new_machine();
void show_cache_content();
void show_cache_statictics();
void show_registers();
bool configured();
protected:
void closeEvent(QCloseEvent *event);
private:
Ui::MainWindow *ui;
NewDialog *ndialog;
CoreView *coreview;
CacheContentDock *cache_content;
CacheStatisticsDock *cache_statictics;
RegistersDock *registers;
QSettings *settings;
QtMipsMachine *machine; // Current simulated machine
void show_dockwidget(QDockWidget *w);
};
#endif // MAINWINDOW_H
|