-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxytoolview.cpp
More file actions
43 lines (35 loc) · 979 Bytes
/
Copy pathproxytoolview.cpp
File metadata and controls
43 lines (35 loc) · 979 Bytes
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
#include "bitslinger.h"
#include "proxytoolview.h"
#include "ui_proxytoolview.h"
ProxyToolView::ProxyToolView(QWidget *parent) :
QWidget(parent),
m_ui(new Ui::ProxyToolView)
{
m_ui->setupUi(this);
dumpObjectTree();
m_ui->hexView->setReadOnly(true);
m_ui->textView->setReadOnly(true);
connect(m_ui->journalView, SIGNAL(entryActivated(JournalEvent *)),
this, SLOT(showEntry(JournalEvent*)));
}
ProxyToolView::~ProxyToolView()
{
delete m_ui;
}
bool ProxyToolView::restoreState(const QByteArray &state)
{
return m_ui->journalView->header()->restoreState(state);
}
QByteArray ProxyToolView::saveState()
{
return m_ui->journalView->header()->saveState();
}
void ProxyToolView::setBitSlinger(BitSlinger *slinger)
{
m_ui->journalView->setJournal(slinger->journal());
}
void ProxyToolView::showEntry(JournalEvent *entry)
{
m_ui->hexView->setData(entry->content);
m_ui->textView->setPlainText(QString(entry->content));
}