summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp55
1 files changed, 47 insertions, 8 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index 233eae6..7df1d6b 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -44,5 +44,5 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) :
listViewPackages->addList( tr("feeds"), &packageListServers );
listViewPackages->addList( tr("ipkgfind"), &packageListSearch );
- listViewPackages->addList( tr("documents"), &packageListDocLnk );
+//listViewPackages->addList( tr("documents"), &packageListDocLnk );
ipkg = new PmIpkg( settings, this );
packageListServers.setSettings( settings );
@@ -52,5 +52,6 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) :
packageListServers.update();
pvDebug(9,"packageListDocLnk.update");
- packageListDocLnk.update();
+ pvDebug(0,"no UPDATE of DocLnk");
+// packageListDocLnk.update();
pvDebug(9,"makeMenu");
makeMenu();
@@ -83,5 +84,5 @@ void MainWindow::makeMenu()
QPopupMenu *viewMenu = new QPopupMenu( menuBar );
QPopupMenu *cfgMenu = new QPopupMenu( menuBar );
- // QPopupMenu *sectMenu = new QPopupMenu( menuBar );
+ QPopupMenu *helpMenu = new QPopupMenu( menuBar );
setToolBarsMovable( false );
@@ -90,5 +91,5 @@ void MainWindow::makeMenu()
menuBar->insertItem( tr( "View" ), viewMenu );
menuBar->insertItem( tr( "Settings" ), cfgMenu );
- // menuBar->insertItem( tr( "Sections" ), sectMenu );
+ menuBar->insertItem( tr( "Help" ), helpMenu );
QLabel *spacer;
@@ -106,5 +107,5 @@ void MainWindow::makeMenu()
runAction->addTo( srvMenu );
- srvMenu->insertSeparator ();
+ srvMenu->insertSeparator();
updateAction = new QAction( tr( "Update" ),
@@ -230,4 +231,41 @@ void MainWindow::makeMenu()
// destAction->addTo( viewMenu );
+// helpMenu
+ helpMenu->insertSeparator();
+ a = new QAction( tr( "Package Actions" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+ helpMenu->insertSeparator();
+ a = new QAction( tr( "Install" ),
+ Resource::loadPixmap( "oipkg/install" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+ a = new QAction( tr( "Remove" ),
+ Resource::loadPixmap( "oipkg/uninstall" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+ helpMenu->insertSeparator();
+ a = new QAction( tr( "Package Status" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+ helpMenu->insertSeparator();
+ a = new QAction( tr( "New version, installed" ),
+ Resource::loadPixmap( "oipkg/installed" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+ a = new QAction( tr( "New version, not installed" ),
+ Resource::loadPixmap( "oipkg/uninstalled" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+ a = new QAction( tr( "Old version, installed" ),
+ Resource::loadPixmap( "oipkg/installedOld" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+ a = new QAction( tr( "Old version, not installed" ),
+ Resource::loadPixmap( "oipkg/uninstalledOld" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+ a = new QAction( tr( "Old version, new version installed" ),
+ Resource::loadPixmap( "oipkg/uninstalledOldinstalledNew" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+ a = new QAction( tr( "New version, old version installed" ),
+ Resource::loadPixmap( "oipkg/uninstalledInstalledOld" ), QString::null, 0, this, 0 );
+ a->addTo( helpMenu );
+// a = new QAction( tr( "" ),
+// Resource::loadPixmap( "oipkg/" ), QString::null, 0, this, 0 );
+// a->addTo( helpMenu );
+
// configure the menus
Config cfg( "oipkg", Config::User );
@@ -255,5 +293,5 @@ void MainWindow::runIpkg()
packageListServers.allPackages();
ipkg->loadList( &packageListSearch );
- ipkg->loadList( &packageListDocLnk );
+//ipkg->loadList( &packageListDocLnk );
ipkg->loadList( &packageListServers );
ipkg->commit();
@@ -271,9 +309,10 @@ void MainWindow::updateList()
packageListServers.clear();
packageListSearch.clear();
- packageListDocLnk.clear();
+
+// packageListDocLnk.clear();
ipkg->update();
packageListServers.update();
packageListSearch.update();
- packageListDocLnk.update();
+// packageListDocLnk.update();
}