mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11:26:11 +00:00
parent
d05fdd3d44
commit
7f80f96c55
@ -578,6 +578,7 @@ void MainWindow::restoreDocks()
|
|||||||
tabifyDockWidget(dashboardDock, vTablesDock);
|
tabifyDockWidget(dashboardDock, vTablesDock);
|
||||||
|
|
||||||
// Add Stack, Registers and Backtrace vertically stacked
|
// Add Stack, Registers and Backtrace vertically stacked
|
||||||
|
addDockWidget(Qt::TopDockWidgetArea, stackDock);
|
||||||
splitDockWidget(stackDock, registersDock, Qt::Vertical);
|
splitDockWidget(stackDock, registersDock, Qt::Vertical);
|
||||||
tabifyDockWidget(stackDock, backtraceDock);
|
tabifyDockWidget(stackDock, backtraceDock);
|
||||||
// MemoryMap/Breakpoint/RegRefs widget goes in the center tabs
|
// MemoryMap/Breakpoint/RegRefs widget goes in the center tabs
|
||||||
@ -679,6 +680,19 @@ void MainWindow::resetToDefaultLayout()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::resetToDebugLayout()
|
void MainWindow::resetToDebugLayout()
|
||||||
|
{
|
||||||
|
CutterCore::MemoryWidgetType memType = core->getMemoryWidgetPriority();
|
||||||
|
hideAllDocks();
|
||||||
|
restoreDocks();
|
||||||
|
showDebugDocks();
|
||||||
|
core->raisePrioritizedMemoryWidget(memType);
|
||||||
|
|
||||||
|
auto restoreStackDock = qhelpers::forceWidth(stackDock->widget(), 400);
|
||||||
|
qApp->processEvents();
|
||||||
|
restoreStackDock.restoreWidth(stackDock->widget());
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::restoreDebugLayout()
|
||||||
{
|
{
|
||||||
CutterCore::MemoryWidgetType memType = core->getMemoryWidgetPriority();
|
CutterCore::MemoryWidgetType memType = core->getMemoryWidgetPriority();
|
||||||
bool isMaxim = isMaximized();
|
bool isMaxim = isMaximized();
|
||||||
@ -725,8 +739,13 @@ void MainWindow::on_actionFunctionsRename_triggered()
|
|||||||
|
|
||||||
void MainWindow::on_actionDefault_triggered()
|
void MainWindow::on_actionDefault_triggered()
|
||||||
{
|
{
|
||||||
|
if (core->currentlyDebugging) {
|
||||||
|
resetToDebugLayout();
|
||||||
|
} else {
|
||||||
resetToDefaultLayout();
|
resetToDefaultLayout();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief MainWindow::on_actionNew_triggered
|
* @brief MainWindow::on_actionNew_triggered
|
||||||
@ -944,7 +963,7 @@ void MainWindow::projectSaved(bool successfully, const QString &name)
|
|||||||
void MainWindow::changeDebugView()
|
void MainWindow::changeDebugView()
|
||||||
{
|
{
|
||||||
saveSettings();
|
saveSettings();
|
||||||
resetToDebugLayout();
|
restoreDebugLayout();
|
||||||
enableDebugWidgetsMenu(true);
|
enableDebugWidgetsMenu(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,6 +238,7 @@ private:
|
|||||||
|
|
||||||
void resetToDefaultLayout();
|
void resetToDefaultLayout();
|
||||||
void resetToDebugLayout();
|
void resetToDebugLayout();
|
||||||
|
void restoreDebugLayout();
|
||||||
|
|
||||||
void restoreDocks();
|
void restoreDocks();
|
||||||
void hideAllDocks();
|
void hideAllDocks();
|
||||||
|
Loading…
Reference in New Issue
Block a user