-
Notifications
You must be signed in to change notification settings - Fork 5
/
Bus.qml
63 lines (56 loc) · 1.79 KB
/
Bus.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import QtQuick 2.14
import QtQuick.Controls 2.14
Item {
id: bus
property var stackView
property string metricsPage: "Pages/Metrics/MetricsPage.qml";
signal openedMetricsPage(string path)
function openMetricsPage(path)
{
console.log("Bus: openMetricsPage " + path);
stackView.push(metricsPage, {name: "Metrics", path: path, bus: bus})
openedMetricsPage(path)
}
property string welcomePage: "Pages/Welcome/WelcomePage.qml";
signal openedWelcomePage()
function openWelcomePage()
{
console.log("Bus: openWelcomePage");
stackView.clear();
// stackView.push(welcomePage, {bus: bus})
// openedWelcomePage()
stackView.push(recorderPage, {bus: bus})
openedRecorderPage()
}
property string settingsPage: "Pages/Settings/SettingsPage.qml";
signal openedSettingsPage()
function openSettingsPage()
{
console.log("Bus: openSettingsPage");
stackView.push(settingsPage, {bus: bus})
openedSettingsPage()
}
property string recorderPage: "Pages/Recorder/RecorderPage.qml";
signal openedRecorderPage()
function openRecorderPage()
{
console.log("Bus: openRecorderPage");
stackView.push(recorderPage, {bus: bus})
openedRecorderPage()
}
function reopenRecorderPage(path)
{
console.log("Bus: reopenRecorderPage " + path);
stackView.pop();
stackView.push(recorderPage, {bus: bus, path: path, autostart: true})
openedRecorderPage()
}
property string resultsPage: "Pages/Results/ResultsPage.qml";
signal openedResultsPage()
function openResultsPage()
{
console.log("Bus: openResultsPage");
stackView.push(resultsPage, {bus: bus})
openedResultsPage()
}
}