mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 04:16:12 +00:00
Clean up Hexdump Sidebar (Fix #121)
This commit is contained in:
parent
096db4b7e4
commit
5b21f970ac
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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><b>Histogram</b></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>
|
||||
|
Loading…
Reference in New Issue
Block a user