From b7c02750fd7f0f57843098b694a10e7a7b52eec8 Mon Sep 17 00:00:00 2001 From: tille Date: Wed, 17 Jul 2002 11:15:50 +0000 Subject: removed setups settings --- (limited to 'noncore/unsupported') diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp index 11fc91b..04362d3 100644 --- a/noncore/unsupported/oipkg/mainwindow.cpp +++ b/noncore/unsupported/oipkg/mainwindow.cpp @@ -96,7 +96,7 @@ void MainWindow::makeMenu() menuBar->insertItem( tr( "Settings" ), cfgMenu ); menuBar->insertItem( tr( "Help" ), helpMenu ); - QLabel *spacer; +// QLabel *spacer; // spacer = new QLabel( "", toolBar ); // spacer->setBackgroundColor( toolBar->backgroundColor() ); // toolBar->setStretchableWidget( spacer ); @@ -224,8 +224,7 @@ void MainWindow::makeMenu() setComboName(destination,settings->getDestinationName()); connect( destination, SIGNAL(activated(int)), settings, SLOT(activeDestinationChange(int)) ); -// spacer = new QLabel( " ", destBar ); -// spacer->setBackgroundMode( PaletteForeground ); +// space->setBackgroundMode( PaletteForeground ); CheckBoxLink = new QCheckBox( tr("Link"), destBar); // CheckBoxLink->setBackgroundMode( PaletteForeground ); CheckBoxLink->setChecked( settings->createLinks() ); diff --git a/noncore/unsupported/oipkg/packagelistitem.cpp b/noncore/unsupported/oipkg/packagelistitem.cpp index b5e86f5..03bf477 100644 --- a/noncore/unsupported/oipkg/packagelistitem.cpp +++ b/noncore/unsupported/oipkg/packagelistitem.cpp @@ -112,7 +112,6 @@ QPixmap PackageListItem::statePixmap() const { bool installed = package->installed(); bool old = package->isOld(); - bool versions = package->hasVersions(); bool verinstalled = package->otherInstalled(); if ( !package->toProcess() ) { if ( !installed ) diff --git a/noncore/unsupported/oipkg/pksettings.cpp b/noncore/unsupported/oipkg/pksettings.cpp index 14c1944..acabaed 100644 --- a/noncore/unsupported/oipkg/pksettings.cpp +++ b/noncore/unsupported/oipkg/pksettings.cpp @@ -45,11 +45,11 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na // connect( CheckBoxLink, SIGNAL(toggled(bool)), // activeLinkDestination, SLOT(setEnabled(bool)) ); - connect( settingName, SIGNAL(activated(int)), this, SLOT(installationSettingChange(int)) ); - connect( settingName, SIGNAL(textChanged(const QString &)), this, SLOT(installationSettingSetName(const QString &)) ); - connect( newsetting, SIGNAL(clicked()), this, SLOT(newInstallationSetting()) ); - connect( renamesetting, SIGNAL(clicked()), this, SLOT(renameInstallationSetting()) ); - connect( removesetting, SIGNAL(clicked()), this, SLOT(removeInstallationSetting()) ); +// connect( settingName, SIGNAL(activated(int)), this, SLOT(installationSettingChange(int)) ); +// connect( settingName, SIGNAL(textChanged(const QString &)), this, SLOT(installationSettingSetName(const QString &)) ); +// connect( newsetting, SIGNAL(clicked()), this, SLOT(newInstallationSetting()) ); +// connect( renamesetting, SIGNAL(clicked()), this, SLOT(renameInstallationSetting()) ); + // connect( removesetting, SIGNAL(clicked()), this, SLOT(removeInstallationSetting()) ); servername->setEnabled(FALSE); serverurl->setEnabled(FALSE); serverurlDic.setAutoDelete(TRUE); @@ -62,10 +62,10 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na // get rid of setups // Settings->hide(); - settingName->hide(); - newsetting->hide(); - renamesetting->hide(); - removesetting->hide(); +// settingName->hide(); +// newsetting->hide(); +// renamesetting->hide(); +// removesetting->hide(); } PackageManagerSettings::~PackageManagerSettings() @@ -252,49 +252,49 @@ void PackageManagerSettings::readInstallationSettings() installationSettingsCount = cfg.readNumEntry( "count", -1 ); currentSetting = cfg.readNumEntry( "current", 0 );// o should be -1 - for (int i = 0; i < installationSettingsCount; i++) - { - cfg.setGroup( "Setting_" + QString::number(i) ); - settingName->insertItem( cfg.readEntry( "name", "???" ), i ); - }; +// for (int i = 0; i < installationSettingsCount; i++) +// { +// cfg.setGroup( "Setting_" + QString::number(i) ); +// settingName->insertItem( cfg.readEntry( "name", "???" ), i ); +// }; readInstallationSetting( currentSetting ); } -/** - * remove from conf file - */ -void PackageManagerSettings::removeInstallationSetting() -{ - settingName->removeItem( settingName->currentItem() ); - Config cfg( "oipkg", Config::User ); - cfg.setGroup( "Setting_" + QString::number( installationSettingsCount ) ); - cfg.clearGroup(); - installationSettingsCount--; - changed = true; - settingName->setEditable( false ); -} - -/** - * write to confgile - */ -void PackageManagerSettings::newInstallationSetting() -{ - installationSettingsCount++; - settingName->insertItem( "New", installationSettingsCount ); - settingName->setCurrentItem( installationSettingsCount ); - settingName->setEditable( true ); - changed = true; -} - -void PackageManagerSettings::installationSettingChange(int cs) -{ - writeCurrentInstallationSetting(); - currentSetting = cs; - readInstallationSetting( cs ); - changed = true; -} +///** +// * remove from conf file +// */ +//void PackageManagerSettings::removeInstallationSetting() +//{ +// settingName->removeItem( settingName->currentItem() ); +// Config cfg( "oipkg", Config::User ); +// cfg.setGroup( "Setting_" + QString::number( installationSettingsCount ) ); +// cfg.clearGroup(); +// installationSettingsCount--; +// changed = true; +// settingName->setEditable( false ); +//} + +///** +// * write to confgile +// */ +//void PackageManagerSettings::newInstallationSetting() +//{ +// installationSettingsCount++; +// settingName->insertItem( "New", installationSettingsCount ); +// settingName->setCurrentItem( installationSettingsCount ); +// settingName->setEditable( true ); +// changed = true; +//} + +//void PackageManagerSettings::installationSettingChange(int cs) +//{ +// writeCurrentInstallationSetting(); +// currentSetting = cs; +// readInstallationSetting( cs ); +// changed = true; +//} void PackageManagerSettings::writeInstallationSettings() { @@ -342,17 +342,17 @@ void PackageManagerSettings::writeCurrentInstallationSetting() cfg.writeEntry( "server_count", srvc ); } -void PackageManagerSettings::renameInstallationSetting() -{ - settingName->setEditable( true ); - changed = true; -} +//void PackageManagerSettings::renameInstallationSetting() +//{ +// settingName->setEditable( true ); +// changed = true; +//} -void PackageManagerSettings::installationSettingSetName(const QString &name) -{ - settingName->changeItem( name, settingName->currentItem() ); - changed = true; -} +//void PackageManagerSettings::installationSettingSetName(const QString &name) +//{ +// settingName->changeItem( name, settingName->currentItem() ); +// changed = true; +//} bool PackageManagerSettings::readIpkgConfig(const QString& conffile) diff --git a/noncore/unsupported/oipkg/pksettings.h b/noncore/unsupported/oipkg/pksettings.h index d66c4e8..db991f6 100644 --- a/noncore/unsupported/oipkg/pksettings.h +++ b/noncore/unsupported/oipkg/pksettings.h @@ -30,7 +30,7 @@ public slots: void readInstallationSettings(); void writeCurrentInstallationSetting(); void readInstallationSetting(int); - void installationSettingSetName(const QString &); +// void installationSettingSetName(const QString &); void removeLinksToDest(); void createLinksToDest(); void newServer(); @@ -44,10 +44,10 @@ public slots: void serverUrlChanged(const QString&); void destNameChanged(const QString&); void destUrlChanged(const QString&); - void installationSettingChange(int); - void newInstallationSetting(); - void removeInstallationSetting(); - void renameInstallationSetting(); +// void installationSettingChange(int); +// void newInstallationSetting(); +// void removeInstallationSetting(); +// void renameInstallationSetting(); void activeServerChanged(); void activeDestinationChange(int); signals: diff --git a/noncore/unsupported/oipkg/pksettingsbase.ui b/noncore/unsupported/oipkg/pksettingsbase.ui index e95ed83..5bc5b46 100644 --- a/noncore/unsupported/oipkg/pksettingsbase.ui +++ b/noncore/unsupported/oipkg/pksettingsbase.ui @@ -69,55 +69,6 @@ spacing 3 - - QLayoutWidget - - name - Layout3_2 - - - - margin - 0 - - - spacing - 6 - - - QLabel - - name - Settings - - - text - Installation Setups - - - - - name - Spacer2_2_2 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QLayoutWidget @@ -256,95 +207,6 @@ Multi - - QComboBox - - name - settingName - - - enabled - true - - - focusPolicy - NoFocus - - - editable - false - - - - QLayoutWidget - - name - Layout11 - - - - margin - 0 - - - spacing - 6 - - - QPushButton - - name - newsetting - - - enabled - false - - - text - New - - - autoDefault - false - - - - QPushButton - - name - renamesetting - - - enabled - false - - - text - Rename - - - - QPushButton - - name - removesetting - - - enabled - false - - - text - Remove - - - autoDefault - false - - - - -- cgit v0.9.0.2