summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp5
-rw-r--r--noncore/unsupported/oipkg/packagelistitem.cpp1
-rw-r--r--noncore/unsupported/oipkg/pksettings.cpp114
-rw-r--r--noncore/unsupported/oipkg/pksettings.h10
-rw-r--r--noncore/unsupported/oipkg/pksettingsbase.ui138
5 files changed, 64 insertions, 204 deletions
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
@@ -98,3 +98,3 @@ void MainWindow::makeMenu()
- QLabel *spacer;
+// QLabel *spacer;
// spacer = new QLabel( "", toolBar );
@@ -226,4 +226,3 @@ void MainWindow::makeMenu()
settings, SLOT(activeDestinationChange(int)) );
-// spacer = new QLabel( " ", destBar );
-// spacer->setBackgroundMode( PaletteForeground );
+// space->setBackgroundMode( PaletteForeground );
CheckBoxLink = new QCheckBox( tr("Link"), destBar);
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
@@ -114,3 +114,2 @@ QPixmap PackageListItem::statePixmap() const
bool old = package->isOld();
- bool versions = package->hasVersions();
bool verinstalled = package->otherInstalled();
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
@@ -47,7 +47,7 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na
- 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);
@@ -64,6 +64,6 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na
// Settings->hide();
- settingName->hide();
- newsetting->hide();
- renamesetting->hide();
- removesetting->hide();
+// settingName->hide();
+// newsetting->hide();
+// renamesetting->hide();
+// removesetting->hide();
}
@@ -254,7 +254,7 @@ void PackageManagerSettings::readInstallationSettings()
- 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 );
@@ -264,35 +264,35 @@ void PackageManagerSettings::readInstallationSettings()
-/**
- * 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;
+//}
@@ -344,13 +344,13 @@ void PackageManagerSettings::writeCurrentInstallationSetting()
-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;
+//}
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
@@ -32,3 +32,3 @@ public slots:
void readInstallationSetting(int);
- void installationSettingSetName(const QString &);
+// void installationSettingSetName(const QString &);
void removeLinksToDest();
@@ -46,6 +46,6 @@ public slots:
void destUrlChanged(const QString&);
- void installationSettingChange(int);
- void newInstallationSetting();
- void removeInstallationSetting();
- void renameInstallationSetting();
+// void installationSettingChange(int);
+// void newInstallationSetting();
+// void removeInstallationSetting();
+// void renameInstallationSetting();
void activeServerChanged();
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
@@ -71,51 +71,2 @@
</property>
- <widget row="0" column="0" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout3_2</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QLabel</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Settings</cstring>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Installation Setups</string>
- </property>
- </widget>
- <spacer>
- <property>
- <name>name</name>
- <cstring>Spacer2_2_2</cstring>
- </property>
- <property stdset="1">
- <name>orientation</name>
- <enum>Horizontal</enum>
- </property>
- <property stdset="1">
- <name>sizeType</name>
- <enum>Expanding</enum>
- </property>
- <property>
- <name>sizeHint</name>
- <size>
- <width>20</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </hbox>
- </widget>
<widget row="5" column="0" >
@@ -258,91 +209,2 @@
</widget>
- <widget row="1" column="0" >
- <class>QComboBox</class>
- <property stdset="1">
- <name>name</name>
- <cstring>settingName</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>true</bool>
- </property>
- <property stdset="1">
- <name>focusPolicy</name>
- <enum>NoFocus</enum>
- </property>
- <property stdset="1">
- <name>editable</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget row="2" column="0" >
- <class>QLayoutWidget</class>
- <property stdset="1">
- <name>name</name>
- <cstring>Layout11</cstring>
- </property>
- <hbox>
- <property stdset="1">
- <name>margin</name>
- <number>0</number>
- </property>
- <property stdset="1">
- <name>spacing</name>
- <number>6</number>
- </property>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>newsetting</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>New</string>
- </property>
- <property stdset="1">
- <name>autoDefault</name>
- <bool>false</bool>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>renamesetting</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Rename</string>
- </property>
- </widget>
- <widget>
- <class>QPushButton</class>
- <property stdset="1">
- <name>name</name>
- <cstring>removesetting</cstring>
- </property>
- <property stdset="1">
- <name>enabled</name>
- <bool>false</bool>
- </property>
- <property stdset="1">
- <name>text</name>
- <string>Remove</string>
- </property>
- <property stdset="1">
- <name>autoDefault</name>
- <bool>false</bool>
- </property>
- </widget>
- </hbox>
- </widget>
</grid>