summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/mainwin.cpp
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/mainwin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/mainwin.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp
index 8ae5815..392d04d 100644
--- a/noncore/settings/aqpkg/mainwin.cpp
+++ b/noncore/settings/aqpkg/mainwin.cpp
@@ -40,13 +40,12 @@
40#include <qwhatsthis.h> 40#include <qwhatsthis.h>
41#include <qwidgetstack.h> 41#include <qwidgetstack.h>
42 42
43#include "categoryfilterimpl.h" 43#include "categoryfilterimpl.h"
44#include "datamgr.h" 44#include "datamgr.h"
45#include "global.h" 45#include "global.h"
46#include "helpwindow.h"
47#include "inputdlg.h" 46#include "inputdlg.h"
48#include "ipkg.h" 47#include "ipkg.h"
49#include "installdlgimpl.h" 48#include "installdlgimpl.h"
50#include "letterpushbutton.h" 49#include "letterpushbutton.h"
51#include "mainwin.h" 50#include "mainwin.h"
52#include "settingsimpl.h" 51#include "settingsimpl.h"
@@ -201,24 +200,12 @@ MainWindow :: MainWindow()
201 200
202 a = new QAction( tr( "Configure" ), Resource::loadPixmap( "aqpkg/config" ), QString::null, 0, this, 0 ); 201 a = new QAction( tr( "Configure" ), Resource::loadPixmap( "aqpkg/config" ), QString::null, 0, this, 0 );
203 a->setWhatsThis( tr( "Click here to configure this application." ) ); 202 a->setWhatsThis( tr( "Click here to configure this application." ) );
204 connect( a, SIGNAL( activated() ), this, SLOT( displaySettings() ) ); 203 connect( a, SIGNAL( activated() ), this, SLOT( displaySettings() ) );
205 a->addTo( popup ); 204 a->addTo( popup );
206 205
207 popup->insertSeparator();
208
209 a = new QAction( tr( "Help" ), Resource::loadPixmap( "help_icon" ), QString::null, 0, this, 0 );
210 a->setWhatsThis( tr( "Click here for help." ) );
211 connect( a, SIGNAL( activated() ), this, SLOT( displayHelp() ) );
212 a->addTo( popup );
213
214 a = new QAction( tr( "About" ), Resource::loadPixmap( "UtilsIcon" ), QString::null, 0, this, 0 );
215 a->setWhatsThis( tr( "Click here for software version information." ) );
216 connect( a, SIGNAL( activated() ), this, SLOT( displayAbout() ) );
217 a->addTo( popup );
218
219 mb->insertItem( tr( "Options" ), popup ); 206 mb->insertItem( tr( "Options" ), popup );
220 207
221 // Finish find toolbar creation 208 // Finish find toolbar creation
222 a = new QAction( QString::null, Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); 209 a = new QAction( QString::null, Resource::loadPixmap( "close" ), QString::null, 0, this, 0 );
223 a->setWhatsThis( tr( "Click here to hide the find toolbar." ) ); 210 a->setWhatsThis( tr( "Click here to hide the find toolbar." ) );
224 connect( a, SIGNAL( activated() ), this, SLOT( hideFindBar() ) ); 211 connect( a, SIGNAL( activated() ), this, SLOT( hideFindBar() ) );
@@ -350,19 +337,12 @@ void MainWindow :: displaySettings()
350 stack->raiseWidget( progressWindow ); 337 stack->raiseWidget( progressWindow );
351 updateData(); 338 updateData();
352 stack->raiseWidget( networkPkgWindow ); 339 stack->raiseWidget( networkPkgWindow );
353 } 340 }
354 delete dlg; 341 delete dlg;
355} 342}
356
357void MainWindow :: displayHelp()
358{
359 HelpWindow *dlg = new HelpWindow( this );
360 dlg->exec();
361 delete dlg;
362}
363 343
364void MainWindow :: displayFindBar() 344void MainWindow :: displayFindBar()
365{ 345{
366 findBar->show(); 346 findBar->show();
367 findEdit->setFocus(); 347 findEdit->setFocus();
368} 348}
@@ -390,17 +370,12 @@ void MainWindow :: hideFindBar()
390 370
391void MainWindow :: hideJumpBar() 371void MainWindow :: hideJumpBar()
392{ 372{
393 jumpBar->hide(); 373 jumpBar->hide();
394} 374}
395 375
396void MainWindow :: displayAbout()
397{
398 QMessageBox::about( this, tr( "About AQPkg" ), tr( VERSION_TEXT ) );
399}
400
401void MainWindow :: filterUninstalledPackages() 376void MainWindow :: filterUninstalledPackages()
402{ 377{
403 showUninstalledPkgs = actionUninstalled->isOn(); 378 showUninstalledPkgs = actionUninstalled->isOn();
404 if ( showUninstalledPkgs ) 379 if ( showUninstalledPkgs )
405 { 380 {
406 showInstalledPkgs = FALSE; 381 showInstalledPkgs = FALSE;