mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +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 {
|
||||
id: topBottomSplit
|
||||
RowLayout {
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
width: root.width
|
||||
|
||||
// Input Text Area -- Holds the input scripts to be executed
|
||||
Rectangle {
|
||||
id: inputArea
|
||||
|
||||
SplitView.fillHeight: true
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
|
||||
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
|
||||
PySyntaxHighlighter {
|
||||
id: syntaxHighlighter
|
||||
|
|
Loading…
Add table
Reference in a new issue