blob: 598a9c79f4a5103bf8d8e5382823f34f4af88f8c (
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
|
#ifndef CACHEDOCK_H
#define CACHEDOCK_H
#include <QDockWidget>
#include <QLabel>
#include <QFormLayout>
#include "cacheview.h"
#include "graphicsview.h"
#include "qtmipsmachine.h"
class CacheDock : public QDockWidget {
Q_OBJECT
public:
CacheDock(QWidget *parent, const QString &type);
void setup(const machine::Cache *cache);
private slots:
void hit_update(unsigned);
void miss_update(unsigned);
private:
QVBoxLayout *layout_box;
QWidget *top_widget, *top_form;
QFormLayout *layout_top_form;
QLabel *l_hit, *l_miss, *no_cache;
GraphicsView *graphicsview;
CacheViewScene *cachescene;
};
#endif // CACHEDOCK_H
|