blob: 2965fa1f01396ce652e536a2ed36ebbe95069d8c (
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
  | 
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
	property Settings settings : Settings {
		category: "window"
		property string 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
	}
}
 
  |