2017-09-05 11:06:20 -07:00
|
|
|
/*
|
|
|
|
* Copyright 2017 Jos van den Oever <jos@vandenoever.info>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License or (at your option) version 3 or any later version
|
|
|
|
* accepted by the membership of KDE e.V. (or its successor approved
|
|
|
|
* by the membership of KDE e.V.), which shall act as a proxy
|
|
|
|
* defined in Section 14 of version 3 of the license.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2017-08-12 06:16:10 -07:00
|
|
|
import QtQuick 2.6
|
|
|
|
import QtQml.Models 2.2
|
|
|
|
import QtQuick.Controls 1.5
|
2017-08-16 15:11:08 -07:00
|
|
|
import QtQuick.Layouts 1.3
|
2017-08-12 06:16:10 -07:00
|
|
|
|
|
|
|
ApplicationWindow {
|
2017-08-20 14:36:33 -07:00
|
|
|
id: application
|
2017-09-01 16:34:32 -07:00
|
|
|
property string initialTab: "style"
|
|
|
|
property int qtquickIndex: 0
|
2017-09-02 04:14:20 -07:00
|
|
|
property var processes: ListModel {
|
|
|
|
ListElement {
|
|
|
|
name: "init"
|
|
|
|
}
|
|
|
|
}
|
2017-09-01 16:34:32 -07:00
|
|
|
onInitialTabChanged: {
|
|
|
|
for (var i = 0; i < tabView.count; ++i) {
|
|
|
|
if (tabView.getTab(i).title === initialTab) {
|
2017-09-02 04:14:20 -07:00
|
|
|
tabView.currentIndex = i
|
2017-09-01 16:34:32 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-09-01 15:32:35 -07:00
|
|
|
width: 640
|
|
|
|
height: 480
|
2017-08-12 06:16:10 -07:00
|
|
|
visible: true
|
|
|
|
ItemSelectionModel {
|
|
|
|
id: selectionModel
|
2017-08-23 16:55:37 -07:00
|
|
|
model: sortedFileSystem
|
2017-08-12 06:16:10 -07:00
|
|
|
}
|
2017-08-26 10:10:18 -07:00
|
|
|
ItemSelectionModel {
|
|
|
|
id: processSelection
|
|
|
|
model: processes
|
|
|
|
}
|
2017-09-02 04:14:20 -07:00
|
|
|
statusBar: StatusBar {
|
|
|
|
StyleSwitcher {
|
|
|
|
anchors.right: parent.right
|
|
|
|
}
|
|
|
|
}
|
2017-08-16 15:11:08 -07:00
|
|
|
TabView {
|
2017-08-23 16:55:37 -07:00
|
|
|
id: tabView
|
2017-08-12 06:16:10 -07:00
|
|
|
anchors.fill: parent
|
2017-08-16 15:11:08 -07:00
|
|
|
Tab {
|
|
|
|
title: "object"
|
2017-09-02 09:19:50 -07:00
|
|
|
Fibonacci {}
|
2017-08-12 06:16:10 -07:00
|
|
|
}
|
2017-08-16 15:11:08 -07:00
|
|
|
Tab {
|
|
|
|
title: "list"
|
2017-09-02 09:19:50 -07:00
|
|
|
FibonacciList {}
|
2017-08-16 15:11:08 -07:00
|
|
|
}
|
|
|
|
Tab {
|
|
|
|
title: "tree"
|
2017-09-02 09:19:50 -07:00
|
|
|
FileTreeView {}
|
2017-08-12 06:16:10 -07:00
|
|
|
}
|
2017-08-23 16:55:37 -07:00
|
|
|
Tab {
|
|
|
|
title: "processes"
|
2017-09-02 09:19:50 -07:00
|
|
|
ProcessesTree {}
|
2017-08-23 16:55:37 -07:00
|
|
|
}
|
|
|
|
Tab {
|
|
|
|
id: chartTab
|
|
|
|
title: "chart"
|
2017-09-02 09:19:50 -07:00
|
|
|
DataAndChart {}
|
2017-08-23 16:55:37 -07:00
|
|
|
}
|
2017-08-12 06:16:10 -07:00
|
|
|
}
|
|
|
|
}
|