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 /noncore/unsupported/oipkg/pksettings.cpp | |
parent | 3fed427aa17245af52574795a62249607f90b0bf (diff) | |
download | opie-1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c.zip opie-1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c.tar.gz opie-1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c.tar.bz2 |
added destination toolbar
Diffstat (limited to 'noncore/unsupported/oipkg/pksettings.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/pksettings.cpp | 24 |
1 files changed, 15 insertions, 9 deletions
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 | |||
@@ -56,12 +56,19 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na | |||
56 | destinationname->setEnabled(FALSE); | 56 | destinationname->setEnabled(FALSE); |
57 | destinationurl->setEnabled(FALSE); | 57 | destinationurl->setEnabled(FALSE); |
58 | destinationurlDic.setAutoDelete(TRUE); | 58 | destinationurlDic.setAutoDelete(TRUE); |
59 | readSettings(); | 59 | readSettings(); |
60 | activeLinkDestination->hide(); | 60 | activeLinkDestination->hide(); |
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 | } |
63 | 70 | ||
64 | PackageManagerSettings::~PackageManagerSettings() | 71 | PackageManagerSettings::~PackageManagerSettings() |
65 | { | 72 | { |
66 | } | 73 | } |
67 | 74 | ||
@@ -535,24 +542,20 @@ QStringList PackageManagerSettings::getDestinationNames() | |||
535 | 542 | ||
536 | 543 | ||
537 | void PackageManagerSettings::linkEnabled( bool b ) | 544 | void PackageManagerSettings::linkEnabled( bool b ) |
538 | { | 545 | { |
539 | pvDebug(2,"PackageManagerSettings::linkEnabled "+QString(b?"yes":"no")); | 546 | pvDebug(2,"PackageManagerSettings::linkEnabled "+QString(b?"yes":"no")); |
540 | activeLinkDestination->setEnabled( b ); | 547 | activeLinkDestination->setEnabled( b ); |
548 | CheckBoxLink->setChecked( b ); | ||
541 | } | 549 | } |
542 | 550 | ||
543 | void PackageManagerSettings::activeServerChanged() | 551 | void PackageManagerSettings::activeServerChanged() |
544 | { | 552 | { |
545 | changed = true; | 553 | changed = true; |
546 | } | 554 | } |
547 | 555 | ||
548 | QComboBox* PackageManagerSettings::getDestCombo() | ||
549 | { | ||
550 | return new QComboBox(activeDestination); | ||
551 | } | ||
552 | |||
553 | void PackageManagerSettings::createLinksToDest() | 556 | void PackageManagerSettings::createLinksToDest() |
554 | { | 557 | { |
555 | pvDebug(2,"creating links..."); | 558 | pvDebug(2,"creating links..."); |
556 | // emit doCreateLinks( destinationurl->text() ); | 559 | // emit doCreateLinks( destinationurl->text() ); |
557 | //ipkg->createLinks( destinationurl ); | 560 | //ipkg->createLinks( destinationurl ); |
558 | } | 561 | } |
@@ -561,10 +564,13 @@ void PackageManagerSettings::removeLinksToDest() | |||
561 | { | 564 | { |
562 | pvDebug(2,"removing links..."); | 565 | pvDebug(2,"removing links..."); |
563 | // emit doRemoveLinks( destinationurl->text() ); | 566 | // emit doRemoveLinks( destinationurl->text() ); |
564 | //ipkg->removeLinks( destinationurl ); | 567 | //ipkg->removeLinks( destinationurl ); |
565 | } | 568 | } |
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 | } | ||