GUI: added View->Comments/Labels/Bookmarks/Functions
This commit is contained in:
parent
46fba5ba85
commit
852275bad5
|
|
@ -137,6 +137,10 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
|||
connect(ui->actionCalls,SIGNAL(triggered()),this,SLOT(findModularCalls()));
|
||||
connect(ui->actionAppearance,SIGNAL(triggered()),this,SLOT(openAppearance()));
|
||||
connect(ui->actionPatches,SIGNAL(triggered()),this,SLOT(patchWindow()));
|
||||
connect(ui->actionComments,SIGNAL(triggered()),this,SLOT(displayComments()));
|
||||
connect(ui->actionLabels,SIGNAL(triggered()),this,SLOT(displayLabels()));
|
||||
connect(ui->actionBookmarks,SIGNAL(triggered()),this,SLOT(displayBookmarks()));
|
||||
connect(ui->actionFunctions,SIGNAL(triggered()),this,SLOT(displayFunctions()));
|
||||
|
||||
connect(Bridge::getBridge(), SIGNAL(updateWindowTitle(QString)), this, SLOT(updateWindowTitleSlot(QString)));
|
||||
connect(Bridge::getBridge(), SIGNAL(addRecentFile(QString)), this, SLOT(addRecentFile(QString)));
|
||||
|
|
@ -761,3 +765,35 @@ void MainWindow::patchWindow()
|
|||
mPatchDialog->showNormal();
|
||||
mPatchDialog->setFocus();
|
||||
}
|
||||
|
||||
void MainWindow::displayComments()
|
||||
{
|
||||
if(!DbgIsDebugging())
|
||||
return;
|
||||
DbgCmdExec("commentlist");
|
||||
displayReferencesWidget();
|
||||
}
|
||||
|
||||
void MainWindow::displayLabels()
|
||||
{
|
||||
if(!DbgIsDebugging())
|
||||
return;
|
||||
DbgCmdExec("labellist");
|
||||
displayReferencesWidget();
|
||||
}
|
||||
|
||||
void MainWindow::displayBookmarks()
|
||||
{
|
||||
if(!DbgIsDebugging())
|
||||
return;
|
||||
DbgCmdExec("bookmarklist");
|
||||
displayReferencesWidget();
|
||||
}
|
||||
|
||||
void MainWindow::displayFunctions()
|
||||
{
|
||||
if(!DbgIsDebugging())
|
||||
return;
|
||||
DbgCmdExec("functionlist");
|
||||
displayReferencesWidget();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,6 +80,10 @@ public slots:
|
|||
void runSelection();
|
||||
void getStrWindow(const QString title, QString* text);
|
||||
void patchWindow();
|
||||
void displayComments();
|
||||
void displayLabels();
|
||||
void displayBookmarks();
|
||||
void displayFunctions();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
|
|
|
|||
|
|
@ -54,6 +54,10 @@
|
|||
<addaction name="actionReferences"/>
|
||||
<addaction name="actionThreads"/>
|
||||
<addaction name="actionPatches"/>
|
||||
<addaction name="actionComments"/>
|
||||
<addaction name="actionLabels"/>
|
||||
<addaction name="actionBookmarks"/>
|
||||
<addaction name="actionFunctions"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuDebug">
|
||||
<property name="title">
|
||||
|
|
@ -536,6 +540,54 @@
|
|||
<string>Ctrl+P</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionComments">
|
||||
<property name="icon">
|
||||
<iconset resource="../../resource.qrc">
|
||||
<normaloff>:/icons/images/comments.png</normaloff>:/icons/images/comments.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Comments</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Alt+C</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLabels">
|
||||
<property name="icon">
|
||||
<iconset resource="../../resource.qrc">
|
||||
<normaloff>:/icons/images/labels.png</normaloff>:/icons/images/labels.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Labels</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+Alt+L</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionBookmarks">
|
||||
<property name="icon">
|
||||
<iconset resource="../../resource.qrc">
|
||||
<normaloff>:/icons/images/bookmarks.png</normaloff>:/icons/images/bookmarks.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Bookmarks</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+B</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFunctions">
|
||||
<property name="icon">
|
||||
<iconset resource="../../resource.qrc">
|
||||
<normaloff>:/icons/images/functions.png</normaloff>:/icons/images/functions.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Functions</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+F</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources>
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 645 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 372 B |
Binary file not shown.
|
After Width: | Height: | Size: 759 B |
|
|
@ -34,5 +34,9 @@
|
|||
<file>images/call.png</file>
|
||||
<file>images/document-binary.png</file>
|
||||
<file>images/patch.png</file>
|
||||
<file>images/bookmarks.png</file>
|
||||
<file>images/functions.png</file>
|
||||
<file>images/labels.png</file>
|
||||
<file>images/comments.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
|||
Loading…
Reference in New Issue