From 2a7afda8b7daf4a43e370dba09e43e7f5058ab49 Mon Sep 17 00:00:00 2001 From: wimpie Date: Tue, 04 Jan 2005 01:39:32 +0000 Subject: More NS2 files --- (limited to 'noncore/settings/networksettings2/ppp') diff --git a/noncore/settings/networksettings2/ppp/PPPDialingedit.cpp b/noncore/settings/networksettings2/ppp/PPPDialingedit.cpp new file mode 100644 index 0000000..9264ceb --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/PPPDialingedit.cpp @@ -0,0 +1,25 @@ +#include +#include +#include +#include +#include +#include +#include "PPPDialingedit.h" + +PPPDialingEdit::PPPDialingEdit( QWidget * Parent ) : + PPPDialingGUI( Parent ){ + + // populate widget stack +} + +QString PPPDialingEdit::acceptable( void ) { + return QString(); +} + +bool PPPDialingEdit::commit( PPPData & D ) { + bool SM; + return SM; +} + +void PPPDialingEdit::showData( PPPData & D ) { +} diff --git a/noncore/settings/networksettings2/ppp/PPPDialingedit.h b/noncore/settings/networksettings2/ppp/PPPDialingedit.h new file mode 100644 index 0000000..016bb3b --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/PPPDialingedit.h @@ -0,0 +1,16 @@ +#include "pppdata.h" +#include "PPPDialingGUI.h" + +class PPPDialingEdit : public PPPDialingGUI { + +public : + + PPPDialingEdit( QWidget * parent ); + + QString acceptable( void ); + bool commit( PPPData & Data ); + void showData( PPPData & Data ); + +private : + +}; diff --git a/noncore/settings/networksettings2/ppp/PPPRunGUI.ui b/noncore/settings/networksettings2/ppp/PPPRunGUI.ui new file mode 100644 index 0000000..4532065 --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/PPPRunGUI.ui @@ -0,0 +1,207 @@ + +PPPRunGUI + + QWidget + + name + PPPRunGUI + + + geometry + + 0 + 0 + 210 + 272 + + + + caption + PPPRun + + + layoutMargin + + + layoutSpacing + + + + margin + 3 + + + spacing + 3 + + + QGroupBox + + name + GroupBox1 + + + title + Upon connect + + + layoutMargin + + + layoutSpacing + + + + margin + 3 + + + spacing + 3 + + + QLineEdit + + name + PreConnect_LE + + + + QLabel + + name + TextLabel2 + + + text + Before + + + + QLineEdit + + name + PostConnect_LE + + + + QLabel + + name + TextLabel2_2 + + + text + After + + + + + + QGroupBox + + name + GroupBox1_2 + + + title + Upon disconnect + + + layoutMargin + + + layoutSpacing + + + + margin + 3 + + + spacing + 3 + + + QLineEdit + + name + PreDisconnect_LE + + + + QLabel + + name + TextLabel2_3 + + + text + Before + + + + QLineEdit + + name + PostDisconnect_LE + + + + QLabel + + name + TextLabel2_2_2 + + + text + After + + + + + + QLabel + + name + TextLabel1 + + + text + <UL> +<LI>Commands run under your <b>real</b> user id (<b>not</b> as root)</LI> +<LI>Supply the whole path</LI> +</UL> + + + alignment + WordBreak|AlignVCenter|AlignLeft + + + wordwrap + + + + + name + Spacer1 + + + orientation + Vertical + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + + diff --git a/noncore/settings/networksettings2/ppp/PPPRunedit.cpp b/noncore/settings/networksettings2/ppp/PPPRunedit.cpp new file mode 100644 index 0000000..23fcd3c --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/PPPRunedit.cpp @@ -0,0 +1,31 @@ +#include +#include +#include +#include +#include +#include +#include "PPPRunedit.h" + +PPPRunEdit::PPPRunEdit( QWidget * Parent ) : PPPRunGUI( Parent ){ +} + +QString PPPRunEdit::acceptable( void ) { + return QString(); +} + +bool PPPRunEdit::commit( PPPData & D ) { + bool SM = 0; + + TXTM( D.Run.PreConnect, PreConnect_LE, SM ); + TXTM( D.Run.PostConnect, PostConnect_LE, SM ); + TXTM( D.Run.PreDisconnect, PreDisconnect_LE, SM ); + TXTM( D.Run.PostDisconnect, PostDisconnect_LE, SM ); + return SM; +} + +void PPPRunEdit::showData( PPPData & D ) { + STXT( D.Run.PreConnect, PreConnect_LE); + STXT( D.Run.PostConnect, PostConnect_LE); + STXT( D.Run.PreDisconnect, PreDisconnect_LE ); + STXT( D.Run.PostDisconnect, PostDisconnect_LE); +} diff --git a/noncore/settings/networksettings2/ppp/PPPRunedit.h b/noncore/settings/networksettings2/ppp/PPPRunedit.h new file mode 100644 index 0000000..4205512 --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/PPPRunedit.h @@ -0,0 +1,16 @@ +#include "pppdata.h" +#include "PPPRunGUI.h" + +class PPPRunEdit : public PPPRunGUI { + +public : + + PPPRunEdit( QWidget * parent ); + + QString acceptable( void ); + bool commit( PPPData & Data ); + void showData( PPPData & Data ); + +private : + +}; -- cgit v0.9.0.2