DBG: fixed a small bug in cbRef*
GUI: added a 'Find Strings' button
This commit is contained in:
parent
3c67b77ec3
commit
9ce77e13cb
|
@ -744,6 +744,7 @@ static bool cbRefFind(DISASM* disasm, BASIC_INSTRUCTION_INFO* basicinfo, REFINFO
|
|||
GuiReferenceDeleteAllColumns();
|
||||
GuiReferenceAddColumn(2*sizeof(uint), "Address");
|
||||
GuiReferenceAddColumn(0, "Disassembly");
|
||||
GuiReferenceReloadData();
|
||||
return true;
|
||||
}
|
||||
bool found=false;
|
||||
|
@ -807,6 +808,7 @@ bool cbRefStr(DISASM* disasm, BASIC_INSTRUCTION_INFO* basicinfo, REFINFO* refinf
|
|||
GuiReferenceAddColumn(2*sizeof(uint), "Address");
|
||||
GuiReferenceAddColumn(64, "Disassembly");
|
||||
GuiReferenceAddColumn(0, "String");
|
||||
GuiReferenceReloadData();
|
||||
return true;
|
||||
}
|
||||
bool found=false;
|
||||
|
|
|
@ -127,6 +127,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
|||
connect(ui->actionReferences,SIGNAL(triggered()),this,SLOT(displayReferencesWidget()));
|
||||
connect(ui->actionThreads,SIGNAL(triggered()),this,SLOT(displayThreadsWidget()));
|
||||
connect(ui->actionSettings,SIGNAL(triggered()),this,SLOT(openSettings()));
|
||||
connect(ui->actionStrings,SIGNAL(triggered()),this,SLOT(findStrings()));
|
||||
|
||||
connect(Bridge::getBridge(), SIGNAL(updateWindowTitle(QString)), this, SLOT(updateWindowTitleSlot(QString)));
|
||||
connect(Bridge::getBridge(), SIGNAL(addRecentFile(QString)), this, SLOT(addRecentFile(QString)));
|
||||
|
@ -528,3 +529,9 @@ void MainWindow::setLastException(unsigned int exceptionCode)
|
|||
{
|
||||
lastException=exceptionCode;
|
||||
}
|
||||
|
||||
void MainWindow::findStrings()
|
||||
{
|
||||
DbgCmdExec("strref");
|
||||
displayReferencesWidget();
|
||||
}
|
||||
|
|
|
@ -60,6 +60,7 @@ public slots:
|
|||
void openSettings();
|
||||
void addRecentFile(QString file);
|
||||
void setLastException(unsigned int exceptionCode);
|
||||
void findStrings();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
|
|
|
@ -137,6 +137,8 @@
|
|||
<addaction name="actionThreads"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionScylla"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionStrings"/>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
<widget class="QToolBar" name="cmdBar">
|
||||
|
@ -483,6 +485,18 @@
|
|||
<string>Settings</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionStrings">
|
||||
<property name="icon">
|
||||
<iconset resource="../../resource.qrc">
|
||||
<normaloff>:/icons/images/strings.png</normaloff>:/icons/images/strings.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Find Strings</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>&Find Strings</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 279 B |
|
@ -29,5 +29,6 @@
|
|||
<file>images/search.png</file>
|
||||
<file>images/arrow-threads.png</file>
|
||||
<file>images/settings.png</file>
|
||||
<file>images/strings.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in New Issue