author | wimpie <wimpie> | 2005-01-04 01:39:32 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:39:32 (UTC) |
commit | 2a7afda8b7daf4a43e370dba09e43e7f5058ab49 (patch) (unidiff) | |
tree | 1905b1afdf7a1364149c4d325c778a4dd4c629c1 /noncore/settings/networksettings2/ppp | |
parent | f1a6369e3df58019891707a3964b20836e104d67 (diff) | |
download | opie-2a7afda8b7daf4a43e370dba09e43e7f5058ab49.zip opie-2a7afda8b7daf4a43e370dba09e43e7f5058ab49.tar.gz opie-2a7afda8b7daf4a43e370dba09e43e7f5058ab49.tar.bz2 |
More NS2 files
Diffstat (limited to 'noncore/settings/networksettings2/ppp') (more/less context) (ignore whitespace changes)
5 files changed, 295 insertions, 0 deletions
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 @@ | |||
1 | #include <stdio.h> | ||
2 | #include <qcombobox.h> | ||
3 | #include <qmessagebox.h> | ||
4 | #include <qradiobutton.h> | ||
5 | #include <qlineedit.h> | ||
6 | #include <GUIUtils.h> | ||
7 | #include "PPPDialingedit.h" | ||
8 | |||
9 | PPPDialingEdit::PPPDialingEdit( QWidget * Parent ) : | ||
10 | PPPDialingGUI( Parent ){ | ||
11 | |||
12 | // populate widget stack | ||
13 | } | ||
14 | |||
15 | QString PPPDialingEdit::acceptable( void ) { | ||
16 | return QString(); | ||
17 | } | ||
18 | |||
19 | bool PPPDialingEdit::commit( PPPData & D ) { | ||
20 | bool SM; | ||
21 | return SM; | ||
22 | } | ||
23 | |||
24 | void PPPDialingEdit::showData( PPPData & D ) { | ||
25 | } | ||
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 @@ | |||
1 | #include "pppdata.h" | ||
2 | #include "PPPDialingGUI.h" | ||
3 | |||
4 | class PPPDialingEdit : public PPPDialingGUI { | ||
5 | |||
6 | public : | ||
7 | |||
8 | PPPDialingEdit( QWidget * parent ); | ||
9 | |||
10 | QString acceptable( void ); | ||
11 | bool commit( PPPData & Data ); | ||
12 | void showData( PPPData & Data ); | ||
13 | |||
14 | private : | ||
15 | |||
16 | }; | ||
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 @@ | |||
1 | <!DOCTYPE UI><UI> | ||
2 | <class>PPPRunGUI</class> | ||
3 | <widget> | ||
4 | <class>QWidget</class> | ||
5 | <property stdset="1"> | ||
6 | <name>name</name> | ||
7 | <cstring>PPPRunGUI</cstring> | ||
8 | </property> | ||
9 | <property stdset="1"> | ||
10 | <name>geometry</name> | ||
11 | <rect> | ||
12 | <x>0</x> | ||
13 | <y>0</y> | ||
14 | <width>210</width> | ||
15 | <height>272</height> | ||
16 | </rect> | ||
17 | </property> | ||
18 | <property stdset="1"> | ||
19 | <name>caption</name> | ||
20 | <string>PPPRun</string> | ||
21 | </property> | ||
22 | <property> | ||
23 | <name>layoutMargin</name> | ||
24 | </property> | ||
25 | <property> | ||
26 | <name>layoutSpacing</name> | ||
27 | </property> | ||
28 | <vbox> | ||
29 | <property stdset="1"> | ||
30 | <name>margin</name> | ||
31 | <number>3</number> | ||
32 | </property> | ||
33 | <property stdset="1"> | ||
34 | <name>spacing</name> | ||
35 | <number>3</number> | ||
36 | </property> | ||
37 | <widget> | ||
38 | <class>QGroupBox</class> | ||
39 | <property stdset="1"> | ||
40 | <name>name</name> | ||
41 | <cstring>GroupBox1</cstring> | ||
42 | </property> | ||
43 | <property stdset="1"> | ||
44 | <name>title</name> | ||
45 | <string>Upon connect</string> | ||
46 | </property> | ||
47 | <property> | ||
48 | <name>layoutMargin</name> | ||
49 | </property> | ||
50 | <property> | ||
51 | <name>layoutSpacing</name> | ||
52 | </property> | ||
53 | <grid> | ||
54 | <property stdset="1"> | ||
55 | <name>margin</name> | ||
56 | <number>3</number> | ||
57 | </property> | ||
58 | <property stdset="1"> | ||
59 | <name>spacing</name> | ||
60 | <number>3</number> | ||
61 | </property> | ||
62 | <widget row="0" column="1" > | ||
63 | <class>QLineEdit</class> | ||
64 | <property stdset="1"> | ||
65 | <name>name</name> | ||
66 | <cstring>PreConnect_LE</cstring> | ||
67 | </property> | ||
68 | </widget> | ||
69 | <widget row="0" column="0" > | ||
70 | <class>QLabel</class> | ||
71 | <property stdset="1"> | ||
72 | <name>name</name> | ||
73 | <cstring>TextLabel2</cstring> | ||
74 | </property> | ||
75 | <property stdset="1"> | ||
76 | <name>text</name> | ||
77 | <string>Before</string> | ||
78 | </property> | ||
79 | </widget> | ||
80 | <widget row="1" column="1" > | ||
81 | <class>QLineEdit</class> | ||
82 | <property stdset="1"> | ||
83 | <name>name</name> | ||
84 | <cstring>PostConnect_LE</cstring> | ||
85 | </property> | ||
86 | </widget> | ||
87 | <widget row="1" column="0" > | ||
88 | <class>QLabel</class> | ||
89 | <property stdset="1"> | ||
90 | <name>name</name> | ||
91 | <cstring>TextLabel2_2</cstring> | ||
92 | </property> | ||
93 | <property stdset="1"> | ||
94 | <name>text</name> | ||
95 | <string>After</string> | ||
96 | </property> | ||
97 | </widget> | ||
98 | </grid> | ||
99 | </widget> | ||
100 | <widget> | ||
101 | <class>QGroupBox</class> | ||
102 | <property stdset="1"> | ||
103 | <name>name</name> | ||
104 | <cstring>GroupBox1_2</cstring> | ||
105 | </property> | ||
106 | <property stdset="1"> | ||
107 | <name>title</name> | ||
108 | <string>Upon disconnect</string> | ||
109 | </property> | ||
110 | <property> | ||
111 | <name>layoutMargin</name> | ||
112 | </property> | ||
113 | <property> | ||
114 | <name>layoutSpacing</name> | ||
115 | </property> | ||
116 | <grid> | ||
117 | <property stdset="1"> | ||
118 | <name>margin</name> | ||
119 | <number>3</number> | ||
120 | </property> | ||
121 | <property stdset="1"> | ||
122 | <name>spacing</name> | ||
123 | <number>3</number> | ||
124 | </property> | ||
125 | <widget row="0" column="1" > | ||
126 | <class>QLineEdit</class> | ||
127 | <property stdset="1"> | ||
128 | <name>name</name> | ||
129 | <cstring>PreDisconnect_LE</cstring> | ||
130 | </property> | ||
131 | </widget> | ||
132 | <widget row="0" column="0" > | ||
133 | <class>QLabel</class> | ||
134 | <property stdset="1"> | ||
135 | <name>name</name> | ||
136 | <cstring>TextLabel2_3</cstring> | ||
137 | </property> | ||
138 | <property stdset="1"> | ||
139 | <name>text</name> | ||
140 | <string>Before</string> | ||
141 | </property> | ||
142 | </widget> | ||
143 | <widget row="1" column="1" > | ||
144 | <class>QLineEdit</class> | ||
145 | <property stdset="1"> | ||
146 | <name>name</name> | ||
147 | <cstring>PostDisconnect_LE</cstring> | ||
148 | </property> | ||
149 | </widget> | ||
150 | <widget row="1" column="0" > | ||
151 | <class>QLabel</class> | ||
152 | <property stdset="1"> | ||
153 | <name>name</name> | ||
154 | <cstring>TextLabel2_2_2</cstring> | ||
155 | </property> | ||
156 | <property stdset="1"> | ||
157 | <name>text</name> | ||
158 | <string>After</string> | ||
159 | </property> | ||
160 | </widget> | ||
161 | </grid> | ||
162 | </widget> | ||
163 | <widget> | ||
164 | <class>QLabel</class> | ||
165 | <property stdset="1"> | ||
166 | <name>name</name> | ||
167 | <cstring>TextLabel1</cstring> | ||
168 | </property> | ||
169 | <property stdset="1"> | ||
170 | <name>text</name> | ||
171 | <string><UL> | ||
172 | <LI>Commands run under your <b>real</b> user id (<b>not</b> as root)</LI> | ||
173 | <LI>Supply the whole path</LI> | ||
174 | </UL></string> | ||
175 | </property> | ||
176 | <property stdset="1"> | ||
177 | <name>alignment</name> | ||
178 | <set>WordBreak|AlignVCenter|AlignLeft</set> | ||
179 | </property> | ||
180 | <property> | ||
181 | <name>wordwrap</name> | ||
182 | </property> | ||
183 | </widget> | ||
184 | <spacer> | ||
185 | <property> | ||
186 | <name>name</name> | ||
187 | <cstring>Spacer1</cstring> | ||
188 | </property> | ||
189 | <property stdset="1"> | ||
190 | <name>orientation</name> | ||
191 | <enum>Vertical</enum> | ||
192 | </property> | ||
193 | <property stdset="1"> | ||
194 | <name>sizeType</name> | ||
195 | <enum>Expanding</enum> | ||
196 | </property> | ||
197 | <property> | ||
198 | <name>sizeHint</name> | ||
199 | <size> | ||
200 | <width>20</width> | ||
201 | <height>20</height> | ||
202 | </size> | ||
203 | </property> | ||
204 | </spacer> | ||
205 | </vbox> | ||
206 | </widget> | ||
207 | </UI> | ||
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 @@ | |||
1 | #include <stdio.h> | ||
2 | #include <qcombobox.h> | ||
3 | #include <qmessagebox.h> | ||
4 | #include <qradiobutton.h> | ||
5 | #include <qlineedit.h> | ||
6 | #include <GUIUtils.h> | ||
7 | #include "PPPRunedit.h" | ||
8 | |||
9 | PPPRunEdit::PPPRunEdit( QWidget * Parent ) : PPPRunGUI( Parent ){ | ||
10 | } | ||
11 | |||
12 | QString PPPRunEdit::acceptable( void ) { | ||
13 | return QString(); | ||
14 | } | ||
15 | |||
16 | bool PPPRunEdit::commit( PPPData & D ) { | ||
17 | bool SM = 0; | ||
18 | |||
19 | TXTM( D.Run.PreConnect, PreConnect_LE, SM ); | ||
20 | TXTM( D.Run.PostConnect, PostConnect_LE, SM ); | ||
21 | TXTM( D.Run.PreDisconnect, PreDisconnect_LE, SM ); | ||
22 | TXTM( D.Run.PostDisconnect, PostDisconnect_LE, SM ); | ||
23 | return SM; | ||
24 | } | ||
25 | |||
26 | void PPPRunEdit::showData( PPPData & D ) { | ||
27 | STXT( D.Run.PreConnect, PreConnect_LE); | ||
28 | STXT( D.Run.PostConnect, PostConnect_LE); | ||
29 | STXT( D.Run.PreDisconnect, PreDisconnect_LE ); | ||
30 | STXT( D.Run.PostDisconnect, PostDisconnect_LE); | ||
31 | } | ||
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 @@ | |||
1 | #include "pppdata.h" | ||
2 | #include "PPPRunGUI.h" | ||
3 | |||
4 | class PPPRunEdit : public PPPRunGUI { | ||
5 | |||
6 | public : | ||
7 | |||
8 | PPPRunEdit( QWidget * parent ); | ||
9 | |||
10 | QString acceptable( void ); | ||
11 | bool commit( PPPData & Data ); | ||
12 | void showData( PPPData & Data ); | ||
13 | |||
14 | private : | ||
15 | |||
16 | }; | ||