From 2d0134f0bee1c0d33fc8cdc66ecc390080adba25 Mon Sep 17 00:00:00 2001 From: tille Date: Mon, 02 Jun 2003 12:36:00 +0000 Subject: disable the profile tab and add some whatsthis --- (limited to 'noncore/settings') diff --git a/noncore/settings/networksettings/mainwindow.ui b/noncore/settings/networksettings/mainwindow.ui index f61a1ae..a730dd5 100644 --- a/noncore/settings/networksettings/mainwindow.ui +++ b/noncore/settings/networksettings/mainwindow.ui @@ -34,6 +34,10 @@ name tabWidget + + enabled + true + layoutMargin @@ -136,6 +140,10 @@ allColumnsShowFocus true + + whatsThis + A list of network settings to be choosen from + QLayoutWidget @@ -165,6 +173,10 @@ text &Add + + whatsThis + Add a new interface to the list. + QPushButton @@ -176,6 +188,10 @@ text &Start/Stop + + whatsThis + Start and Stop the current interface, gives additional information about the interface. + QPushButton @@ -187,6 +203,10 @@ text &Configure + + whatsThis + Configure the current interface + QPushButton @@ -198,6 +218,10 @@ text &Remove + + whatsThis + Remove the current interface from the list. + diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 63b9603..abf5663 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp @@ -11,6 +11,7 @@ #include #include #include +#include // in order to disable the profiles tab #include @@ -58,6 +59,10 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par connect(setCurrentProfileButton, SIGNAL(clicked()), this, SLOT(changeProfile())); connect(newProfile, SIGNAL(textChanged(const QString&)), this, SLOT(newProfileChanged(const QString&))); + + //FIXME: disable profiles for the moment: + tabWidget->setTabEnabled( tab, false ); + // Load connections. // /usr/local/kde/lib/libinterfaces.la #ifdef QWS @@ -94,8 +99,9 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par Config cfg("NetworkSetup"); profiles = QStringList::split(" ", cfg.readEntry("Profiles", "All")); - for ( QStringList::Iterator it = profiles.begin(); it != profiles.end(); ++it) - profilesList->insertItem((*it)); + for ( QStringList::Iterator it = profiles.begin(); + it != profiles.end(); ++it) + profilesList->insertItem((*it)); currentProfileLabel->setText(cfg.readEntry("CurrentProfile", "All")); advancedUserMode = cfg.readBoolEntry("AdvancedUserMode", false); scheme = cfg.readEntry("SchemeFile", DEFAULT_SCHEME); -- cgit v0.9.0.2