2
import QtGraphicalEffects 1.0
3
import Ubuntu.Components 1.1
4
import QMLTermWidget 1.0
7
// objectName for functional testing purposes (autopilot-qt5)
10
applicationName: "com.ubuntu.terminal"
11
automaticOrientation: true
13
backgroundColor: terminal.backgroundColor
18
AuthenticationService {
29
height: parent.height - Qt.inputMethod.keyboardRectangle.height
32
onSessionFinished: Qt.quit()
33
initialWorkingDirectory: "$HOME"
34
colorScheme: "WhiteOnBlack"
38
onMouseMoveDetected: terminal.simulateMouseMove(x, y, button, buttons, modifiers);
39
onDoubleClickDetected: terminal.simulateMouseDoubleClick(x, y, button, buttons, modifiers);
40
onMousePressDetected: terminal.simulateMousePress(x, y, button, buttons, modifiers);
41
onMouseReleaseDetected: terminal.simulateMouseRelease(x, y, button, buttons, modifiers);
42
onMouseWheelDetected: terminal.simulateWheel(x, y, buttons, modifiers, angleDelta);
43
onSwipeUpDetected: terminal.simulateKeyPress(Qt.Key_Up, Qt.NoModifier, true, 0, "");
44
onSwipeDownDetected: terminal.simulateKeyPress(Qt.Key_Down, Qt.NoModifier, true, 0, "");
45
onTouchPress: terminal.simulateKeyPress(Qt.Key_Tab, Qt.NoModifier, true, 0, "");
49
font.family: "Ubuntu Mono"
51
Component.onCompleted: {
52
terminal.startShellProgram();
57
// Floating Keyboard button
59
anchors.bottom: parent.bottom
60
anchors.right: parent.right
61
anchors.margins: units.gu(2)
68
border.width: units.gu(1)
72
anchors.centerIn: parent
80
Qt.inputMethod.show();
81
terminal.forceActiveFocus();