Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
6d09cc7
Theme/Theme.qml is unused, remove
keithel-qt Nov 19, 2021
9421682
Raise SideNavBar highlight z order
keithel-qt Nov 19, 2021
6b9a4b2
Create base `Tab` type
keithel-qt Nov 19, 2021
910c7e5
Make global sub-tab bar at the view.qml level
keithel-qt Nov 19, 2021
5541caf
Add Tab name placeholder to TabInfoBar, style bar
keithel-qt Nov 20, 2021
9f2a2e9
Bind SideNavBar tab name to TabInfoBar's tabName
keithel-qt Nov 20, 2021
6e84dec
Do not add TabInfoBar separator if no current tab
keithel-qt Nov 20, 2021
48d8ec3
Add placeholders for branding on TabInfoBar right
keithel-qt Nov 20, 2021
c2a560d
Fix TabInfoBar on tabs that have no subtabs
keithel-qt Nov 20, 2021
d1def2e
Fix placement of first separator in TabInfoBar
keithel-qt Nov 20, 2021
5cabdd2
Update SolutionTab to use Controls 2's SplitView
keithel-qt Nov 20, 2021
b937762
Make format happy by adding newline to info-circle-solid.svg
keithel-qt Nov 23, 2021
827e95c
Add gradient to the TabInfoBar, and TabButtons
keithel-qt Nov 22, 2021
8e1d7c8
Make control background darker so gradient shows up
keithel-qt Nov 22, 2021
ca09cf2
Style the connect button with SwiftGrey background
keithel-qt Nov 22, 2021
600b927
Use a lighter grey for a disabled SideNavButton
keithel-qt Nov 22, 2021
8540c6a
Remove references to parent usage in SideNavButton
keithel-qt Nov 22, 2021
e4b058d
Improve connection button, add status indicator
keithel-qt Nov 24, 2021
c6c13d7
Push tabs in SolutionTab to the common subtab handler
keithel-qt Nov 24, 2021
6206af6
Push tabs in AdvancedTab to the common subtab handler
keithel-qt Nov 24, 2021
49e868c
Size sidebar buttons so they're wider than tall
keithel-qt Nov 24, 2021
5a08168
Change to anchors for toplevel column items.
keithel-qt Nov 30, 2021
2330129
Add auto-hide logic to TabInfoBar
keithel-qt Nov 30, 2021
7f19b6b
Use OutQuad for TabInfoBar easing type, open faster
keithel-qt Nov 30, 2021
5d3e3a3
Silence buttonGroup warning for connect button
keithel-qt Nov 30, 2021
b098487
Style logo, app name, and info button in TabInfoBar
keithel-qt Nov 30, 2021
2e57d7f
Add wide logo image to TabInfoBar, make info a button
keithel-qt Nov 30, 2021
20956a7
Stop TabInfoBar from hiding on tab with subtabs
keithel-qt Nov 30, 2021
a062b82
Only open TabInfoBar if mouse has lingered
keithel-qt Nov 30, 2021
0f5ce99
Add open button for TabInfoBar
keithel-qt Nov 30, 2021
2853ea9
Formatting fixes
keithel-qt Nov 30, 2021
f8a31e9
TabInfoBar open region 30 pixels high, cleanup
keithel-qt Nov 30, 2021
6eea7d6
Increase cases under which TabInfoBar autohides
keithel-qt Nov 30, 2021
16f59bc
Show about dialog on TabInfoBar info button press
keithel-qt Nov 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 16 additions & 48 deletions resources/AdvancedTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,66 +5,34 @@ import QtQuick 2.5
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.15

