-rw-r--r-- | noncore/settings/networksettings/mainwindow.ui | 24 | ||||
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 10 |
2 files changed, 32 insertions, 2 deletions
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 @@ -33,8 +33,12 @@ <property stdset="1"> <name>name</name> <cstring>tabWidget</cstring> </property> + <property stdset="1"> + <name>enabled</name> + <bool>true</bool> + </property> <property> <name>layoutMargin</name> </property> <widget> @@ -135,8 +139,12 @@ <property stdset="1"> <name>allColumnsShowFocus</name> <bool>true</bool> </property> + <property> + <name>whatsThis</name> + <string>A list of network settings to be choosen from</string> + </property> </widget> <widget> <class>QLayoutWidget</class> <property stdset="1"> @@ -164,8 +172,12 @@ <property stdset="1"> <name>text</name> <string>&Add</string> </property> + <property> + <name>whatsThis</name> + <string>Add a new interface to the list.</string> + </property> </widget> <widget row="0" column="0" > <class>QPushButton</class> <property stdset="1"> @@ -175,8 +187,12 @@ <property stdset="1"> <name>text</name> <string>&Start/Stop</string> </property> + <property> + <name>whatsThis</name> + <string>Start and Stop the current interface, gives additional information about the interface.</string> + </property> </widget> <widget row="0" column="1" > <class>QPushButton</class> <property stdset="1"> @@ -186,8 +202,12 @@ <property stdset="1"> <name>text</name> <string>&Configure</string> </property> + <property> + <name>whatsThis</name> + <string>Configure the current interface</string> + </property> </widget> <widget row="1" column="1" > <class>QPushButton</class> <property stdset="1"> @@ -197,8 +217,12 @@ <property stdset="1"> <name>text</name> <string>&Remove</string> </property> + <property> + <name>whatsThis</name> + <string>Remove the current interface from the list.</string> + </property> </widget> </grid> </widget> </vbox> 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 @@ -10,8 +10,9 @@ #include <qlineedit.h> #include <qlistview.h> #include <qheader.h> #include <qlabel.h> +#include <qtabwidget.h> // in order to disable the profiles tab #include <qmessagebox.h> #ifdef QWS @@ -57,8 +58,12 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par connect(removeProfileButton, SIGNAL(clicked()), this, SLOT(removeProfile())); 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 loadModules(QPEApplication::qpeDir() + "/plugins/networksettings"); @@ -93,10 +98,11 @@ MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(par connectionList->header()->hide(); 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); |