summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp24
-rw-r--r--noncore/unsupported/oipkg/mainwindow.h3
-rw-r--r--noncore/unsupported/oipkg/pksettings.cpp26
-rw-r--r--noncore/unsupported/oipkg/pksettings.h3
-rw-r--r--noncore/unsupported/oipkg/pksettingsbase.ui4
5 files changed, 36 insertions, 24 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index d1be8d0..11fc91b 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -126,5 +126,5 @@ void MainWindow::makeMenu()
126 QString::null, 0, this, 0 ); 126 QString::null, 0, this, 0 );
127 connect( cfgact, SIGNAL( activated() ), 127 connect( cfgact, SIGNAL( activated() ),
128 SLOT( showSettings() ) ); 128 SLOT( showSettingsSetup() ) );
129 cfgact->addTo( cfgMenu ); 129 cfgact->addTo( cfgMenu );
130 130
@@ -225,5 +225,5 @@ void MainWindow::makeMenu()
225 connect( destination, SIGNAL(activated(int)), 225 connect( destination, SIGNAL(activated(int)),
226 settings, SLOT(activeDestinationChange(int)) ); 226 settings, SLOT(activeDestinationChange(int)) );
227 spacer = new QLabel( " ", destBar ); 227// spacer = new QLabel( " ", destBar );
228// spacer->setBackgroundMode( PaletteForeground ); 228// spacer->setBackgroundMode( PaletteForeground );
229 CheckBoxLink = new QCheckBox( tr("Link"), destBar); 229 CheckBoxLink = new QCheckBox( tr("Link"), destBar);
@@ -239,5 +239,5 @@ void MainWindow::makeMenu()
239 destBar->setStretchableWidget( CheckBoxLink ); 239 destBar->setStretchableWidget( CheckBoxLink );
240 destAction->setToggleAction( true ); 240 destAction->setToggleAction( true );
241 // destAction->addTo( viewMenu ); 241 destAction->addTo( viewMenu );
242 242
243// helpMenu 243// helpMenu
@@ -386,18 +386,24 @@ void MainWindow::setSubSections()
386 386
387 387
388void MainWindow::showSettings() 388void MainWindow::showSettings(int i)
389{ 389{
390 if ( settings->showDialog( 0 ) ) 390 if ( settings->showDialog( i ) )
391 {
391 updateList(); 392 updateList();
393 }
394 setComboName(destination,settings->getDestinationName());
395 CheckBoxLink->setChecked( settings->createLinks() );
396}
397void MainWindow::showSettingsSetup()
398{
399 showSettings(0);
392} 400}
393void MainWindow::showSettingsSrv() 401void MainWindow::showSettingsSrv()
394{ 402{
395 if ( settings->showDialog( 1 ) ) 403 showSettings(1);
396 updateList();
397} 404}
398void MainWindow::showSettingsDst() 405void MainWindow::showSettingsDst()
399{ 406{
400 if ( settings->showDialog( 2 ) ) 407 showSettings(2);
401 updateList();
402} 408}
403 409
diff --git a/noncore/unsupported/oipkg/mainwindow.h b/noncore/unsupported/oipkg/mainwindow.h
index 090ddd3..354c585 100644
--- a/noncore/unsupported/oipkg/mainwindow.h
+++ b/noncore/unsupported/oipkg/mainwindow.h
@@ -53,5 +53,6 @@ protected slots:
53 void subSectionChanged(); 53 void subSectionChanged();
54 void sectionChanged(); 54 void sectionChanged();
55 void showSettings(); 55 void showSettings(int);
56 void showSettingsSetup();
56 void showSettingsSrv(); 57 void showSettingsSrv();
57 void showSettingsDst(); 58 void showSettingsDst();
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
@@ -60,4 +60,11 @@ PackageManagerSettings::PackageManagerSettings( QWidget* parent, const char* na
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
@@ -533,5 +540,5 @@ QStringList PackageManagerSettings::getDestinationNames()
533 return sl; 540 return sl;
534} 541}
535 542
536 543
537void PackageManagerSettings::linkEnabled( bool b ) 544void PackageManagerSettings::linkEnabled( bool b )
@@ -539,4 +546,5 @@ void PackageManagerSettings::linkEnabled( bool b )
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
@@ -546,9 +554,4 @@ void PackageManagerSettings::activeServerChanged()
546} 554}
547 555
548QComboBox* PackageManagerSettings::getDestCombo()
549{
550 return new QComboBox(activeDestination);
551}
552
553void PackageManagerSettings::createLinksToDest() 556void PackageManagerSettings::createLinksToDest()
554{ 557{
@@ -565,6 +568,9 @@ void PackageManagerSettings::removeLinksToDest()
565} 568}
566 569
567//void PackageManagerSettings::setIpkg( PmIpkg* i ) 570void 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}
diff --git a/noncore/unsupported/oipkg/pksettings.h b/noncore/unsupported/oipkg/pksettings.h
index 8f9fe62..d66c4e8 100644
--- a/noncore/unsupported/oipkg/pksettings.h
+++ b/noncore/unsupported/oipkg/pksettings.h
@@ -25,6 +25,4 @@ public:
25 QStringList getDestinationNames(); 25 QStringList getDestinationNames();
26 QString getDestinationUrlByName(QString); 26 QString getDestinationUrlByName(QString);
27 QComboBox* getDestCombo();
28// void setIpkg( PmIpkg* );
29 27
30public slots: 28public slots:
@@ -52,4 +50,5 @@ public slots:
52 void renameInstallationSetting(); 50 void renameInstallationSetting();
53 void activeServerChanged(); 51 void activeServerChanged();
52 void activeDestinationChange(int);
54signals: 53signals:
55// void doCreateLinks( QString dest ); 54// void doCreateLinks( QString dest );
diff --git a/noncore/unsupported/oipkg/pksettingsbase.ui b/noncore/unsupported/oipkg/pksettingsbase.ui
index 5b83248..e95ed83 100644
--- a/noncore/unsupported/oipkg/pksettingsbase.ui
+++ b/noncore/unsupported/oipkg/pksettingsbase.ui
@@ -12,5 +12,5 @@
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>337</width> 14 <width>333</width>
15 <height>454</height> 15 <height>454</height>
16 </rect> 16 </rect>
@@ -216,5 +216,5 @@
216 <property stdset="1"> 216 <property stdset="1">
217 <name>text</name> 217 <name>text</name>
218 <string>Used servers:</string> 218 <string>Used servers: (Highlighted feeds are active)</string>
219 </property> 219 </property>
220 </widget> 220 </widget>