Diffstat (limited to 'noncore/settings/networksettings/ppp/kpppwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings/ppp/kpppwidget.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/noncore/settings/networksettings/ppp/kpppwidget.cpp b/noncore/settings/networksettings/ppp/kpppwidget.cpp index 8d70cd4..f8a8dc3 100644 --- a/noncore/settings/networksettings/ppp/kpppwidget.cpp +++ b/noncore/settings/networksettings/ppp/kpppwidget.cpp | |||
@@ -238,50 +238,33 @@ KPPPWidget::KPPPWidget( QWidget *parent, const char *name, bool modal, WFlags fl | |||
238 | // con_win = new ConWindow(0, "conw", this); | 238 | // con_win = new ConWindow(0, "conw", this); |
239 | // KWin::setIcons(con_win->winId(), kapp->icon(), kapp->miniIcon()); | 239 | // KWin::setIcons(con_win->winId(), kapp->icon(), kapp->miniIcon()); |
240 | 240 | ||
241 | // statdlg = new PPPStatsDlg(0, "stats", this, stats); | 241 | // statdlg = new PPPStatsDlg(0, "stats", this, stats); |
242 | // statdlg->hide(); | 242 | // statdlg->hide(); |
243 | 243 | ||
244 | debugwindow = new DebugWidget(0,"debugwindow"); | ||
245 | // KWin::setIcons(debugwindow->winId(), kapp->icon(), kapp->miniIcon()); | ||
246 | debugwindow->hide(); | ||
247 | |||
248 | // load up the accounts combo box | 244 | // load up the accounts combo box |
249 | 245 | ||
250 | // resetaccounts(); | 246 | // resetaccounts(); |
251 | // con = new ConnectWidget(0, "con"); | 247 | // con = new ConnectWidget(0, "con"); |
252 | //KWin::setIcons(con->winId(), kapp->icon(), kapp->miniIcon() ); | 248 | //KWin::setIcons(con->winId(), kapp->icon(), kapp->miniIcon() ); |
253 | // connect(this, SIGNAL(begin_connect()),con, SLOT(preinit())); | 249 | // connect(this, SIGNAL(begin_connect()),con, SLOT(preinit())); |
254 | // Is this the best we can do here? it's not right. | 250 | // Is this the best we can do here? it's not right. |
255 | // QRect desk = QApplication::desktop()->screenGeometry( | 251 | // QRect desk = QApplication::desktop()->screenGeometry( |
256 | // QApplication::desktop()->screenNumber(topLevelWidget())); | 252 | // QApplication::desktop()->screenNumber(topLevelWidget())); |
257 | // con->setGeometry(desk.center().x()-175, desk.center().y()-55, 350,110); | 253 | // con->setGeometry(desk.center().x()-175, desk.center().y()-55, 350,110); |
258 | 254 | ||
259 | // connect the ConnectWidgets various signals | 255 | // connect the ConnectWidgets various signals |
260 | // connect(con, SIGNAL(closeDebugWindow()), | ||
261 | // debugwindow, SLOT(hide())); | ||
262 | // connect(con, SIGNAL(debugMessage(const QString &)), | ||
263 | // debugwindow, SLOT(statusLabel(const QString &))); | ||
264 | // connect(con, SIGNAL(toggleDebugWindow()), | ||
265 | // debugwindow, SLOT(toggleVisibility())); | ||
266 | // connect(con, SIGNAL(debugPutChar(unsigned char)), | ||
267 | // debugwindow, SLOT(addChar(unsigned char))); | ||
268 | // // connect(con, SIGNAL(startAccounting()), | 256 | // // connect(con, SIGNAL(startAccounting()), |
269 | // // this, SLOT(startAccounting())); | 257 | // // this, SLOT(startAccounting())); |
270 | // // connect(con, SIGNAL(stopAccounting()), | 258 | // // connect(con, SIGNAL(stopAccounting()), |
271 | // // this, SLOT(stopAccounting())); | 259 | // // this, SLOT(stopAccounting())); |
272 | // connect(qApp, SIGNAL(saveYourself()), | 260 | // connect(qApp, SIGNAL(saveYourself()), |
273 | // this, SLOT(saveMyself())); | 261 | // this, SLOT(saveMyself())); |
274 | // connect(qApp, SIGNAL(shutDown()), | 262 | // connect(qApp, SIGNAL(shutDown()), |
275 | // this, SLOT(shutDown())); | 263 | // this, SLOT(shutDown())); |
276 | 264 | ||
277 | // debugwindow->setGeometry(desk.center().x()+190, desk.center().y()-55, | ||
278 | // debugwindow->width(),debugwindow->height()); | ||
279 | |||
280 | // move(desk.center().x()-width()/2, desk.center().y()-height()/2); | ||
281 | |||
282 | 265 | ||
283 | // KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); | 266 | // KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); |
284 | 267 | ||
285 | // m_strCmdlAccount = args->getOption("c"); | 268 | // m_strCmdlAccount = args->getOption("c"); |
286 | // m_bQuitOnDisconnect = args->isSet("q"); | 269 | // m_bQuitOnDisconnect = args->isSet("q"); |
287 | 270 | ||
@@ -632,21 +615,12 @@ void KPPPWidget::beginConnect() { | |||
632 | 615 | ||
633 | QString tit = i18n("Connecting to: %1").arg(PPPData::data()->accname()); | 616 | QString tit = i18n("Connecting to: %1").arg(PPPData::data()->accname()); |
634 | // con->setCaption(tit); | 617 | // con->setCaption(tit); |
635 | 618 | ||
636 | // con->show(); | 619 | // con->show(); |
637 | 620 | ||
638 | bool show_debug = PPPData::data()->get_show_log_window(); | ||
639 | // con->debug->setOn(show_debug);// toggle button | ||
640 | debugwindow->clear(); | ||
641 | if (!show_debug) | ||
642 | debugwindow->hide(); | ||
643 | else { | ||
644 | debugwindow->show(); | ||
645 | // con->raise(); | ||
646 | } | ||
647 | 621 | ||
648 | emit begin_connect(); | 622 | emit begin_connect(); |
649 | } | 623 | } |
650 | 624 | ||
651 | 625 | ||
652 | void KPPPWidget::disconnect() { | 626 | void KPPPWidget::disconnect() { |