|
| 1 | +import QtQuick |
| 2 | +import QtQuick.Layouts |
| 3 | +import FluentUI |
| 4 | + |
| 5 | +Item { |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + Item{ |
| 10 | + id: leftScheduler |
| 11 | + width: 260 |
| 12 | + anchors{ |
| 13 | + left: parent.left |
| 14 | + top: parent.top |
| 15 | + bottom: parent.bottom |
| 16 | + } |
| 17 | + FluArea{ |
| 18 | + id: schedulerOpen |
| 19 | + anchors.top: parent.top |
| 20 | + width: parent.width |
| 21 | + height: 50 |
| 22 | + RowLayout{ |
| 23 | + anchors.fill: parent |
| 24 | + FluText{ |
| 25 | + text: 'Scheduler' |
| 26 | + Layout.leftMargin: 16 |
| 27 | + font: FluTextStyle.Subtitle |
| 28 | + Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft |
| 29 | + } |
| 30 | + FluToggleButton{ |
| 31 | + Layout.alignment: Qt.AlignVCenter | Qt.AlignRight |
| 32 | + Layout.rightMargin: 16 |
| 33 | + text:"Start" |
| 34 | + onClicked: { |
| 35 | + selected = !selected |
| 36 | + if(selected){ |
| 37 | + text = "Start" |
| 38 | + }else{ |
| 39 | + text = "Stop" |
| 40 | + } |
| 41 | + } |
| 42 | + } |
| 43 | + } |
| 44 | + } |
| 45 | + FluArea{ |
| 46 | + id: schedulerRunning |
| 47 | + anchors.top: schedulerOpen.bottom |
| 48 | + anchors.topMargin: 10 |
| 49 | + width: parent.width |
| 50 | + height: 120 |
| 51 | + ColumnLayout{ |
| 52 | + width: parent.width |
| 53 | + spacing: 8 |
| 54 | + FluText{ |
| 55 | + text: 'Running' |
| 56 | + Layout.leftMargin: 16 |
| 57 | + Layout.topMargin: 6 |
| 58 | + font: FluTextStyle.Subtitle |
| 59 | + } |
| 60 | + Rectangle{ |
| 61 | + width: schedulerRunning.width - 20 |
| 62 | + height: 2 |
| 63 | + Layout.alignment: Qt.AlignHCenter |
| 64 | + color: FluTheme.dark ? Qt.rgba(64/255, 68/255, 75/255, 1) : Qt.rgba(234/255, 236/255, 239/255, 1) |
| 65 | + radius: 2 |
| 66 | + } |
| 67 | + Taskmini{ |
| 68 | + Layout.leftMargin: 16 |
| 69 | + } |
| 70 | + } |
| 71 | + } |
| 72 | + FluArea{ |
| 73 | + id: schedulerPending |
| 74 | + anchors.top: schedulerRunning.bottom |
| 75 | + anchors.topMargin: 10 |
| 76 | + width: parent.width |
| 77 | + height: 240 |
| 78 | + ColumnLayout{ |
| 79 | + width: parent.width |
| 80 | + spacing: 8 |
| 81 | + FluText{ |
| 82 | + text: 'Pending' |
| 83 | + Layout.leftMargin: 16 |
| 84 | + Layout.topMargin: 6 |
| 85 | + font: FluTextStyle.Subtitle |
| 86 | + } |
| 87 | + Rectangle{ |
| 88 | + width: schedulerRunning.width - 20 |
| 89 | + height: 2 |
| 90 | + Layout.alignment: Qt.AlignHCenter |
| 91 | + color: FluTheme.dark ? Qt.rgba(64/255, 68/255, 75/255, 1) : Qt.rgba(234/255, 236/255, 239/255, 1) |
| 92 | + radius: 2 |
| 93 | + } |
| 94 | + Taskmini{ |
| 95 | + Layout.leftMargin: 16 |
| 96 | + } |
| 97 | + Taskmini{ |
| 98 | + Layout.leftMargin: 16 |
| 99 | + } |
| 100 | + Taskmini{ |
| 101 | + Layout.leftMargin: 16 |
| 102 | + } |
| 103 | + Taskmini{ |
| 104 | + Layout.leftMargin: 16 |
| 105 | + } |
| 106 | + } |
| 107 | + } |
| 108 | + FluArea{ |
| 109 | + id: schedulerWaiting |
| 110 | + anchors.top: schedulerPending.bottom |
| 111 | + anchors.topMargin: 10 |
| 112 | + anchors.bottom: parent.bottom |
| 113 | + anchors.bottomMargin: 0 |
| 114 | + width: parent.width |
| 115 | + ColumnLayout{ |
| 116 | + width: parent.width |
| 117 | + spacing: 8 |
| 118 | + FluText{ |
| 119 | + Layout.fillHeight: false |
| 120 | + text: 'Waiting' |
| 121 | + Layout.leftMargin: 16 |
| 122 | + Layout.topMargin: 6 |
| 123 | + font: FluTextStyle.Subtitle |
| 124 | + } |
| 125 | + Rectangle{ |
| 126 | + Layout.fillHeight: false |
| 127 | + width: schedulerPending.width - 20 |
| 128 | + height: 2 |
| 129 | + Layout.alignment: Qt.AlignHCenter |
| 130 | + color: FluTheme.dark ? Qt.rgba(64/255, 68/255, 75/255, 1) : Qt.rgba(234/255, 236/255, 239/255, 1) |
| 131 | + radius: 2 |
| 132 | + } |
| 133 | + Taskmini{ |
| 134 | + Layout.leftMargin: 16 |
| 135 | + Layout.fillHeight: false |
| 136 | + } |
| 137 | + } |
| 138 | + } |
| 139 | + } |
| 140 | + FluArea{ |
| 141 | + anchors.left: leftScheduler.right |
| 142 | + anchors.leftMargin: 10 |
| 143 | + height: parent.height |
| 144 | + anchors.right: parent.right |
| 145 | + } |
| 146 | +} |
0 commit comments