summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/TODO1
-rw-r--r--noncore/settings/networksettings/ppp/accounts.cpp375
-rw-r--r--noncore/settings/networksettings/ppp/accounts.h58
-rw-r--r--noncore/settings/networksettings/ppp/edit.cpp164
-rw-r--r--noncore/settings/networksettings/ppp/pppdata.cpp2
5 files changed, 242 insertions, 358 deletions
diff --git a/noncore/settings/networksettings/ppp/TODO b/noncore/settings/networksettings/ppp/TODO
index 1136c2d..9425628 100644
--- a/noncore/settings/networksettings/ppp/TODO
+++ b/noncore/settings/networksettings/ppp/TODO
@@ -7 +7,2 @@
7 not quite shure why it does not work... IMHO it should work 7 not quite shure why it does not work... IMHO it should work
8- remove interfaces
diff --git a/noncore/settings/networksettings/ppp/accounts.cpp b/noncore/settings/networksettings/ppp/accounts.cpp
index 3fa2f84..f704c84 100644
--- a/noncore/settings/networksettings/ppp/accounts.cpp
+++ b/noncore/settings/networksettings/ppp/accounts.cpp
@@ -37,7 +37,2 @@
37#include <qmessagebox.h> 37#include <qmessagebox.h>
38//#include <klocale.h>
39#define i18n QObject::tr
40//#include <kglobal.h>
41//#include <kwin.h>
42//#include <kdialogbase.h>
43#include <qvgroupbox.h> 38#include <qvgroupbox.h>
@@ -46,4 +41,2 @@
46#include "accounts.h" 41#include "accounts.h"
47//#include "accounting.h"
48//#include "providerdb.h"
49#include "edit.h" 42#include "edit.h"
@@ -64,14 +57,14 @@ AccountWidget::AccountWidget( PPPData *pd, QWidget *parent, const char *name )
64 57
65 edit_b = new QPushButton(i18n("&Edit..."), this); 58 edit_b = new QPushButton(tr("&Edit..."), this);
66 connect(edit_b, SIGNAL(clicked()), SLOT(editaccount())); 59 connect(edit_b, SIGNAL(clicked()), SLOT(editaccount()));
67 QWhatsThis::add(edit_b, i18n("Allows you to modify the selected account")); 60 QWhatsThis::add(edit_b, tr("Allows you to modify the selected account"));
68 l1->addWidget(edit_b); 61 l1->addWidget(edit_b);
69 62
70 new_b = new QPushButton(i18n("&New..."), this); 63 new_b = new QPushButton(tr("&New..."), this);
71 connect(new_b, SIGNAL(clicked()), SLOT(newaccount())); 64 connect(new_b, SIGNAL(clicked()), SLOT(newaccount()));
72 l1->addWidget(new_b); 65 l1->addWidget(new_b);
73 QWhatsThis::add(new_b, i18n("Create a new dialup connection\n" 66 QWhatsThis::add(new_b, tr("Create a new dialup connection\n"
74 "to the Internet")); 67 "to the Internet"));
75 68
76 copy_b = new QPushButton(i18n("Co&py"), this); 69 copy_b = new QPushButton(tr("Co&py"), this);
77 connect(copy_b, SIGNAL(clicked()), SLOT(copyaccount())); 70 connect(copy_b, SIGNAL(clicked()), SLOT(copyaccount()));
@@ -79,3 +72,3 @@ AccountWidget::AccountWidget( PPPData *pd, QWidget *parent, const char *name )
79 QWhatsThis::add(copy_b, 72 QWhatsThis::add(copy_b,
80 i18n("Makes a copy of the selected account. All\n" 73 tr("Makes a copy of the selected account. All\n"
81 "settings of the selected account are copied\n" 74 "settings of the selected account are copied\n"
@@ -84,3 +77,3 @@ AccountWidget::AccountWidget( PPPData *pd, QWidget *parent, const char *name )
84 77
85 delete_b = new QPushButton(i18n("De&lete"), this); 78 delete_b = new QPushButton(tr("De&lete"), this);
86 connect(delete_b, SIGNAL(clicked()), SLOT(deleteaccount())); 79 connect(delete_b, SIGNAL(clicked()), SLOT(deleteaccount()));
@@ -88,3 +81,3 @@ AccountWidget::AccountWidget( PPPData *pd, QWidget *parent, const char *name )
88 QWhatsThis::add(delete_b, 81 QWhatsThis::add(delete_b,
89 i18n("<p>Deletes the selected account\n\n" 82 tr("<p>Deletes the selected account\n\n"
90 "<font color=\"red\"><b>Use with care!</b></font>")); 83 "<font color=\"red\"><b>Use with care!</b></font>"));
@@ -95,60 +88,2 @@ AccountWidget::AccountWidget( PPPData *pd, QWidget *parent, const char *name )
95 88
96// QVBoxLayout *l121 = new QVBoxLayout;
97// l12->addLayout(l121);
98// l121->addStretch(1);
99 // costlabel = new QLabel(i18n("Phone costs:"), parent);
100// costlabel->setEnabled(FALSE);
101// l121->addWidget(costlabel);
102
103// costedit = new QLineEdit(parent);
104// costedit->setFocusPolicy(QWidget::NoFocus);
105// costedit->setFixedHeight(costedit->sizeHint().height());
106// costedit->setEnabled(FALSE);
107// l121->addWidget(costedit);
108// l121->addStretch(1);
109// QString tmp = i18n("<p>This shows the accumulated phone costs\n"
110 // "for the selected account.\n"
111 // "\n"
112 // "<b>Important</b>: If you have more than one \n"
113 // "account - beware, this is <b>NOT</b> the sum \n"
114 // "of the phone costs of all your accounts!");
115// QWhatsThis::add(costlabel, tmp);
116// QWhatsThis::add(costedit, tmp);
117
118// vollabel = new QLabel(i18n("Volume:"), parent);
119// vollabel->setEnabled(FALSE);
120// l121->addWidget(vollabel);
121
122// voledit = new QLineEdit(parent,"voledit");
123// voledit->setFocusPolicy(QWidget::NoFocus);
124// voledit->setFixedHeight(voledit->sizeHint().height());
125// voledit->setEnabled(FALSE);
126// l121->addWidget(voledit);
127// tmp = i18n("<p>This shows the number of bytes transferred\n"
128 // "for the selected account (not for all of your\n"
129 // "accounts. You can select what to display in\n"
130 // "the accounting dialog.\n"
131 // "\n"
132 // "<a href=\"#volaccounting\">More on volume accounting</a>");
133
134// QWhatsThis::add(vollabel,tmp);
135// QWhatsThis::add(voledit, tmp);
136
137// QVBoxLayout *l122 = new QVBoxLayout;
138// l12->addStretch(1);
139// l12->addLayout(l122);
140
141// l122->addStretch(1);
142// reset = new QPushButton(i18n("&Reset..."), parent);
143// reset->setEnabled(FALSE);
144// connect(reset, SIGNAL(clicked()),
145 // this, SLOT(resetClicked()));
146// l122->addWidget(reset);
147
148// log = new QPushButton(i18n("&View Logs"), this);
149// connect(log, SIGNAL(clicked()),
150 // this, SLOT(viewLogClicked()));
151// l122->addWidget(log);
152// l122->addStretch(1);
153
154 //load up account list from gppdata to the list box 89 //load up account list from gppdata to the list box
@@ -161,6 +96,6 @@ AccountWidget::AccountWidget( PPPData *pd, QWidget *parent, const char *name )
161 96
162// slotListBoxSelect(accountlist_l->currentItem()); 97
163 qDebug("setting listview index to %i",_pppdata->currentAccountID() ); 98 qDebug("setting listview index to %i",_pppdata->currentAccountID() );
164 accountlist_l->setCurrentItem( _pppdata->currentAccountID() ); 99 accountlist_l->setCurrentItem( _pppdata->currentAccountID() );
165// slotListBoxSelect( _pppdata->currentAccountID()); 100 slotListBoxSelect( _pppdata->currentAccountID());
166 101
@@ -229,45 +164,23 @@ void AccountWidget::editaccount() {
229void AccountWidget::newaccount() { 164void AccountWidget::newaccount() {
230 if(accountlist_l->count() == MAX_ACCOUNTS) {
231 QMessageBox::information(this, "sorry", i18n("Maximum number of accounts reached."));
232 return;
233 }
234 165
235 int result; 166 if(accountlist_l->count() == MAX_ACCOUNTS) {
236// int query = QMessageBox::information(this, 167 QMessageBox::information(this, "sorry",
237// i18n("Do you want to use the wizard to create the new account or the " 168 tr("Maximum number of accounts reached."));
238 // "standard, dialog-based setup?\n" 169 return;
239 // "The wizard is easier and sufficient in most cases. If you need " 170 }
240 // "very special settings, you might want to try the standard, " 171
241 // "dialog-based setup."), 172 int result;
242 // i18n("Create New Account"), 173 if (_pppdata->newaccount() == -1){
243 // i18n("Wizard"), i18n("Dialog Setup"), i18n("Cancel")); 174 qDebug("_pppdata->newaccount() == -1");
244 175 return;
245// switch(query) { 176 }
246// case QMessageBox::Yes:
247// {
248// if (_pppdata->newaccount() == -1)
249 // return;
250// // ProviderDB pdb(this);
251// // result = pdb.exec();
252// break;
253// }
254// case QMessageBox::No:
255 if (_pppdata->newaccount() == -1){
256 qDebug("_pppdata->newaccount() == -1");
257 return;
258 }
259 result = doTab(); 177 result = doTab();
260// break;
261// default:
262// return;
263// }
264 178
265 if(result == QDialog::Accepted) { 179 if(result == QDialog::Accepted) {
266 accountlist_l->insertItem(_pppdata->accname()); 180 accountlist_l->insertItem(_pppdata->accname());
267 accountlist_l->setSelected(accountlist_l->findItem(_pppdata->accname()), 181 accountlist_l->setSelected(accountlist_l->findItem(_pppdata->accname()),true);
268 true); 182
269// emit resetaccounts(); 183 _pppdata->save();
270 _pppdata->save(); 184 } else
271 } else 185 _pppdata->deleteAccount();
272 _pppdata->deleteAccount();
273} 186}
@@ -277,3 +190,3 @@ void AccountWidget::copyaccount() {
277 if(accountlist_l->count() == MAX_ACCOUNTS) { 190 if(accountlist_l->count() == MAX_ACCOUNTS) {
278 QMessageBox::information(this, "sorry", i18n("Maximum number of accounts reached.")); 191 QMessageBox::information(this, "sorry", tr("Maximum number of accounts reached."));
279 return; 192 return;
@@ -282,3 +195,3 @@ void AccountWidget::copyaccount() {
282 if(accountlist_l->currentItem()<0) { 195 if(accountlist_l->currentItem()<0) {
283 QMessageBox::information(this, "sorry", i18n("No account selected.")); 196 QMessageBox::information(this, "sorry", tr("No account selected."));
284 return; 197 return;
@@ -296,6 +209,6 @@ void AccountWidget::deleteaccount() {
296 209
297 QString s = i18n("Are you sure you want to delete\nthe account \"%1\"?") 210 QString s = tr("Are you sure you want to delete\nthe account \"%1\"?")
298 .arg(accountlist_l->text(accountlist_l->currentItem())); 211 .arg(accountlist_l->text(accountlist_l->currentItem()));
299 212
300 if(QMessageBox::warning(this, s, i18n("Confirm")) != QMessageBox::Yes) 213 if(QMessageBox::warning(this, s, tr("Confirm")) != QMessageBox::Yes)
301 return; 214 return;
@@ -314,3 +227,3 @@ void AccountWidget::deleteaccount() {
314int AccountWidget::doTab(){ 227int AccountWidget::doTab(){
315 QDialog *dlg = new QDialog( this, "newAccount", true ); 228 QDialog *dlg = new QDialog( 0, "newAccount", true );
316 QVBoxLayout *layout = new QVBoxLayout( dlg ); 229 QVBoxLayout *layout = new QVBoxLayout( dlg );
@@ -320,3 +233,3 @@ int AccountWidget::doTab(){
320 tabWindow = new QTabWidget( dlg, "tabWindow" ); 233 tabWindow = new QTabWidget( dlg, "tabWindow" );
321 layout->addWidget( tabWindow ); 234 layout->addWidget( tabWindow );
322 235
@@ -324,60 +237,64 @@ int AccountWidget::doTab(){
324 237
325 if(_pppdata->accname().isEmpty()) { 238 if(_pppdata->accname().isEmpty()) {
326 dlg->setCaption(i18n("New Account")); 239 dlg->setCaption(tr("New Account"));
327 isnewaccount = true; 240 isnewaccount = true;
328 } else { 241 } else {
329 QString tit = i18n("Edit Account: "); 242 QString tit = tr("Edit Account: ");
330 tit += _pppdata->accname(); 243 tit += _pppdata->accname();
331 dlg->setCaption(tit); 244 dlg->setCaption(tit);
332 isnewaccount = false; 245 isnewaccount = false;
333 } 246 }
334
335 dial_w = new DialWidget( _pppdata, tabWindow, isnewaccount, "Dial Setup");
336 tabWindow->addTab( dial_w, i18n("Dial") );
337 ip_w = new IPWidget( _pppdata, tabWindow, isnewaccount, i18n("IP Setup"));
338 tabWindow->addTab( ip_w, i18n("IP") );
339 gateway_w = new GatewayWidget( _pppdata, tabWindow, isnewaccount, i18n("Gateway Setup"));
340 tabWindow->addTab( gateway_w, i18n("Gateway") );
341 dns_w = new DNSWidget( _pppdata, tabWindow, isnewaccount, i18n("DNS Servers") );
342 tabWindow->addTab( dns_w, i18n("DNS") );
343 script_w = new ScriptWidget( _pppdata, tabWindow, isnewaccount, i18n("Edit Login Script"));
344 tabWindow->addTab( script_w, i18n("Login Script") );
345 ExecWidget *exec_w = new ExecWidget( _pppdata, tabWindow, isnewaccount, i18n("Execute Programs"));
346 tabWindow->addTab( exec_w, i18n("Execute") );
347// acct = new AccountingSelector( tabWindow, isnewaccount );
348// tabWindow->addTab( acct, i18n("Accounting"));
349
350 int result = 0;
351 bool ok = false;
352 qDebug("AccountWidget::doTab dlg->showMinimized");
353 dlg->showMinimized();
354 while (!ok){
355
356 result = dlg->exec();
357 ok = true;
358 247
359 if(result == QDialog::Accepted) { 248// // DIAL WIDGET
360 if (script_w->check()) { 249 dial_w = new DialWidget( _pppdata, tabWindow, isnewaccount, "Dial Setup");
361 if(dial_w->save()) { 250 tabWindow->addTab( dial_w, tr("Dial") );
362 ip_w->save(); 251
363 dns_w->save(); 252// // IP WIDGET
364 gateway_w->save(); 253 ip_w = new IPWidget( _pppdata, tabWindow, isnewaccount, tr("IP Setup"));
365 script_w->save(); 254 tabWindow->addTab( ip_w, tr("IP") );
366 exec_w->save(); 255
367 // acct->save(); 256// // GATEWAY WIDGET
368 } else { 257 gateway_w = new GatewayWidget( _pppdata, tabWindow, isnewaccount, tr("Gateway Setup"));
369 QMessageBox::critical(this, "error", i18n( "You must enter a unique\n" 258 tabWindow->addTab( gateway_w, tr("Gateway") );
370 "account name")); 259
371 ok = false; 260// // DNS WIDGET
372 } 261 dns_w = new DNSWidget( _pppdata, tabWindow, isnewaccount, tr("DNS Servers") );
373 } else { 262 tabWindow->addTab( dns_w, tr("DNS") );
374 QMessageBox::critical(this, "error", i18n("Login script has unbalanced " 263
375 "loop Start/End")); 264// // SCRIPT WIDGET
376 ok = false; 265 script_w = new ScriptWidget( _pppdata, tabWindow, isnewaccount, tr("Edit Login Script"));
377 } 266 tabWindow->addTab( script_w, tr("Login Script") );
267
268// // EXECUTE WIDGET
269 ExecWidget *exec_w = new ExecWidget( _pppdata, tabWindow, isnewaccount, tr("Execute Programs"));
270 tabWindow->addTab( exec_w, tr("Execute") );
271
272 int result = 0;
273 bool ok = false;
274
275 while (!ok){
276 // dlg->showMinimized();
277 result = dlg->exec();
278 ok = true;
279
280 if(result == QDialog::Accepted) {
281 if (!script_w->check()){
282 QMessageBox::critical(this, "error", tr("<qt>Login script has unbalanced loop Start/End<qt>"));
283 ok = false;
284 } else if(!dial_w->save()) {
285 QMessageBox::critical(this, "error", tr( "You must enter a unique account name"));
286 ok = false;
287 }else{
288 ip_w->save();
289 dns_w->save();
290 gateway_w->save();
291 script_w->save();
292 exec_w->save();
293 }
294 }
378 } 295 }
379 }
380 296
381 delete tabWindow; 297 delete dlg;
382 return result; 298
299 return result;
383} 300}
@@ -387,4 +304,4 @@ QString AccountWidget::prettyPrintVolume(unsigned int n) {
387 int idx = 0; 304 int idx = 0;
388 const QString quant[] = {i18n("Byte"), i18n("KB"), 305 const QString quant[] = {tr("Byte"), tr("KB"),
389 i18n("MB"), i18n("GB"), QString::null}; 306 tr("MB"), tr("GB"), QString::null};
390 307
@@ -411,58 +328,56 @@ QString AccountWidget::prettyPrintVolume(unsigned int n) {
411///////////////////////////////////////////////////////////////////////////// 328/////////////////////////////////////////////////////////////////////////////
412QueryReset::QueryReset(QWidget *parent) : QDialog(parent, 0, true) { 329// QueryReset::QueryReset(QWidget *parent) : QDialog(parent, 0, true) {
413// KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon()); 330// // KWin::setIcons(winId(), kapp->icon(), kapp->miniIcon());
414 setCaption(i18n("Reset Accounting")); 331// setCaption(tr("Reset Accounting"));
415 332
416 QVBoxLayout *tl = new QVBoxLayout(this, 10, 10); 333// QVBoxLayout *tl = new QVBoxLayout(this, 10, 10);
417 QVGroupBox *f = new QVGroupBox(i18n("What to Reset"), this); 334// QVGroupBox *f = new QVGroupBox(tr("What to Reset"), this);
418 335
419 QVBoxLayout *l1 = new QVBoxLayout(this, 10, 10); 336// QVBoxLayout *l1 = new QVBoxLayout(this, 10, 10);
420// costs = new QCheckBox(i18n("Reset the accumulated phone costs"), f); 337// // costs = new QCheckBox(tr("Reset the accumulated phone costs"), f);
421// costs->setChecked(true); 338// // costs->setChecked(true);
422// l1->addWidget(costs); 339// // l1->addWidget(costs);
423// QWhatsThis::add(costs, i18n("Check this to set the phone costs\n" 340// // QWhatsThis::add(costs, tr("Check this to set the phone costs\n"
424 // "to zero. Typically you'll want to\n" 341 // // "to zero. Typically you'll want to\n"
425 // "do this once a month.")); 342 // // "do this once a month."));
426 343
427// volume = new QCheckBox(i18n("Reset volume accounting"), f); 344// // volume = new QCheckBox(tr("Reset volume accounting"), f);
428// volume->setChecked(true); 345// // volume->setChecked(true);
429// l1->addWidget(volume); 346// // l1->addWidget(volume);
430// QWhatsThis::add(volume, i18n("Check this to set the volume accounting\n" 347// // QWhatsThis::add(volume, tr("Check this to set the volume accounting\n"
431 // "to zero. Typically you'll want to do this\n" 348 // // "to zero. Typically you'll want to do this\n"
432 // "once a month.")); 349 // // "once a month."));
433 350
434 l1->activate(); 351// l1->activate();
352
353// // this activates the f-layout and sets minimumSize()
354// f->show();
355
356// tl->addWidget(f);
357
358// QButtonGroup *bbox = new QButtonGroup(this);
359// // bbox->addStretch(1);
360// QPushButton *ok = new QPushButton( bbox, tr("OK") );
361// bbox->insert(ok);
362// ok->setDefault(true);
363// QPushButton *cancel = new QPushButton( bbox, tr("Cancel") );
364// bbox->insert(cancel);
365
366// connect(ok, SIGNAL(clicked()),
367 // this, SLOT(accepted()));
368// connect(cancel, SIGNAL(clicked()),
369 // this, SLOT(reject()));
370
371// bbox->layout();
372// tl->addWidget(bbox);
435 373
436 // this activates the f-layout and sets minimumSize() 374// }
437 f->show();
438
439 tl->addWidget(f);
440
441 QButtonGroup *bbox = new QButtonGroup(this);
442// bbox->addStretch(1);
443 QPushButton *ok = new QPushButton( bbox, i18n("OK") );
444 bbox->insert(ok);
445 ok->setDefault(true);
446 QPushButton *cancel = new QPushButton( bbox, i18n("Cancel") );
447 bbox->insert(cancel);
448
449 connect(ok, SIGNAL(clicked()),
450 this, SLOT(accepted()));
451 connect(cancel, SIGNAL(clicked()),
452 this, SLOT(reject()));
453
454 bbox->layout();
455 tl->addWidget(bbox);
456
457 // TODO: activate if KGroupBox is fixed
458 // setFixedSize(sizeHint());
459}
460 375
461 376
462void QueryReset::accepted() { 377// void QueryReset::accepted() {
463 int result = costs->isChecked() ? COSTS : 0; 378// int result = costs->isChecked() ? COSTS : 0;
464 result += volume->isChecked() ? VOLUME : 0; 379// result += volume->isChecked() ? VOLUME : 0;
465 380
466 done(result); 381// done(result);
467} 382// }
468 383
diff --git a/noncore/settings/networksettings/ppp/accounts.h b/noncore/settings/networksettings/ppp/accounts.h
index 5e8509d..eae3922 100644
--- a/noncore/settings/networksettings/ppp/accounts.h
+++ b/noncore/settings/networksettings/ppp/accounts.h
@@ -58,4 +58,2 @@ private slots:
58 void slotListBoxSelect(int); 58 void slotListBoxSelect(int);
59// void resetClicked();
60// void viewLogClicked();
61 59
@@ -66,29 +64,19 @@ signals:
66 void resetaccounts(); 64 void resetaccounts();
67// void resetCosts(const QString &);
68// void resetVolume(const QString &);
69 65
70private: 66private:
71 QString prettyPrintVolume(unsigned int); 67 QString prettyPrintVolume(unsigned int);
72 68
73 PPPData *_pppdata; 69 PPPData *_pppdata;
74 QTabWidget *tabWindow; 70 QTabWidget *tabWindow;
75 DialWidget *dial_w; 71 DialWidget *dial_w;
76// AccountingSelector *acct; 72 IPWidget *ip_w;
77 IPWidget *ip_w; 73 DNSWidget *dns_w;
78 DNSWidget *dns_w; 74 GatewayWidget *gateway_w;
79 GatewayWidget *gateway_w; 75 ScriptWidget *script_w;
80 ScriptWidget *script_w; 76
81 77 QListBox *accountlist_l;
82// QPushButton *reset; 78 QPushButton *edit_b;
83// QPushButton *log; 79 QPushButton *copy_b;
84// QLabel *costlabel; 80 QPushButton *new_b;
85// QLineEdit *costedit; 81 QPushButton *delete_b;
86// QLabel *vollabel;
87// QLineEdit *voledit;
88
89 QListBox *accountlist_l;
90 QPushButton *edit_b;
91 QPushButton *copy_b;
92 QPushButton *new_b;
93 QPushButton *delete_b;
94}; 82};
@@ -96,15 +84,15 @@ private:
96 84
97class QueryReset : public QDialog { 85// class QueryReset : public QDialog {
98 Q_OBJECT 86// Q_OBJECT
99public: 87// public:
100 QueryReset(QWidget *parent); 88// QueryReset(QWidget *parent);
101 89
102 enum {COSTS=1, VOLUME=2}; 90// enum {COSTS=1, VOLUME=2};
103 91
104private slots: 92// private slots:
105 void accepted(); 93// void accepted();
106 94
107private: 95// private:
108 QCheckBox *costs, *volume; 96// QCheckBox *costs, *volume;
109}; 97// };
110 98
diff --git a/noncore/settings/networksettings/ppp/edit.cpp b/noncore/settings/networksettings/ppp/edit.cpp
index 8ae714e..10bc25c 100644
--- a/noncore/settings/networksettings/ppp/edit.cpp
+++ b/noncore/settings/networksettings/ppp/edit.cpp
@@ -32,6 +32,3 @@
32#include <qapplication.h> 32#include <qapplication.h>
33//#include <kiconloader.h>
34#include <qbuttongroup.h> 33#include <qbuttongroup.h>
35//#include <klocale.h>
36#define i18n QObject::tr
37#include <qvgroupbox.h> 34#include <qvgroupbox.h>
@@ -39,3 +36,2 @@
39#include <qdialog.h> 36#include <qdialog.h>
40//#include <kwin.h>
41 37
@@ -43,3 +39,2 @@
43#include "pppdata.h" 39#include "pppdata.h"
44//#include "newwidget.h"
45#include "iplined.h" 40#include "iplined.h"
@@ -55,3 +50,3 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
55 50
56 connect_label = new QLabel(i18n("Connection name:"), this); 51 connect_label = new QLabel(tr("Connection name:"), this);
57 tl->addWidget(connect_label, 0, 0); 52 tl->addWidget(connect_label, 0, 0);
@@ -61,3 +56,3 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
61 tl->addWidget(connectname_l, 0, 1); 56 tl->addWidget(connectname_l, 0, 1);
62 QString tmp = i18n("Type in a unique name for this connection"); 57 QString tmp = tr("Type in a unique name for this connection");
63 58
@@ -67,3 +62,3 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
67 62
68 number_label = new QLabel(i18n("Phone number:"), this); 63 number_label = new QLabel(tr("Phone number:"), this);
69 number_label->setAlignment(AlignTop|AlignLeft); 64 number_label->setAlignment(AlignTop|AlignLeft);
@@ -78,4 +73,4 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
78 lpn->addLayout(lpn1); 73 lpn->addLayout(lpn1);
79 add = new QPushButton(i18n("&Add..."), this); 74 add = new QPushButton(tr("&Add..."), this);
80 del = new QPushButton(i18n("&Remove"), this); 75 del = new QPushButton(tr("&Remove"), this);
81 76
@@ -104,3 +99,3 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
104 99
105 tmp = i18n("<p>Specifies the phone numbers to dial. You\n" 100 tmp = tr("<p>Specifies the phone numbers to dial. You\n"
106 "can supply multiple numbers here, simply\n" 101 "can supply multiple numbers here, simply\n"
@@ -115,3 +110,3 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
115 110
116 auth_l = new QLabel(i18n("Authentication:"), this); 111 auth_l = new QLabel(tr("Authentication:"), this);
117 tl->addWidget(auth_l, 3, 0); 112 tl->addWidget(auth_l, 3, 0);
@@ -119,9 +114,9 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
119 auth = new QComboBox(this); 114 auth = new QComboBox(this);
120 auth->insertItem(i18n("Script-based")); 115 auth->insertItem(tr("Script-based"));
121 auth->insertItem(i18n("PAP")); 116 auth->insertItem(tr("PAP"));
122 auth->insertItem(i18n("Terminal-based")); 117 auth->insertItem(tr("Terminal-based"));
123 auth->insertItem(i18n("CHAP")); 118 auth->insertItem(tr("CHAP"));
124 auth->insertItem(i18n("PAP/CHAP")); 119 auth->insertItem(tr("PAP/CHAP"));
125 tl->addWidget(auth, 3, 1); 120 tl->addWidget(auth, 3, 1);
126 tmp = i18n("<p>Specifies the method used to identify yourself to\n" 121 tmp = tr("<p>Specifies the method used to identify yourself to\n"
127 "the PPP server. Most universities still use\n" 122 "the PPP server. Most universities still use\n"
@@ -138,3 +133,3 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
138 133
139 store_password = new QCheckBox(i18n("Store password"), this); 134 store_password = new QCheckBox(tr("Store password"), this);
140 store_password->setChecked(true); 135 store_password->setChecked(true);
@@ -142,3 +137,3 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
142 QWhatsThis::add(store_password, 137 QWhatsThis::add(store_password,
143 i18n("<p>When this is turned on, your ISP password\n" 138 tr("<p>When this is turned on, your ISP password\n"
144 "will be saved in <i>kppp</i>'s config file, so\n" 139 "will be saved in <i>kppp</i>'s config file, so\n"
@@ -151,3 +146,3 @@ DialWidget::DialWidget( PPPData *pd, QWidget *parent, bool isnewaccount
151 146
152 pppdargs = new QPushButton(i18n("Customize pppd Arguments..."), this); 147 pppdargs = new QPushButton(tr("Customize pppd Arguments..."), this);
153 connect(pppdargs, SIGNAL(clicked()), SLOT(pppdargsbutton())); 148 connect(pppdargs, SIGNAL(clicked()), SLOT(pppdargsbutton()));
@@ -280,10 +275,4 @@ ExecWidget::ExecWidget(PPPData *pd, QWidget *parent, bool isnewaccount, const ch
280 275
281 QLabel *l = new QLabel(\ 276 QLabel *l = new QLabel( tr("Here you can select commands to run at certain stages of the connection. The commands are run with your real user id, so you cannot run any commands here requiring root permissions (unless, of course, you are root).<br><br>Be sure to supply the whole path to the program otherwise we might be unable to find it."), this);
282i18n("Here you can select commands to run at certain stages of the\n" 277
283 "connection. The commands are run with your real user id, so\n"
284 "you cannot run any commands here requiring root permissions\n"
285 "(unless, of course, you are root).\n\n"
286 "Be sure to supply the whole path to the program otherwise\n"
287 "kppp might be unable to find it."), this);
288// l->setMinimumHeight(l->sizeHint().height());
289 tl->addWidget(l); 278 tl->addWidget(l);
@@ -296,3 +285,3 @@ i18n("Here you can select commands to run at certain stages of the\n"
296 285
297 before_connect_l = new QLabel(i18n("Before connect:"), this); 286 before_connect_l = new QLabel(tr("Before connect:"), this);
298 before_connect_l->setAlignment(AlignVCenter); 287 before_connect_l->setAlignment(AlignVCenter);
@@ -302,3 +291,3 @@ i18n("Here you can select commands to run at certain stages of the\n"
302 l1->addWidget(before_connect, 0, 1); 291 l1->addWidget(before_connect, 0, 1);
303 QString tmp = i18n("Allows you to run a program <b>before</b> a connection\n" 292 QString tmp = tr("Allows you to run a program <b>before</b> a connection\n"
304 "is established. It is called immediately before\n" 293 "is established. It is called immediately before\n"
@@ -311,3 +300,3 @@ i18n("Here you can select commands to run at certain stages of the\n"
311 300
312 command_label = new QLabel(i18n("Upon connect:"), this); 301 command_label = new QLabel(tr("Upon connect:"), this);
313 command_label->setAlignment(AlignVCenter); 302 command_label->setAlignment(AlignVCenter);
@@ -317,3 +306,3 @@ i18n("Here you can select commands to run at certain stages of the\n"
317 l1->addWidget(command, 1, 1); 306 l1->addWidget(command, 1, 1);
318 tmp = i18n("Allows you to run a program <b>after</b> a connection\n" 307 tmp = tr("Allows you to run a program <b>after</b> a connection\n"
319 "is established. When your program is called, all\n" 308 "is established. When your program is called, all\n"
@@ -326,3 +315,3 @@ i18n("Here you can select commands to run at certain stages of the\n"
326 315
327 predisconnect_label = new QLabel(i18n("Before disconnect:"), 316 predisconnect_label = new QLabel(tr("Before disconnect:"),
328 this); 317 this);
@@ -333,3 +322,3 @@ i18n("Here you can select commands to run at certain stages of the\n"
333 l1->addWidget(predisconnect, 2, 1); 322 l1->addWidget(predisconnect, 2, 1);
334 tmp = i18n("Allows you to run a program <b>before</b> a connection\n" 323 tmp = tr("Allows you to run a program <b>before</b> a connection\n"
335 "is closed. The connection will stay open until\n" 324 "is closed. The connection will stay open until\n"
@@ -340,3 +329,3 @@ i18n("Here you can select commands to run at certain stages of the\n"
340 329
341 discommand_label = new QLabel(i18n("Upon disconnect:"), 330 discommand_label = new QLabel(tr("Upon disconnect:"),
342 this); 331 this);
@@ -348,3 +337,3 @@ i18n("Here you can select commands to run at certain stages of the\n"
348 l1->addWidget(discommand, 3, 1); 337 l1->addWidget(discommand, 3, 1);
349 tmp = i18n("Allows you to run a program <b>after</b> a connection\n" 338 tmp = tr("Allows you to run a program <b>after</b> a connection\n"
350 "has been closed."); 339 "has been closed.");
@@ -392,3 +381,3 @@ IPWidget::IPWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const char
392 381
393 box = new QVGroupBox(i18n("Configuration"), this); 382 box = new QVGroupBox(tr("Configuration"), this);
394// box->setInsideSpacing( 1 );//KDialog::spacingHint()); 383// box->setInsideSpacing( 1 );//KDialog::spacingHint());
@@ -401,5 +390,5 @@ IPWidget::IPWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const char
401 dynamicadd_rb = new QRadioButton(box); 390 dynamicadd_rb = new QRadioButton(box);
402 dynamicadd_rb->setText(i18n("Dynamic IP address")); 391 dynamicadd_rb->setText(tr("Dynamic IP address"));
403 QWhatsThis::add(dynamicadd_rb, 392 QWhatsThis::add(dynamicadd_rb,
404 i18n("Select this option when your computer gets an\n" 393 tr("Select this option when your computer gets an\n"
405 "internet address (IP) every time a\n" 394 "internet address (IP) every time a\n"
@@ -411,3 +400,3 @@ IPWidget::IPWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const char
411 staticadd_rb = new QRadioButton(box); 400 staticadd_rb = new QRadioButton(box);
412 staticadd_rb->setText(i18n("Static IP address")); 401 staticadd_rb->setText(tr("Static IP address"));
413 rb->insert(dynamicadd_rb, 0); 402 rb->insert(dynamicadd_rb, 0);
@@ -415,3 +404,3 @@ IPWidget::IPWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const char
415 QWhatsThis::add(staticadd_rb, 404 QWhatsThis::add(staticadd_rb,
416 i18n("Select this option when your computer has a\n" 405 tr("Select this option when your computer has a\n"
417 "fixed internet address (IP). Most computers\n" 406 "fixed internet address (IP). Most computers\n"
@@ -425,4 +414,4 @@ IPWidget::IPWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const char
425 414
426 ipaddress_label = new QLabel(i18n("IP address:"), ipWidget); 415 ipaddress_label = new QLabel(tr("IP address:"), ipWidget);
427 QString tmp = i18n("If your computer has a permanent internet\n" 416 QString tmp = tr("If your computer has a permanent internet\n"
428 "address, you must supply your IP address here."); 417 "address, you must supply your IP address here.");
@@ -436,4 +425,4 @@ IPWidget::IPWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const char
436 425
437 sub_label = new QLabel(i18n("Subnet mask:"), ipWidget); 426 sub_label = new QLabel(tr("Subnet mask:"), ipWidget);
438 tmp = i18n("<p>If your computer has a static Internet address,\n" 427 tmp = tr("<p>If your computer has a static Internet address,\n"
439 "you must supply a network mask here. In almost\n" 428 "you must supply a network mask here. In almost\n"
@@ -451,3 +440,3 @@ IPWidget::IPWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const char
451 440
452 autoname = new QCheckBox(i18n("Auto-configure hostname from this IP"), this); 441 autoname = new QCheckBox(tr("Auto-configure hostname from this IP"), this);
453 autoname->setChecked(_pppdata->autoname()); 442 autoname->setChecked(_pppdata->autoname());
@@ -457,3 +446,3 @@ IPWidget::IPWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const char
457 QWhatsThis::add(autoname, 446 QWhatsThis::add(autoname,
458 i18n("<p>Whenever you connect, this reconfigures\n" 447 tr("<p>Whenever you connect, this reconfigures\n"
459 "your hostname to match the IP address you\n" 448 "your hostname to match the IP address you\n"
@@ -498,3 +487,3 @@ void IPWidget::autoname_t(bool on) {
498 QMessageBox::information(this, 487 QMessageBox::information(this,
499 i18n("Selecting this option might cause some weird " 488 tr("Selecting this option might cause some weird "
500 "problems with the X-server and applications " 489 "problems with the X-server and applications "
@@ -505,3 +494,3 @@ void IPWidget::autoname_t(bool on) {
505 "asked questions\"."), 494 "asked questions\"."),
506 i18n("Warning")); 495 tr("Warning"));
507 was_warned = true; 496 was_warned = true;
@@ -543,6 +532,5 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
543{ 532{
544 // box = new QGroupBox(this); 533 QGridLayout *tl = new QGridLayout(this, 7, 2, 0 );
545 QGridLayout *tl = new QGridLayout(this, 7, 2, 0 );//, KDialog::spacingHint());
546 534
547 dnsdomain_label = new QLabel(i18n("Domain name:"), this); 535 dnsdomain_label = new QLabel(tr("Domain name:"), this);
548 tl->addWidget(dnsdomain_label, 0, 0); 536 tl->addWidget(dnsdomain_label, 0, 0);
@@ -550,5 +538,5 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
550 dnsdomain = new QLineEdit(this); 538 dnsdomain = new QLineEdit(this);
551// dnsdomain->setMaxLength(DOMAIN_SIZE); 539
552 tl->addWidget(dnsdomain, 0, 1); 540 tl->addWidget(dnsdomain, 0, 1);
553 QString tmp = i18n("If you enter a domain name here, this domain\n" 541 QString tmp = tr("If you enter a domain name here, this domain\n"
554 "name is used for your computer while you are\n" 542 "name is used for your computer while you are\n"
@@ -564,3 +552,3 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
564 552
565 conf_label = new QLabel(i18n("Configuration:"), this); 553 conf_label = new QLabel(tr("Configuration:"), this);
566 tl->addWidget(conf_label, 1, 0); 554 tl->addWidget(conf_label, 1, 0);
@@ -571,6 +559,5 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
571 559
572 autodns = new QRadioButton(i18n("Automatic"), this); 560 autodns = new QRadioButton(tr("Automatic"), this);
573 bg->insert(autodns, 0); 561 bg->insert(autodns, 0);
574 tl->addWidget(autodns, 1, 1); 562 tl->addWidget(autodns, 1, 1);
575 // no automatic DNS detection for pppd < 2.3.7
576 if(!_pppdata->pppdVersionMin(2, 3, 7)) 563 if(!_pppdata->pppdVersionMin(2, 3, 7))
@@ -578,3 +565,3 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
578 565
579 mandns = new QRadioButton(i18n("Manual"), this); 566 mandns = new QRadioButton(tr("Manual"), this);
580 bg->insert(mandns, 1); 567 bg->insert(mandns, 1);
@@ -582,3 +569,3 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
582 569
583 dns_label = new QLabel(i18n("DNS IP address:"), this); 570 dns_label = new QLabel(tr("DNS IP address:"), this);
584 tl->addWidget(dns_label, 3, 0); 571 tl->addWidget(dns_label, 3, 0);
@@ -594,3 +581,3 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
594 l2->addStretch(1); 581 l2->addStretch(1);
595 tmp = i18n("<p>Allows you to specify a new DNS server to be\n" 582 tmp = tr("<p>Allows you to specify a new DNS server to be\n"
596 "used while you are connected. When the\n" 583 "used while you are connected. When the\n"
@@ -607,11 +594,8 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
607 tl->addLayout(l1, 4, 1); 594 tl->addLayout(l1, 4, 1);
608 add = new QPushButton(i18n("Add"), this); 595 add = new QPushButton(tr("Add"), this);
609 connect(add, SIGNAL(clicked()), SLOT(adddns())); 596 connect(add, SIGNAL(clicked()), SLOT(adddns()));
610// int width = add->sizeHint().width();
611// width = QMAX(width,60);
612// add->setMinimumWidth(width);
613 l1->addWidget(add); 597 l1->addWidget(add);
614 l1->addStretch(1); 598// l1->addStretch(1);
615 QWhatsThis::add(add, 599 QWhatsThis::add(add,
616 i18n("Click this button to add the DNS server\n" 600 tr("Click this button to add the DNS server\n"
617 "specified in the field above. The entry\n" 601 "specified in the field above. The entry\n"
@@ -619,13 +603,10 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
619 603
620 remove = new QPushButton(i18n("Remove"), this); 604 remove = new QPushButton(tr("Remove"), this);
621 connect(remove, SIGNAL(clicked()), SLOT(removedns())); 605 connect(remove, SIGNAL(clicked()), SLOT(removedns()));
622// width = remove->sizeHint().width();
623// width = QMAX(width,60);
624// remove->setMinimumWidth(width);
625 l1->addWidget(remove); 606 l1->addWidget(remove);
626 QWhatsThis::add(remove, 607 QWhatsThis::add(remove,
627 i18n("Click this button to remove the selected DNS\n" 608 tr("Click this button to remove the selected DNS\n"
628 "server entry from the list below")); 609 "server entry from the list below"));
629 610
630 servers_label = new QLabel(i18n("DNS address list:"), this); 611 servers_label = new QLabel(tr("DNS address list:"), this);
631 servers_label->setAlignment(AlignTop|AlignLeft); 612 servers_label->setAlignment(AlignTop|AlignLeft);
@@ -638,3 +619,3 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
638 tl->addWidget(dnsservers, 5, 1); 619 tl->addWidget(dnsservers, 5, 1);
639 tmp = i18n("<p>This shows all defined DNS servers to use\n" 620 tmp = tr("<p>This shows all defined DNS servers to use\n"
640 "while you are connected. Use the <b>Add</b> and\n" 621 "while you are connected. Use the <b>Add</b> and\n"
@@ -645,5 +626,4 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
645 626
646 exdnsdisabled_toggle = new QCheckBox(i18n( \ 627 exdnsdisabled_toggle = new QCheckBox(tr("Disable DNS servers during connection"), this);
647"Disable existing DNS servers during connection"), 628 // exdnsdisabled_toggle = new QCheckBox(tr("Disable existing DNS servers during connection"), this);
648 this);
649 exdnsdisabled_toggle->setChecked(_pppdata->exDNSDisabled()); 629 exdnsdisabled_toggle->setChecked(_pppdata->exDNSDisabled());
@@ -651,3 +631,3 @@ DNSWidget::DNSWidget( PPPData *pd, QWidget *parent, bool isnewaccount, const cha
651 QWhatsThis::add(exdnsdisabled_toggle, 631 QWhatsThis::add(exdnsdisabled_toggle,
652 i18n("<p>When this option is selected, all DNS\n" 632 tr("<p>When this option is selected, all DNS\n"
653 "servers specified in <tt>/etc/resolv.conf</tt> are\n" 633 "servers specified in <tt>/etc/resolv.conf</tt> are\n"
@@ -739,6 +719,6 @@ GatewayWidget::GatewayWidget( PPPData *pd, QWidget *parent, bool isnewaccount, c
739 QVBoxLayout *topLayout = new QVBoxLayout(this); 719 QVBoxLayout *topLayout = new QVBoxLayout(this);
740 topLayout->setSpacing( 2 );//KDialog::spacingHint()); 720 topLayout->setSpacing( 2 );
721 topLayout->setMargin( 0 );
741 722
742 box = new QVGroupBox(i18n("Configuration"), this); 723 box = new QVGroupBox(tr("Configuration"), this);
743// box->setInsideSpacing( 2 );//KDialog::spacingHint());
744 724
@@ -749,6 +729,6 @@ GatewayWidget::GatewayWidget( PPPData *pd, QWidget *parent, bool isnewaccount, c
749 defaultgateway = new QRadioButton(box); 729 defaultgateway = new QRadioButton(box);
750 defaultgateway->setText(i18n("Default gateway")); 730 defaultgateway->setText(tr("Default gateway"));
751 rb->insert(defaultgateway, 0); 731 rb->insert(defaultgateway, 0);
752 QWhatsThis::add(defaultgateway, 732 QWhatsThis::add(defaultgateway,
753 i18n("This makes the PPP peer computer (the computer\n" 733 tr("This makes the PPP peer computer (the computer\n"
754 "you are connected to with your modem) to act as\n" 734 "you are connected to with your modem) to act as\n"
@@ -763,6 +743,6 @@ GatewayWidget::GatewayWidget( PPPData *pd, QWidget *parent, bool isnewaccount, c
763 staticgateway = new QRadioButton(box); 743 staticgateway = new QRadioButton(box);
764 staticgateway->setText(i18n("Static gateway")); 744 staticgateway->setText(tr("Static gateway"));
765 rb->insert(staticgateway, 1); 745 rb->insert(staticgateway, 1);
766 QWhatsThis::add(staticgateway, 746 QWhatsThis::add(staticgateway,
767 i18n("<p>Allows you to specify which computer you want\n" 747 tr("<p>Allows you to specify which computer you want\n"
768 "to use as gateway (see <i>Default Gateway</i> above)")); 748 "to use as gateway (see <i>Default Gateway</i> above)"));
@@ -770,9 +750,9 @@ GatewayWidget::GatewayWidget( PPPData *pd, QWidget *parent, bool isnewaccount, c
770 QHBox *gateBox = new QHBox(box); 750 QHBox *gateBox = new QHBox(box);
771 gate_label = new QLabel(i18n("Gateway IP address:"), gateBox); 751 gate_label = new QLabel(tr("Gateway IP address:"), gateBox);
772 gatewayaddr = new IPLineEdit(gateBox); 752 gatewayaddr = new IPLineEdit(gateBox);
773 753
774 defaultroute = new QCheckBox(i18n("Assign the default route to this gateway"), 754 defaultroute = new QCheckBox(tr("Assign the default route to this gateway"),
775 this); 755 this);
776 QWhatsThis::add(defaultroute, 756 QWhatsThis::add(defaultroute,
777 i18n("If this option is enabled, all packets not\n" 757 tr("If this option is enabled, all packets not\n"
778 "going to the local net are routed through\n" 758 "going to the local net are routed through\n"
@@ -838,9 +818,9 @@ ScriptWidget::ScriptWidget( PPPData *pd, QWidget *parent, bool isnewaccount, con
838 tl->addLayout( hl ); 818 tl->addLayout( hl );
839 add = new QPushButton( i18n("Add"), this ); 819 add = new QPushButton( tr("Add"), this );
840 hl->addWidget( add ); 820 hl->addWidget( add );
841 connect(add, SIGNAL(clicked()), SLOT(addButton())); 821 connect(add, SIGNAL(clicked()), SLOT(addButton()));
842 insert = new QPushButton( i18n("Insert"), this ); 822 insert = new QPushButton( tr("Insert"), this );
843 hl->addWidget( insert ); 823 hl->addWidget( insert );
844 connect(insert, SIGNAL(clicked()), SLOT(insertButton())); 824 connect(insert, SIGNAL(clicked()), SLOT(insertButton()));
845 remove = new QPushButton( i18n("Remove"), this ); 825 remove = new QPushButton( tr("Remove"), this );
846 hl->addWidget( remove ); 826 hl->addWidget( remove );
@@ -1157,3 +1137,3 @@ PhoneNumberDialog::PhoneNumberDialog(QWidget *parent)
1157{ 1137{
1158 setCaption( i18n("Add Phone Number") ); 1138 setCaption( tr("Add Phone Number") );
1159 1139
diff --git a/noncore/settings/networksettings/ppp/pppdata.cpp b/noncore/settings/networksettings/ppp/pppdata.cpp
index 7a6524f..517dd8b 100644
--- a/noncore/settings/networksettings/ppp/pppdata.cpp
+++ b/noncore/settings/networksettings/ppp/pppdata.cpp
@@ -132,3 +132,3 @@ QString PPPData::readConfig(const QString &group, const QString &key,
132{ 132{
133 qDebug("PPPData::readConfig key >%s< group >%s<",key.latin1(), group.latin1()); 133// qDebug("PPPData::readConfig key >%s< group >%s<",key.latin1(), group.latin1());
134 QString idx = SEP.arg(group).arg(key); 134 QString idx = SEP.arg(group).arg(key);