From 9b6b21112f38181f49b07e973bfe00c0d83a6900 Mon Sep 17 00:00:00 2001 From: tille Date: Fri, 23 May 2003 19:43:46 +0000 Subject: configure dialog basicly working more kppp stuff... ;) --- (limited to 'noncore/settings/networksettings/ppp/pppconfig.cpp') diff --git a/noncore/settings/networksettings/ppp/pppconfig.cpp b/noncore/settings/networksettings/ppp/pppconfig.cpp new file mode 100644 index 0000000..7b2b21b --- a/dev/null +++ b/noncore/settings/networksettings/ppp/pppconfig.cpp @@ -0,0 +1,62 @@ + +#include +#include +#include + +#include "accounts.h" +#include "general.h" +#include "pppconfig.h" +#include "pppdata.h" +#include "runtests.h" +#include "modem.h" + +PPPConfigWidget::PPPConfigWidget( QWidget *parent, const char *name, + bool modal, WFlags fl ) + : QDialog(parent, name, modal, fl) +{ + setCaption(tr("Configure Modem")); + int result = runTests(); + if(result == TEST_CRITICAL){ + QMessageBox::critical(0, tr("Modem failure"), tr("A critical failure appeard while testing the modem") ); + return; + } + +// setFixedSize(sizeHint()); + + (void)new Modem; + + QVBoxLayout *layout = new QVBoxLayout( this ); + layout->setSpacing( 0 ); + layout->setMargin( 1 ); + tabWindow = new QTabWidget( this, "tabWidget" ); + layout->addWidget( tabWindow ); + + accounts = new AccountWidget( tabWindow, "accounts" ); + tabWindow->addTab( accounts, tr("&Accounts") ); + modem1 = new ModemWidget( tabWindow, "modem1" ); + tabWindow->addTab( modem1, tr("&Device") ); + modem2 = new ModemWidget2( tabWindow, "modem2" ); + tabWindow->addTab( modem2, tr("&Modem") ); +// graph = new GraphSetup( tabWindow->addPage( tr("&Graph"), tr("Throughput Graph" ) ) ); +// general = new GeneralWidget( tabWindow->addPage( tr("M&isc"), tr("Miscellaneous Settings") ) ); + +} + + +PPPConfigWidget::~PPPConfigWidget() +{ + +} + +void PPPConfigWidget::accept() +{ + gpppdata.save(); + QDialog::accept(); +} + + +void PPPConfigWidget::reject() +{ + gpppdata.cancel(); + QDialog::reject(); +} -- cgit v0.9.0.2