Diffstat (limited to 'noncore/settings/aqpkg/mainwin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/mainwin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp index 947aace..361946c 100644 --- a/noncore/settings/aqpkg/mainwin.cpp +++ b/noncore/settings/aqpkg/mainwin.cpp | |||
@@ -300,97 +300,97 @@ void MainWindow :: init() | |||
300 | connect( mgr, SIGNAL( progressSetMessage( const QString & ) ), | 300 | connect( mgr, SIGNAL( progressSetMessage( const QString & ) ), |
301 | this, SLOT( setProgressMessage( const QString & ) ) ); | 301 | this, SLOT( setProgressMessage( const QString & ) ) ); |
302 | connect( mgr, SIGNAL( progressUpdate( int ) ), this, SLOT( updateProgress( int ) ) ); | 302 | connect( mgr, SIGNAL( progressUpdate( int ) ), this, SLOT( updateProgress( int ) ) ); |
303 | mgr->loadServers(); | 303 | mgr->loadServers(); |
304 | 304 | ||
305 | showUninstalledPkgs = false; | 305 | showUninstalledPkgs = false; |
306 | showInstalledPkgs = false; | 306 | showInstalledPkgs = false; |
307 | showUpgradedPkgs = false; | 307 | showUpgradedPkgs = false; |
308 | categoryFilterEnabled = false; | 308 | categoryFilterEnabled = false; |
309 | 309 | ||
310 | updateData(); | 310 | updateData(); |
311 | 311 | ||
312 | stack->raiseWidget( networkPkgWindow ); | 312 | stack->raiseWidget( networkPkgWindow ); |
313 | } | 313 | } |
314 | /* | 314 | /* |
315 | void MainWindow :: setDocument( const QString &doc ) | 315 | void MainWindow :: setDocument( const QString &doc ) |
316 | { | 316 | { |
317 | // Remove path from package | 317 | // Remove path from package |
318 | QString package = Utils::getPackageNameFromIpkFilename( doc ); | 318 | QString package = Utils::getPackageNameFromIpkFilename( doc ); |
319 | // std::cout << "Selecting package " << package << std::endl; | 319 | // std::cout << "Selecting package " << package << std::endl; |
320 | 320 | ||
321 | // First select local server | 321 | // First select local server |
322 | for ( int i = 0 ; i < serversList->count() ; ++i ) | 322 | for ( int i = 0 ; i < serversList->count() ; ++i ) |
323 | { | 323 | { |
324 | if ( serversList->text( i ) == LOCAL_IPKGS ) | 324 | if ( serversList->text( i ) == LOCAL_IPKGS ) |
325 | { | 325 | { |
326 | serversList->setCurrentItem( i ); | 326 | serversList->setCurrentItem( i ); |
327 | break; | 327 | break; |
328 | } | 328 | } |
329 | } | 329 | } |
330 | serverSelected( 0 ); | 330 | serverSelected( 0 ); |
331 | 331 | ||
332 | // Now set the check box of the selected package | 332 | // Now set the check box of the selected package |
333 | for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild(); | 333 | for ( QCheckListItem *item = (QCheckListItem *)packagesList->firstChild(); |
334 | item != 0 ; | 334 | item != 0 ; |
335 | item = (QCheckListItem *)item->nextSibling() ) | 335 | item = (QCheckListItem *)item->nextSibling() ) |
336 | { | 336 | { |
337 | if ( item->text().startsWith( package ) ) | 337 | if ( item->text().startsWith( package ) ) |
338 | { | 338 | { |
339 | item->setOn( true ); | 339 | item->setOn( true ); |
340 | break; | 340 | break; |
341 | } | 341 | } |
342 | } | 342 | } |
343 | } | 343 | } |
344 | */ | 344 | */ |
345 | void MainWindow :: displaySettings() | 345 | void MainWindow :: displaySettings() |
346 | { | 346 | { |
347 | SettingsImpl *dlg = new SettingsImpl( mgr, this, "Settings", true ); | 347 | SettingsImpl *dlg = new SettingsImpl( mgr, this, "Settings", true ); |
348 | if ( dlg->showDlg( 0 ) ) | 348 | if ( dlg->showDlg() ) |
349 | { | 349 | { |
350 | stack->raiseWidget( progressWindow ); | 350 | stack->raiseWidget( progressWindow ); |
351 | updateData(); | 351 | updateData(); |
352 | stack->raiseWidget( networkPkgWindow ); | 352 | stack->raiseWidget( networkPkgWindow ); |
353 | } | 353 | } |
354 | delete dlg; | 354 | delete dlg; |
355 | } | 355 | } |
356 | 356 | ||
357 | void MainWindow :: displayHelp() | 357 | void MainWindow :: displayHelp() |
358 | { | 358 | { |
359 | HelpWindow *dlg = new HelpWindow( this ); | 359 | HelpWindow *dlg = new HelpWindow( this ); |
360 | dlg->exec(); | 360 | dlg->exec(); |
361 | delete dlg; | 361 | delete dlg; |
362 | } | 362 | } |
363 | 363 | ||
364 | void MainWindow :: displayFindBar() | 364 | void MainWindow :: displayFindBar() |
365 | { | 365 | { |
366 | findBar->show(); | 366 | findBar->show(); |
367 | findEdit->setFocus(); | 367 | findEdit->setFocus(); |
368 | } | 368 | } |
369 | 369 | ||
370 | void MainWindow :: displayJumpBar() | 370 | void MainWindow :: displayJumpBar() |
371 | { | 371 | { |
372 | jumpBar->show(); | 372 | jumpBar->show(); |
373 | } | 373 | } |
374 | 374 | ||
375 | void MainWindow :: repeatFind() | 375 | void MainWindow :: repeatFind() |
376 | { | 376 | { |
377 | searchForPackage( findEdit->text() ); | 377 | searchForPackage( findEdit->text() ); |
378 | } | 378 | } |
379 | 379 | ||
380 | void MainWindow :: findPackage( const QString &text ) | 380 | void MainWindow :: findPackage( const QString &text ) |
381 | { | 381 | { |
382 | actionFindNext->setEnabled( !text.isEmpty() ); | 382 | actionFindNext->setEnabled( !text.isEmpty() ); |
383 | searchForPackage( text ); | 383 | searchForPackage( text ); |
384 | } | 384 | } |
385 | 385 | ||
386 | void MainWindow :: hideFindBar() | 386 | void MainWindow :: hideFindBar() |
387 | { | 387 | { |
388 | findBar->hide(); | 388 | findBar->hide(); |
389 | } | 389 | } |
390 | 390 | ||
391 | void MainWindow :: hideJumpBar() | 391 | void MainWindow :: hideJumpBar() |
392 | { | 392 | { |
393 | jumpBar->hide(); | 393 | jumpBar->hide(); |
394 | } | 394 | } |
395 | 395 | ||
396 | void MainWindow :: displayAbout() | 396 | void MainWindow :: displayAbout() |