summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/mainwindow.cpp
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index 8778b85..084900d 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -1,70 +1,80 @@
1/***************************************************************************
2 * *
3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU General Public License as published by *
5 * the Free Software Foundation; either version 2 of the License, or *
6 * (at your option) any later version. *
7 * *
8 ***************************************************************************/
9// Copyright (C) 2000 Trolltech AS.
1// adadpted form qpe/qipkg 10// adadpted form qpe/qipkg
11// (c) 2002 Patrick S. Vogt <tille@handhelds.org>
2 12
3 13
4#include "mainwindow.h" 14#include "mainwindow.h"
5 15
6#include <qpe/qpemenubar.h> 16#include <qpe/qpemenubar.h>
7#include <qpe/qpemessagebox.h> 17#include <qpe/qpemessagebox.h>
8#include <qpe/resource.h> 18#include <qpe/resource.h>
9#include <qpe/config.h> 19#include <qpe/config.h>
10#include <qpe/qpetoolbar.h> 20#include <qpe/qpetoolbar.h>
11#include <qpe/qcopenvelope_qws.h> 21#include <qpe/qcopenvelope_qws.h>
12#include <qaction.h> 22#include <qaction.h>
13#include <qmessagebox.h> 23#include <qmessagebox.h>
14#include <qpopupmenu.h> 24#include <qpopupmenu.h>
15#include <qtoolbutton.h> 25#include <qtoolbutton.h>
16#include <qstring.h> 26#include <qstring.h>
17#include <qlabel.h> 27#include <qlabel.h>
18#include <qfile.h> 28#include <qfile.h>
19#include <qlistview.h> 29#include <qlistview.h>
20#include <qtextview.h> 30#include <qtextview.h>
21#include <qcheckbox.h> 31#include <qcheckbox.h>
22#include <qlineedit.h> 32#include <qlineedit.h>
23#include <qtabwidget.h> 33#include <qtabwidget.h>
24#include <qcombobox.h> 34#include <qcombobox.h>
25#include <qmessagebox.h> 35#include <qmessagebox.h>
26#include <qpushbutton.h> 36#include <qpushbutton.h>
27#include <qlayout.h> 37#include <qlayout.h>
28 38
29#include "pksettingsbase.h" 39#include "pksettingsbase.h"
30#include "utils.h" 40#include "utils.h"
31#include "packagelistitem.h" 41#include "packagelistitem.h"
32 42
33 43
34MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) : 44MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f ) :
35 QMainWindow( parent, name, f ) 45 QMainWindow( parent, name, f )
36// packageListServers( QObject(parent), name ), 46// packageListServers( QObject(parent), name ),
37// packageListSearch( parent, name ), 47// packageListSearch( parent, name ),
38// packageListDocLnk( parent, name ) 48// packageListDocLnk( parent, name )
39 { 49 {
40 setCaption( tr("Package Manager") ); 50 setCaption( tr("Package Manager") );
41 settings = new PackageManagerSettings(this,0,TRUE); 51 settings = new PackageManagerSettings(this,0,TRUE);
42 listViewPackages = new PackageListView( this,"listViewPackages",settings ); 52 listViewPackages = new PackageListView( this,"listViewPackages",settings );
43 setCentralWidget( listViewPackages ); 53 setCentralWidget( listViewPackages );
44 listViewPackages->addList( tr("feeds"), &packageListServers ); 54 listViewPackages->addList( tr("feeds"), &packageListServers );
45 listViewPackages->addList( tr("ipkgfind"), &packageListSearch ); 55 listViewPackages->addList( tr("ipkgfind"), &packageListSearch );
46listViewPackages->addList( tr("documents"), &packageListDocLnk ); 56 listViewPackages->addList( tr("documents"), &packageListDocLnk );
47 ipkg = new PmIpkg( settings, this ); 57 ipkg = new PmIpkg( settings, this );
48 packageListServers.setSettings( settings ); 58 packageListServers.setSettings( settings );
49 packageListSearch.setSettings( settings ); 59 packageListSearch.setSettings( settings );
50 packageListDocLnk.setSettings( settings ); 60 packageListDocLnk.setSettings( settings );
51 pvDebug(9,"packageListServers.update"); 61 pvDebug(9,"packageListServers.update");
52 packageListServers.update(); 62 packageListServers.update();
53 pvDebug(9,"packageListDocLnk.update"); 63 pvDebug(9,"packageListDocLnk.update");
54 pvDebug(0,"no UPDATE of DocLnk"); 64 pvDebug(0,"no UPDATE of DocLnk");
55 packageListDocLnk.update(); 65 packageListDocLnk.update();
56 pvDebug(9,"makeMenu"); 66 pvDebug(9,"makeMenu");
57 makeMenu(); 67 makeMenu();
58 makeChannel(); 68 makeChannel();
59 //opie is hardcoded default ;) 69 //opie is hardcoded default ;)
60 //pvDebug(9,"section->setCurrentItem"); 70 //pvDebug(9,"section->setCurrentItem");
61// for (int i=0;i<section->count();i++) 71// for (int i=0;i<section->count();i++)
62 // if (section->text(i)=="opie") 72 // if (section->text(i)=="opie")
63 // section->setCurrentItem(i); 73 // section->setCurrentItem(i);
64// sectionChanged(); 74// sectionChanged();
65 75
66 connect( section, SIGNAL(activated(int)), SLOT(sectionChanged()) ); 76 connect( section, SIGNAL(activated(int)), SLOT(sectionChanged()) );
67 connect( subsection, SIGNAL(activated(int)), SLOT(subSectionChanged()) ); 77 connect( subsection, SIGNAL(activated(int)), SLOT(subSectionChanged()) );
68 78
69 connect( settings->removeLinksButton, SIGNAL( clicked()), 79 connect( settings->removeLinksButton, SIGNAL( clicked()),
70 SLOT(removeLinks()) ); 80 SLOT(removeLinks()) );