PresentationApp/qml/songEdit.qml

266 lines
7.8 KiB
QML
Raw Normal View History

2016-04-18 10:24:24 -07:00
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import QtQuick.Dialogs 1.2
2016-04-18 10:24:24 -07:00
ApplicationWindow {
minimumHeight: 480
minimumWidth: 640
2016-04-18 10:24:24 -07:00
ColorDialog {
id: textClrDialog
//objectname: "textClrDialog"
title: "Please choose a color for the text"
showAlphaChannel: true
}
ColorDialog {
id: outlineClrDialog
//objectname: "outlineClrDialog"
title: "Please choose a color for the text"
showAlphaChannel: true
}
2016-04-18 10:24:24 -07:00
menuBar: MenuBar {
Menu {
title: "&File"
MenuItem {
text: "Close"
}
}
Menu {
title: "&Edit"
MenuItem {
text: "quick edit"
objectName: "mnuEdit"
}
}
Menu {
title: "Window"
MenuItem {
text: "Display"
objectName: "mnuDisplay"
}
}
Menu {
title: "&Help"
MenuItem {
//action: aboutAction
2016-04-18 10:24:24 -07:00
}
}
}
2016-04-20 10:45:52 -07:00
RowLayout {
id: rowLayout1
enabled: true
smooth: true
antialiasing: true
anchors.fill: parent
2016-04-18 10:24:24 -07:00
RowLayout {
id: rowlayout3
Layout.fillHeight: true
Layout.alignment: Qt.AlignTop
Layout.maximumWidth: 225
ColumnLayout {
id: columnlayout2
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
Layout.fillHeight: true
Label {
id: label1
text: qsTr("Label")
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
2016-04-18 10:24:24 -07:00
}
ListView {
id: listView1
clip: true
highlight: Rectangle {
color: "lightsteelblue"
radius: 5
}
width: 110
Layout.fillHeight: true
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
focus: true
keyNavigationWraps: true
boundsBehavior: Flickable.StopAtBounds
model: ListModel {
ListElement {
name: "v1"
}
ListElement {
name: "v2"
}
ListElement {
name: "v3"
}
ListElement {
name: "v4"
}
ListElement {
name: "v5"
}
}
delegate: Item {
x: 5
width: 80
height: 40
Text {
text: name
anchors.verticalCenter: parent.verticalCenter
font.bold: true
}
}
2016-04-18 10:24:24 -07:00
}
2016-04-20 10:45:52 -07:00
}
ColumnLayout {
id: columnlayout3
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
Layout.fillHeight: true
Label {
id: label2
text: qsTr("Label")
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
}
ListView {
id: listView2
clip: true
highlight: Rectangle {
color: "lightsteelblue"
radius: 5
}
width: 110
Layout.fillHeight: true
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
boundsBehavior: Flickable.StopAtBounds
model: ListModel {
ListElement {
name: "v1"
}
ListElement {
name: "v2"
}
ListElement {
name: "v3"
}
ListElement {
name: "v4"
}
ListElement {
name: "v5"
}
}
delegate: Item {
x: 5
width: 80
height: 40
Text {
text: name
anchors.verticalCenter: parent.verticalCenter
font.bold: true
}
}
2016-04-18 10:24:24 -07:00
}
2016-04-20 10:45:52 -07:00
}
}
ColumnLayout {
id: columnlayout4
Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
Layout.fillHeight: true
RowLayout {
id: rowLayout3
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
Layout.maximumHeight: 30
Layout.minimumHeight: 30
Layout.preferredHeight: 30
Layout.fillWidth: true
ToolButton {
id: textColorPicker
objectName: "textColorPicker"
text: "Text Color"
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
tooltip: "Pick the color of the text"
2016-04-18 10:24:24 -07:00
}
ToolButton {
id: outlineColorPicker
objectName: "outlineColorPicker"
text: "Outline Color"
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
tooltip: "Pick the color of the text outline"
2016-04-18 10:24:24 -07:00
}
ComboBox {
id: fontPicker
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
objectName: "fontPicker"
2016-04-18 10:24:24 -07:00
}
SpinBox {
id: fontSize
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
objectName: "fontSize"
maximumValue: 1000
value: 1
suffix: "Pt"
2016-04-18 10:24:24 -07:00
}
SpinBox {
id: outlineSize
stepSize: 0.1
decimals: 1
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
objectName: "outlineSize"
maximumValue: 10
value: 1
2016-04-18 10:24:24 -07:00
}
}
RowLayout {
id: rowLayout2
Layout.preferredHeight: 30
Layout.maximumHeight: 30
Layout.minimumHeight: 30
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
Layout.fillHeight: true
Layout.fillWidth: true
ComboBox {
id: versePicker
objectName: "versePicker"
}
ComboBox {
id: imgPicker
objectName: "imgPicker"
2016-04-20 10:45:52 -07:00
}
2016-04-18 10:24:24 -07:00
}
TextArea {
id: textEdit1
width: 80
height: 20
text: qsTr("Text Edit")
textFormat: Text.AutoText
Layout.fillHeight: true
Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
font.pixelSize: 12
selectByKeyboard: true
selectByMouse: true
}
2016-04-18 10:24:24 -07:00
}
}
}