summaryrefslogtreecommitdiff
authorar <ar>2005-02-01 19:54:57 (UTC)
committer ar <ar>2005-02-01 19:54:57 (UTC)
commit62aad63f824740f15357c28e6bb61fbdf2120585 (patch) (unidiff)
tree079a6f219f8eed3743414b64b68e45d7003a08d7
parent17a8d1d5d2d9ec7a5e09da00e055d566fbd85353 (diff)
downloadopie-62aad63f824740f15357c28e6bb61fbdf2120585.zip
opie-62aad63f824740f15357c28e6bb61fbdf2120585.tar.gz
opie-62aad63f824740f15357c28e6bb61fbdf2120585.tar.bz2
- fix bug #1536
custom locations are stored and removed immadiately after add and remove in location list.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp3
-rw-r--r--noncore/settings/backup/backuprestorebase.ui308
2 files changed, 142 insertions, 169 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index d028379..8928cda 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -89,3 +89,2 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f
89 connect( removeLocationButton, SIGNAL( clicked() ), this, SLOT( removeLocation() ) ); 89 connect( removeLocationButton, SIGNAL( clicked() ), this, SLOT( removeLocation() ) );
90 connect( saveLocationsButton, SIGNAL( clicked() ), this, SLOT( saveLocations() ) );
91 connect( selectLocationButton, SIGNAL( clicked() ), this, SLOT( selectLocation() ) ); 90 connect( selectLocationButton, SIGNAL( clicked() ), this, SLOT( selectLocation() ) );
@@ -729,2 +728,3 @@ void BackupAndRestore::addLocation()
729 locationEdit->setText( "" ); 728 locationEdit->setText( "" );
729 saveLocations();
730 } 730 }
@@ -737,2 +737,3 @@ void BackupAndRestore::removeLocation()
737 delete( locationList->selectedItem() ); 737 delete( locationList->selectedItem() );
738 saveLocations();
738 } 739 }
diff --git a/noncore/settings/backup/backuprestorebase.ui b/noncore/settings/backup/backuprestorebase.ui
index 6186d68..cca3dee 100644
--- a/noncore/settings/backup/backuprestorebase.ui
+++ b/noncore/settings/backup/backuprestorebase.ui
@@ -13,4 +13,4 @@
13 <y>0</y> 13 <y>0</y>
14 <width>278</width> 14 <width>246</width>
15 <height>298</height> 15 <height>338</height>
16 </rect> 16 </rect>
@@ -27,6 +27,6 @@
27 </property> 27 </property>
28 <vbox> 28 <grid>
29 <property stdset="1"> 29 <property stdset="1">
30 <name>margin</name> 30 <name>margin</name>
31 <number>0</number> 31 <number>2</number>
32 </property> 32 </property>
@@ -34,5 +34,5 @@
34 <name>spacing</name> 34 <name>spacing</name>
35 <number>0</number> 35 <number>2</number>
36 </property> 36 </property>
37 <widget> 37 <widget row="0" column="0" >
38 <class>QTabWidget</class> 38 <class>QTabWidget</class>
@@ -67,7 +67,82 @@
67 </property> 67 </property>
68 <widget row="0" column="0" > 68 <widget row="1" column="1" >
69 <class>QLayoutWidget</class> 69 <class>QComboBox</class>
70 <property stdset="1">
71 <name>name</name>
72 <cstring>storeToLocation</cstring>
73 </property>
74 <property stdset="1">
75 <name>sizePolicy</name>
76 <sizepolicy>
77 <hsizetype>3</hsizetype>
78 <vsizetype>1</vsizetype>
79 </sizepolicy>
80 </property>
81 </widget>
82 <widget row="1" column="0" >
83 <class>QLabel</class>
84 <property stdset="1">
85 <name>name</name>
86 <cstring>labelDestination</cstring>
87 </property>
88 <property stdset="1">
89 <name>text</name>
90 <string>Destination</string>
91 </property>
92 </widget>
93 <widget row="3" column="0" rowspan="1" colspan="2" >
94 <class>QPushButton</class>
95 <property stdset="1">
96 <name>name</name>
97 <cstring>backupButton</cstring>
98 </property>
99 <property stdset="1">
100 <name>text</name>
101 <string>&amp;Backup</string>
102 </property>
103 </widget>
104 <widget row="2" column="0" rowspan="1" colspan="2" >
105 <class>QListView</class>
106 <column>
107 <property>
108 <name>text</name>
109 <string>Applications</string>
110 </property>
111 <property>
112 <name>clickable</name>
113 <bool>true</bool>
114 </property>
115 <property>
116 <name>resizeable</name>
117 <bool>true</bool>
118 </property>
119 </column>
70 <property stdset="1"> 120 <property stdset="1">
71 <name>name</name> 121 <name>name</name>
72 <cstring>Layout1</cstring> 122 <cstring>backupList</cstring>
123 </property>
124 <property stdset="1">
125 <name>allColumnsShowFocus</name>
126 <bool>true</bool>
127 </property>
128 <property stdset="1">
129 <name>rootIsDecorated</name>
130 <bool>true</bool>
131 </property>
132 </widget>
133 <widget row="0" column="0" rowspan="1" colspan="2" >
134 <class>QButtonGroup</class>
135 <property stdset="1">
136 <name>name</name>
137 <cstring>frame_type</cstring>
138 </property>
139 <property stdset="1">
140 <name>title</name>
141 <string>Type</string>
142 </property>
143 <property>
144 <name>layoutMargin</name>
145 </property>
146 <property>
147 <name>layoutSpacing</name>
73 </property> 148 </property>
@@ -76,3 +151,3 @@
76 <name>margin</name> 151 <name>margin</name>
77 <number>0</number> 152 <number>6</number>
78 </property> 153 </property>
@@ -80,23 +155,9 @@
80 <name>spacing</name> 155 <name>spacing</name>
81 <number>6</number> 156 <number>2</number>
82 </property> 157 </property>
83 <widget row="1" column="1" >
84 <class>QComboBox</class>
85 <property stdset="1">
86 <name>name</name>
87 <cstring>storeToLocation</cstring>
88 </property>
89 <property stdset="1">
90 <name>sizePolicy</name>
91 <sizepolicy>
92 <hsizetype>3</hsizetype>
93 <vsizetype>1</vsizetype>
94 </sizepolicy>
95 </property>
96 </widget>
97 <widget row="1" column="0" > 158 <widget row="1" column="0" >
98 <class>QLabel</class> 159 <class>QRadioButton</class>
99 <property stdset="1"> 160 <property stdset="1">
100 <name>name</name> 161 <name>name</name>
101 <cstring>TextLabel1</cstring> 162 <cstring>cb_type_fullbackup</cstring>
102 </property> 163 </property>
@@ -104,10 +165,10 @@
104 <name>text</name> 165 <name>text</name>
105 <string>Destination</string> 166 <string>Full Backup (Root File System)</string>
106 </property> 167 </property>
107 </widget> 168 </widget>
108 <widget row="3" column="0" rowspan="1" colspan="2" > 169 <widget row="0" column="0" >
109 <class>QPushButton</class> 170 <class>QRadioButton</class>
110 <property stdset="1"> 171 <property stdset="1">
111 <name>name</name> 172 <name>name</name>
112 <cstring>backupButton</cstring> 173 <cstring>cb_type_userdata</cstring>
113 </property> 174 </property>
@@ -115,84 +176,6 @@
115 <name>text</name> 176 <name>text</name>
116 <string>&amp;Backup</string> 177 <string>User Data (Configuration + PIM)</string>
117 </property> 178 </property>
118 </widget>
119 <widget row="0" column="0" rowspan="1" colspan="2" >
120 <class>QButtonGroup</class>
121 <property stdset="1"> 179 <property stdset="1">
122 <name>name</name> 180 <name>checked</name>
123 <cstring>frame_type</cstring>
124 </property>
125 <property stdset="1">
126 <name>title</name>
127 <string>Type</string>
128 </property>
129 <property>
130 <name>layoutMargin</name>
131 </property>
132 <property>
133 <name>layoutSpacing</name>
134 </property>
135 <vbox>
136 <property stdset="1">
137 <name>margin</name>
138 <number>4</number>
139 </property>
140 <property stdset="1">
141 <name>spacing</name>
142 <number>2</number>
143 </property>
144 <widget>
145 <class>QRadioButton</class>
146 <property stdset="1">
147 <name>name</name>
148 <cstring>cb_type_userdata</cstring>
149 </property>
150 <property stdset="1">
151 <name>text</name>
152 <string>User Data (Configuration + PIM)</string>
153 </property>
154 <property stdset="1">
155 <name>checked</name>
156 <bool>true</bool>
157 </property>
158 </widget>
159 <widget>
160 <class>QRadioButton</class>
161 <property stdset="1">
162 <name>name</name>
163 <cstring>cb_type_fullbackup</cstring>
164 </property>
165 <property stdset="1">
166 <name>text</name>
167 <string>Full Backup (Root File System)</string>
168 </property>
169 </widget>
170 </vbox>
171 </widget>
172 <widget row="2" column="0" rowspan="1" colspan="2" >
173 <class>QListView</class>
174 <column>
175 <property>
176 <name>text</name>
177 <string>Applications</string>
178 </property>
179 <property>
180 <name>clickable</name>
181 <bool>true</bool>
182 </property>
183 <property>
184 <name>resizeable</name>
185 <bool>true</bool>
186 </property>
187 </column>
188 <property stdset="1">
189 <name>name</name>
190 <cstring>backupList</cstring>
191 </property>
192 <property stdset="1">
193 <name>allColumnsShowFocus</name>
194 <bool>true</bool>
195 </property>
196 <property stdset="1">
197 <name>rootIsDecorated</name>
198 <bool>true</bool> 181 <bool>true</bool>
@@ -221,3 +204,3 @@
221 <name>spacing</name> 204 <name>spacing</name>
222 <number>4</number> 205 <number>2</number>
223 </property> 206 </property>
@@ -245,3 +228,3 @@
245 <name>name</name> 228 <name>name</name>
246 <cstring>TextLabel1_2</cstring> 229 <cstring>destinationLabel</cstring>
247 </property> 230 </property>
@@ -299,30 +282,23 @@
299 <name>spacing</name> 282 <name>spacing</name>
300 <number>4</number> 283 <number>2</number>
301 </property> 284 </property>
302 <widget row="1" column="0" rowspan="1" colspan="4" > 285 <widget row="0" column="2" >
303 <class>QListView</class> 286 <class>QPushButton</class>
304 <column>
305 <property>
306 <name>text</name>
307 <string>Locations</string>
308 </property>
309 <property>
310 <name>clickable</name>
311 <bool>true</bool>
312 </property>
313 <property>
314 <name>resizeable</name>
315 <bool>true</bool>
316 </property>
317 </column>
318 <property stdset="1"> 287 <property stdset="1">
319 <name>name</name> 288 <name>name</name>
320 <cstring>locationList</cstring> 289 <cstring>selectLocationButton</cstring>
321 </property> 290 </property>
322 </widget>
323 <widget row="2" column="0" >
324 <class>QPushButton</class>
325 <property stdset="1"> 291 <property stdset="1">
326 <name>name</name> 292 <name>sizePolicy</name>
327 <cstring>addLocationButton</cstring> 293 <sizepolicy>
294 <hsizetype>0</hsizetype>
295 <vsizetype>0</vsizetype>
296 </sizepolicy>
297 </property>
298 <property stdset="1">
299 <name>maximumSize</name>
300 <size>
301 <width>20</width>
302 <height>30</height>
303 </size>
328 </property> 304 </property>
@@ -330,17 +306,13 @@
330 <name>text</name> 306 <name>text</name>
331 <string>Add</string> 307 <string>...</string>
332 </property> 308 </property>
333 </widget> 309 </widget>
334 <widget row="2" column="1" > 310 <widget row="0" column="0" rowspan="1" colspan="2" >
335 <class>QPushButton</class> 311 <class>QLineEdit</class>
336 <property stdset="1"> 312 <property stdset="1">
337 <name>name</name> 313 <name>name</name>
338 <cstring>removeLocationButton</cstring> 314 <cstring>locationEdit</cstring>
339 </property>
340 <property stdset="1">
341 <name>text</name>
342 <string>Remove</string>
343 </property> 315 </property>
344 </widget> 316 </widget>
345 <widget row="2" column="2" rowspan="1" colspan="2" > 317 <widget row="2" column="0" >
346 <class>QPushButton</class> 318 <class>QPushButton</class>
@@ -348,3 +320,3 @@
348 <name>name</name> 320 <name>name</name>
349 <cstring>saveLocationsButton</cstring> 321 <cstring>addLocationButton</cstring>
350 </property> 322 </property>
@@ -352,6 +324,6 @@
352 <name>text</name> 324 <name>text</name>
353 <string>Save</string> 325 <string>Add</string>
354 </property> 326 </property>
355 </widget> 327 </widget>
356 <widget row="0" column="3" > 328 <widget row="2" column="1" rowspan="1" colspan="2" >
357 <class>QPushButton</class> 329 <class>QPushButton</class>
@@ -359,17 +331,3 @@
359 <name>name</name> 331 <name>name</name>
360 <cstring>selectLocationButton</cstring> 332 <cstring>removeLocationButton</cstring>
361 </property>
362 <property stdset="1">
363 <name>sizePolicy</name>
364 <sizepolicy>
365 <hsizetype>0</hsizetype>
366 <vsizetype>0</vsizetype>
367 </sizepolicy>
368 </property>
369 <property stdset="1">
370 <name>maximumSize</name>
371 <size>
372 <width>20</width>
373 <height>30</height>
374 </size>
375 </property> 333 </property>
@@ -377,10 +335,24 @@
377 <name>text</name> 335 <name>text</name>
378 <string>...</string> 336 <string>Remove</string>
379 </property> 337 </property>
380 </widget> 338 </widget>
381 <widget row="0" column="0" rowspan="1" colspan="3" > 339 <widget row="1" column="0" rowspan="1" colspan="3" >
382 <class>QLineEdit</class> 340 <class>QListView</class>
341 <column>
342 <property>
343 <name>text</name>
344 <string>Locations</string>
345 </property>
346 <property>
347 <name>clickable</name>
348 <bool>true</bool>
349 </property>
350 <property>
351 <name>resizeable</name>
352 <bool>true</bool>
353 </property>
354 </column>
383 <property stdset="1"> 355 <property stdset="1">
384 <name>name</name> 356 <name>name</name>
385 <cstring>locationEdit</cstring> 357 <cstring>locationList</cstring>
386 </property> 358 </property>
@@ -390,3 +362,3 @@
390 </widget> 362 </widget>
391 </vbox> 363 </grid>
392</widget> 364</widget>