|
|
@ -58,6 +58,7 @@ using namespace ConnectionSettings;
|
|
|
|
|
|
|
|
|
|
|
|
ConnectionSettingsDialogImpl::ConnectionSettingsDialogImpl(TDENetworkConnection* conn, bool new_conn, TQByteArray networkextid, TQWidget* parent, const char* name, bool modal, WFlags fl)
|
|
|
|
ConnectionSettingsDialogImpl::ConnectionSettingsDialogImpl(TDENetworkConnection* conn, bool new_conn, TQByteArray networkextid, TQWidget* parent, const char* name, bool modal, WFlags fl)
|
|
|
|
: ConnectionSettingsDialog(parent, name, modal, fl)
|
|
|
|
: ConnectionSettingsDialog(parent, name, modal, fl)
|
|
|
|
|
|
|
|
, _disable_next_button(false)
|
|
|
|
, _conn(conn)
|
|
|
|
, _conn(conn)
|
|
|
|
, _new_conn(new_conn)
|
|
|
|
, _new_conn(new_conn)
|
|
|
|
, _networkextid(networkextid)
|
|
|
|
, _networkextid(networkextid)
|
|
|
@ -78,7 +79,7 @@ ConnectionSettingsDialogImpl::ConnectionSettingsDialogImpl(TDENetworkConnection*
|
|
|
|
pbCancel->setIconSet(SmallIcon("cancel", TQIconSet::Automatic));
|
|
|
|
pbCancel->setIconSet(SmallIcon("cancel", TQIconSet::Automatic));
|
|
|
|
pbSave->setIconSet(SmallIcon("ok", TQIconSet::Automatic));
|
|
|
|
pbSave->setIconSet(SmallIcon("ok", TQIconSet::Automatic));
|
|
|
|
|
|
|
|
|
|
|
|
// enable or disable buttons accroding to the current state
|
|
|
|
// enable or disable buttons according to the current state
|
|
|
|
slotEnableButtons();
|
|
|
|
slotEnableButtons();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -430,13 +431,13 @@ ConnectionSettingsDialogImpl::slotEnableButtons()
|
|
|
|
Next: enabled if another widget is available
|
|
|
|
Next: enabled if another widget is available
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
enabled = true;
|
|
|
|
enabled = true;
|
|
|
|
if (current == _widgetIds.fromLast()) {
|
|
|
|
if (current == _widgetIds.fromLast() || _disable_next_button) {
|
|
|
|
enabled = false;
|
|
|
|
enabled = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pbNext->setEnabled(enabled);
|
|
|
|
pbNext->setEnabled(enabled);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
Back: enabled if the current widget has a predecessor
|
|
|
|
Back: enabled if the current widget has a predecessor
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
enabled = true;
|
|
|
|
enabled = true;
|
|
|
|
if (current == _widgetIds.begin()) {
|
|
|
|
if (current == _widgetIds.begin()) {
|
|
|
@ -445,7 +446,7 @@ ConnectionSettingsDialogImpl::slotEnableButtons()
|
|
|
|
pbBack->setEnabled(enabled);
|
|
|
|
pbBack->setEnabled(enabled);
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
Connect: only show connect if the connection is valid
|
|
|
|
Connect: only show connect if the connection is valid
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
if (_conn) {
|
|
|
|
if (_conn) {
|
|
|
|
TDEGlobalNetworkManager* nm = TDEGlobal::networkManager();
|
|
|
|
TDEGlobalNetworkManager* nm = TDEGlobal::networkManager();
|
|
|
|