New attach & detach buttons for memory inspection panes

This commit is contained in:
Nav
2022-07-16 19:10:32 +01:00
parent e35fc3e8f2
commit 4c3083e992
7 changed files with 248 additions and 3 deletions

View File

@@ -59,6 +59,8 @@ namespace Bloom::Widgets
auto* subContainerLayout = this->container->findChild<QHBoxLayout*>("sub-container-layout");
this->manageMemoryRegionsButton = this->container->findChild<SvgToolButton*>("manage-memory-regions-btn");
this->detachPaneButton = this->container->findChild<SvgToolButton*>("detach-pane-btn");
this->attachPaneButton = this->container->findChild<SvgToolButton*>("attach-pane-btn");
this->hexViewerWidget = new HexViewerWidget(
this->targetMemoryDescriptor,
this->settings.hexViewerWidgetSettings,
@@ -69,7 +71,7 @@ namespace Bloom::Widgets
);
this->hexViewerWidget->setDisabled(true);
subContainerLayout->addWidget(this->hexViewerWidget);
subContainerLayout->insertWidget(1, this->hexViewerWidget);
QObject::connect(
this->manageMemoryRegionsButton,

View File

@@ -50,6 +50,8 @@ namespace Bloom::Widgets
QWidget* titleBar = nullptr;
SvgToolButton* manageMemoryRegionsButton = nullptr;
SvgToolButton* detachPaneButton = nullptr;
SvgToolButton* attachPaneButton = nullptr;
HexViewerWidget* hexViewerWidget = nullptr;
Targets::TargetState targetState = Targets::TargetState::UNKNOWN;

View File

@@ -94,6 +94,66 @@
</layout>
</widget>
</item>
<item alignment="Qt::AlignLeft">
<widget class="QWidget" name="rh-side-bar">
<property name="minimumWidth">
<number>30</number>
</property>
<property name="maximumWidth">
<number>30</number>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Expanding"/>
</property>
<layout class="QVBoxLayout" name="rh-side-bar-layout">
<property name="spacing">
<number>3</number>
</property>
<property name="margin">
<number>2</number>
</property>
<item>
<spacer name="vertical-spacer">
<property name="sizeHint">
<size>
<height>3</height>
</size>
</property>
</spacer>
</item>
<item alignment="Qt::AlignHCenter">
<widget class="SvgToolButton" name="detach-pane-btn">
<property name="svgFilePath">
<string>:/compiled/src/Insight/UserInterfaces/InsightWindow/Images/detach-pane-icon.svg</string>
</property>
<property name="toolTip">
<string>Detach Pane</string>
</property>
</widget>
</item>
<item alignment="Qt::AlignHCenter">
<widget class="SvgToolButton" name="attach-pane-btn">
<property name="svgFilePath">
<string>:/compiled/src/Insight/UserInterfaces/InsightWindow/Images/attach-pane-icon.svg</string>
</property>
<property name="toolTip">
<string>Attach Pane</string>
</property>
<property name="visible">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="vertical-spacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</item>