swissChili | 23958ca | 2022-02-21 19:23:34 -0800 | [diff] [blame^] | 1 | import QtQuick 2.5 |
| 2 | import QtQuick.Controls 2.15 |
| 3 | import QtQuick.Controls.Material 2.0 |
| 4 | import QtQuick.Layouts 1.3 |
| 5 | |
| 6 | ApplicationWindow { |
| 7 | id: root |
| 8 | width: 1080 |
| 9 | height: 720 |
| 10 | title: "Notebook" |
| 11 | visible: true |
| 12 | |
| 13 | Material.theme: Material.Dark |
| 14 | Material.accent: Material.Orange |
| 15 | |
| 16 | ColumnLayout { |
| 17 | id: column |
| 18 | anchors.fill: parent |
| 19 | |
| 20 | TabBar { |
| 21 | id: bar |
| 22 | |
| 23 | Layout.fillWidth: true |
| 24 | |
| 25 | TabButton { |
| 26 | text: "Example Workspace" |
| 27 | } |
| 28 | |
| 29 | TabButton { |
| 30 | text: "Another Workspace" |
| 31 | } |
| 32 | |
| 33 | TabButton { |
| 34 | text: "Testing" |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | SplitView { |
| 39 | id: split |
| 40 | Layout.fillHeight: true |
| 41 | Layout.fillWidth: true |
| 42 | orientation: Qt.Horizontal |
| 43 | |
| 44 | ListView { |
| 45 | id: codeEditor |
| 46 | SplitView.fillWidth: true |
| 47 | SplitView.minimumWidth: 400 |
| 48 | model: 3 |
| 49 | clip: true |
| 50 | |
| 51 | delegate: Cell { |
| 52 | width: codeEditor.width - 5 |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | Item { |
| 57 | id: variables |
| 58 | SplitView.minimumWidth: 240 |
| 59 | |
| 60 | Label { |
| 61 | anchors.centerIn: parent |
| 62 | text: "Vars" |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | } |