summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/instoptionsimpl.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/aqpkg/instoptionsimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/instoptionsimpl.cpp44
1 files changed, 23 insertions, 21 deletions
diff --git a/noncore/settings/aqpkg/instoptionsimpl.cpp b/noncore/settings/aqpkg/instoptionsimpl.cpp
index 9d52013..126e3b9 100644
--- a/noncore/settings/aqpkg/instoptionsimpl.cpp
+++ b/noncore/settings/aqpkg/instoptionsimpl.cpp
@@ -24,42 +24,45 @@
    --        :-=` Free Software Foundation, Inc.,
59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+#include "global.h"
+#include "instoptionsimpl.h"
+#include "ipkg.h"
+
+/* OPIE */
#ifdef QWS
#include <qpe/config.h>
#endif
+#include <qpe/qpeapplication.h>
+/* QT */
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlayout.h>
-#include "global.h"
-#include "instoptionsimpl.h"
-#include "ipkg.h"
-
InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, int verb, QWidget * parent, const char* name, bool modal, WFlags fl )
- : QDialog( parent, name, modal, fl )
+ : QDialog( parent, name, modal, fl )
{
setCaption( tr( "Options" ) );
-
+
QVBoxLayout *layout = new QVBoxLayout( this );
layout->setMargin( 2 );
layout->setSpacing( 4 );
QGroupBox *grpbox = new QGroupBox( 0, Qt::Vertical, tr( "Options" ), this );
grpbox->layout()->setSpacing( 2 );
grpbox->layout()->setMargin( 4 );
layout->addWidget( grpbox );
QVBoxLayout *grplayout = new QVBoxLayout( grpbox->layout() );
-
+
forceDepends = new QCheckBox( tr( "Force Depends" ), grpbox );
grplayout->addWidget( forceDepends );
forceReinstall = new QCheckBox( tr( "Force Reinstall" ), grpbox );
grplayout->addWidget( forceReinstall );
@@ -68,43 +71,42 @@ InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, int verb, QWidget * par
forceOverwrite = new QCheckBox( tr( "Force Overwrite" ), grpbox );
grplayout->addWidget( forceOverwrite );
QLabel *l = new QLabel( tr( "Information Level" ), grpbox );
grplayout->addWidget( l );
-
+
verboseIpkg = new QComboBox( grpbox );
verboseIpkg->insertItem( tr( "Errors only" ) );
verboseIpkg->insertItem( tr( "Normal messages" ) );
verboseIpkg->insertItem( tr( "Informative messages" ) );
verboseIpkg->insertItem( tr( "Troubleshooting output" ) );
verboseIpkg->setCurrentItem( verb );
grplayout->addWidget( verboseIpkg );
-
+
grplayout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ) );
-
+
if ( flags & FORCE_DEPENDS )
- forceDepends->setChecked( true );
+ forceDepends->setChecked( true );
if ( flags & FORCE_REINSTALL )
- forceReinstall->setChecked( true );
+ forceReinstall->setChecked( true );
if ( flags & FORCE_REMOVE )
- forceRemove->setChecked( true );
+ forceRemove->setChecked( true );
if ( flags & FORCE_OVERWRITE )
- forceOverwrite->setChecked( true );
-// if ( flags & VERBOSE_WGET )
-// verboseWget->setChecked( true );
-// if ( flags & MAKE_LINKS )
-// makeLinks->setChecked( true );
+ forceOverwrite->setChecked( true );
+ // if ( flags & VERBOSE_WGET )
+ // verboseWget->setChecked( true );
+ // if ( flags & MAKE_LINKS )
+ // makeLinks->setChecked( true );
- showMaximized();
+ QPEApplication::showDialog( this );
}
InstallOptionsDlgImpl::~InstallOptionsDlgImpl()
-{
-}
+{}
int InstallOptionsDlgImpl :: getFlags()
{
int flags = 0;