diff options
author | Pierre GRANDIN <pgrandin@users.noreply.github.com> | 2017-06-04 19:56:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-04 19:56:30 -0700 |
commit | 825a26d1a3740a7d160bda468fd0a21dcd3d32b7 (patch) | |
tree | 2a16e57dffda5a66af99574d45a9b315066a85d0 /navit/gui/qt5_qml/skins/modern/MainMenu.qml | |
parent | d4173e24f4d29988516fc08cb3ccbd7d796005d4 (diff) | |
download | navit-825a26d1a3740a7d160bda468fd0a21dcd3d32b7.tar.gz |
Qt5 qml gui - POC update (#263)R7602
* Adding qt5/qml2 UI proof of concept
* Code cleanup
* Minor cleanup
* Apply coding style by clang-format -style=WebKit
For better diff tracking, I applied coding style once more.
* Removed useless QtQuick.Controls dependency
* QML2 : Minor work around POIs
* QML2 : Use real POIs icons
* More minor work around POIs.
This commit adds a draft of POI display, and the possibility to set a POI as destination.
Also sets the current position to wherever we clicked on the map, to simulate routing using the Demo vehicle
* Renamed default skin to 'modern'
This will allow us to easily create other skins and make the skin to load configurable
* Added town search capability
* Resize the QNavitQuick object when exiting the menu
* Minor work on the qml2 gui
* Implemented street search
* Disabled virtual keyboard until it's ready
* More modular default country code
* Block draw operations when displaying the menu
* Removed useless QML ressources
Diffstat (limited to 'navit/gui/qt5_qml/skins/modern/MainMenu.qml')
-rw-r--r-- | navit/gui/qt5_qml/skins/modern/MainMenu.qml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/navit/gui/qt5_qml/skins/modern/MainMenu.qml b/navit/gui/qt5_qml/skins/modern/MainMenu.qml new file mode 100644 index 000000000..748a5ab0f --- /dev/null +++ b/navit/gui/qt5_qml/skins/modern/MainMenu.qml @@ -0,0 +1,64 @@ +import QtQuick 2.2 +import QtQuick.Layouts 1.0 + +GridLayout { + id: gridLayout + anchors.fill: parent + columnSpacing: 4 + rowSpacing: 4 + rows: 3 + columns: 2 + + MainButton { + text: "Where To?" + Layout.fillHeight: true + Layout.fillWidth: true + icon: "icons/appbar.rocket.svg" + onClicked: { + menucontent.source = "destination.qml" + } + } + + MainButton { + text: "My position" + Layout.fillHeight: true + Layout.fillWidth: true + icon: "icons/appbar.location.checkin.svg" + } + + MainButton { + text: "Around Me" + Layout.fillHeight: true + Layout.fillWidth: true + icon: "icons/appbar.information.circle.svg" + onClicked: { + menucontent.source = "pois.qml" + } + } + + MainButton { + text: "Settings" + Layout.fillHeight: true + Layout.fillWidth: true + icon: "icons/appbar.cog.svg" + onClicked: { + menucontent.source = "settings.qml" + } + } + + MainButton { + text: "My route" + Layout.fillHeight: true + Layout.fillWidth: true + icon: "icons/appbar.book.list.svg" + } + + MainButton { + text: "Quit" + Layout.fillHeight: true + Layout.fillWidth: true + icon: "icons/appbar.power.svg" + onClicked: Qt.quit() + } + +} |