author | tille <tille> | 2002-06-28 17:17:53 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-28 17:17:53 (UTC) |
commit | 54ab82774f52332dbbb97de057ee2b1c5d29347d (patch) (side-by-side diff) | |
tree | 5506a01f59e4913993c3343cb7065c78df2793c5 /noncore/unsupported | |
parent | 8176526fc61f4b4012021a4324aee592463dbb3a (diff) | |
download | opie-54ab82774f52332dbbb97de057ee2b1c5d29347d.zip opie-54ab82774f52332dbbb97de057ee2b1c5d29347d.tar.gz opie-54ab82774f52332dbbb97de057ee2b1c5d29347d.tar.bz2 |
doclnk is back, since it seems to work now!
-rw-r--r-- | noncore/unsupported/oipkg/mainwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp index 05f2f06..8778b85 100644 --- a/noncore/unsupported/oipkg/mainwindow.cpp +++ b/noncore/unsupported/oipkg/mainwindow.cpp @@ -34,34 +34,34 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : QMainWindow( parent, name, f ) // packageListServers( QObject(parent), name ), // packageListSearch( parent, name ), // packageListDocLnk( parent, name ) { setCaption( tr("Package Manager") ); settings = new PackageManagerSettings(this,0,TRUE); listViewPackages = new PackageListView( this,"listViewPackages",settings ); setCentralWidget( listViewPackages ); 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 ); packageListSearch.setSettings( settings ); packageListDocLnk.setSettings( settings ); pvDebug(9,"packageListServers.update"); packageListServers.update(); pvDebug(9,"packageListDocLnk.update"); pvDebug(0,"no UPDATE of DocLnk"); -// packageListDocLnk.update(); + packageListDocLnk.update(); pvDebug(9,"makeMenu"); makeMenu(); makeChannel(); //opie is hardcoded default ;) // pvDebug(9,"section->setCurrentItem"); // for (int i=0;i<section->count();i++) // if (section->text(i)=="opie") // section->setCurrentItem(i); // sectionChanged(); connect( section, SIGNAL(activated(int)), SLOT(sectionChanged()) ); connect( subsection, SIGNAL(activated(int)), SLOT(subSectionChanged()) ); @@ -283,46 +283,46 @@ MainWindow::~MainWindow() cfg.setGroup( "gui" ); cfg.writeEntry( "findBar", !findBar->isHidden() ); cfg.writeEntry( "searchBar", !searchBar->isHidden() ); cfg.writeEntry( "sectionBar", !sectionBar->isHidden() ); cfg.writeEntry( "destBar", !destBar->isHidden() ); } void MainWindow::runIpkg() { packageListServers.allPackages(); ipkg->loadList( &packageListSearch ); -//ipkg->loadList( &packageListDocLnk ); + ipkg->loadList( &packageListDocLnk ); ipkg->loadList( &packageListServers ); ipkg->commit(); ipkg->clearLists(); // ##### If we looked in the list of files, we could send out accurate // ##### messages. But we don't bother yet, and just do an "all". QCopEnvelope e("QPE/System", "linkChanged(QString)"); QString lf = QString::null; e << lf; displayList(); } void MainWindow::updateList() { packageListServers.clear(); packageListSearch.clear(); -// packageListDocLnk.clear(); + packageListDocLnk.clear(); ipkg->update(); packageListServers.update(); packageListSearch.update(); -// packageListDocLnk.update(); + packageListDocLnk.update(); } void MainWindow::filterList() { QString f = ""; if ( findAction->isOn() ) f = findEdit->text(); packageListServers.filterPackages( f ); } void MainWindow::displayList() { filterList(); |