-
Couldn't load subscription status.
- Fork 2
About Me and the removal of side drawer.[CPP-166][CPP-274] #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
19737e0
bb9176c
6022c83
fce5cf2
53d4e02
f56f921
b55d1f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ import QtQuick 2.6 | |
| pragma Singleton | ||
|
|
||
| QtObject { | ||
| property string consoleVersion: "0.0.0" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any ideas on how we can update this in the future? Can we pull in the version from a file or console resource? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have it tied to when it is provided in the Update tab. So would show as 0.0.0 until the first connection. Maybe I should disable this button before the first connection as well? Currently our version.txt file is not created in the resources folder so that would need to be changed for us to get it available before first connection. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would pretty odd to require a customer to connect to a device just to see about information. The version information definitely needs to be accessible without that. Why is knowing the current version of the app dependent on connecting to a device? That seems super awkward. |
||
| property int currentRefreshRate: 5 // 5 Hz | ||
| property bool useOpenGL: true | ||
| property int initialMainTabIndex: 0 // Tracking | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| import "Constants" | ||
| import "LogoPopupComponents" as LogoPopupComponents | ||
| import QtQuick 2.5 | ||
| import QtQuick.Controls 2.15 | ||
| import QtQuick.Layouts 1.15 | ||
|
|
||
| Item { | ||
| function open() { | ||
| if (!dialog.visible) | ||
| dialog.open(); | ||
|
|
||
| } | ||
|
|
||
| Dialog { | ||
| id: dialog | ||
|
|
||
| width: parent.width / 2 | ||
| height: parent.height - Constants.logoPopup.heightPadding | ||
| anchors.centerIn: parent | ||
| standardButtons: Dialog.Close | ||
|
|
||
| ColumnLayout { | ||
| anchors.fill: parent | ||
|
|
||
| TabBar { | ||
| id: logoPopupBar | ||
|
|
||
| z: Constants.commonChart.zAboveCharts | ||
| Layout.fillWidth: true | ||
| Layout.preferredHeight: Constants.tabBarHeight | ||
|
|
||
| Repeater { | ||
| model: ["About", "Licenses"] | ||
|
|
||
| TabButton { | ||
| text: modelData | ||
| width: implicitWidth | ||
| } | ||
|
|
||
| } | ||
|
|
||
| } | ||
|
|
||
| StackLayout { | ||
| currentIndex: logoPopupBar.currentIndex | ||
| Layout.fillWidth: true | ||
| Layout.fillHeight: true | ||
|
|
||
| LogoPopupComponents.AboutMe { | ||
| } | ||
|
|
||
| LogoPopupComponents.Licenses { | ||
| } | ||
|
|
||
| } | ||
|
|
||
| } | ||
|
|
||
| } | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| import "../Constants" | ||
| import QtQuick 2.5 | ||
| import QtQuick.Controls 2.15 | ||
| import QtQuick.Layouts 1.15 | ||
|
|
||
| ColumnLayout { | ||
| Item { | ||
| Layout.fillWidth: true | ||
| Layout.fillHeight: true | ||
|
|
||
| Image { | ||
| anchors.centerIn: parent | ||
| height: Constants.logoPopup.aboutMe.logoWidth | ||
| width: Constants.logoPopup.aboutMe.logoWidth | ||
| source: Constants.icons.swiftLogoPath | ||
| } | ||
|
|
||
| } | ||
|
|
||
| Label { | ||
| Layout.alignment: Qt.AlignHCenter | ||
| text: "Swift Navigation Console " + Globals.consoleVersion | ||
| font.pointSize: Constants.logoPopup.aboutMe.titlePointSize | ||
| font.bold: true | ||
| } | ||
|
|
||
| Label { | ||
| Layout.alignment: Qt.AlignHCenter | ||
| text: Constants.logoPopup.aboutMe.copyrightText | ||
| font.pointSize: Constants.logoPopup.aboutMe.secondaryPointSize | ||
| } | ||
|
|
||
| Label { | ||
| readonly property string website: Constants.logoPopup.aboutMe.supportWebsite | ||
|
|
||
| Layout.alignment: Qt.AlignHCenter | ||
| text: "Find help at the Swift Navigation <a href='" + website + "'>support portal</a>" | ||
| font.pointSize: Constants.logoPopup.aboutMe.secondaryPointSize | ||
| onLinkActivated: { | ||
| Qt.openUrlExternally(website); | ||
| } | ||
| } | ||
|
|
||
| Label { | ||
| Layout.alignment: Qt.AlignHCenter | ||
| text: "Learn more at the <a href='" + Constants.logoPopup.aboutMe.website + "'>Swift Navigation website</a>" | ||
| font.pointSize: Constants.logoPopup.aboutMe.secondaryPointSize | ||
| onLinkActivated: { | ||
| Qt.openUrlExternally(Constants.logoPopup.aboutMe.website); | ||
| } | ||
| } | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| import "../Constants" | ||
| import QtQuick 2.5 | ||
| import QtQuick.Controls 2.15 | ||
| import QtQuick.Layouts 1.15 | ||
|
|
||
| ColumnLayout { | ||
| ComboBox { | ||
| id: licenses | ||
|
|
||
| Layout.preferredHeight: Constants.logoPopup.licenses.dropdownHeight | ||
| Layout.preferredWidth: parent.width / 2 | ||
| Layout.alignment: Qt.AlignHCenter | ||
| model: [Constants.logoPopup.licenses.robotoFontTabLabel, Constants.logoPopup.licenses.fontAwesomeIconsTabLabel] | ||
| } | ||
|
|
||
| StackLayout { | ||
| currentIndex: licenses.currentIndex | ||
| Layout.fillWidth: true | ||
| Layout.fillHeight: true | ||
| Layout.alignment: Qt.AlignHCenter | ||
|
|
||
| ScrollView { | ||
| ScrollBar.vertical.policy: ScrollBar.AlwaysOn | ||
|
|
||
| TextArea { | ||
| id: robotoFontTextArea | ||
|
|
||
| readOnly: true | ||
| activeFocusOnPress: false | ||
| horizontalAlignment: TextEdit.AlignJustify | ||
| selectByKeyboard: true | ||
| selectByMouse: true | ||
| } | ||
|
|
||
| } | ||
|
|
||
| ScrollView { | ||
| ScrollBar.vertical.policy: ScrollBar.AlwaysOn | ||
|
|
||
| TextArea { | ||
| id: fontAwesomeTextArea | ||
|
|
||
| readOnly: true | ||
| activeFocusOnPress: false | ||
| horizontalAlignment: TextEdit.AlignJustify | ||
| selectByKeyboard: true | ||
| selectByMouse: true | ||
| } | ||
|
|
||
| } | ||
|
|
||
| } | ||
|
|
||
| Timer { | ||
| interval: 1 | ||
| running: true | ||
| repeat: false | ||
| onTriggered: { | ||
| Utils.readTextFile(Constants.logoPopup.licenses.robotoFontLicensePath, robotoFontTextArea); | ||
| Utils.readTextFile(Constants.logoPopup.licenses.fontAwesomeIconsLicensePath, fontAwesomeTextArea); | ||
| } | ||
| } | ||
|
|
||
| } |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preparing for the future I see 😎