Diffstat (limited to 'noncore/unsupported/oipkg/pksettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/pksettings.cpp | 114 |
1 files changed, 57 insertions, 57 deletions
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 | |||
@@ -46,9 +46,9 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na | |||
46 | // activeLinkDestination, SLOT(setEnabled(bool)) ); | 46 | // activeLinkDestination, SLOT(setEnabled(bool)) ); |
47 | 47 | ||
48 | connect( settingName, SIGNAL(activated(int)), this, SLOT(installationSettingChange(int)) ); | 48 | // connect( settingName, SIGNAL(activated(int)), this, SLOT(installationSettingChange(int)) ); |
49 | connect( settingName, SIGNAL(textChanged(const QString &)), this, SLOT(installationSettingSetName(const QString &)) ); | 49 | // connect( settingName, SIGNAL(textChanged(const QString &)), this, SLOT(installationSettingSetName(const QString &)) ); |
50 | connect( newsetting, SIGNAL(clicked()), this, SLOT(newInstallationSetting()) ); | 50 | // connect( newsetting, SIGNAL(clicked()), this, SLOT(newInstallationSetting()) ); |
51 | connect( renamesetting, SIGNAL(clicked()), this, SLOT(renameInstallationSetting()) ); | 51 | // connect( renamesetting, SIGNAL(clicked()), this, SLOT(renameInstallationSetting()) ); |
52 | connect( removesetting, SIGNAL(clicked()), this, SLOT(removeInstallationSetting()) ); | 52 | // connect( removesetting, SIGNAL(clicked()), this, SLOT(removeInstallationSetting()) ); |
53 | servername->setEnabled(FALSE); | 53 | servername->setEnabled(FALSE); |
54 | serverurl->setEnabled(FALSE); | 54 | serverurl->setEnabled(FALSE); |
@@ -63,8 +63,8 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na | |||
63 | // get rid of setups | 63 | // get rid of setups |
64 | // Settings->hide(); | 64 | // Settings->hide(); |
65 | settingName->hide(); | 65 | // settingName->hide(); |
66 | newsetting->hide(); | 66 | // newsetting->hide(); |
67 | renamesetting->hide(); | 67 | // renamesetting->hide(); |
68 | removesetting->hide(); | 68 | // removesetting->hide(); |
69 | } | 69 | } |
70 | 70 | ||
@@ -253,9 +253,9 @@ void PackageManagerSettings::readInstallationSettings() | |||
253 | currentSetting = cfg.readNumEntry( "current", 0 );// o should be -1 | 253 | currentSetting = cfg.readNumEntry( "current", 0 );// o should be -1 |
254 | 254 | ||
255 | for (int i = 0; i < installationSettingsCount; i++) | 255 | // for (int i = 0; i < installationSettingsCount; i++) |
256 | { | 256 | // { |
257 | cfg.setGroup( "Setting_" + QString::number(i) ); | 257 | // cfg.setGroup( "Setting_" + QString::number(i) ); |
258 | settingName->insertItem( cfg.readEntry( "name", "???" ), i ); | 258 | // settingName->insertItem( cfg.readEntry( "name", "???" ), i ); |
259 | }; | 259 | // }; |
260 | readInstallationSetting( currentSetting ); | 260 | readInstallationSetting( currentSetting ); |
261 | } | 261 | } |
@@ -263,37 +263,37 @@ void PackageManagerSettings::readInstallationSettings() | |||
263 | 263 | ||
264 | 264 | ||
265 | /** | 265 | ///** |
266 | * remove from conf file | 266 | // * remove from conf file |
267 | */ | 267 | // */ |
268 | void PackageManagerSettings::removeInstallationSetting() | 268 | //void PackageManagerSettings::removeInstallationSetting() |
269 | { | 269 | //{ |
270 | settingName->removeItem( settingName->currentItem() ); | 270 | // settingName->removeItem( settingName->currentItem() ); |
271 | Config cfg( "oipkg", Config::User ); | 271 | // Config cfg( "oipkg", Config::User ); |
272 | cfg.setGroup( "Setting_" + QString::number( installationSettingsCount ) ); | 272 | // cfg.setGroup( "Setting_" + QString::number( installationSettingsCount ) ); |
273 | cfg.clearGroup(); | 273 | // cfg.clearGroup(); |
274 | installationSettingsCount--; | 274 | // installationSettingsCount--; |
275 | changed = true; | 275 | // changed = true; |
276 | settingName->setEditable( false ); | 276 | // settingName->setEditable( false ); |
277 | } | 277 | //} |
278 | 278 | ||
279 | /** | 279 | ///** |
280 | * write to confgile | 280 | // * write to confgile |
281 | */ | 281 | // */ |
282 | void PackageManagerSettings::newInstallationSetting() | 282 | //void PackageManagerSettings::newInstallationSetting() |
283 | { | 283 | //{ |
284 | installationSettingsCount++; | 284 | // installationSettingsCount++; |
285 | settingName->insertItem( "New", installationSettingsCount ); | 285 | // settingName->insertItem( "New", installationSettingsCount ); |
286 | settingName->setCurrentItem( installationSettingsCount ); | 286 | // settingName->setCurrentItem( installationSettingsCount ); |
287 | settingName->setEditable( true ); | 287 | // settingName->setEditable( true ); |
288 | changed = true; | 288 | // changed = true; |
289 | } | 289 | //} |
290 | 290 | ||
291 | void PackageManagerSettings::installationSettingChange(int cs) | 291 | //void PackageManagerSettings::installationSettingChange(int cs) |
292 | { | 292 | //{ |
293 | writeCurrentInstallationSetting(); | 293 | // writeCurrentInstallationSetting(); |
294 | currentSetting = cs; | 294 | // currentSetting = cs; |
295 | readInstallationSetting( cs ); | 295 | // readInstallationSetting( cs ); |
296 | changed = true; | 296 | // changed = true; |
297 | } | 297 | //} |
298 | 298 | ||
299 | void PackageManagerSettings::writeInstallationSettings() | 299 | void PackageManagerSettings::writeInstallationSettings() |
@@ -343,15 +343,15 @@ void PackageManagerSettings::writeCurrentInstallationSetting() | |||
343 | } | 343 | } |
344 | 344 | ||
345 | void PackageManagerSettings::renameInstallationSetting() | 345 | //void PackageManagerSettings::renameInstallationSetting() |
346 | { | 346 | //{ |
347 | settingName->setEditable( true ); | 347 | // settingName->setEditable( true ); |
348 | changed = true; | 348 | // changed = true; |
349 | } | 349 | //} |
350 | 350 | ||
351 | void PackageManagerSettings::installationSettingSetName(const QString &name) | 351 | //void PackageManagerSettings::installationSettingSetName(const QString &name) |
352 | { | 352 | //{ |
353 | settingName->changeItem( name, settingName->currentItem() ); | 353 | // settingName->changeItem( name, settingName->currentItem() ); |
354 | changed = true; | 354 | // changed = true; |
355 | } | 355 | //} |
356 | 356 | ||
357 | 357 | ||