mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 18:06:31 +02:00
[ui] ScriptEditor: ScriptEditor gets a RowLayout
A Row Layout is more practical for using script editor with the current placement of meshroom GUI.
This commit is contained in:
parent
07309361ad
commit
8207e84a41
1 changed files with 35 additions and 38 deletions
|
@ -211,50 +211,16 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MSplitView {
|
RowLayout {
|
||||||
id: topBottomSplit
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
width: root.width
|
||||||
orientation: Qt.Vertical
|
|
||||||
|
|
||||||
// Output Text Area -- Shows the output for the executed script(s)
|
|
||||||
Rectangle {
|
|
||||||
id: outputArea
|
|
||||||
|
|
||||||
// Has a minimum height
|
|
||||||
SplitView.minimumHeight: 80
|
|
||||||
|
|
||||||
color: palette.base
|
|
||||||
|
|
||||||
Flickable {
|
|
||||||
width: parent.width
|
|
||||||
height: parent.height
|
|
||||||
contentWidth: width
|
|
||||||
contentHeight: ( output.lineCount + 5 ) * output.font.pixelSize // + 5 lines for buffer to be scrolled and visibility
|
|
||||||
|
|
||||||
ScrollBar.vertical: MScrollBar {}
|
|
||||||
|
|
||||||
TextArea.flickable: TextArea {
|
|
||||||
id: output
|
|
||||||
|
|
||||||
readOnly: true
|
|
||||||
selectByMouse: true
|
|
||||||
padding: 0
|
|
||||||
Layout.fillHeight: true
|
|
||||||
Layout.fillWidth: true
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
|
|
||||||
textFormat: Text.RichText
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Input Text Area -- Holds the input scripts to be executed
|
// Input Text Area -- Holds the input scripts to be executed
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: inputArea
|
id: inputArea
|
||||||
|
Layout.fillHeight: true
|
||||||
SplitView.fillHeight: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
color: palette.base
|
color: palette.base
|
||||||
|
|
||||||
|
@ -342,6 +308,37 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Output Text Area -- Shows the output for the executed script(s)
|
||||||
|
Rectangle {
|
||||||
|
id: outputArea
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
color: palette.base
|
||||||
|
|
||||||
|
Flickable {
|
||||||
|
width: parent.width
|
||||||
|
height: parent.height
|
||||||
|
contentWidth: width
|
||||||
|
contentHeight: ( output.lineCount + 5 ) * output.font.pixelSize // + 5 lines for buffer to be scrolled and visibility
|
||||||
|
|
||||||
|
ScrollBar.vertical: MScrollBar {}
|
||||||
|
|
||||||
|
TextArea.flickable: TextArea {
|
||||||
|
id: output
|
||||||
|
|
||||||
|
readOnly: true
|
||||||
|
selectByMouse: true
|
||||||
|
padding: 0
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
|
textFormat: Text.RichText
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Syntax Highlights for the Input Area for Python Based Syntax
|
// Syntax Highlights for the Input Area for Python Based Syntax
|
||||||
PySyntaxHighlighter {
|
PySyntaxHighlighter {
|
||||||
id: syntaxHighlighter
|
id: syntaxHighlighter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue