6 height: textPlugin.height + textFrom.height + textTo.height + textDescription.height + textInfo.height +90
8 property bool newPlugin:false;
10 SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
11 color : myPalette.window;
13 function setPlugin(string){
14 textPlugin.text = qsTr("Plugin") + ": " + string;
16 function setFrom(string){
17 textFrom.text = qsTr("From") + ": " + string;
19 function setTo(string){
20 textTo.text = qsTr("To") + ": " + string;
22 function setDescription(string){
23 textDescription.text = qsTr("Description") + ": " + string;
25 function setInfo(string){
26 textInfo.text = string;
28 function setButtonText(string){
29 saveButton.textInButton=string;
31 function setCheckedOptimalize(bool){
32 optimalizeCheckbox.selected=bool;
34 function setCheckedStrip(bool){
35 stripCheckbox.selected=bool;
37 function setNew(bool){
40 function setPath(string){
41 console.log("new path");
46 signal saveButtonClicked();
47 signal downloadButtonClicked();
48 signal browseButtonClicked();
49 signal optimalizeCheckboxChanged(bool Boolean);
50 signal stripCheckboxChanged(bool Boolean);
54 width: rectangle1.width
55 height: paintedHeight+5;
58 transformOrigin: Item.Left
59 anchors.horizontalCenter: parent.horizontalCenter
65 width:rectangle1.width
66 height: paintedHeight+5;
69 anchors.top: textPlugin.bottom
70 anchors.horizontalCenter: parent.horizontalCenter
76 width: rectangle1.width
77 height: paintedHeight+5;
80 anchors.top: textFrom.bottom
81 transformOrigin: Item.Left
82 anchors.horizontalCenter: parent.horizontalCenter
88 width: rectangle1.width
89 height: paintedHeight+5;
92 anchors.top: textTo.bottom
93 transformOrigin: Item.Left
94 anchors.horizontalCenter: parent.horizontalCenter
100 width: rectangle1.width
101 height: paintedHeight+5;
104 anchors.top: textDescription.bottom
105 transformOrigin: Item.Left
106 anchors.horizontalCenter: parent.horizontalCenter
111 id: optimalizeCheckbox
114 anchors.left: parent.left
115 anchors.leftMargin: 5
116 anchors.top: textInfo.bottom
117 onChanged: rectangle1.optimalizeCheckboxChanged(selected);
124 anchors.top: optimalizeCheckbox.bottom
126 anchors.horizontalCenter: optimalizeCheckbox.horizontalCenter
127 onChanged: rectangle1.stripCheckboxChanged(selected);
134 text: qsTr("Optimize")
135 anchors.left: optimalizeCheckbox.right
136 anchors.leftMargin: 5
137 anchors.verticalCenterOffset: 3
138 anchors.verticalCenter: optimalizeCheckbox.verticalCenter
146 text: qsTr("Strip accents")
147 anchors.verticalCenterOffset: 3
148 anchors.verticalCenter: stripCheckbox.verticalCenter
149 anchors.horizontalCenter: textOptimalize.horizontalCenter
156 textInButton: qsTr("Save")
157 anchors.top: stripCheckbox.bottom
158 anchors.topMargin: 10
159 anchors.right: parent.right
160 anchors.left: parent.left
161 onClicked: rectangle1.saveButtonClicked();
166 height: paintedHeight+5;
167 text: qsTr("Dictionary file: not selected")
169 anchors.top: parent.top
170 anchors.topMargin: 10
171 anchors.right: browseButton.left
172 anchors.rightMargin: 0
173 anchors.left: parent.left
174 anchors.leftMargin: 0
183 textInButton: qsTr("Browse");
184 anchors.top: parent.top
185 anchors.topMargin: 10
186 anchors.right: parent.right
187 anchors.rightMargin: 10
189 onClicked: rectangle1.browseButtonClicked();
196 textInButton: qsTr("Download");
197 anchors.right: parent.right
198 anchors.rightMargin: 10
199 anchors.top: browseButton.bottom
200 anchors.topMargin: 10
202 onClicked: rectangle1.downloadButtonClicked();
208 when: newPlugin==true
209 PropertyChanges { target: textPlugin; opacity: 0}
210 PropertyChanges { target: textFrom; opacity: 0}
211 PropertyChanges { target: textTo; opacity: 0}
212 PropertyChanges { target: textDescription; opacity: 0}
213 PropertyChanges { target: textInfo; opacity: 0}
215 PropertyChanges { target: textPath; opacity: 1}
216 PropertyChanges { target: browseButton; opacity: 1 }
217 PropertyChanges { target: downloadButton; opacity: 1}