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){
45 signal saveButtonClicked();
46 signal downloadButtonClicked();
47 signal browseButtonClicked();
48 signal optimalizeCheckboxChanged(bool Boolean);
49 signal stripCheckboxChanged(bool Boolean);
53 width: rectangle1.width
54 height: paintedHeight+5;
57 transformOrigin: Item.Left
58 anchors.horizontalCenter: parent.horizontalCenter
64 width:rectangle1.width
65 height: paintedHeight+5;
68 anchors.top: textPlugin.bottom
69 anchors.horizontalCenter: parent.horizontalCenter
75 width: rectangle1.width
76 height: paintedHeight+5;
79 anchors.top: textFrom.bottom
80 transformOrigin: Item.Left
81 anchors.horizontalCenter: parent.horizontalCenter
87 width: rectangle1.width
88 height: paintedHeight+5;
91 anchors.top: textTo.bottom
92 transformOrigin: Item.Left
93 anchors.horizontalCenter: parent.horizontalCenter
99 width: rectangle1.width
100 height: paintedHeight+5;
103 anchors.top: textDescription.bottom
104 transformOrigin: Item.Left
105 anchors.horizontalCenter: parent.horizontalCenter
110 id: optimalizeCheckbox
113 anchors.left: parent.left
114 anchors.leftMargin: 5
115 anchors.top: textInfo.bottom
116 onChanged: rectangle1.optimalizeCheckboxChanged(selected);
123 anchors.top: optimalizeCheckbox.bottom
125 anchors.horizontalCenter: optimalizeCheckbox.horizontalCenter
126 onChanged: rectangle1.stripCheckboxChanged(selected);
133 text: qsTr("Optimize")
134 anchors.left: optimalizeCheckbox.right
135 anchors.leftMargin: 5
136 anchors.verticalCenterOffset: 3
137 anchors.verticalCenter: optimalizeCheckbox.verticalCenter
145 text: qsTr("Strip accents")
146 anchors.verticalCenterOffset: 3
147 anchors.verticalCenter: stripCheckbox.verticalCenter
148 anchors.horizontalCenter: textOptimalize.horizontalCenter
155 textInButton: qsTr("Save")
156 anchors.top: stripCheckbox.bottom
157 anchors.topMargin: 10
158 anchors.right: parent.right
159 anchors.left: parent.left
160 onClicked: rectangle1.saveButtonClicked();
165 height: paintedHeight+5;
166 text: qsTr("Dictionary file: not selected")
168 anchors.top: parent.top
169 anchors.topMargin: 10
170 anchors.right: browseButton.left
171 anchors.rightMargin: 0
172 anchors.left: parent.left
173 anchors.leftMargin: 0
182 textInButton: qsTr("Browse");
183 anchors.top: parent.top
184 anchors.topMargin: 10
185 anchors.right: parent.right
186 anchors.rightMargin: 10
188 onClicked: rectangle1.browseButtonClicked();
195 textInButton: qsTr("Download");
196 anchors.right: parent.right
197 anchors.rightMargin: 10
198 anchors.top: browseButton.bottom
199 anchors.topMargin: 10
201 onClicked: rectangle1.downloadButtonClicked();
207 when: newPlugin==true
208 PropertyChanges { target: textPlugin; opacity: 0}
209 PropertyChanges { target: textFrom; opacity: 0}
210 PropertyChanges { target: textTo; opacity: 0}
211 PropertyChanges { target: textDescription; opacity: 0}
212 PropertyChanges { target: textInfo; opacity: 0}
214 PropertyChanges { target: textPath; opacity: 1}
215 PropertyChanges { target: browseButton; opacity: 1 }
216 PropertyChanges { target: downloadButton; opacity: 1}