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;
102 anchors.top: textDescription.bottom
103 transformOrigin: Item.Left
104 anchors.horizontalCenter: parent.horizontalCenter
109 id: optimalizeCheckbox
112 anchors.left: parent.left
113 anchors.leftMargin: 5
114 anchors.top: textInfo.bottom
115 onChanged: rectangle1.optimalizeCheckboxChanged(selected);
122 anchors.top: optimalizeCheckbox.bottom
124 anchors.horizontalCenter: optimalizeCheckbox.horizontalCenter
125 onChanged: rectangle1.stripCheckboxChanged(selected);
132 text: qsTr("Optimize")
133 anchors.left: optimalizeCheckbox.right
134 anchors.leftMargin: 5
135 anchors.verticalCenterOffset: 3
136 anchors.verticalCenter: optimalizeCheckbox.verticalCenter
144 text: qsTr("Strip accents")
145 anchors.verticalCenterOffset: 3
146 anchors.verticalCenter: stripCheckbox.verticalCenter
147 anchors.horizontalCenter: textOptimalize.horizontalCenter
154 textInButton: qsTr("Save")
155 anchors.top: stripCheckbox.bottom
156 anchors.topMargin: 10
157 anchors.right: parent.right
158 anchors.left: parent.left
159 onClicked: rectangle1.saveButtonClicked();
164 height: paintedHeight+5;
165 text: qsTr("Dictionary file: not selected")
167 anchors.top: parent.top
168 anchors.topMargin: 10
169 anchors.right: browseButton.left
170 anchors.rightMargin: 0
171 anchors.left: parent.left
172 anchors.leftMargin: 0
181 textInButton: qsTr("Browse");
182 anchors.top: parent.top
183 anchors.topMargin: 10
184 anchors.right: parent.right
185 anchors.rightMargin: 10
187 onClicked: rectangle1.browseButtonClicked();
194 textInButton: qsTr("Download");
195 anchors.right: parent.right
196 anchors.rightMargin: 10
197 anchors.top: browseButton.bottom
198 anchors.topMargin: 10
200 onClicked: rectangle1.downloadButtonClicked();
206 when: newPlugin==true
207 PropertyChanges { target: textPlugin; opacity: 0}
208 PropertyChanges { target: textFrom; opacity: 0}
209 PropertyChanges { target: textTo; opacity: 0}
210 PropertyChanges { target: textDescription; opacity: 0}
211 PropertyChanges { target: textInfo; opacity: 0}
213 PropertyChanges { target: textPath; opacity: 1}
214 PropertyChanges { target: browseButton; opacity: 1 }
215 PropertyChanges { target: downloadButton; opacity: 1}