blob: f4551208f00ff5182bc80477174020ec0c4311e4 (
plain)
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
|
import QtQuick 2.0
import QtQuick.Window 2.0
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1
import Qt.labs.settings 1.0
ApplicationWindow {
id: root
visible: true
Settings {
id: settings
category: "window"
property color background : "#161616"
}
color: settings.background
Component.onCompleted: {
terminalList.createItem();
terminalList.focusCurrent();
}
ColumnLayout {
anchors.fill: parent
TerminalList {
id: terminalList
state: state
Layout.fillHeight: true
Layout.fillWidth: true
}
CommandInput {
id: command
Layout.fillWidth: true
onExecuted: state.enterNormalMode()
}
}
StateHandler {
id: state
terminalList: terminalList
commandInput: command
}
}
|