mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Added refresh to menu, omnibar and sidebar
This commit is contained in:
parent
1e35b1768c
commit
b7e9afc140
@ -1079,3 +1079,8 @@ void MainWindow::refreshVisibleDockWidgets()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionRefresh_contents_triggered()
|
||||
{
|
||||
this->refreshVisibleDockWidgets();
|
||||
}
|
||||
|
@ -120,6 +120,8 @@ public slots:
|
||||
|
||||
void on_backButton_clicked();
|
||||
|
||||
void refreshVisibleDockWidgets();
|
||||
|
||||
private slots:
|
||||
|
||||
void on_actionMem_triggered();
|
||||
@ -168,7 +170,7 @@ private slots:
|
||||
|
||||
void on_actionQuit_triggered();
|
||||
|
||||
void refreshVisibleDockWidgets();
|
||||
void on_actionRefresh_contents_triggered();
|
||||
|
||||
private:
|
||||
QDockWidget *asmDock;
|
||||
|
@ -159,7 +159,7 @@ border-top: 0px;
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>725</width>
|
||||
<height>23</height>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="defaultUp">
|
||||
@ -173,8 +173,8 @@ border-top: 0px;
|
||||
<rect>
|
||||
<x>2601</x>
|
||||
<y>136</y>
|
||||
<width>170</width>
|
||||
<height>214</height>
|
||||
<width>126</width>
|
||||
<height>177</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
@ -204,6 +204,7 @@ border-top: 0px;
|
||||
<property name="tabsOnTop" stdset="0">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<addaction name="actionRefresh_contents"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionDefaut"/>
|
||||
<addaction name="actionReset_settings"/>
|
||||
@ -910,6 +911,14 @@ background: rgb(64, 64, 64);</string>
|
||||
<string>Show/HIde Exports panel</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRefresh_contents">
|
||||
<property name="text">
|
||||
<string>Refresh contents</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Refresh contents</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources>
|
||||
|
@ -12,11 +12,13 @@ Omnibar::Omnibar(MainWindow *main, QWidget *parent) :
|
||||
main(main),
|
||||
commands({": Comments toggle",
|
||||
": Dashboard toggle",
|
||||
": Exports toggle",
|
||||
": Flags toggle",
|
||||
": Functions toggle",
|
||||
": Imports toggle",
|
||||
": Exports toggle",
|
||||
": Lock/Unlock interface",
|
||||
": Notepad toggle",
|
||||
": Refresh contents",
|
||||
": Relocs toggle",
|
||||
": Run Script",
|
||||
": Sections toggle",
|
||||
@ -24,7 +26,6 @@ Omnibar::Omnibar(MainWindow *main, QWidget *parent) :
|
||||
": Symbols toggle",
|
||||
": Tabs up/down",
|
||||
": Theme switch",
|
||||
": Lock/Unlock interface",
|
||||
": Web server start/stop"})
|
||||
{
|
||||
// QLineEdit basic features
|
||||
@ -135,6 +136,10 @@ void Omnibar::on_gotoEntry_returnPressed()
|
||||
{
|
||||
this->main->on_actionSymbols_triggered();
|
||||
}
|
||||
else if (str.contains("Refresh"))
|
||||
{
|
||||
this->main->refreshVisibleDockWidgets();
|
||||
}
|
||||
else if (str.contains("Relocs"))
|
||||
{
|
||||
this->main->on_actionReloc_triggered();
|
||||
|
@ -113,3 +113,8 @@ void SideBar::on_respButton_toggled(bool checked)
|
||||
{
|
||||
this->main->toggleResponsive(checked);
|
||||
}
|
||||
|
||||
void SideBar::on_refreshButton_clicked()
|
||||
{
|
||||
this->main->refreshVisibleDockWidgets();
|
||||
}
|
||||
|
@ -41,6 +41,8 @@ private slots:
|
||||
|
||||
void on_respButton_toggled(bool checked);
|
||||
|
||||
void on_refreshButton_clicked();
|
||||
|
||||
private:
|
||||
Ui::SideBar *ui;
|
||||
MainWindow *main;
|
||||
|
Loading…
Reference in New Issue
Block a user