Diffstat (limited to 'noncore/settings/aqpkg/instoptionsimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/instoptionsimpl.cpp | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/noncore/settings/aqpkg/instoptionsimpl.cpp b/noncore/settings/aqpkg/instoptionsimpl.cpp index 47b250d..72d794f 100644 --- a/noncore/settings/aqpkg/instoptionsimpl.cpp +++ b/noncore/settings/aqpkg/instoptionsimpl.cpp | |||
@@ -19,16 +19,18 @@ | |||
19 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | #include <qcheckbox.h> | 22 | #include <qcheckbox.h> |
23 | #include <qcombobox.h> | ||
23 | #include <qgroupbox.h> | 24 | #include <qgroupbox.h> |
25 | #include <qlabel.h> | ||
24 | #include <qlayout.h> | 26 | #include <qlayout.h> |
25 | 27 | ||
26 | #include "global.h" | 28 | #include "global.h" |
27 | #include "instoptionsimpl.h" | 29 | #include "instoptionsimpl.h" |
28 | #include "ipkg.h" | 30 | #include "ipkg.h" |
29 | 31 | ||
30 | InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, QWidget * parent, const char* name, bool modal, WFlags fl ) | 32 | InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, int verb, QWidget * parent, const char* name, bool modal, WFlags fl ) |
31 | : QDialog( parent, name, modal, fl ) | 33 | : QDialog( parent, name, modal, fl ) |
32 | { | 34 | { |
33 | setCaption( tr( "Options" ) ); | 35 | setCaption( tr( "Options" ) ); |
34 | 36 | ||
@@ -54,10 +56,20 @@ InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, QWidget * parent, const | |||
54 | 56 | ||
55 | forceOverwrite = new QCheckBox( tr( "Force Overwrite" ), grpbox ); | 57 | forceOverwrite = new QCheckBox( tr( "Force Overwrite" ), grpbox ); |
56 | grplayout->addWidget( forceOverwrite ); | 58 | grplayout->addWidget( forceOverwrite ); |
57 | 59 | ||
58 | verboseWget = new QCheckBox( tr( "Verbose WGet" ), grpbox ); | 60 | QLabel *l = new QLabel( tr( "Information Level" ), grpbox ); |
59 | grplayout->addWidget( verboseWget ); | 61 | grplayout->addWidget( l ); |
62 | |||
63 | verboseIpkg = new QComboBox( grpbox ); | ||
64 | verboseIpkg->insertItem( tr( "Errors only" ) ); | ||
65 | verboseIpkg->insertItem( tr( "Normal messages" ) ); | ||
66 | verboseIpkg->insertItem( tr( "Informative messages" ) ); | ||
67 | verboseIpkg->insertItem( tr( "Troubleshooting output" ) ); | ||
68 | verboseIpkg->setCurrentItem( verb ); | ||
69 | grplayout->addWidget( verboseIpkg ); | ||
70 | |||
71 | grplayout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ) ); | ||
60 | 72 | ||
61 | if ( flags & FORCE_DEPENDS ) | 73 | if ( flags & FORCE_DEPENDS ) |
62 | forceDepends->setChecked( true ); | 74 | forceDepends->setChecked( true ); |
63 | if ( flags & FORCE_REINSTALL ) | 75 | if ( flags & FORCE_REINSTALL ) |
@@ -65,10 +77,10 @@ InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, QWidget * parent, const | |||
65 | if ( flags & FORCE_REMOVE ) | 77 | if ( flags & FORCE_REMOVE ) |
66 | forceRemove->setChecked( true ); | 78 | forceRemove->setChecked( true ); |
67 | if ( flags & FORCE_OVERWRITE ) | 79 | if ( flags & FORCE_OVERWRITE ) |
68 | forceOverwrite->setChecked( true ); | 80 | forceOverwrite->setChecked( true ); |
69 | if ( flags & VERBOSE_WGET ) | 81 | // if ( flags & VERBOSE_WGET ) |
70 | verboseWget->setChecked( true ); | 82 | // verboseWget->setChecked( true ); |
71 | // if ( flags & MAKE_LINKS ) | 83 | // if ( flags & MAKE_LINKS ) |
72 | // makeLinks->setChecked( true ); | 84 | // makeLinks->setChecked( true ); |
73 | 85 | ||
74 | showMaximized(); | 86 | showMaximized(); |
@@ -96,4 +108,9 @@ int InstallOptionsDlgImpl :: getFlags() | |||
96 | flags |= VERBOSE_WGET; | 108 | flags |= VERBOSE_WGET; |
97 | 109 | ||
98 | return flags; | 110 | return flags; |
99 | } | 111 | } |
112 | |||
113 | int InstallOptionsDlgImpl :: getInfoLevel() | ||
114 | { | ||
115 | return verboseIpkg->currentItem(); | ||
116 | } | ||