1
0
Fork 0

GUI: various window titles

This commit is contained in:
mrexodia 2016-09-27 17:14:53 +02:00
parent a309a96de9
commit e14f36e36d
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
8 changed files with 18 additions and 4 deletions

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
<string>Arguments</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">

View File

@ -24,6 +24,8 @@
CPUDisassembly::CPUDisassembly(CPUWidget* parent) : Disassembly(parent)
{
setWindowTitle("Disassembly");
// Set specific widget handles
mGoto = nullptr;
mParentCPUWindow = parent;

View File

@ -4,6 +4,7 @@
CPUInfoBox::CPUInfoBox(StdTable* parent) : StdTable(parent)
{
setWindowTitle("InfoBox");
enableMultiSelection(false);
setShowHeader(false);
addColumnAt(0, "", true);

View File

@ -7,6 +7,7 @@
CPUMultiDump::CPUMultiDump(CPUDisassembly* disas, int nbCpuDumpTabs, QWidget* parent)
: MHTabWidget(parent, true)
{
setWindowTitle("CPUMultiDump");
mMaxCPUDumpTabs = nbCpuDumpTabs;
mInitAllDumpTabs = false;
@ -15,7 +16,9 @@ CPUMultiDump::CPUMultiDump(CPUDisassembly* disas, int nbCpuDumpTabs, QWidget* pa
CPUDump* cpuDump = new CPUDump(disas, this);
cpuDump->loadColumnFromConfig(QString("CPUDump%1").arg(i + 1)); //TODO: needs a workaround because the columns change
connect(cpuDump, SIGNAL(displayReferencesWidget()), this, SLOT(displayReferencesWidgetSlot()));
this->addTabEx(cpuDump, DIcon("dump.png"), tr("Dump ") + QString::number(i + 1), QString("Dump ") + QString::number(i + 1));
auto nativeTitle = QString("Dump ") + QString::number(i + 1);
this->addTabEx(cpuDump, DIcon("dump.png"), tr("Dump ") + QString::number(i + 1), nativeTitle);
cpuDump->setWindowTitle(nativeTitle);
}
mCurrentCPUDump = dynamic_cast<CPUDump*>(currentWidget());
@ -23,7 +26,9 @@ CPUMultiDump::CPUMultiDump(CPUDisassembly* disas, int nbCpuDumpTabs, QWidget* pa
mWatch = new WatchView(this);
//mMaxCPUDumpTabs++;
this->addTabEx(mWatch, DIcon("animal-dog.png"), tr("Watch ") + QString::number(1), QString("Watch 1"));
auto nativeTitle = QString("Watch 1");
this->addTabEx(mWatch, DIcon("animal-dog.png"), tr("Watch ") + QString::number(1), nativeTitle);
mWatch->setWindowTitle(nativeTitle);
mWatch->loadColumnFromConfig("Watch1");
connect(this, SIGNAL(currentChanged(int)), this, SLOT(updateCurrentTabSlot(int)));

View File

@ -7,6 +7,7 @@
CPUSideBar::CPUSideBar(CPUDisassembly* Ptr, QWidget* parent) : QAbstractScrollArea(parent)
{
setWindowTitle("SideBar");
topVA = -1;
selectedVA = -1;
viewableRows = 0;

View File

@ -10,6 +10,7 @@
CPUStack::CPUStack(CPUMultiDump* multiDump, QWidget* parent) : HexDump(parent)
{
setWindowTitle("Stack");
setShowHeader(false);
int charwidth = getCharWidth();
ColumnDescriptor_t wColDesc;

View File

@ -178,6 +178,9 @@
<addaction name="menuHelp"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<property name="windowTitle">
<string>Toolbar</string>
</property>
<property name="movable">
<bool>false</bool>
</property>
@ -245,7 +248,7 @@
</widget>
<widget class="QToolBar" name="cmdBar">
<property name="windowTitle">
<string>toolBar</string>
<string>CommandBar</string>
</property>
<property name="movable">
<bool>false</bool>

View File

@ -447,6 +447,7 @@ static QAction* setupAction(const QString & text, RegistersView* this_object)
RegistersView::RegistersView(CPUWidget* parent, CPUMultiDump* multiDump) : QScrollArea(parent), mVScrollOffset(0), mParent(parent)
{
setWindowTitle("Registers");
mChangeViewButton = NULL;
switch(ConfigUint("Gui", "SIMDRegistersDisplayMode"))
{