Clean up Hexdump Sidebar (Fix #121)

This commit is contained in:
xarkes 2017-12-03 02:44:12 +01:00
parent 096db4b7e4
commit 5b21f970ac
3 changed files with 7 additions and 34 deletions

View File

@ -79,6 +79,7 @@ HexdumpWidget::HexdumpWidget(QWidget *parent, Qt::WindowFlags flags) :
});
fillPlugins();
selectHexPreview();
}
HexdumpWidget::HexdumpWidget(const QString &title, QWidget *parent, Qt::WindowFlags flags)
@ -812,13 +813,12 @@ void HexdumpWidget::on_codeCombo_2_currentTextChanged(const QString &arg1)
if (arg1 == "Dissasembly")
{
ui->hexSideFrame_2->show();
ui->hexDisasTextEdit->setPlainText(";; Select some bytes on the left\n;; to see them disassembled");
}
else
{
ui->hexSideFrame_2->hide();
ui->hexDisasTextEdit->setPlainText(";; Select some bytes on the left\n;; to see them parsed here");
}
on_hexHexText_selectionChanged();
}
QString HexdumpWidget::normalize_addr(QString addr)

View File

@ -45,8 +45,6 @@ public slots:
QString normalizeAddr(QString addr);
void selectHexPreview();
void showOffsets(bool show);
void zoomIn(int range = 1);
@ -69,7 +67,7 @@ private:
void refresh(RVA addr = RVA_INVALID);
void appendHexdumpLines(int lines, bool top);
void removeHexdumpLines(int lines, bool top);
void selectHexPreview();
void updateHeaders();
std::array<QString, 3> fetchHexdump(RVA offset, RVA bytes);

View File

@ -368,6 +368,9 @@ QToolTip {
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentText">
<string>Dissasembly</string>
</property>
<item>
<property name="text">
<string>Dissasembly</string>
@ -574,8 +577,7 @@ QToolTip {
<number>0</number>
</property>
<property name="plainText">
<string>;; Select some bytes on the left
;; to see them disassembled</string>
<string/>
</property>
</widget>
</item>
@ -832,40 +834,13 @@ QToolTip {
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_22">
<property name="topMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="histogramLabel_2">
<property name="text">
<string>&lt;b&gt;Histogram&lt;/b&gt;</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>