summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/mainwindow.cpp
authortille <tille>2002-07-17 10:59:08 (UTC)
committer tille <tille>2002-07-17 10:59:08 (UTC)
commit1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c (patch) (side-by-side diff)
tree3acd973e7c21d98aae401134aaa7fb1b8c84aa30 /noncore/unsupported/oipkg/mainwindow.cpp
parent3fed427aa17245af52574795a62249607f90b0bf (diff)
downloadopie-1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c.zip
opie-1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c.tar.gz
opie-1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c.tar.bz2
added destination toolbar
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index d1be8d0..11fc91b 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -125,7 +125,7 @@ void MainWindow::makeMenu()
cfgact = new QAction( tr( "Setups" ),
QString::null, 0, this, 0 );
connect( cfgact, SIGNAL( activated() ),
- SLOT( showSettings() ) );
+ SLOT( showSettingsSetup() ) );
cfgact->addTo( cfgMenu );
cfgact = new QAction( tr( "Servers" ),
@@ -224,7 +224,7 @@ void MainWindow::makeMenu()
setComboName(destination,settings->getDestinationName());
connect( destination, SIGNAL(activated(int)),
settings, SLOT(activeDestinationChange(int)) );
- spacer = new QLabel( " ", destBar );
+// spacer = new QLabel( " ", destBar );
// spacer->setBackgroundMode( PaletteForeground );
CheckBoxLink = new QCheckBox( tr("Link"), destBar);
// CheckBoxLink->setBackgroundMode( PaletteForeground );
@@ -238,7 +238,7 @@ void MainWindow::makeMenu()
a->addTo( destBar );
destBar->setStretchableWidget( CheckBoxLink );
destAction->setToggleAction( true );
- // destAction->addTo( viewMenu );
+ destAction->addTo( viewMenu );
// helpMenu
helpMenu->insertSeparator();
@@ -385,20 +385,26 @@ void MainWindow::setSubSections()
}
-void MainWindow::showSettings()
+void MainWindow::showSettings(int i)
{
- if ( settings->showDialog( 0 ) )
+ if ( settings->showDialog( i ) )
+ {
updateList();
+ }
+ setComboName(destination,settings->getDestinationName());
+ CheckBoxLink->setChecked( settings->createLinks() );
+}
+void MainWindow::showSettingsSetup()
+{
+ showSettings(0);
}
void MainWindow::showSettingsSrv()
{
- if ( settings->showDialog( 1 ) )
- updateList();
+ showSettings(1);
}
void MainWindow::showSettingsDst()
{
- if ( settings->showDialog( 2 ) )
- updateList();
+ showSettings(2);
}
void MainWindow::sectionShow(bool b)