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

Welcome page: added wizard buttons

Not connected to anything yet, may be necessary
to update the workspace names once new workspaces added.
This commit is contained in:
Dmytro Poplavskiy 2012-08-14 22:46:35 +10:00
parent 40da558131
commit 31cb4b7ea5
7 changed files with 28 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import QtQuick 1.1
Item {
id: welcomeButton
width: 116
width: Math.max(116, icon.width)
height: 116
property string baseIconName
@ -28,6 +28,7 @@ Item {
id: labelImage
source: "images/button-label.png"
opacity: 0
visible: labelText.text.length > 0 //don't show label bg without text
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: hoveredIcon.top

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -24,6 +24,28 @@ Rectangle {
smooth: true
}
Column {
id: wizarButtonsColumn
anchors {
top: parent.top
right: parent.right
margins: 8
}
spacing: 8
WelcomePageButton {
baseIconName: "bttn-vehwizard"
onClicked: welcomePlugin.openPage("VehWizard")
}
WelcomePageButton {
baseIconName: "bttn-txwizard"
onClicked: welcomePlugin.openPage("TxWizard")
}
}
Column {
anchors.horizontalCenter: parent.horizontalCenter
// distribute a vertical space between the icons blocks an community widget as:

View File

@ -24,5 +24,9 @@
<file>qml/images/scopes-off.png</file>
<file>qml/images/system-on.png</file>
<file>qml/images/system-off.png</file>
<file>qml/images/bttn-txwizard-on.png</file>
<file>qml/images/bttn-txwizard-off.png</file>
<file>qml/images/bttn-vehwizard-on.png</file>
<file>qml/images/bttn-vehwizard-off.png</file>
</qresource>
</RCC>