mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:58:51 +02:00
Add Load Script button to RunningScripts Dialog
This commit is contained in:
parent
29d64373b4
commit
a86af6b07f
2 changed files with 47 additions and 9 deletions
|
@ -51,6 +51,8 @@ RunningScriptsWidget::RunningScriptsWidget(QWidget *parent) :
|
||||||
Application::getInstance(), &Application::reloadAllScripts);
|
Application::getInstance(), &Application::reloadAllScripts);
|
||||||
connect(ui->stopAllButton, &QPushButton::clicked,
|
connect(ui->stopAllButton, &QPushButton::clicked,
|
||||||
this, &RunningScriptsWidget::allScriptsStopped);
|
this, &RunningScriptsWidget::allScriptsStopped);
|
||||||
|
connect(ui->loadScriptButton, &QPushButton::clicked,
|
||||||
|
Application::getInstance(), &Application::loadDialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
RunningScriptsWidget::~RunningScriptsWidget()
|
RunningScriptsWidget::~RunningScriptsWidget()
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>323</width>
|
<width>323</width>
|
||||||
<height>651</height>
|
<height>894</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -49,7 +49,7 @@ background: transparent;</string>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>36</x>
|
<x>36</x>
|
||||||
<y>70</y>
|
<y>110</y>
|
||||||
<width>270</width>
|
<width>270</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -67,7 +67,7 @@ background: transparent;</string>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>36</x>
|
<x>36</x>
|
||||||
<y>230</y>
|
<y>270</y>
|
||||||
<width>111</width>
|
<width>111</width>
|
||||||
<height>35</height>
|
<height>35</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -88,12 +88,16 @@ padding-top: 3px;</string>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Reload all</string>
|
<string>Reload all</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<normaloff>../resources/images/reload.svg</normaloff>../resources/images/reload.svg</iconset>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QPushButton" name="stopAllButton">
|
<widget class="QPushButton" name="stopAllButton">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>160</x>
|
<x>160</x>
|
||||||
<y>230</y>
|
<y>270</y>
|
||||||
<width>93</width>
|
<width>93</width>
|
||||||
<height>35</height>
|
<height>35</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -111,12 +115,16 @@ padding-top: 3px;</string>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Stop all</string>
|
<string>Stop all</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<normaloff>../resources/images/stop.svg</normaloff>../resources/images/stop.svg</iconset>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QLabel" name="recentlyLoadedLabel">
|
<widget class="QLabel" name="recentlyLoadedLabel">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>36</x>
|
<x>36</x>
|
||||||
<y>280</y>
|
<y>320</y>
|
||||||
<width>265</width>
|
<width>265</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -133,7 +141,7 @@ font: bold 14pt;</string>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>36</x>
|
<x>36</x>
|
||||||
<y>590</y>
|
<y>630</y>
|
||||||
<width>211</width>
|
<width>211</width>
|
||||||
<height>41</height>
|
<height>41</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -178,7 +186,7 @@ font-size: 14pt;</string>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>36</x>
|
<x>36</x>
|
||||||
<y>70</y>
|
<y>110</y>
|
||||||
<width>271</width>
|
<width>271</width>
|
||||||
<height>51</height>
|
<height>51</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -197,7 +205,7 @@ font-size: 14pt;</string>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>30</x>
|
<x>30</x>
|
||||||
<y>300</y>
|
<y>340</y>
|
||||||
<width>272</width>
|
<width>272</width>
|
||||||
<height>280</height>
|
<height>280</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -211,7 +219,7 @@ font-size: 14pt;</string>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>30</x>
|
<x>30</x>
|
||||||
<y>88</y>
|
<y>128</y>
|
||||||
<width>272</width>
|
<width>272</width>
|
||||||
<height>161</height>
|
<height>161</height>
|
||||||
</rect>
|
</rect>
|
||||||
|
@ -221,6 +229,33 @@ font-size: 14pt;</string>
|
||||||
font-size: 14pt;</string>
|
font-size: 14pt;</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QPushButton" name="loadScriptButton">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>30</x>
|
||||||
|
<y>70</y>
|
||||||
|
<width>111</width>
|
||||||
|
<height>35</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="cursor">
|
||||||
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">background: #0e7077;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 4px;
|
||||||
|
font: bold 14pt;
|
||||||
|
padding-top: 3px;</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Load script</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<normaloff>../resources/images/plus.svg</normaloff>../resources/images/plus.svg</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
<zorder>widgetTitle</zorder>
|
<zorder>widgetTitle</zorder>
|
||||||
<zorder>currentlyRunningLabel</zorder>
|
<zorder>currentlyRunningLabel</zorder>
|
||||||
<zorder>recentlyLoadedLabel</zorder>
|
<zorder>recentlyLoadedLabel</zorder>
|
||||||
|
@ -231,6 +266,7 @@ font-size: 14pt;</string>
|
||||||
<zorder>noRunningScriptsLabel</zorder>
|
<zorder>noRunningScriptsLabel</zorder>
|
||||||
<zorder>reloadAllButton</zorder>
|
<zorder>reloadAllButton</zorder>
|
||||||
<zorder>stopAllButton</zorder>
|
<zorder>stopAllButton</zorder>
|
||||||
|
<zorder>loadScriptButton</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
|
Loading…
Reference in a new issue