summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg
authortille <tille>2002-04-28 01:35:36 (UTC)
committer tille <tille>2002-04-28 01:35:36 (UTC)
commit61cc74e0e4602d0df07b250f2786f0f0e96da28f (patch) (unidiff)
tree7fab7d278163082856f0561ec9e451922f6066e3 /noncore/unsupported/oipkg
parenta64cc0ad0574ae1e15c4965d2557c3e06cc3fd65 (diff)
downloadopie-61cc74e0e4602d0df07b250f2786f0f0e96da28f.zip
opie-61cc74e0e4602d0df07b250f2786f0f0e96da28f.tar.gz
opie-61cc74e0e4602d0df07b250f2786f0f0e96da28f.tar.bz2
gui fixes
Diffstat (limited to 'noncore/unsupported/oipkg') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp16
-rw-r--r--noncore/unsupported/oipkg/mainwindow.h2
-rw-r--r--noncore/unsupported/oipkg/pksettings.cpp4
-rw-r--r--noncore/unsupported/oipkg/pmipkg.cpp24
-rw-r--r--noncore/unsupported/oipkg/pmipkg.h1
5 files changed, 33 insertions, 14 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index 6bf9a7a..c95f482 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -22,2 +22,3 @@
22#include <qcombobox.h> 22#include <qcombobox.h>
23#include <qmessagebox.h>
23#include <qlayout.h> 24#include <qlayout.h>
@@ -27,2 +28,3 @@
27 28
29
28MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) : 30MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) :
@@ -37,2 +39,6 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags f = 0 ) :
37 39
40 //wait = new QMessageBox(tr("oipkg"),tr("Please wait")//,QMessageBox::Information,QMessageBox::NoButton,QMessageBox::NoButton,QMessageBox::NoButton);
41 wait = new QMessageBox(this);
42 wait->setText(tr("Please wait"));
43
38 channel = new QCopChannel( "QPE/Application/oipkg", this ); 44 channel = new QCopChannel( "QPE/Application/oipkg", this );
@@ -196,2 +202,3 @@ void MainWindow::updateList()
196{ 202{
203 wait->show();
197 QTimer *t = new QTimer( this ); 204 QTimer *t = new QTimer( this );
@@ -202,3 +209,5 @@ void MainWindow::updateList()
202 getList(); 209 getList();
203 t->stop(); 210 t->stop();
211 wait->hide();
212
204} 213}
@@ -207,4 +216,6 @@ void MainWindow::getList()
207{ 216{
217 wait->show();
208 packageList.update(); 218 packageList.update();
209 displayList(); 219 displayList();
220 wait->hide();
210} 221}
@@ -213,2 +224,3 @@ void MainWindow::filterList()
213{ 224{
225 wait->show();
214 QString f = ""; 226 QString f = "";
@@ -216,2 +228,3 @@ void MainWindow::filterList()
216 packageList.filterPackages( f ); 228 packageList.filterPackages( f );
229 wait->hide();
217} 230}
@@ -220,2 +233,3 @@ void MainWindow::displayList()
220{ 233{
234 wait->hide();
221 filterList(); 235 filterList();
diff --git a/noncore/unsupported/oipkg/mainwindow.h b/noncore/unsupported/oipkg/mainwindow.h
index bcb0cc9..a713d00 100644
--- a/noncore/unsupported/oipkg/mainwindow.h
+++ b/noncore/unsupported/oipkg/mainwindow.h
@@ -18,2 +18,3 @@ class PackageListItem;
18class QCopChannel; 18class QCopChannel;
19class QMessageBox;
19 20
@@ -71,2 +72,3 @@ private:
71 QComboBox *subsection; 72 QComboBox *subsection;
73 QMessageBox *wait;
72private slots: 74private slots:
diff --git a/noncore/unsupported/oipkg/pksettings.cpp b/noncore/unsupported/oipkg/pksettings.cpp
index f84a9c4..be01837 100644
--- a/noncore/unsupported/oipkg/pksettings.cpp
+++ b/noncore/unsupported/oipkg/pksettings.cpp
@@ -296,5 +296,5 @@ void PackageManagerSettings::readInstallationSetting(int setting)
296 if ( activeDestination->text( i ) == dest ) 296 if ( activeDestination->text( i ) == dest )
297 activeDestination->setCurrentItem( i ); 297 activeDestination->setCurrentItem( i );
298 if ( activeLinkDestination->text( i ) == linkdest ) 298 if ( activeLinkDestination->text( i ) == linkdest )
299 activeLinkDestination->setCurrentItem( i ); 299 activeLinkDestination->setCurrentItem( i );
300 } 300 }
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp
index f0992f5..ecc97b2 100644
--- a/noncore/unsupported/oipkg/pmipkg.cpp
+++ b/noncore/unsupported/oipkg/pmipkg.cpp
@@ -204,4 +204,4 @@ void PmIpkg::startDialog()
204{ 204{
205 QDialog *d = new QDialog(); 205 installDialog = new QDialog(0,0,true);
206 QGridLayout *RunWindowLayout = new QGridLayout( d ); 206 QGridLayout *RunWindowLayout = new QGridLayout( installDialog );
207 RunWindowLayout->setSpacing( 2 ); 207 RunWindowLayout->setSpacing( 2 );
@@ -213,3 +213,3 @@ void PmIpkg::startDialog()
213 213
214 PackageListView *plv = new PackageListView(d, "install",settings); 214 PackageListView *plv = new PackageListView(installDialog, "install",settings);
215 RunWindowLayout->addWidget( plv, 1, 0 ); 215 RunWindowLayout->addWidget( plv, 1, 0 );
@@ -223,3 +223,3 @@ void PmIpkg::startDialog()
223 } 223 }
224 QPushButton *doItButton = new QPushButton( d, "doItButton" ); 224 QPushButton *doItButton = new QPushButton( installDialog, "doItButton" );
225 doItButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, doItButton->sizePolicy().hasHeightForWidth() ) ); 225 doItButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, doItButton->sizePolicy().hasHeightForWidth() ) );
@@ -232,3 +232,3 @@ void PmIpkg::startDialog()
232 232
233 QPushButton *installButton = new QPushButton( d, "installButton" ); 233 QPushButton *installButton = new QPushButton( installDialog, "installButton" );
234 QFont installButton_font( installButton->font() ); 234 QFont installButton_font( installButton->font() );
@@ -240,3 +240,3 @@ void PmIpkg::startDialog()
240 240
241 QPushButton *removeButton = new QPushButton( d, "removeButton" ); 241 QPushButton *removeButton = new QPushButton( installDialog, "removeButton" );
242 QFont removeButton_font( removeButton->font() ); 242 QFont removeButton_font( removeButton->font() );
@@ -248,3 +248,3 @@ void PmIpkg::startDialog()
248 248
249 QPushButton *cancelButton = new QPushButton( d, "cancelButton" ); 249 QPushButton *cancelButton = new QPushButton( installDialog, "cancelButton" );
250 QFont cancelButton_font( cancelButton->font() ); 250 QFont cancelButton_font( cancelButton->font() );
@@ -265,6 +265,6 @@ void PmIpkg::startDialog()
265 connect( cancelButton, SIGNAL( clicked() ), 265 connect( cancelButton, SIGNAL( clicked() ),
266 d, SLOT( close() ) ); 266 installDialog, SLOT( close() ) );
267 d->showMaximized(); 267 installDialog->showMaximized();
268 d->exec(); 268 if ( installDialog->exec() ) doIt();
269 // d->close(); 269 installDialog->close();
270} 270}
@@ -281,2 +281,3 @@ void PmIpkg::remove()
281 if ( to_remove.count() == 0 ) return; 281 if ( to_remove.count() == 0 ) return;
282 installDialog->close();
282 show( true ); 283 show( true );
@@ -302,2 +303,3 @@ void PmIpkg::install()
302 if ( to_install.count() == 0 ) return; 303 if ( to_install.count() == 0 ) return;
304 installDialog->close();
303 show( true ); 305 show( true );
diff --git a/noncore/unsupported/oipkg/pmipkg.h b/noncore/unsupported/oipkg/pmipkg.h
index f70283e..c5e6255 100644
--- a/noncore/unsupported/oipkg/pmipkg.h
+++ b/noncore/unsupported/oipkg/pmipkg.h
@@ -30,2 +30,3 @@ private:
30 RunWindow *runwindow; 30 RunWindow *runwindow;
31 QDialog *installDialog;
31 QList<Package> to_remove; 32 QList<Package> to_remove;