summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/mainwindow.cpp
authortille <tille>2002-04-23 22:41:02 (UTC)
committer tille <tille>2002-04-23 22:41:02 (UTC)
commitf90935204b16126b40d4c562b26e37148ca03536 (patch) (side-by-side diff)
tree40a3e25d9e5078a3871ae7ba5b1fb86245ead187 /noncore/unsupported/oipkg/mainwindow.cpp
parentab7037fb8c10cc2ee37a3728caab7d4da4cdc1b3 (diff)
downloadopie-f90935204b16126b40d4c562b26e37148ca03536.zip
opie-f90935204b16126b40d4c562b26e37148ca03536.tar.gz
opie-f90935204b16126b40d4c562b26e37148ca03536.tar.bz2
fixes: update and link creation
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp26
1 files changed, 17 insertions, 9 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index b485a03..cb2b4cd 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -52,5 +52,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) :
ipkg = new PmIpkg( settings, this );
packageList.setSettings( settings );
- newList();
+ getList();
setSections();
setSubSections();
@@ -67,4 +67,11 @@ void MainWindow::makeMenu()
// QPopupMenu *sectMenu = new QPopupMenu( menuBar );
+//#define TOOLBAR
+#ifdef TOOLBAR
+ QPEToolBar *secBar = new QPEToolBar( this );
+ QComboBox *sections = new QComboBox( false, this );
+ secBar->addTo( sections );
+#endif
+
contextMenu = new QPopupMenu( this );
@@ -135,17 +142,18 @@ void MainWindow::runIpkg()
{
ipkg->commit( packageList );
- ipkg->runIpkg("update");
- packageList.update();
+ updateList();
}
void MainWindow::updateList()
{
- ipkg->runIpkg("update");
- packageList.update();
+ // todo: packageList.clear();
+ ipkg->update();
+ getList();
}
-void MainWindow::newList()
+void MainWindow::getList()
{
packageList.update();
+ displayList();
}
@@ -218,15 +226,15 @@ void MainWindow::showSettings()
{
if ( settings->showDialog( 0 ) )
- newList();
+ getList();
}
void MainWindow::showSettingsSrv()
{
if ( settings->showDialog( 1 ) )
- newList();
+ getList();
}
void MainWindow::showSettingsDst()
{
if ( settings->showDialog( 2 ) )
- newList();
+ getList();
}