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){
44 signal saveButtonClicked();
45 signal downloadButtonClicked();
46 signal browseButtonClicked();
47 signal optimalizeCheckboxChanged(bool Boolean);
48 signal stripCheckboxChanged(bool Boolean);
52 width: rectangle1.width
53 height: paintedHeight+5;
56 transformOrigin: Item.Left
57 anchors.horizontalCenter: parent.horizontalCenter
63 width:rectangle1.width
64 height: paintedHeight+5;
67 anchors.top: textPlugin.bottom
68 anchors.horizontalCenter: parent.horizontalCenter
74 width: rectangle1.width
75 height: paintedHeight+5;
78 anchors.top: textFrom.bottom
79 transformOrigin: Item.Left
80 anchors.horizontalCenter: parent.horizontalCenter
86 width: rectangle1.width
87 height: paintedHeight+5;
90 anchors.top: textTo.bottom
91 transformOrigin: Item.Left
92 anchors.horizontalCenter: parent.horizontalCenter
98 width: rectangle1.width
99 height: (paintedHeight+5)>150?150:paintedHeight+5;
102 anchors.top: textDescription.bottom
103 transformOrigin: Item.Left
104 anchors.horizontalCenter: parent.horizontalCenter
110 anchors.right: parent.right
111 anchors.left: parent.left
112 anchors.bottom: saveButton.bottom
113 anchors.top: optimalizeCheckbox.top
116 color: myPalette.window
117 anchors.topMargin: -2
121 id: optimalizeCheckbox
124 anchors.bottom: stripCheckbox.top
125 anchors.bottomMargin: 5
126 anchors.left: parent.left
127 anchors.leftMargin: 5
128 onChanged: rectangle1.optimalizeCheckboxChanged(selected);
135 anchors.bottom: saveButton.top
136 anchors.bottomMargin: 15
137 anchors.horizontalCenter: optimalizeCheckbox.horizontalCenter
138 onChanged: rectangle1.stripCheckboxChanged(selected);
145 text: qsTr("Optimize")
146 anchors.left: optimalizeCheckbox.right
147 anchors.leftMargin: 5
148 anchors.verticalCenterOffset: 3
149 anchors.verticalCenter: optimalizeCheckbox.verticalCenter
157 text: qsTr("Strip accents")
158 anchors.verticalCenterOffset: 3
159 anchors.verticalCenter: stripCheckbox.verticalCenter
160 anchors.horizontalCenter: textOptimalize.horizontalCenter
167 anchors.bottom: parent.bottom
168 textInButton: qsTr("Save")
169 anchors.right: parent.right
170 anchors.left: parent.left
171 onClicked: rectangle1.saveButtonClicked();
176 height: paintedHeight+5;
177 text: qsTr("Dictionary file: not selected")
179 anchors.top: parent.top
180 anchors.topMargin: 10
181 anchors.right: browseButton.left
182 anchors.rightMargin: 0
183 anchors.left: parent.left
184 anchors.leftMargin: 0
193 textInButton: qsTr("Browse");
194 anchors.top: parent.top
195 anchors.topMargin: 10
196 anchors.right: parent.right
197 anchors.rightMargin: 10
199 onClicked: rectangle1.browseButtonClicked();
206 textInButton: qsTr("Download");
207 anchors.right: parent.right
208 anchors.rightMargin: 10
209 anchors.top: browseButton.bottom
210 anchors.topMargin: 10
212 onClicked: rectangle1.downloadButtonClicked();
219 when: newPlugin==true
220 PropertyChanges { target: textPlugin; opacity: 0}
221 PropertyChanges { target: textFrom; opacity: 0}
222 PropertyChanges { target: textTo; opacity: 0}
223 PropertyChanges { target: textDescription; opacity: 0}
224 PropertyChanges { target: textInfo; opacity: 0}
226 PropertyChanges { target: textPath; opacity: 1}
227 PropertyChanges { target: browseButton; opacity: 1 }
228 PropertyChanges { target: downloadButton; opacity: 1}