1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-01 18:29:16 +01:00

OP-39 Changed to one single wizard button on the welcome page. KISS :)

This commit is contained in:
Fredrik Arvidsson 2012-09-20 23:08:09 +02:00
parent 8f8dd12615
commit 607497758f
5 changed files with 14 additions and 15 deletions

View File

@ -42,7 +42,7 @@ p, li { white-space: pre-wrap; }
<x>50</x> <x>50</x>
<y>180</y> <y>180</y>
<width>501</width> <width>501</width>
<height>61</height> <height>71</height>
</rect> </rect>
</property> </property>
<property name="text"> <property name="text">
@ -50,7 +50,7 @@ p, li { white-space: pre-wrap; }
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; } p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt; &lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:8pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt; color:#000000;&quot;&gt;The configuration created by the wizard contains settings that require a reboot of your controller. Please power cycle the controller before continuing.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> &lt;p align=&quot;center&quot; style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:10pt; color:#000000;&quot;&gt;The configuration created by the wizard contains settings that require a reboot of your controller. Please power cycle the controller before continuing. To power cycle the controller remove all batteries and the usb cable for at least 30 seconds.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -47,12 +47,12 @@ Rectangle {
anchors.verticalCenterOffset: -2 //it looks better aligned to icons grid anchors.verticalCenterOffset: -2 //it looks better aligned to icons grid
//hide the logo on the very small screen to fit the buttons //hide the logo on the very small screen to fit the buttons
visible: parent.availableWidth > width + parent.spacing + buttons.width visible: parent.availableWidth > width + parent.spacing + buttons.width + wizard.width
} }
Grid { Grid {
id: buttons id: buttons
columns: 4 columns: 3
spacing: 4 spacing: 4
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@ -74,11 +74,6 @@ Rectangle {
onClicked: welcomePlugin.openPage("System") onClicked: welcomePlugin.openPage("System")
} }
WelcomePageButton {
baseIconName: "bttn-vehwizard"
onClicked: welcomePlugin.triggerAction("SetupWizardPlugin.ShowSetupWizard")
}
WelcomePageButton { WelcomePageButton {
baseIconName: "scopes" baseIconName: "scopes"
label: "Scopes" label: "Scopes"
@ -96,13 +91,15 @@ Rectangle {
label: "Firmware" label: "Firmware"
onClicked: welcomePlugin.openPage("Firmware") onClicked: welcomePlugin.openPage("Firmware")
} }
} //icons grid
WelcomePageButton { WelcomePageButton {
baseIconName: "bttn-txwizard" id: wizard
onClicked: welcomePlugin.triggerAction("ConfigPlugin.ShowInputWizard") anchors.verticalCenter: parent.verticalCenter
baseIconName: "wizard"
onClicked: welcomePlugin.triggerAction("SetupWizardPlugin.ShowSetupWizard")
} }
} //icons grid
} // images row } // images row
CommunityPanel { CommunityPanel {

View File

@ -30,5 +30,7 @@
<file>qml/images/bttn-txwizard-off.png</file> <file>qml/images/bttn-txwizard-off.png</file>
<file>qml/images/bttn-vehwizard-on.png</file> <file>qml/images/bttn-vehwizard-on.png</file>
<file>qml/images/bttn-vehwizard-off.png</file> <file>qml/images/bttn-vehwizard-off.png</file>
<file>qml/images/wizard-off.png</file>
<file>qml/images/wizard-on.png</file>
</qresource> </qresource>
</RCC> </RCC>