summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/networkpkgmgr.cpp6
-rw-r--r--noncore/settings/aqpkg/package.cpp12
-rw-r--r--noncore/settings/aqpkg/settings.ui2
3 files changed, 17 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp
index e8e2982..d9e62b6 100644
--- a/noncore/settings/aqpkg/networkpkgmgr.cpp
+++ b/noncore/settings/aqpkg/networkpkgmgr.cpp
@@ -99,404 +99,406 @@ void NetworkPackageManager :: updateData()
99 { 99 {
100 cout << it->getServerName() << " is not active" << endl; 100 cout << it->getServerName() << " is not active" << endl;
101 i--; 101 i--;
102 continue; 102 continue;
103 } 103 }
104 serversList->insertItem( it->getServerName() ); 104 serversList->insertItem( it->getServerName() );
105 if ( it->getServerName() == currentlySelectedServer ) 105 if ( it->getServerName() == currentlySelectedServer )
106 activeItem = i; 106 activeItem = i;
107 } 107 }
108 108
109 // set selected server to be active server 109 // set selected server to be active server
110 if ( activeItem != -1 ) 110 if ( activeItem != -1 )
111 serversList->setCurrentItem( activeItem ); 111 serversList->setCurrentItem( activeItem );
112 serverSelected( 0 ); 112 serverSelected( 0 );
113} 113}
114 114
115void NetworkPackageManager :: selectLocalPackage( const QString &pkg ) 115void NetworkPackageManager :: selectLocalPackage( const QString &pkg )
116{ 116{
117 // First select local server 117 // First select local server
118 for ( int i = 0 ; i < serversList->count() ; ++i ) 118 for ( int i = 0 ; i < serversList->count() ; ++i )
119 { 119 {
120 if ( serversList->text( i ) == LOCAL_IPKGS ) 120 if ( serversList->text( i ) == LOCAL_IPKGS )
121 { 121 {
122 serversList->setCurrentItem( i ); 122 serversList->setCurrentItem( i );
123 break; 123 break;
124 } 124 }
125 } 125 }
126 serverSelected( 0 ); 126 serverSelected( 0 );
127 127
128 // Now set the check box of the selected package 128 // Now set the check box of the selected package
129 for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild(); 129 for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild();
130 item != 0 ; 130 item != 0 ;
131 item = (QCheckListItem *)item->nextSibling() ) 131 item = (QCheckListItem *)item->nextSibling() )
132 { 132 {
133 if ( item->text().startsWith( pkg ) ) 133 if ( item->text().startsWith( pkg ) )
134 { 134 {
135 item->setOn( true ); 135 item->setOn( true );
136 break; 136 break;
137 } 137 }
138 } 138 }
139} 139}
140 140
141 141
142void NetworkPackageManager :: initGui() 142void NetworkPackageManager :: initGui()
143{ 143{
144 QLabel *l = new QLabel( "Servers", this ); 144 QLabel *l = new QLabel( "Servers", this );
145 serversList = new QComboBox( this ); 145 serversList = new QComboBox( this );
146 packagesList = new QListView( this ); 146 packagesList = new QListView( this );
147 update = new QPushButton( "Refresh Lists", this ); 147 update = new QPushButton( "Refresh Lists", this );
148 download = new QPushButton( "Download", this ); 148 download = new QPushButton( "Download", this );
149 upgrade = new QPushButton( "Upgrade", this ); 149 upgrade = new QPushButton( "Upgrade", this );
150 apply = new QPushButton( "Apply", this ); 150 apply = new QPushButton( "Apply", this );
151 151
152 QVBoxLayout *vbox = new QVBoxLayout( this, 0, -1, "VBox" ); 152 QVBoxLayout *vbox = new QVBoxLayout( this, 0, -1, "VBox" );
153 QHBoxLayout *hbox1 = new QHBoxLayout( vbox, -1, "HBox1" ); 153 QHBoxLayout *hbox1 = new QHBoxLayout( vbox, -1, "HBox1" );
154 hbox1->addWidget( l ); 154 hbox1->addWidget( l );
155 hbox1->addWidget( serversList ); 155 hbox1->addWidget( serversList );
156 156
157 QHBoxLayout *hbox3 = new QHBoxLayout( vbox, -1, "HBox1" ); 157 QHBoxLayout *hbox3 = new QHBoxLayout( vbox, -1, "HBox1" );
158 QHBoxLayout *hbox4 = new QHBoxLayout( vbox, -1, "HBox1" ); 158 QHBoxLayout *hbox4 = new QHBoxLayout( vbox, -1, "HBox1" );
159 159
160 160
161 if ( showJumpTo ) 161 if ( showJumpTo )
162 { 162 {
163 char text[2]; 163 char text[2];
164 text[1] = '\0'; 164 text[1] = '\0';
165 for ( int i = 0 ; i < 26 ; ++i ) 165 for ( int i = 0 ; i < 26 ; ++i )
166 { 166 {
167 text[0] = 'A' + i; 167 text[0] = 'A' + i;
168 LetterPushButton *b = new LetterPushButton( text, this ); 168 LetterPushButton *b = new LetterPushButton( text, this );
169 connect( b, SIGNAL( released( QString ) ), this, SLOT( letterPushed( QString ) ) ); 169 connect( b, SIGNAL( released( QString ) ), this, SLOT( letterPushed( QString ) ) );
170 if ( i < 13 ) 170 if ( i < 13 )
171 hbox3->addWidget( b ); 171 hbox3->addWidget( b );
172 else 172 else
173 hbox4->addWidget( b ); 173 hbox4->addWidget( b );
174 } 174 }
175 } 175 }
176 176
177 vbox->addWidget( packagesList ); 177 vbox->addWidget( packagesList );
178 packagesList->addColumn( "Packages" ); 178 packagesList->addColumn( "Packages" );
179 179
180 QHBoxLayout *hbox2 = new QHBoxLayout( vbox, -1, "HBox2" ); 180 QHBoxLayout *hbox2 = new QHBoxLayout( vbox, -1, "HBox2" );
181 hbox2->addWidget( update ); 181 hbox2->addWidget( update );
182 hbox2->addWidget( download ); 182 hbox2->addWidget( download );
183 hbox2->addWidget( upgrade ); 183 hbox2->addWidget( upgrade );
184 hbox2->addWidget( apply ); 184 hbox2->addWidget( apply );
185} 185}
186 186
187void NetworkPackageManager :: setupConnections() 187void NetworkPackageManager :: setupConnections()
188{ 188{
189 connect( serversList, SIGNAL(activated( int )), this, SLOT(serverSelected( int ))); 189 connect( serversList, SIGNAL(activated( int )), this, SLOT(serverSelected( int )));
190 connect( apply, SIGNAL(released()), this, SLOT(applyChanges()) ); 190 connect( apply, SIGNAL(released()), this, SLOT(applyChanges()) );
191 connect( download, SIGNAL(released()), this, SLOT(downloadPackage()) ); 191 connect( download, SIGNAL(released()), this, SLOT(downloadPackage()) );
192 connect( upgrade, SIGNAL( released()), this, SLOT(upgradePackages()) ); 192 connect( upgrade, SIGNAL( released()), this, SLOT(upgradePackages()) );
193 connect( update, SIGNAL(released()), this, SLOT(updateServer()) ); 193 connect( update, SIGNAL(released()), this, SLOT(updateServer()) );
194} 194}
195 195
196void NetworkPackageManager :: showProgressDialog( char *initialText ) 196void NetworkPackageManager :: showProgressDialog( char *initialText )
197{ 197{
198 if ( !progressDlg ) 198 if ( !progressDlg )
199 progressDlg = new ProgressDlg( this, "Progress", false ); 199 progressDlg = new ProgressDlg( this, "Progress", false );
200 progressDlg->setText( initialText ); 200 progressDlg->setText( initialText );
201 progressDlg->show(); 201 progressDlg->show();
202} 202}
203 203
204 204
205void NetworkPackageManager :: serverSelected( int ) 205void NetworkPackageManager :: serverSelected( int )
206{ 206{
207 packagesList->clear(); 207 packagesList->clear();
208 208
209 // display packages 209 // display packages
210 QString serverName = serversList->currentText(); 210 QString serverName = serversList->currentText();
211 currentlySelectedServer = serverName; 211 currentlySelectedServer = serverName;
212 212
213#ifdef QWS 213#ifdef QWS
214 // read download directory from config file 214 // read download directory from config file
215 Config cfg( "aqpkg" ); 215 Config cfg( "aqpkg" );
216 cfg.setGroup( "settings" ); 216 cfg.setGroup( "settings" );
217 cfg.writeEntry( "selectedServer", currentlySelectedServer ); 217 cfg.writeEntry( "selectedServer", currentlySelectedServer );
218#endif 218#endif
219 219
220 Server *s = dataMgr->getServer( serverName ); 220 Server *s = dataMgr->getServer( serverName );
221 221
222 vector<Package> &list = s->getPackageList(); 222 vector<Package> &list = s->getPackageList();
223 vector<Package>::iterator it; 223 vector<Package>::iterator it;
224 for ( it = list.begin() ; it != list.end() ; ++it ) 224 for ( it = list.begin() ; it != list.end() ; ++it )
225 { 225 {
226 226
227 QString text = ""; 227 QString text = "";
228 228
229 // Apply show only uninstalled packages filter 229 // Apply show only uninstalled packages filter
230 if ( showUninstalledPkgs && it->isInstalled() ) 230 if ( showUninstalledPkgs && it->isInstalled() )
231 continue; 231 continue;
232 232
233 // Apply show only installed packages filter 233 // Apply show only installed packages filter
234 if ( showInstalledPkgs && !it->isInstalled() ) 234 if ( showInstalledPkgs && !it->isInstalled() )
235 continue; 235 continue;
236 236
237 // Apply show only new installed packages filter 237 // Apply show only new installed packages filter
238 if ( showUpgradedPkgs ) 238 if ( showUpgradedPkgs )
239 { 239 {
240 if ( !it->isInstalled() || 240 if ( !it->isInstalled() ||
241 compareVersions( it->getInstalledVersion(), it->getVersion() ) != 1 ) 241 compareVersions( it->getInstalledVersion(), it->getVersion() ) != 1 )
242 continue; 242 continue;
243 } 243 }
244 244
245 // Apply the section filter 245 // Apply the section filter
246 if ( categoryFilterEnabled && categoryFilter != "" ) 246 if ( categoryFilterEnabled && categoryFilter != "" )
247 { 247 {
248 if ( it->getSection() == "" || categoryFilter.find( it->getSection().lower() ) == -1 ) 248 if ( it->getSection() == "" || categoryFilter.find( it->getSection().lower() ) == -1 )
249 continue; 249 continue;
250 } 250 }
251 251
252 // If the local server, only display installed packages 252 // If the local server, only display installed packages
253 if ( serverName == LOCAL_SERVER && !it->isInstalled() ) 253 if ( serverName == LOCAL_SERVER && !it->isInstalled() )
254 continue; 254 continue;
255 255
256 256
257 text += it->getPackageName(); 257 text += it->getPackageName();
258 if ( it->isInstalled() ) 258 if ( it->isInstalled() )
259 { 259 {
260 text += " (installed)"; 260 text += " (installed)";
261 261
262 // If a different version of package is available, postfix it with an * 262 // If a different version of package is available, postfix it with an *
263 if ( it->getVersion() != it->getInstalledVersion() ) 263 if ( it->getVersion() != it->getInstalledVersion() )
264 { 264 {
265 265
266 if ( compareVersions( it->getInstalledVersion(), it->getVersion() ) == 1 ) 266 if ( compareVersions( it->getInstalledVersion(), it->getVersion() ) == 1 )
267 text += "*"; 267 text += "*";
268 } 268 }
269 } 269 }
270 270
271 QCheckListItem *item = new QCheckListItem( packagesList, text, QCheckListItem::CheckBox ); 271 QCheckListItem *item = new QCheckListItem( packagesList, text, QCheckListItem::CheckBox );
272 272
273 if ( it->isInstalled() ) 273 if ( it->isInstalled() )
274 { 274 {
275 QString destName = ""; 275 QString destName = "";
276 if ( it->getLocalPackage() ) 276 if ( it->getLocalPackage() )
277 { 277 {
278 if ( it->getLocalPackage()->getInstalledTo() ) 278 if ( it->getLocalPackage()->getInstalledTo() )
279 destName = it->getLocalPackage()->getInstalledTo()->getDestinationName(); 279 destName = it->getLocalPackage()->getInstalledTo()->getDestinationName();
280 } 280 }
281 else 281 else
282 { 282 {
283 if ( it->getInstalledTo() ) 283 if ( it->getInstalledTo() )
284 destName = it->getInstalledTo()->getDestinationName(); 284 destName = it->getInstalledTo()->getDestinationName();
285 } 285 }
286 if ( destName != "" ) 286 if ( destName != "" )
287 new QCheckListItem( item, QString( "Installed To - " ) + destName ); 287 new QCheckListItem( item, QString( "Installed To - " ) + destName );
288 } 288 }
289 289
290 if ( !it->isPackageStoredLocally() ) 290 if ( !it->isPackageStoredLocally() )
291 {
291 new QCheckListItem( item, QString( "Description - " ) + it->getDescription() ); 292 new QCheckListItem( item, QString( "Description - " ) + it->getDescription() );
293 new QCheckListItem( item, QString( "Size - " ) + it->getPackageSize() );
294 new QCheckListItem( item, QString( "Section - " ) + it->getSection() );
295 }
292 else 296 else
293 new QCheckListItem( item, QString( "Filename - " ) + it->getFilename() ); 297 new QCheckListItem( item, QString( "Filename - " ) + it->getFilename() );
294 298
295 if ( serverName == LOCAL_SERVER ) 299 if ( serverName == LOCAL_SERVER )
296 { 300 {
297 new QCheckListItem( item, QString( "V. Installed - " ) + it->getVersion() ); 301 new QCheckListItem( item, QString( "V. Installed - " ) + it->getVersion() );
298 } 302 }
299 else 303 else
300 { 304 {
301 new QCheckListItem( item, QString( "V. Available - " ) + it->getVersion() ); 305 new QCheckListItem( item, QString( "V. Available - " ) + it->getVersion() );
302 if ( it->getLocalPackage() ) 306 if ( it->getLocalPackage() )
303 { 307 {
304 if ( it->isInstalled() ) 308 if ( it->isInstalled() )
305 new QCheckListItem( item, QString( "V. Installed - " ) + it->getInstalledVersion() ); 309 new QCheckListItem( item, QString( "V. Installed - " ) + it->getInstalledVersion() );
306 } 310 }
307 } 311 }
308 312
309 new QCheckListItem( item, QString( "Size - " ) + it->getPackageSize() );
310 new QCheckListItem( item, QString( "Section - " ) + it->getSection() );
311 packagesList->insertItem( item ); 313 packagesList->insertItem( item );
312 } 314 }
313 315
314 // If the local server or the local ipkgs server disable the download button 316 // If the local server or the local ipkgs server disable the download button
315 if ( serverName == LOCAL_SERVER ) 317 if ( serverName == LOCAL_SERVER )
316 { 318 {
317 upgrade->setEnabled( false ); 319 upgrade->setEnabled( false );
318 download->setText( "Download" ); 320 download->setText( "Download" );
319 download->setEnabled( true ); 321 download->setEnabled( true );
320 } 322 }
321 else if ( serverName == LOCAL_IPKGS ) 323 else if ( serverName == LOCAL_IPKGS )
322 { 324 {
323 upgrade->setEnabled( false ); 325 upgrade->setEnabled( false );
324 download->setEnabled( true ); 326 download->setEnabled( true );
325 download->setText( "Remove" ); 327 download->setText( "Remove" );
326 } 328 }
327 else 329 else
328 { 330 {
329 upgrade->setEnabled( true ); 331 upgrade->setEnabled( true );
330 download->setEnabled( true ); 332 download->setEnabled( true );
331 download->setText( "Download" ); 333 download->setText( "Download" );
332 } 334 }
333} 335}
334 336
335void NetworkPackageManager :: updateServer() 337void NetworkPackageManager :: updateServer()
336{ 338{
337 QString serverName = serversList->currentText(); 339 QString serverName = serversList->currentText();
338 340
339 // Update the current server 341 // Update the current server
340 // Display dialog 342 // Display dialog
341 343
342 // Disable buttons to stop silly people clicking lots on them :) 344 // Disable buttons to stop silly people clicking lots on them :)
343 345
344 // First, write out ipkg_conf file so that ipkg can use it 346 // First, write out ipkg_conf file so that ipkg can use it
345 dataMgr->writeOutIpkgConf(); 347 dataMgr->writeOutIpkgConf();
346 348
347 Ipkg ipkg; 349 Ipkg ipkg;
348 ipkg.setOption( "update" ); 350 ipkg.setOption( "update" );
349 351
350 InstallDlgImpl dlg( &ipkg, "Refreshing server package lists", this, "Upgrade", true ); 352 InstallDlgImpl dlg( &ipkg, "Refreshing server package lists", this, "Upgrade", true );
351 dlg.showDlg(); 353 dlg.showDlg();
352 354
353 // Reload data 355 // Reload data
354 dataMgr->reloadServerData(); 356 dataMgr->reloadServerData();
355 serverSelected(-1); 357 serverSelected(-1);
356// delete progDlg; 358// delete progDlg;
357} 359}
358 360
359void NetworkPackageManager :: upgradePackages() 361void NetworkPackageManager :: upgradePackages()
360{ 362{
361 // We're gonna do an upgrade of all packages 363 // We're gonna do an upgrade of all packages
362 // First warn user that this isn't recommended 364 // First warn user that this isn't recommended
363 QString text = "WARNING: Upgrading while\nOpie/Qtopia is running\nis NOT recommended!\n\nAre you sure?\n"; 365 QString text = "WARNING: Upgrading while\nOpie/Qtopia is running\nis NOT recommended!\n\nAre you sure?\n";
364 QMessageBox warn("Warning", text, QMessageBox::Warning, 366 QMessageBox warn("Warning", text, QMessageBox::Warning,
365 QMessageBox::Yes, 367 QMessageBox::Yes,
366 QMessageBox::No | QMessageBox::Escape | QMessageBox::Default , 368 QMessageBox::No | QMessageBox::Escape | QMessageBox::Default ,
367 0, this ); 369 0, this );
368 warn.adjustSize(); 370 warn.adjustSize();
369 371
370 if ( warn.exec() == QMessageBox::Yes ) 372 if ( warn.exec() == QMessageBox::Yes )
371 { 373 {
372 // First, write out ipkg_conf file so that ipkg can use it 374 // First, write out ipkg_conf file so that ipkg can use it
373 dataMgr->writeOutIpkgConf(); 375 dataMgr->writeOutIpkgConf();
374 376
375 // Now run upgrade 377 // Now run upgrade
376 Ipkg ipkg; 378 Ipkg ipkg;
377 ipkg.setOption( "upgrade" ); 379 ipkg.setOption( "upgrade" );
378 380
379 InstallDlgImpl dlg( &ipkg, "Upgrading installed packages", this, "Upgrade", true ); 381 InstallDlgImpl dlg( &ipkg, "Upgrading installed packages", this, "Upgrade", true );
380 dlg.showDlg(); 382 dlg.showDlg();
381 383
382 // Reload data 384 // Reload data
383 dataMgr->reloadServerData(); 385 dataMgr->reloadServerData();
384 serverSelected(-1); 386 serverSelected(-1);
385 } 387 }
386} 388}
387 389
388 390
389void NetworkPackageManager :: downloadPackage() 391void NetworkPackageManager :: downloadPackage()
390{ 392{
391 bool doUpdate = true; 393 bool doUpdate = true;
392 if ( download->text() == "Download" ) 394 if ( download->text() == "Download" )
393 { 395 {
394 // See if any packages are selected 396 // See if any packages are selected
395 bool found = false; 397 bool found = false;
396 if ( serversList->currentText() != LOCAL_SERVER ) 398 if ( serversList->currentText() != LOCAL_SERVER )
397 { 399 {
398 for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild(); 400 for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild();
399 item != 0 && !found; 401 item != 0 && !found;
400 item = (QCheckListItem *)item->nextSibling() ) 402 item = (QCheckListItem *)item->nextSibling() )
401 { 403 {
402 if ( item->isOn() ) 404 if ( item->isOn() )
403 found = true; 405 found = true;
404 } 406 }
405 } 407 }
406 408
407 // If user selected some packages then download the and store the locally 409 // If user selected some packages then download the and store the locally
408 // otherwise, display dialog asking user what package to download from an http server 410 // otherwise, display dialog asking user what package to download from an http server
409 // and whether to install it 411 // and whether to install it
410 if ( found ) 412 if ( found )
411 downloadSelectedPackages(); 413 downloadSelectedPackages();
412 else 414 else
413 downloadRemotePackage(); 415 downloadRemotePackage();
414 416
415 } 417 }
416 else if ( download->text() == "Remove" ) 418 else if ( download->text() == "Remove" )
417 { 419 {
418 doUpdate = false; 420 doUpdate = false;
419 for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild(); 421 for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild();
420 item != 0 ; 422 item != 0 ;
421 item = (QCheckListItem *)item->nextSibling() ) 423 item = (QCheckListItem *)item->nextSibling() )
422 { 424 {
423 if ( item->isOn() ) 425 if ( item->isOn() )
424 { 426 {
425 QString name = item->text(); 427 QString name = item->text();
426 int pos = name.find( "*" ); 428 int pos = name.find( "*" );
427 name.truncate( pos ); 429 name.truncate( pos );
428 430
429 // if (there is a (installed), remove it 431 // if (there is a (installed), remove it
430 pos = name.find( "(installed)" ); 432 pos = name.find( "(installed)" );
431 if ( pos > 0 ) 433 if ( pos > 0 )
432 name.truncate( pos - 1 ); 434 name.truncate( pos - 1 );
433 435
434 Package *p = dataMgr->getServer( serversList->currentText() )->getPackage( name ); 436 Package *p = dataMgr->getServer( serversList->currentText() )->getPackage( name );
435 437
436 QString msgtext; 438 QString msgtext;
437 msgtext.sprintf( "Are you sure you wish to delete\n%s?", (const char *)p->getPackageName() ); 439 msgtext.sprintf( "Are you sure you wish to delete\n%s?", (const char *)p->getPackageName() );
438 if ( QMessageBox::information( this, "Are you sure?", 440 if ( QMessageBox::information( this, "Are you sure?",
439 msgtext, "No", "Yes" ) == 1 ) 441 msgtext, "No", "Yes" ) == 1 )
440 { 442 {
441 doUpdate = true; 443 doUpdate = true;
442 QFile f( p->getFilename() ); 444 QFile f( p->getFilename() );
443 f.remove(); 445 f.remove();
444 } 446 }
445 } 447 }
446 } 448 }
447 } 449 }
448 450
449 if ( doUpdate ) 451 if ( doUpdate )
450 { 452 {
451 dataMgr->reloadServerData(); 453 dataMgr->reloadServerData();
452 serverSelected( -1 ); 454 serverSelected( -1 );
453 } 455 }
454} 456}
455 457
456void NetworkPackageManager :: downloadSelectedPackages() 458void NetworkPackageManager :: downloadSelectedPackages()
457{ 459{
458 // First, write out ipkg_conf file so that ipkg can use it 460 // First, write out ipkg_conf file so that ipkg can use it
459 dataMgr->writeOutIpkgConf(); 461 dataMgr->writeOutIpkgConf();
460 462
461 // Display dialog to user asking where to download the files to 463 // Display dialog to user asking where to download the files to
462 bool ok = FALSE; 464 bool ok = FALSE;
463 QString dir = ""; 465 QString dir = "";
464#ifdef QWS 466#ifdef QWS
465 // read download directory from config file 467 // read download directory from config file
466 Config cfg( "aqpkg" ); 468 Config cfg( "aqpkg" );
467 cfg.setGroup( "settings" ); 469 cfg.setGroup( "settings" );
468 dir = cfg.readEntry( "downloadDir", "/home/root/Documents/application/ipkg" ); 470 dir = cfg.readEntry( "downloadDir", "/home/root/Documents/application/ipkg" );
469#endif 471#endif
470 472
471 QString text = InputDialog::getText( tr( "Download to where" ), tr( "Enter path to download to" ), dir, &ok, this ); 473 QString text = InputDialog::getText( tr( "Download to where" ), tr( "Enter path to download to" ), dir, &ok, this );
472 if ( ok && !text.isEmpty() ) 474 if ( ok && !text.isEmpty() )
473 dir = text; // user entered something and pressed ok 475 dir = text; // user entered something and pressed ok
474 else 476 else
475 return; // user entered nothing or pressed cancel 477 return; // user entered nothing or pressed cancel
476 478
477#ifdef QWS 479#ifdef QWS
478 // Store download directory in config file 480 // Store download directory in config file
479 cfg.writeEntry( "downloadDir", dir ); 481 cfg.writeEntry( "downloadDir", dir );
480#endif 482#endif
481 483
482 // Get starting directory 484 // Get starting directory
483 char initDir[PATH_MAX]; 485 char initDir[PATH_MAX];
484 getcwd( initDir, PATH_MAX ); 486 getcwd( initDir, PATH_MAX );
485 487
486 // Download each package 488 // Download each package
487 Ipkg ipkg; 489 Ipkg ipkg;
488 connect( &ipkg, SIGNAL(outputText(const QString &)), this, SLOT(displayText(const QString &))); 490 connect( &ipkg, SIGNAL(outputText(const QString &)), this, SLOT(displayText(const QString &)));
489 491
490 ipkg.setOption( "download" ); 492 ipkg.setOption( "download" );
491 ipkg.setRuntimeDirectory( dir ); 493 ipkg.setRuntimeDirectory( dir );
492 for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild(); 494 for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild();
493 item != 0 ; 495 item != 0 ;
494 item = (QCheckListItem *)item->nextSibling() ) 496 item = (QCheckListItem *)item->nextSibling() )
495 { 497 {
496 if ( item->isOn() ) 498 if ( item->isOn() )
497 { 499 {
498 QString name = item->text(); 500 QString name = item->text();
499 int pos = name.find( "*" ); 501 int pos = name.find( "*" );
500 name.truncate( pos ); 502 name.truncate( pos );
501 503
502 // if (there is a (installed), remove it 504 // if (there is a (installed), remove it
diff --git a/noncore/settings/aqpkg/package.cpp b/noncore/settings/aqpkg/package.cpp
index 526de5e..db3e927 100644
--- a/noncore/settings/aqpkg/package.cpp
+++ b/noncore/settings/aqpkg/package.cpp
@@ -1,124 +1,136 @@
1/*************************************************************************** 1/***************************************************************************
2 package.cpp - description 2 package.cpp - description
3 ------------------- 3 -------------------
4 begin : Mon Aug 26 2002 4 begin : Mon Aug 26 2002
5 copyright : (C) 2002 by Andy Qua 5 copyright : (C) 2002 by Andy Qua
6 email : andy.qua@blueyonder.co.uk 6 email : andy.qua@blueyonder.co.uk
7 ***************************************************************************/ 7 ***************************************************************************/
8 8
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. * 14 * (at your option) any later version. *
15 * * 15 * *
16 ***************************************************************************/ 16 ***************************************************************************/
17 17
18#include "package.h" 18#include "package.h"
19#include "global.h" 19#include "global.h"
20 20
21Package::Package( QString &name ) 21Package::Package( QString &name )
22{ 22{
23 packageName = name; 23 packageName = name;
24
25 version = "N/A";
26 description = "N/A";
27 packageSize = "N/A";
28 section = "N/A";
29
24 localPackage = 0; 30 localPackage = 0;
25 installed = false; 31 installed = false;
26 packageStoredLocally = false; 32 packageStoredLocally = false;
27 installedToRoot = false; 33 installedToRoot = false;
28 installed = false; 34 installed = false;
29 installedTo = 0; 35 installedTo = 0;
30} 36}
31 37
32Package::Package( char *name ) 38Package::Package( char *name )
33{ 39{
34 packageName = name; 40 packageName = name;
41
42 version = "N/A";
43 description = "N/A";
44 packageSize = "N/A";
45 section = "N/A";
46
35 localPackage = 0; 47 localPackage = 0;
36 installed = false; 48 installed = false;
37 packageStoredLocally = false; 49 packageStoredLocally = false;
38 installedToRoot = false; 50 installedToRoot = false;
39 installed = false; 51 installed = false;
40 installedTo = 0; 52 installedTo = 0;
41} 53}
42 54
43Package::~Package() 55Package::~Package()
44{ 56{
45} 57}
46 58
47QString Package :: toString() 59QString Package :: toString()
48{ 60{
49 QString ret = "Package - " + getPackageName() + 61 QString ret = "Package - " + getPackageName() +
50 "\n version - " + getVersion(); 62 "\n version - " + getVersion();
51 63
52 if ( localPackage ) 64 if ( localPackage )
53 ret += "\n inst version - " + localPackage->getVersion(); 65 ret += "\n inst version - " + localPackage->getVersion();
54 66
55 67
56 return ret; 68 return ret;
57} 69}
58 70
59void Package :: setStatus( const QString &s ) 71void Package :: setStatus( const QString &s )
60{ 72{
61 status = s; 73 status = s;
62 74
63 if ( status.find( "installed" ) != -1 ) 75 if ( status.find( "installed" ) != -1 )
64 installed = true; 76 installed = true;
65} 77}
66 78
67void Package :: setLocalPackage( Package *p ) 79void Package :: setLocalPackage( Package *p )
68{ 80{
69 localPackage = p; 81 localPackage = p;
70 82
71 if ( localPackage ) 83 if ( localPackage )
72 if ( localPackage->getVersion() != getVersion() ) 84 if ( localPackage->getVersion() != getVersion() )
73 differentVersionAvailable = true; 85 differentVersionAvailable = true;
74 else 86 else
75 differentVersionAvailable = false; 87 differentVersionAvailable = false;
76} 88}
77 89
78void Package :: setVersion( const QString &v ) 90void Package :: setVersion( const QString &v )
79{ 91{
80 version = v; 92 version = v;
81 93
82 if ( localPackage ) 94 if ( localPackage )
83 if ( localPackage->getVersion() != getVersion() ) 95 if ( localPackage->getVersion() != getVersion() )
84 differentVersionAvailable = true; 96 differentVersionAvailable = true;
85 else 97 else
86 differentVersionAvailable = false; 98 differentVersionAvailable = false;
87} 99}
88 100
89void Package :: setPackageName( const QString &name ) 101void Package :: setPackageName( const QString &name )
90{ 102{
91 packageName = name; 103 packageName = name;
92} 104}
93 105
94void Package :: setDescription( const QString &d ) 106void Package :: setDescription( const QString &d )
95{ 107{
96 description = d; 108 description = d;
97} 109}
98 110
99void Package :: setFilename( const QString &f ) 111void Package :: setFilename( const QString &f )
100{ 112{
101 filename = f; 113 filename = f;
102} 114}
103 115
104 116
105QString Package :: getInstalledVersion() 117QString Package :: getInstalledVersion()
106{ 118{
107 if ( localPackage ) 119 if ( localPackage )
108 return localPackage->getVersion(); 120 return localPackage->getVersion();
109 else 121 else
110 return getVersion(); 122 return getVersion();
111} 123}
112 124
113QString Package :: getInstalledPackageName() 125QString Package :: getInstalledPackageName()
114{ 126{
115 if ( localPackage ) 127 if ( localPackage )
116 return localPackage->getPackageName(); 128 return localPackage->getPackageName();
117 else 129 else
118 return getPackageName(); 130 return getPackageName();
119} 131}
120 132
121bool Package :: isInstalled() 133bool Package :: isInstalled()
122{ 134{
123 return installed || ( localPackage && localPackage->isInstalled() ); 135 return installed || ( localPackage && localPackage->isInstalled() );
124} 136}
diff --git a/noncore/settings/aqpkg/settings.ui b/noncore/settings/aqpkg/settings.ui
index c2db861..44e8fd9 100644
--- a/noncore/settings/aqpkg/settings.ui
+++ b/noncore/settings/aqpkg/settings.ui
@@ -290,361 +290,361 @@
290 <property stdset="1"> 290 <property stdset="1">
291 <name>margin</name> 291 <name>margin</name>
292 <number>0</number> 292 <number>0</number>
293 </property> 293 </property>
294 <property stdset="1"> 294 <property stdset="1">
295 <name>spacing</name> 295 <name>spacing</name>
296 <number>6</number> 296 <number>6</number>
297 </property> 297 </property>
298 <widget> 298 <widget>
299 <class>QLabel</class> 299 <class>QLabel</class>
300 <property stdset="1"> 300 <property stdset="1">
301 <name>name</name> 301 <name>name</name>
302 <cstring>Destinations</cstring> 302 <cstring>Destinations</cstring>
303 </property> 303 </property>
304 <property stdset="1"> 304 <property stdset="1">
305 <name>text</name> 305 <name>text</name>
306 <string>Destinations</string> 306 <string>Destinations</string>
307 </property> 307 </property>
308 </widget> 308 </widget>
309 <spacer> 309 <spacer>
310 <property> 310 <property>
311 <name>name</name> 311 <name>name</name>
312 <cstring>Spacer2_2</cstring> 312 <cstring>Spacer2_2</cstring>
313 </property> 313 </property>
314 <property stdset="1"> 314 <property stdset="1">
315 <name>orientation</name> 315 <name>orientation</name>
316 <enum>Horizontal</enum> 316 <enum>Horizontal</enum>
317 </property> 317 </property>
318 <property stdset="1"> 318 <property stdset="1">
319 <name>sizeType</name> 319 <name>sizeType</name>
320 <enum>Expanding</enum> 320 <enum>Expanding</enum>
321 </property> 321 </property>
322 <property> 322 <property>
323 <name>sizeHint</name> 323 <name>sizeHint</name>
324 <size> 324 <size>
325 <width>20</width> 325 <width>20</width>
326 <height>20</height> 326 <height>20</height>
327 </size> 327 </size>
328 </property> 328 </property>
329 </spacer> 329 </spacer>
330 </hbox> 330 </hbox>
331 </widget> 331 </widget>
332 <widget row="2" column="0" > 332 <widget row="2" column="0" >
333 <class>QLayoutWidget</class> 333 <class>QLayoutWidget</class>
334 <property stdset="1"> 334 <property stdset="1">
335 <name>name</name> 335 <name>name</name>
336 <cstring>Layout5</cstring> 336 <cstring>Layout5</cstring>
337 </property> 337 </property>
338 <hbox> 338 <hbox>
339 <property stdset="1"> 339 <property stdset="1">
340 <name>margin</name> 340 <name>margin</name>
341 <number>0</number> 341 <number>0</number>
342 </property> 342 </property>
343 <property stdset="1"> 343 <property stdset="1">
344 <name>spacing</name> 344 <name>spacing</name>
345 <number>6</number> 345 <number>6</number>
346 </property> 346 </property>
347 <widget> 347 <widget>
348 <class>QPushButton</class> 348 <class>QPushButton</class>
349 <property stdset="1"> 349 <property stdset="1">
350 <name>name</name> 350 <name>name</name>
351 <cstring>newdestination</cstring> 351 <cstring>newdestination</cstring>
352 </property> 352 </property>
353 <property stdset="1"> 353 <property stdset="1">
354 <name>enabled</name> 354 <name>enabled</name>
355 <bool>true</bool> 355 <bool>true</bool>
356 </property> 356 </property>
357 <property stdset="1"> 357 <property stdset="1">
358 <name>text</name> 358 <name>text</name>
359 <string>New</string> 359 <string>New</string>
360 </property> 360 </property>
361 <property stdset="1"> 361 <property stdset="1">
362 <name>autoDefault</name> 362 <name>autoDefault</name>
363 <bool>false</bool> 363 <bool>false</bool>
364 </property> 364 </property>
365 </widget> 365 </widget>
366 <widget> 366 <widget>
367 <class>QPushButton</class> 367 <class>QPushButton</class>
368 <property stdset="1"> 368 <property stdset="1">
369 <name>name</name> 369 <name>name</name>
370 <cstring>removedestination</cstring> 370 <cstring>removedestination</cstring>
371 </property> 371 </property>
372 <property stdset="1"> 372 <property stdset="1">
373 <name>enabled</name> 373 <name>enabled</name>
374 <bool>true</bool> 374 <bool>true</bool>
375 </property> 375 </property>
376 <property stdset="1"> 376 <property stdset="1">
377 <name>text</name> 377 <name>text</name>
378 <string>Remove</string> 378 <string>Remove</string>
379 </property> 379 </property>
380 <property stdset="1"> 380 <property stdset="1">
381 <name>autoDefault</name> 381 <name>autoDefault</name>
382 <bool>false</bool> 382 <bool>false</bool>
383 </property> 383 </property>
384 </widget> 384 </widget>
385 </hbox> 385 </hbox>
386 </widget> 386 </widget>
387 <spacer row="0" column="0" > 387 <spacer row="0" column="0" >
388 <property> 388 <property>
389 <name>name</name> 389 <name>name</name>
390 <cstring>Spacer3</cstring> 390 <cstring>Spacer3</cstring>
391 </property> 391 </property>
392 <property stdset="1"> 392 <property stdset="1">
393 <name>orientation</name> 393 <name>orientation</name>
394 <enum>Horizontal</enum> 394 <enum>Horizontal</enum>
395 </property> 395 </property>
396 <property stdset="1"> 396 <property stdset="1">
397 <name>sizeType</name> 397 <name>sizeType</name>
398 <enum>Expanding</enum> 398 <enum>Expanding</enum>
399 </property> 399 </property>
400 <property> 400 <property>
401 <name>sizeHint</name> 401 <name>sizeHint</name>
402 <size> 402 <size>
403 <width>20</width> 403 <width>20</width>
404 <height>20</height> 404 <height>20</height>
405 </size> 405 </size>
406 </property> 406 </property>
407 </spacer> 407 </spacer>
408 <widget row="1" column="0" > 408 <widget row="1" column="0" >
409 <class>QListBox</class> 409 <class>QListBox</class>
410 <property stdset="1"> 410 <property stdset="1">
411 <name>name</name> 411 <name>name</name>
412 <cstring>destinations</cstring> 412 <cstring>destinations</cstring>
413 </property> 413 </property>
414 <property stdset="1"> 414 <property stdset="1">
415 <name>selectionMode</name> 415 <name>selectionMode</name>
416 <enum>Single</enum> 416 <enum>Single</enum>
417 </property> 417 </property>
418 </widget> 418 </widget>
419 <widget row="3" column="0" > 419 <widget row="3" column="0" >
420 <class>QLayoutWidget</class> 420 <class>QLayoutWidget</class>
421 <property stdset="1"> 421 <property stdset="1">
422 <name>name</name> 422 <name>name</name>
423 <cstring>Layout13</cstring> 423 <cstring>Layout13</cstring>
424 </property> 424 </property>
425 <grid> 425 <grid>
426 <property stdset="1"> 426 <property stdset="1">
427 <name>margin</name> 427 <name>margin</name>
428 <number>0</number> 428 <number>0</number>
429 </property> 429 </property>
430 <property stdset="1"> 430 <property stdset="1">
431 <name>spacing</name> 431 <name>spacing</name>
432 <number>6</number> 432 <number>6</number>
433 </property> 433 </property>
434 <widget row="1" column="0" > 434 <widget row="1" column="0" >
435 <class>QLabel</class> 435 <class>QLabel</class>
436 <property stdset="1"> 436 <property stdset="1">
437 <name>name</name> 437 <name>name</name>
438 <cstring>TextLabel1_3_2_2</cstring> 438 <cstring>TextLabel1_3_2_2</cstring>
439 </property> 439 </property>
440 <property stdset="1"> 440 <property stdset="1">
441 <name>text</name> 441 <name>text</name>
442 <string>URL:</string> 442 <string>URL:</string>
443 </property> 443 </property>
444 </widget> 444 </widget>
445 <widget row="3" column="1" > 445 <widget row="3" column="1" >
446 <class>QPushButton</class> 446 <class>QPushButton</class>
447 <property stdset="1"> 447 <property stdset="1">
448 <name>name</name> 448 <name>name</name>
449 <cstring>btnChangeDest</cstring> 449 <cstring>btnChangeDest</cstring>
450 </property> 450 </property>
451 <property stdset="1"> 451 <property stdset="1">
452 <name>text</name> 452 <name>text</name>
453 <string>Change</string> 453 <string>Change</string>
454 </property> 454 </property>
455 </widget> 455 </widget>
456 <widget row="0" column="1" > 456 <widget row="0" column="1" >
457 <class>QLineEdit</class> 457 <class>QLineEdit</class>
458 <property stdset="1"> 458 <property stdset="1">
459 <name>name</name> 459 <name>name</name>
460 <cstring>destinationname</cstring> 460 <cstring>destinationname</cstring>
461 </property> 461 </property>
462 </widget> 462 </widget>
463 <widget row="0" column="0" > 463 <widget row="0" column="0" >
464 <class>QLabel</class> 464 <class>QLabel</class>
465 <property stdset="1"> 465 <property stdset="1">
466 <name>name</name> 466 <name>name</name>
467 <cstring>TextLabel1_3_2</cstring> 467 <cstring>TextLabel1_3_2</cstring>
468 </property> 468 </property>
469 <property stdset="1"> 469 <property stdset="1">
470 <name>text</name> 470 <name>text</name>
471 <string>Name:</string> 471 <string>Name:</string>
472 </property> 472 </property>
473 </widget> 473 </widget>
474 <widget row="2" column="1" > 474 <widget row="2" column="1" >
475 <class>QCheckBox</class> 475 <class>QCheckBox</class>
476 <property stdset="1"> 476 <property stdset="1">
477 <name>name</name> 477 <name>name</name>
478 <cstring>linkToRoot</cstring> 478 <cstring>linkToRoot</cstring>
479 </property> 479 </property>
480 <property stdset="1"> 480 <property stdset="1">
481 <name>text</name> 481 <name>text</name>
482 <string>LinkToRoot</string> 482 <string>Link To Root</string>
483 </property> 483 </property>
484 <property stdset="1"> 484 <property stdset="1">
485 <name>checked</name> 485 <name>checked</name>
486 <bool>true</bool> 486 <bool>true</bool>
487 </property> 487 </property>
488 </widget> 488 </widget>
489 <widget row="1" column="1" > 489 <widget row="1" column="1" >
490 <class>QLineEdit</class> 490 <class>QLineEdit</class>
491 <property stdset="1"> 491 <property stdset="1">
492 <name>name</name> 492 <name>name</name>
493 <cstring>destinationurl</cstring> 493 <cstring>destinationurl</cstring>
494 </property> 494 </property>
495 </widget> 495 </widget>
496 </grid> 496 </grid>
497 </widget> 497 </widget>
498 </grid> 498 </grid>
499 </widget> 499 </widget>
500 <widget> 500 <widget>
501 <class>QWidget</class> 501 <class>QWidget</class>
502 <property stdset="1"> 502 <property stdset="1">
503 <name>name</name> 503 <name>name</name>
504 <cstring>tab</cstring> 504 <cstring>tab</cstring>
505 </property> 505 </property>
506 <attribute> 506 <attribute>
507 <name>title</name> 507 <name>title</name>
508 <string>General</string> 508 <string>General</string>
509 </attribute> 509 </attribute>
510 <widget> 510 <widget>
511 <class>QLabel</class> 511 <class>QLabel</class>
512 <property stdset="1"> 512 <property stdset="1">
513 <name>name</name> 513 <name>name</name>
514 <cstring>TextLabel1</cstring> 514 <cstring>TextLabel1</cstring>
515 </property> 515 </property>
516 <property stdset="1"> 516 <property stdset="1">
517 <name>geometry</name> 517 <name>geometry</name>
518 <rect> 518 <rect>
519 <x>20</x> 519 <x>20</x>
520 <y>30</y> 520 <y>30</y>
521 <width>150</width> 521 <width>150</width>
522 <height>20</height> 522 <height>20</height>
523 </rect> 523 </rect>
524 </property> 524 </property>
525 <property stdset="1"> 525 <property stdset="1">
526 <name>text</name> 526 <name>text</name>
527 <string>(Will take effect on restart)</string> 527 <string>(Will take effect on restart)</string>
528 </property> 528 </property>
529 </widget> 529 </widget>
530 <widget> 530 <widget>
531 <class>QCheckBox</class> 531 <class>QCheckBox</class>
532 <property stdset="1"> 532 <property stdset="1">
533 <name>name</name> 533 <name>name</name>
534 <cstring>jumpTo</cstring> 534 <cstring>jumpTo</cstring>
535 </property> 535 </property>
536 <property stdset="1"> 536 <property stdset="1">
537 <name>geometry</name> 537 <name>geometry</name>
538 <rect> 538 <rect>
539 <x>17</x> 539 <x>17</x>
540 <y>14</y> 540 <y>14</y>
541 <width>150</width> 541 <width>150</width>
542 <height>20</height> 542 <height>20</height>
543 </rect> 543 </rect>
544 </property> 544 </property>
545 <property stdset="1"> 545 <property stdset="1">
546 <name>text</name> 546 <name>text</name>
547 <string>Show Jump To Letters</string> 547 <string>Show Jump To Letters</string>
548 </property> 548 </property>
549 </widget> 549 </widget>
550 </widget> 550 </widget>
551 </widget> 551 </widget>
552 </grid> 552 </grid>
553</widget> 553</widget>
554<connections> 554<connections>
555 <connection> 555 <connection>
556 <sender>newserver</sender> 556 <sender>newserver</sender>
557 <signal>clicked()</signal> 557 <signal>clicked()</signal>
558 <receiver>Settings</receiver> 558 <receiver>Settings</receiver>
559 <slot>newServer()</slot> 559 <slot>newServer()</slot>
560 </connection> 560 </connection>
561 <connection> 561 <connection>
562 <sender>removeserver</sender> 562 <sender>removeserver</sender>
563 <signal>clicked()</signal> 563 <signal>clicked()</signal>
564 <receiver>Settings</receiver> 564 <receiver>Settings</receiver>
565 <slot>removeServer()</slot> 565 <slot>removeServer()</slot>
566 </connection> 566 </connection>
567 <connection> 567 <connection>
568 <sender>newdestination</sender> 568 <sender>newdestination</sender>
569 <signal>clicked()</signal> 569 <signal>clicked()</signal>
570 <receiver>Settings</receiver> 570 <receiver>Settings</receiver>
571 <slot>newDestination()</slot> 571 <slot>newDestination()</slot>
572 </connection> 572 </connection>
573 <connection> 573 <connection>
574 <sender>removedestination</sender> 574 <sender>removedestination</sender>
575 <signal>clicked()</signal> 575 <signal>clicked()</signal>
576 <receiver>Settings</receiver> 576 <receiver>Settings</receiver>
577 <slot>removeDestination()</slot> 577 <slot>removeDestination()</slot>
578 </connection> 578 </connection>
579 <connection> 579 <connection>
580 <sender>servers</sender> 580 <sender>servers</sender>
581 <signal>highlighted(int)</signal> 581 <signal>highlighted(int)</signal>
582 <receiver>Settings</receiver> 582 <receiver>Settings</receiver>
583 <slot>editServer(int)</slot> 583 <slot>editServer(int)</slot>
584 </connection> 584 </connection>
585 <connection> 585 <connection>
586 <sender>destinations</sender> 586 <sender>destinations</sender>
587 <signal>highlighted(int)</signal> 587 <signal>highlighted(int)</signal>
588 <receiver>Settings</receiver> 588 <receiver>Settings</receiver>
589 <slot>editDestination(int)</slot> 589 <slot>editDestination(int)</slot>
590 </connection> 590 </connection>
591 <connection> 591 <connection>
592 <sender>btnChangeServer</sender> 592 <sender>btnChangeServer</sender>
593 <signal>clicked()</signal> 593 <signal>clicked()</signal>
594 <receiver>Settings</receiver> 594 <receiver>Settings</receiver>
595 <slot>changeServerDetails()</slot> 595 <slot>changeServerDetails()</slot>
596 </connection> 596 </connection>
597 <connection> 597 <connection>
598 <sender>btnChangeDest</sender> 598 <sender>btnChangeDest</sender>
599 <signal>clicked()</signal> 599 <signal>clicked()</signal>
600 <receiver>Settings</receiver> 600 <receiver>Settings</receiver>
601 <slot>changeDestinationDetails()</slot> 601 <slot>changeDestinationDetails()</slot>
602 </connection> 602 </connection>
603 <connection> 603 <connection>
604 <sender>jumpTo</sender> 604 <sender>jumpTo</sender>
605 <signal>toggled(bool)</signal> 605 <signal>toggled(bool)</signal>
606 <receiver>Settings</receiver> 606 <receiver>Settings</receiver>
607 <slot>toggleJumpTo(bool)</slot> 607 <slot>toggleJumpTo(bool)</slot>
608 </connection> 608 </connection>
609 <slot access="public">activeServerChanged()</slot> 609 <slot access="public">activeServerChanged()</slot>
610 <slot access="public">changeDestinationDetails()</slot> 610 <slot access="public">changeDestinationDetails()</slot>
611 <slot access="public">changeServerDetails()</slot> 611 <slot access="public">changeServerDetails()</slot>
612 <slot access="public">createLinksToDest()</slot> 612 <slot access="public">createLinksToDest()</slot>
613 <slot access="public">destNameChanged(const QString&amp;)</slot> 613 <slot access="public">destNameChanged(const QString&amp;)</slot>
614 <slot access="public">destUrlChanged(const QString&amp;)</slot> 614 <slot access="public">destUrlChanged(const QString&amp;)</slot>
615 <slot access="public">editDestination(int)</slot> 615 <slot access="public">editDestination(int)</slot>
616 <slot access="public">editServer(int)</slot> 616 <slot access="public">editServer(int)</slot>
617 <slot access="public">installationSettingChange(int)</slot> 617 <slot access="public">installationSettingChange(int)</slot>
618 <slot access="public">installationSettingSetName(const QString &amp;)</slot> 618 <slot access="public">installationSettingSetName(const QString &amp;)</slot>
619 <slot access="public">linkEnabled(bool)</slot> 619 <slot access="public">linkEnabled(bool)</slot>
620 <slot access="public">newDestination()</slot> 620 <slot access="public">newDestination()</slot>
621 <slot access="public">newInstallationSetting()</slot> 621 <slot access="public">newInstallationSetting()</slot>
622 <slot access="public">newServer()</slot> 622 <slot access="public">newServer()</slot>
623 <slot access="public">removeDestination()</slot> 623 <slot access="public">removeDestination()</slot>
624 <slot access="public">removeInstallationSetting()</slot> 624 <slot access="public">removeInstallationSetting()</slot>
625 <slot access="public">removeLinksToDest()</slot> 625 <slot access="public">removeLinksToDest()</slot>
626 <slot access="public">removeServer()</slot> 626 <slot access="public">removeServer()</slot>
627 <slot access="public">renameInstallationSetting()</slot> 627 <slot access="public">renameInstallationSetting()</slot>
628 <slot access="public">serverNameChanged(const QString&amp;)</slot> 628 <slot access="public">serverNameChanged(const QString&amp;)</slot>
629 <slot access="public">serverUrlChanged(const QString&amp;)</slot> 629 <slot access="public">serverUrlChanged(const QString&amp;)</slot>
630 <slot access="public">toggleJumpTo(bool)</slot> 630 <slot access="public">toggleJumpTo(bool)</slot>
631</connections> 631</connections>
632<tabstops> 632<tabstops>
633 <tabstop>servers</tabstop> 633 <tabstop>servers</tabstop>
634 <tabstop>newserver</tabstop> 634 <tabstop>newserver</tabstop>
635 <tabstop>removeserver</tabstop> 635 <tabstop>removeserver</tabstop>
636 <tabstop>servername</tabstop> 636 <tabstop>servername</tabstop>
637 <tabstop>serverurl</tabstop> 637 <tabstop>serverurl</tabstop>
638 <tabstop>active</tabstop> 638 <tabstop>active</tabstop>
639 <tabstop>btnChangeServer</tabstop> 639 <tabstop>btnChangeServer</tabstop>
640 <tabstop>TabWidget</tabstop> 640 <tabstop>TabWidget</tabstop>
641 <tabstop>destinations</tabstop> 641 <tabstop>destinations</tabstop>
642 <tabstop>newdestination</tabstop> 642 <tabstop>newdestination</tabstop>
643 <tabstop>removedestination</tabstop> 643 <tabstop>removedestination</tabstop>
644 <tabstop>destinationname</tabstop> 644 <tabstop>destinationname</tabstop>
645 <tabstop>destinationurl</tabstop> 645 <tabstop>destinationurl</tabstop>
646 <tabstop>linkToRoot</tabstop> 646 <tabstop>linkToRoot</tabstop>
647 <tabstop>btnChangeDest</tabstop> 647 <tabstop>btnChangeDest</tabstop>
648 <tabstop>jumpTo</tabstop> 648 <tabstop>jumpTo</tabstop>
649</tabstops> 649</tabstops>
650</UI> 650</UI>