summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/mainwindow.cpp
authortille <tille>2002-04-25 21:06:23 (UTC)
committer tille <tille>2002-04-25 21:06:23 (UTC)
commit054b0f3268189d6f8f06135960042a7f51117223 (patch) (unidiff)
tree2ab5eef44d4e6604d6c0a45e51608390c8b3a521 /noncore/unsupported/oipkg/mainwindow.cpp
parentc06667cd62b945a05edce621aab34358ee0e964f (diff)
downloadopie-054b0f3268189d6f8f06135960042a7f51117223.zip
opie-054b0f3268189d6f8f06135960042a7f51117223.tar.gz
opie-054b0f3268189d6f8f06135960042a7f51117223.tar.bz2
installation messages working
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index 997f449..54ee115 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -92,25 +92,25 @@ void MainWindow::makeMenu()
92 92
93 runAction = new QAction( tr( "Commit" ), 93 runAction = new QAction( tr( "Commit" ),
94 Resource::loadPixmap( "oipkg/install" ), 94 Resource::loadPixmap( "oipkg/install" ),
95 QString::null, 0, this, 0 ); 95 QString::null, 0, this, 0 );
96 connect( runAction, SIGNAL( activated() ), 96 connect( runAction, SIGNAL( activated() ),
97 this, SLOT( runIpkg() ) ); 97 this, SLOT( runIpkg() ) );
98 runAction->addTo( toolBar ); 98 runAction->addTo( toolBar );
99 runAction->addTo( srvMenu ); 99 runAction->addTo( srvMenu );
100 100
101 srvMenu->insertSeparator (); 101 srvMenu->insertSeparator ();
102 102
103 updateAction = new QAction( tr( "Update" ), 103 updateAction = new QAction( tr( "Update" ),
104 Resource::loadIconSet( "oipkg/repeat" ), 104 Resource::loadIconSet( "oipkg/update" ),
105 QString::null, 0, this, 0 ); 105 QString::null, 0, this, 0 );
106 connect( updateAction, SIGNAL( activated() ), 106 connect( updateAction, SIGNAL( activated() ),
107 this , SLOT( updateList() ) ); 107 this , SLOT( updateList() ) );
108 updateAction->addTo( toolBar ); 108 updateAction->addTo( toolBar );
109 updateAction->addTo( srvMenu ); 109 updateAction->addTo( srvMenu );
110 110
111 detailsAction = new QAction( tr( "Details" ), 111 detailsAction = new QAction( tr( "Details" ),
112 Resource::loadIconSet( "find" ), 112 Resource::loadIconSet( "find" ),
113 QString::null, 0, this, 0 ); 113 QString::null, 0, this, 0 );
114 connect( detailsAction, SIGNAL( activated() ), 114 connect( detailsAction, SIGNAL( activated() ),
115 this , SLOT( showDetails() ) ); 115 this , SLOT( showDetails() ) );
116 detailsAction->addTo( toolBar ); 116 detailsAction->addTo( toolBar );
@@ -136,30 +136,30 @@ void MainWindow::makeMenu()
136 QString::null, 0, this, 0 ); 136 QString::null, 0, this, 0 );
137 connect( cfgact, SIGNAL( activated() ), 137 connect( cfgact, SIGNAL( activated() ),
138 SLOT( showSettingsDst() ) ); 138 SLOT( showSettingsDst() ) );
139 cfgact->addTo( cfgMenu ); 139 cfgact->addTo( cfgMenu );
140 140
141 QAction *a; 141 QAction *a;
142 142
143 sectionBar = new QPEToolBar( this ); 143 sectionBar = new QPEToolBar( this );
144 addToolBar( sectionBar, "Section", QMainWindow::Top, TRUE ); 144 addToolBar( sectionBar, "Section", QMainWindow::Top, TRUE );
145 sectionBar->setHorizontalStretchable( true ); 145 sectionBar->setHorizontalStretchable( true );
146 QLabel *label = new QLabel( tr("Section: "), sectionBar ); 146 QLabel *label = new QLabel( tr("Section: "), sectionBar );
147 label->setBackgroundColor( sectionBar->backgroundColor() ); 147 label->setBackgroundColor( sectionBar->backgroundColor() );
148 sectionBar->setStretchableWidget( label );
148 section = new QComboBox( false, sectionBar ); 149 section = new QComboBox( false, sectionBar );
149// section->setBackgroundMode( PaletteBackground ); 150// section->setBackgroundMode( PaletteBackground );
150 label = new QLabel( " / ", sectionBar ); 151 label = new QLabel( " / ", sectionBar );
151 label->setBackgroundColor( sectionBar->backgroundColor() ); 152 label->setBackgroundColor( sectionBar->backgroundColor() );
152 subsection = new QComboBox( false, sectionBar ); 153 subsection = new QComboBox( false, sectionBar );
153 sectionBar->setStretchableWidget( label );
154 154
155 a = new QAction( tr( "Close Section" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); 155 a = new QAction( tr( "Close Section" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 );
156 connect( a, SIGNAL( activated() ), this, SLOT( sectionClose() ) ); 156 connect( a, SIGNAL( activated() ), this, SLOT( sectionClose() ) );
157 a->addTo( sectionBar ); 157 a->addTo( sectionBar );
158 158
159 sectionAction = new QAction( tr( "Sections" ), QString::null, 0, this, 0 ); 159 sectionAction = new QAction( tr( "Sections" ), QString::null, 0, this, 0 );
160 connect( sectionAction, SIGNAL( toggled(bool) ), this, SLOT( sectionShow(bool) ) ); 160 connect( sectionAction, SIGNAL( toggled(bool) ), this, SLOT( sectionShow(bool) ) );
161 sectionAction->setToggleAction( true ); 161 sectionAction->setToggleAction( true );
162 sectionAction->setOn( true ); 162 sectionAction->setOn( true );
163 sectionAction->addTo( viewMenu ); 163 sectionAction->addTo( viewMenu );
164 164
165 findBar = new QPEToolBar(this); 165 findBar = new QPEToolBar(this);
@@ -266,35 +266,35 @@ void MainWindow::setSections()
266} 266}
267 267
268void MainWindow::setSubSections() 268void MainWindow::setSubSections()
269{ 269{
270 subsection->clear(); 270 subsection->clear();
271 subsection->insertStringList( packageList.getSubSections() ); 271 subsection->insertStringList( packageList.getSubSections() );
272} 272}
273 273
274 274
275void MainWindow::showSettings() 275void MainWindow::showSettings()
276{ 276{
277 if ( settings->showDialog( 0 ) ) 277 if ( settings->showDialog( 0 ) )
278 getList(); 278 updateList();
279} 279}
280void MainWindow::showSettingsSrv() 280void MainWindow::showSettingsSrv()
281{ 281{
282 if ( settings->showDialog( 1 ) ) 282 if ( settings->showDialog( 1 ) )
283 getList(); 283 updateList();
284} 284}
285void MainWindow::showSettingsDst() 285void MainWindow::showSettingsDst()
286{ 286{
287 if ( settings->showDialog( 2 ) ) 287 if ( settings->showDialog( 2 ) )
288 getList(); 288 updateList();
289} 289}
290 290
291 291
292void MainWindow::showDetails() 292void MainWindow::showDetails()
293{ 293{
294 if ( activePackage ) return; 294 if ( activePackage ) return;
295 if ( details ) 295 if ( details )
296 { 296 {
297 details = new PackageDetails( this ); 297 details = new PackageDetails( this );
298 connect( details->install, SIGNAL(clicked()), SLOT( toggleActivePackage() ) ); 298 connect( details->install, SIGNAL(clicked()), SLOT( toggleActivePackage() ) );
299 connect( details->remove, SIGNAL(clicked()), SLOT( toggleActivePackage() ) ); 299 connect( details->remove, SIGNAL(clicked()), SLOT( toggleActivePackage() ) );
300 connect( details->ignore, SIGNAL(clicked()), details, SLOT(close())); 300 connect( details->ignore, SIGNAL(clicked()), details, SLOT(close()));