6 height: textPlugin.height + textFrom.height + textTo.height + textDescription.height + textInfo.height +90
8 property bool newPlugin:false;
9 property int focusIndex:-1;
11 SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
12 color : myPalette.window;
15 function setPlugin(string){
16 textPlugin.text = qsTr("Plugin") + ": " + string;
18 function setFrom(string){
19 textFrom.text = qsTr("From") + ": " + string;
21 function setTo(string){
22 textTo.text = qsTr("To") + ": " + string;
24 function setDescription(string){
25 textDescription.text = qsTr("Description") + ": " + string;
27 function setInfo(string){
28 textInfo.text = string;
30 function setButtonText(string){
31 saveButton.textInButton=string;
33 function setCheckedOptimalize(bool){
34 optimalizeCheckbox.selected=bool;
36 function setCheckedStrip(bool){
37 stripCheckbox.selected=bool;
39 function setNew(bool){
42 function setPath(string){
48 browseButton.focus= true;
49 if(!browseButton.opacity)
53 downloadButton.focus=true;
54 if(!downloadButton.opacity)
58 optimalizeCheckbox.focus = true
59 if(!optimalizeCheckbox.enabled)
63 stripCheckbox.focus = true
64 if(!stripCheckbox.enabled)
68 saveButton.focus = true
69 if(!saveButton.enabled)
83 signal saveButtonClicked();
84 signal downloadButtonClicked();
85 signal browseButtonClicked();
86 signal optimalizeCheckboxChanged(bool Boolean);
87 signal stripCheckboxChanged(bool Boolean);
91 width: rectangle1.width
92 height: paintedHeight+5;
95 transformOrigin: Item.Left
96 anchors.horizontalCenter: parent.horizontalCenter
102 width:rectangle1.width
103 height: paintedHeight+5;
106 anchors.top: textPlugin.bottom
107 anchors.horizontalCenter: parent.horizontalCenter
113 width: rectangle1.width
114 height: paintedHeight+5;
117 anchors.top: textFrom.bottom
118 transformOrigin: Item.Left
119 anchors.horizontalCenter: parent.horizontalCenter
125 width: rectangle1.width
126 height: paintedHeight+5;
127 text: "Description: "
129 anchors.top: textTo.bottom
130 transformOrigin: Item.Left
131 anchors.horizontalCenter: parent.horizontalCenter
137 width: rectangle1.width
138 height: (paintedHeight+5)>150?150:paintedHeight+5;
141 anchors.top: textDescription.bottom
142 transformOrigin: Item.Left
143 anchors.horizontalCenter: parent.horizontalCenter
149 anchors.right: parent.right
150 anchors.left: parent.left
151 anchors.bottom: saveButton.bottom
152 anchors.top: optimalizeCheckbox.top
155 color: myPalette.window
156 anchors.topMargin: -2
160 id: optimalizeCheckbox
163 anchors.bottom: stripCheckbox.top
164 anchors.bottomMargin: 5
165 anchors.left: parent.left
166 anchors.leftMargin: 5
167 onChanged: rectangle1.optimalizeCheckboxChanged(selected);
168 onFocusChanged: if(focus) focusIndex=2;
175 anchors.bottom: saveButton.top
176 anchors.bottomMargin: 15
177 anchors.horizontalCenter: optimalizeCheckbox.horizontalCenter
178 onChanged: rectangle1.stripCheckboxChanged(selected);
179 onFocusChanged: if(focus) focusIndex=3;
186 text: qsTr("Optimize")
187 anchors.left: optimalizeCheckbox.right
188 anchors.leftMargin: 5
189 anchors.verticalCenterOffset: 3
190 anchors.verticalCenter: optimalizeCheckbox.verticalCenter
198 text: qsTr("Strip accents")
199 anchors.verticalCenterOffset: 3
200 anchors.verticalCenter: stripCheckbox.verticalCenter
201 anchors.horizontalCenter: textOptimalize.horizontalCenter
208 anchors.bottom: parent.bottom
209 textInButton: qsTr("Save")
210 anchors.right: parent.right
211 anchors.left: parent.left
212 onClicked: rectangle1.saveButtonClicked();
217 height: paintedHeight+5;
218 text: qsTr("Dictionary file: not selected")
220 anchors.top: parent.top
221 anchors.topMargin: 10
222 anchors.right: browseButton.left
223 anchors.rightMargin: 0
224 anchors.left: parent.left
225 anchors.leftMargin: 0
234 textInButton: qsTr("Browse");
235 anchors.top: parent.top
236 anchors.topMargin: 10
237 anchors.right: parent.right
238 anchors.rightMargin: 10
240 onClicked: rectangle1.browseButtonClicked();
247 textInButton: qsTr("Download");
248 anchors.right: parent.right
249 anchors.rightMargin: 10
250 anchors.top: browseButton.bottom
251 anchors.topMargin: 10
253 onClicked: rectangle1.downloadButtonClicked();
260 when: newPlugin==true
261 PropertyChanges { target: textPlugin; opacity: 0}
262 PropertyChanges { target: textFrom; opacity: 0}
263 PropertyChanges { target: textTo; opacity: 0}
264 PropertyChanges { target: textDescription; opacity: 0}
265 PropertyChanges { target: textInfo; opacity: 0}
267 PropertyChanges { target: textPath; opacity: 1}
268 PropertyChanges { target: browseButton; opacity: 1 }
269 PropertyChanges { target: downloadButton; opacity: 1}