Item {
MainTab {
id: advancedTab

width: parent.width
height: parent.height
subTabNames: ["System Monitor", "IMU", "Magnetometer", "Networking", "Spectrum Analyzer", "INS"]
curSubTabIndex: Globals.initialMainTabIndex == 6 ? Globals.initialSubTabIndex : 0

TabBar {
id: advancedBar
StackLayout {
id: advancedBarLayout

z: Constants.commonChart.zAboveCharts
currentIndex: Globals.initialMainTabIndex == 6 ? Globals.initialSubTabIndex : 0
contentHeight: Constants.tabBarHeight

Repeater {
model: ["System Monitor", "IMU", "Magnetometer", "Networking", "Spectrum Analyzer", "INS"]

TabButton {
text: modelData
width: implicitWidth
}
anchors.fill: parent
currentIndex: curSubTabIndex

AdvancedTabComponents.AdvancedSystemMonitorTab {
}

}

Rectangle {
id: advancedTabBackground

width: parent.width
height: parent.height
anchors.top: advancedBar.bottom
anchors.bottom: advancedTab.bottom
Component.onCompleted: {
AdvancedTabComponents.AdvancedImuTab {
}

StackLayout {
id: advancedBarLayout

width: parent.width
height: parent.height
currentIndex: advancedBar.currentIndex

AdvancedTabComponents.AdvancedSystemMonitorTab {
}

AdvancedTabComponents.AdvancedImuTab {
}

AdvancedTabComponents.AdvancedMagnetometerTab {
}

AdvancedTabComponents.AdvancedNetworkingTab {
}
AdvancedTabComponents.AdvancedMagnetometerTab {
}

AdvancedTabComponents.AdvancedSpectrumAnalyzerTab {
}
AdvancedTabComponents.AdvancedNetworkingTab {
}

AdvancedTabComponents.AdvancedInsTab {
}
AdvancedTabComponents.AdvancedSpectrumAnalyzerTab {
}

AdvancedTabComponents.AdvancedInsTab {
}

}
Expand Down
5 changes: 1 addition & 4 deletions resources/BaselineTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ import QtQuick 2.5
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

Item {
MainTab {
id: baselineTab

width: parent.width
height: parent.height

SplitView {
id: baselineSplitView

Expand Down
13 changes: 9 additions & 4 deletions resources/Constants/Constants.qml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ QtObject {
readonly property real smallPointSize: 7
readonly property real mediumPointSize: 8
readonly property real largePointSize: 9
readonly property string infoPath: "qrc:///images/fontawesome/info-circle-solid.svg"
readonly property bool debugMode: false
readonly property color swiftGrey: "#323F48"
readonly property color swiftLightGrey: "#3C464F"
readonly property color swiftControlBackground: "#ECECEC"
readonly property color swiftControlBackground: "#E0E0E0"
readonly property color tabButtonUnselectedTextColor: "#767676"
readonly property color materialGrey: "dimgrey"
readonly property color swiftOrange: "#FF8300"
Expand Down Expand Up @@ -95,13 +96,16 @@ QtObject {
readonly property string settingsPath: "qrc:///images/fontawesome/cogs-solid.svg"
readonly property string updatePath: "qrc:///images/fontawesome/chevron-circle-up-solid.svg"
readonly property string advancedPath: "qrc:///images/fontawesome/lock-solid.svg"
readonly property real tabBarHeight: 45
readonly property real tabBarWidth: 50
readonly property real tabBarHeight: 48
readonly property real tabBarWidth: 62
readonly property int buttonPadding: 0
readonly property int buttonInset: 0
readonly property int separatorMargin: 10
readonly property int separatorHeight: 1
readonly property color backgroundColor: "#fafafa"
readonly property color backgroundColor: swiftGrey
readonly property color statusGoodColor: "#07DD01"
readonly property color statusOkColor: "yellow"
readonly property color statusBadColor: "red"
}

updateTab: QtObject {
Expand Down Expand Up @@ -572,6 +576,7 @@ QtObject {
readonly property string solidCirclePath: "qrc:///images/fontawesome/circle-solid.svg"
readonly property string squareSolidPath: "qrc:///images/fontawesome/square-solid.svg"
readonly property string swiftLogoPath: "qrc:///images/icon.png"
readonly property string swiftLogoWidePath: "qrc:///images/swiftLogoWide.svg"
}

insSettingsPopup: QtObject {
Expand Down
6 changes: 6 additions & 0 deletions resources/MainTab.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import QtQuick 2.5

Item {
property var subTabNames: []
property int curSubTabIndex: -1
}
11 changes: 11 additions & 0 deletions resources/MainTabs.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,43 @@ import QtQuick.Layouts 1.15
import SwiftConsole 1.0

Item {
id: mainTabs

property alias currentIndex: stackLayout.currentIndex
property var subTabNames: mainTabs.currentIndex < 0 ? [] : stackLayout.children[stackLayout.currentIndex].subTabNames
property int curSubTabIndex: -1

StackLayout {
id: stackLayout

anchors.fill: parent

TrackingTab {
curSubTabIndex: mainTabs.curSubTabIndex
}

SolutionTab {
curSubTabIndex: mainTabs.curSubTabIndex
}

BaselineTab {
curSubTabIndex: mainTabs.curSubTabIndex
}

ObservationTab {
curSubTabIndex: mainTabs.curSubTabIndex
}

SettingsTab {
curSubTabIndex: mainTabs.curSubTabIndex
}

UpdateTab {
curSubTabIndex: mainTabs.curSubTabIndex
}

AdvancedTab {
curSubTabIndex: mainTabs.curSubTabIndex
}

}
Expand Down
5 changes: 1 addition & 4 deletions resources/ObservationTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import SwiftConsole 1.0

Item {
MainTab {
id: observationTab

width: parent.width
height: parent.height

SplitView {
id: observationView

Expand Down
9 changes: 2 additions & 7 deletions resources/SettingsTab.qml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import "Constants"
import Qt.labs.platform 1.1 as LabsPlatform
import QtCharts 2.2
import QtQuick 2.7
import QtQuick.Controls 1.4
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Dialogs 1.3
import QtQuick.Layouts 1.15
import "SettingsTabComponents" as SettingsTabComponents
import SwiftConsole 1.0

Item {
MainTab {
id: settingsTab

function selectedRow() {
Expand Down Expand Up @@ -40,9 +38,6 @@ Item {
return text;
}

width: parent.width
height: parent.height

SettingsTabData {
id: settingsTabData
}
Expand Down
Loading