Warning, /rolisteam/rolisteam/src/libraries/mindmap/resources/qml/NodeSettingPopup.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 0002 import QtQuick.Controls 0003 import QtQuick.Layouts 0004 import QtQuick.Controls.Universal 0005 import mindmap 0006 0007 Popup { 0008 id: _root 0009 modal: true 0010 property QtObject node 0011 required property MindMapController ctrl 0012 ScrollView { 0013 id: flickable 0014 anchors.fill: parent 0015 contentWidth: mainLyt.implicitWidth+30 0016 contentHeight: mainLyt.implicitHeight 0017 ScrollBar.vertical.policy: ScrollBar.AlwaysOn 0018 clip: true 0019 ColumnLayout { 0020 id: mainLyt 0021 spacing: 0 0022 0023 GridLayout { 0024 id: info 0025 columns: 1 0026 Layout.fillWidth: true 0027 Layout.rightMargin: 30 0028 Label { 0029 text: qsTr("Description: ") 0030 } 0031 ScrollView { 0032 id: view 0033 Layout.rowSpan: 3 0034 Layout.fillWidth: true 0035 TextArea { 0036 implicitHeight: 150 0037 placeholderText: qsTr("Description") 0038 text: _root.node ? _root.node.description : "" 0039 onEditingFinished: _root.node.description = text 0040 } 0041 } 0042 Label { 0043 text: qsTr("tags:") 0044 } 0045 TextField { 0046 text:_root.node ? _root.node.tagsText : "" 0047 Layout.fillWidth: true 0048 onEditingFinished: _root.node.tagsText = text 0049 } 0050 Label { 0051 text: qsTr("Action:") 0052 } 0053 RowLayout { 0054 Layout.fillWidth: true 0055 Button { 0056 text: qsTr("Remove Avatar") 0057 onClicked: _root.ctrl.removeImageFor(_root.node.id) 0058 } 0059 } 0060 } 0061 0062 GroupBox { 0063 id: styleTab 0064 title: qsTr("Node Styles") 0065 Layout.fillWidth: true 0066 Layout.fillHeight: true 0067 Layout.rightMargin: 30 0068 GridLayout { 0069 id: grid 0070 columns: 3 0071 anchors.fill: parent 0072 Repeater { 0073 model: _root.ctrl.styleModel 0074 Button { 0075 id: control 0076 Layout.preferredWidth: 120 0077 Layout.preferredHeight: 30 0078 0079 background: Rectangle { 0080 radius: 8 0081 border.width: 1 0082 border.color: "black" 0083 gradient: Gradient { 0084 GradientStop { position: 0.0; color: control.pressed ? colorTwo : colorOne }// 0085 GradientStop { position: 1.0; color: control.pressed ? colorOne : colorTwo }// 0086 } 0087 0088 } 0089 contentItem: Text { 0090 color: textColor 0091 text: qsTr("Text") 0092 horizontalAlignment: Text.AlignHCenter 0093 } 0094 onClicked: { 0095 _root.node.styleIndex = index 0096 _root.close() 0097 } 0098 } 0099 } 0100 } 0101 } 0102 } 0103 } 0104 0105 }