From 1a6f157f6a83a73907dcd4c4da1d7b24cb19dc5c Mon Sep 17 00:00:00 2001 From: tille Date: Wed, 17 Jul 2002 10:59:08 +0000 Subject: added destination toolbar --- (limited to 'noncore/unsupported/oipkg/pksettings.cpp') 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 @@ -59,6 +59,13 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na readSettings(); activeLinkDestination->hide(); serverChanged = false; + + // get rid of setups +// Settings->hide(); + settingName->hide(); + newsetting->hide(); + renamesetting->hide(); + removesetting->hide(); } PackageManagerSettings::~PackageManagerSettings() @@ -532,12 +539,13 @@ QStringList PackageManagerSettings::getDestinationNames() } return sl; } - + void PackageManagerSettings::linkEnabled( bool b ) { pvDebug(2,"PackageManagerSettings::linkEnabled "+QString(b?"yes":"no")); activeLinkDestination->setEnabled( b ); + CheckBoxLink->setChecked( b ); } void PackageManagerSettings::activeServerChanged() @@ -545,11 +553,6 @@ void PackageManagerSettings::activeServerChanged() changed = true; } -QComboBox* PackageManagerSettings::getDestCombo() -{ - return new QComboBox(activeDestination); -} - void PackageManagerSettings::createLinksToDest() { pvDebug(2,"creating links..."); @@ -564,7 +567,10 @@ void PackageManagerSettings::removeLinksToDest() // ipkg->removeLinks( destinationurl ); } -//void PackageManagerSettings::setIpkg( PmIpkg* i ) -//{ -// ipkg = i; -//} +void PackageManagerSettings::activeDestinationChange(int i) +{ + pvDebug(5,"activeDestinationChange "+QString::number(i)); + if (i > activeDestination->count()) return; + activeDestination->setCurrentItem(i); + pvDebug(5,"dest name "+ activeDestination->currentText()); +} -- cgit v0.9.0.2