8 SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
9 color : myPalette.window;
11 property int focusIndex:-1;
14 signal historySizeValueChanged(int intiger);
15 signal searchResulValueChanged(int intiger);
16 signal dictionariesCheckBoxChanged(bool Boolean);
17 signal bookmarksCheckBoxChanged(bool Boolean);
18 signal saveButtonClicked();
20 function setMinHistory(intiger){
21 historySpinbox.minValue=intiger;
23 function setMaxHistory(intiger){
24 historySpinbox.maxValue=intiger;
26 function setValueHistory(intiger){
27 historySpinbox.value=intiger;
30 function setMaxSearchResult(intiger){
31 searchSpinbox.maxValue=intiger;
33 function setMinSearchResult(intiger){
34 searchSpinbox.minValue=intiger;
36 function setValueSearchResult(intiger){
37 searchSpinbox.value=intiger;
40 function setCheckedBookmarks(bool){
41 bookmarkCheckBox.selected=bool;
43 function setCheckedDictionaries(bool){
44 dictionariesCheckBox.selected=bool;
48 searchSpinbox.setFocus();
49 if(!searchSpinbox.enabled)
53 historySpinbox.setFocus();
54 if(!historySpinbox.enabled)
58 bookmarkCheckBox.focus = true
59 if(!bookmarkCheckBox.enabled)
63 dictionariesCheckBox.focus = true
64 if(!dictionariesCheckBox.enabled)
68 saveButton.focus = true
69 if(!saveButton.enabled)
86 height: paintedHeight+5;
87 text: qsTr("Search result size")
88 anchors.verticalCenterOffset: 2
89 anchors.left: parent.left
90 anchors.verticalCenter: searchSpinbox.verticalCenter
97 height: paintedHeight+5;
98 text: qsTr("History size")
99 anchors.verticalCenterOffset: 2
100 anchors.left: parent.left
101 anchors.verticalCenter: historySpinbox.verticalCenter
108 height: paintedHeight+5;
109 text: qsTr("Search in:")
110 anchors.top: textHistory.bottom
111 anchors.topMargin: 15
112 anchors.left: parent.left
120 text: qsTr("Bookmarks")
121 anchors.verticalCenterOffset: 2
122 anchors.left: bookmarkCheckBox.right
123 anchors.leftMargin: 10
124 anchors.verticalCenter: bookmarkCheckBox.verticalCenter
132 text: qsTr("Dictionaries")
133 anchors.verticalCenterOffset: 2
134 anchors.left: dictionariesCheckBox.right
135 anchors.leftMargin: 10
136 anchors.verticalCenter: dictionariesCheckBox.verticalCenter
144 anchors.top: parent.top
145 anchors.topMargin: 10
146 anchors.left: textSearch.right
147 anchors.leftMargin: 20
148 onValueChange: rectangle1.searchResulValueChanged(intiger);
149 onFocusChanged: if(focus) focusIndex=0;
156 anchors.horizontalCenter: searchSpinbox.horizontalCenter
157 anchors.top: searchSpinbox.bottom
158 anchors.topMargin: 10
159 onValueChange: rectangle1.historySizeValueChanged(intiger);
160 onFocusChanged: if(focus) focusIndex=1;
167 anchors.left: parent.left
168 anchors.leftMargin: 20
169 anchors.top: textSearchIn.bottom
171 onChanged: rectangle1.bookmarksCheckBoxChanged(selected);
172 onFocusChanged: if(focus) focusIndex=2;
176 id: dictionariesCheckBox
179 anchors.horizontalCenter: bookmarkCheckBox.horizontalCenter
180 anchors.top: bookmarkCheckBox.bottom
182 onChanged: rectangle1.dictionariesCheckBoxChanged(selected);
183 onFocusChanged: if(focus) focusIndex=3;
190 anchors.bottom: parent.bottom
191 anchors.bottomMargin: 5
192 anchors.right: parent.right
193 anchors.rightMargin: 5
194 textInButton: qsTr("Save")
195 onClicked: rectangle1.saveButtonClicked();
196 onFocusChanged: if(focus) focusIndex=4;