GUI: close all tabs button in reference view + fixed annoying next line selection in references
This commit is contained in:
parent
59038b5e94
commit
9d78dfbbd6
|
|
@ -201,7 +201,6 @@ void ReferenceView::toggleBreakpoint()
|
|||
}
|
||||
|
||||
DbgCmdExec(wCmd.toUtf8().constData());
|
||||
this->mSearchList->selectNext();
|
||||
}
|
||||
|
||||
void ReferenceView::toggleBookmark()
|
||||
|
|
|
|||
|
|
@ -59,10 +59,13 @@ BreakpointsView::BreakpointsView(QWidget* parent) : QWidget(parent)
|
|||
connect(Bridge::getBridge(), SIGNAL(updateBreakpoints()), this, SLOT(reloadData()));
|
||||
connect(mHardBPTable, SIGNAL(contextMenuSignal(const QPoint &)), this, SLOT(hardwareBPContextMenuSlot(const QPoint &)));
|
||||
connect(mHardBPTable, SIGNAL(doubleClickedSignal()), this, SLOT(doubleClickHardwareSlot()));
|
||||
connect(mHardBPTable, SIGNAL(enterPressedSignal()), this, SLOT(doubleClickHardwareSlot()));
|
||||
connect(mSoftBPTable, SIGNAL(contextMenuSignal(const QPoint &)), this, SLOT(softwareBPContextMenuSlot(const QPoint &)));
|
||||
connect(mSoftBPTable, SIGNAL(doubleClickedSignal()), this, SLOT(doubleClickSoftwareSlot()));
|
||||
connect(mSoftBPTable, SIGNAL(enterPressedSignal()), this, SLOT(doubleClickSoftwareSlot()));
|
||||
connect(mMemBPTable, SIGNAL(contextMenuSignal(const QPoint &)), this, SLOT(memoryBPContextMenuSlot(const QPoint &)));
|
||||
connect(mMemBPTable, SIGNAL(doubleClickedSignal()), this, SLOT(doubleClickMemorySlot()));
|
||||
connect(mMemBPTable, SIGNAL(enterPressedSignal()), this, SLOT(doubleClickMemorySlot()));
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -292,9 +295,7 @@ void BreakpointsView::enableDisableHardBPActionSlot()
|
|||
{
|
||||
StdTable* table = mHardBPTable;
|
||||
Breakpoints::toggleBPByDisabling(bp_hardware, table->getCellContent(table->getInitialSelection(), 0).toULongLong(0, 16));
|
||||
int_t sel = table->getInitialSelection();
|
||||
if(sel + 1 < table->getRowCount())
|
||||
table->setSingleSelection(sel + 1);
|
||||
table->selectNext();
|
||||
}
|
||||
|
||||
void BreakpointsView::doubleClickHardwareSlot()
|
||||
|
|
@ -402,9 +403,7 @@ void BreakpointsView::enableDisableSoftBPActionSlot()
|
|||
{
|
||||
StdTable* table = mSoftBPTable;
|
||||
Breakpoints::toggleBPByDisabling(bp_normal, table->getCellContent(table->getInitialSelection(), 0).toULongLong(0, 16));
|
||||
int_t sel = table->getInitialSelection();
|
||||
if(sel + 1 < table->getRowCount())
|
||||
table->setSingleSelection(sel + 1);
|
||||
table->selectNext();
|
||||
}
|
||||
|
||||
void BreakpointsView::doubleClickSoftwareSlot()
|
||||
|
|
@ -512,9 +511,7 @@ void BreakpointsView::enableDisableMemBPActionSlot()
|
|||
{
|
||||
StdTable* table = mMemBPTable;
|
||||
Breakpoints::toggleBPByDisabling(bp_memory, table->getCellContent(table->getInitialSelection(), 0).toULongLong(0, 16));
|
||||
int_t sel = table->getInitialSelection();
|
||||
if(sel + 1 < table->getRowCount())
|
||||
table->setSingleSelection(sel + 1);
|
||||
table->selectNext();
|
||||
}
|
||||
|
||||
void BreakpointsView::doubleClickMemorySlot()
|
||||
|
|
|
|||
|
|
@ -6,6 +6,14 @@ ReferenceManager::ReferenceManager(QWidget* parent) : QTabWidget(parent)
|
|||
setMovable(true);
|
||||
setTabsClosable(true);
|
||||
mCurrentReferenceView = 0;
|
||||
|
||||
//Close All Tabs
|
||||
mCloseAllTabs = new QPushButton(this);
|
||||
mCloseAllTabs->setIcon(QIcon(":/icons/images/close-all-tabs.png"));
|
||||
mCloseAllTabs->setToolTip("Close All Tabs");
|
||||
connect(mCloseAllTabs, SIGNAL(clicked()), this, SLOT(closeAllTabs()));
|
||||
setCornerWidget(mCloseAllTabs, Qt::TopLeftCorner);
|
||||
|
||||
connect(Bridge::getBridge(), SIGNAL(referenceInitialize(QString)), this, SLOT(newReferenceView(QString)));
|
||||
connect(this, SIGNAL(tabCloseRequested(int)), this, SLOT(closeTab(int)));
|
||||
}
|
||||
|
|
@ -30,3 +38,8 @@ void ReferenceManager::closeTab(int index)
|
|||
{
|
||||
removeTab(index);
|
||||
}
|
||||
|
||||
void ReferenceManager::closeAllTabs()
|
||||
{
|
||||
clear();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
#define REFERENCEMANAGER_H
|
||||
|
||||
#include <QTabWidget>
|
||||
#include <QPushButton>
|
||||
#include "ReferenceView.h"
|
||||
|
||||
class ReferenceManager : public QTabWidget
|
||||
|
|
@ -14,12 +15,14 @@ public:
|
|||
private slots:
|
||||
void newReferenceView(QString name);
|
||||
void closeTab(int index);
|
||||
void closeAllTabs();
|
||||
|
||||
signals:
|
||||
void showCpu();
|
||||
|
||||
private:
|
||||
ReferenceView* mCurrentReferenceView;
|
||||
QPushButton* mCloseAllTabs;
|
||||
};
|
||||
|
||||
#endif // REFERENCEMANAGER_H
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 544 B |
|
|
@ -49,5 +49,6 @@
|
|||
<file>images/changeargs.png</file>
|
||||
<file>images/arrow-skip.png</file>
|
||||
<file>images/topmost.png</file>
|
||||
<file>images/close-all-tabs.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
|||
Loading…
Reference in New Issue