author | tille <tille> | 2002-07-17 10:59:08 (UTC) |
---|---|---|
committer | tille <tille> | 2002-07-17 10:59:08 (UTC) |
commit | 1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c (patch) (unidiff) | |
tree | 3acd973e7c21d98aae401134aaa7fb1b8c84aa30 | |
parent | 3fed427aa17245af52574795a62249607f90b0bf (diff) | |
download | opie-1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c.zip opie-1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c.tar.gz opie-1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c.tar.bz2 |
added destination toolbar
-rw-r--r-- | noncore/unsupported/oipkg/mainwindow.cpp | 24 | ||||
-rw-r--r-- | noncore/unsupported/oipkg/mainwindow.h | 3 | ||||
-rw-r--r-- | noncore/unsupported/oipkg/pksettings.cpp | 26 | ||||
-rw-r--r-- | noncore/unsupported/oipkg/pksettings.h | 3 | ||||
-rw-r--r-- | noncore/unsupported/oipkg/pksettingsbase.ui | 4 |
5 files changed, 36 insertions, 24 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 | |||
@@ -127,3 +127,3 @@ void MainWindow::makeMenu() | |||
127 | connect( cfgact, SIGNAL( activated() ), | 127 | connect( cfgact, SIGNAL( activated() ), |
128 | SLOT( showSettings() ) ); | 128 | SLOT( showSettingsSetup() ) ); |
129 | cfgact->addTo( cfgMenu ); | 129 | cfgact->addTo( cfgMenu ); |
@@ -226,3 +226,3 @@ void MainWindow::makeMenu() | |||
226 | settings, SLOT(activeDestinationChange(int)) ); | 226 | settings, SLOT(activeDestinationChange(int)) ); |
227 | spacer = new QLabel( " ", destBar ); | 227 | // spacer = new QLabel( " ", destBar ); |
228 | // spacer->setBackgroundMode( PaletteForeground ); | 228 | // spacer->setBackgroundMode( PaletteForeground ); |
@@ -240,3 +240,3 @@ void MainWindow::makeMenu() | |||
240 | destAction->setToggleAction( true ); | 240 | destAction->setToggleAction( true ); |
241 | // destAction->addTo( viewMenu ); | 241 | destAction->addTo( viewMenu ); |
242 | 242 | ||
@@ -387,6 +387,14 @@ void MainWindow::setSubSections() | |||
387 | 387 | ||
388 | void MainWindow::showSettings() | 388 | void MainWindow::showSettings(int i) |
389 | { | 389 | { |
390 | if ( settings->showDialog( 0 ) ) | 390 | if ( settings->showDialog( i ) ) |
391 | { | ||
391 | updateList(); | 392 | updateList(); |
393 | } | ||
394 | setComboName(destination,settings->getDestinationName()); | ||
395 | CheckBoxLink->setChecked( settings->createLinks() ); | ||
396 | } | ||
397 | void MainWindow::showSettingsSetup() | ||
398 | { | ||
399 | showSettings(0); | ||
392 | } | 400 | } |
@@ -394,4 +402,3 @@ void MainWindow::showSettingsSrv() | |||
394 | { | 402 | { |
395 | if ( settings->showDialog( 1 ) ) | 403 | showSettings(1); |
396 | updateList(); | ||
397 | } | 404 | } |
@@ -399,4 +406,3 @@ void MainWindow::showSettingsDst() | |||
399 | { | 406 | { |
400 | if ( settings->showDialog( 2 ) ) | 407 | showSettings(2); |
401 | updateList(); | ||
402 | } | 408 | } |
diff --git a/noncore/unsupported/oipkg/mainwindow.h b/noncore/unsupported/oipkg/mainwindow.h index 090ddd3..354c585 100644 --- a/noncore/unsupported/oipkg/mainwindow.h +++ b/noncore/unsupported/oipkg/mainwindow.h | |||
@@ -54,3 +54,4 @@ protected slots: | |||
54 | void sectionChanged(); | 54 | void sectionChanged(); |
55 | void showSettings(); | 55 | void showSettings(int); |
56 | void showSettingsSetup(); | ||
56 | void showSettingsSrv(); | 57 | void showSettingsSrv(); |
diff --git a/noncore/unsupported/oipkg/pksettings.cpp b/noncore/unsupported/oipkg/pksettings.cpp index 59d5a3e..14c1944 100644 --- a/noncore/unsupported/oipkg/pksettings.cpp +++ b/noncore/unsupported/oipkg/pksettings.cpp | |||
@@ -61,2 +61,9 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na | |||
61 | serverChanged = false; | 61 | serverChanged = false; |
62 | |||
63 | // get rid of setups | ||
64 | // Settings->hide(); | ||
65 | settingName->hide(); | ||
66 | newsetting->hide(); | ||
67 | renamesetting->hide(); | ||
68 | removesetting->hide(); | ||
62 | } | 69 | } |
@@ -534,3 +541,3 @@ QStringList PackageManagerSettings::getDestinationNames() | |||
534 | } | 541 | } |
535 | 542 | ||
536 | 543 | ||
@@ -540,2 +547,3 @@ void PackageManagerSettings::linkEnabled( bool b ) | |||
540 | activeLinkDestination->setEnabled( b ); | 547 | activeLinkDestination->setEnabled( b ); |
548 | CheckBoxLink->setChecked( b ); | ||
541 | } | 549 | } |
@@ -547,7 +555,2 @@ void PackageManagerSettings::activeServerChanged() | |||
547 | 555 | ||
548 | QComboBox* PackageManagerSettings::getDestCombo() | ||
549 | { | ||
550 | return new QComboBox(activeDestination); | ||
551 | } | ||
552 | |||
553 | void PackageManagerSettings::createLinksToDest() | 556 | void PackageManagerSettings::createLinksToDest() |
@@ -566,5 +569,8 @@ void PackageManagerSettings::removeLinksToDest() | |||
566 | 569 | ||
567 | //void PackageManagerSettings::setIpkg( PmIpkg* i ) | 570 | void PackageManagerSettings::activeDestinationChange(int i) |
568 | //{ | 571 | { |
569 | //ipkg = i; | 572 | pvDebug(5,"activeDestinationChange "+QString::number(i)); |
570 | //} | 573 | if (i > activeDestination->count()) return; |
574 | activeDestination->setCurrentItem(i); | ||
575 | pvDebug(5,"dest name "+ activeDestination->currentText()); | ||
576 | } | ||
diff --git a/noncore/unsupported/oipkg/pksettings.h b/noncore/unsupported/oipkg/pksettings.h index 8f9fe62..d66c4e8 100644 --- a/noncore/unsupported/oipkg/pksettings.h +++ b/noncore/unsupported/oipkg/pksettings.h | |||
@@ -26,4 +26,2 @@ public: | |||
26 | QString getDestinationUrlByName(QString); | 26 | QString getDestinationUrlByName(QString); |
27 | QComboBox* getDestCombo(); | ||
28 | // void setIpkg( PmIpkg* ); | ||
29 | 27 | ||
@@ -53,2 +51,3 @@ public slots: | |||
53 | void activeServerChanged(); | 51 | void activeServerChanged(); |
52 | void activeDestinationChange(int); | ||
54 | signals: | 53 | signals: |
diff --git a/noncore/unsupported/oipkg/pksettingsbase.ui b/noncore/unsupported/oipkg/pksettingsbase.ui index 5b83248..e95ed83 100644 --- a/noncore/unsupported/oipkg/pksettingsbase.ui +++ b/noncore/unsupported/oipkg/pksettingsbase.ui | |||
@@ -13,3 +13,3 @@ | |||
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>337</width> | 14 | <width>333</width> |
15 | <height>454</height> | 15 | <height>454</height> |
@@ -217,3 +217,3 @@ | |||
217 | <name>text</name> | 217 | <name>text</name> |
218 | <string>Used servers:</string> | 218 | <string>Used servers: (Highlighted feeds are active)</string> |
219 | </property> | 219 | </property> |