SVN: PLDSetupAssistant: PLDSetupAssistant.cpp PLDSetupAssistant.h
shadzik
shadzik at pld-linux.org
Tue May 11 00:37:30 CEST 2010
Author: shadzik
Date: Tue May 11 00:37:29 2010
New Revision: 11438
Modified:
PLDSetupAssistant/PLDSetupAssistant.cpp
PLDSetupAssistant/PLDSetupAssistant.h
Log:
- networkmanagment, not working yet
Modified: PLDSetupAssistant/PLDSetupAssistant.cpp
==============================================================================
--- PLDSetupAssistant/PLDSetupAssistant.cpp (original)
+++ PLDSetupAssistant/PLDSetupAssistant.cpp Tue May 11 00:37:29 2010
@@ -80,7 +80,8 @@
//KTitleWidget *titleWidget = new KTitleWidget(this);
//titleWidget->setText(i18n("<html><font size=\"5\">Keyboard Layout</font></html>"));
//titleWidget->setPixmap(KIcon("pld_czarny").pixmap(48), KTitleWidget::ImageLeft);
-
+
+ // Keyboard
keyboardDialog = kcmDialog("kcm_keyboard_layout", "keyboard_layout");
QVBoxLayout *keyboardLayout = new QVBoxLayout;
@@ -93,6 +94,7 @@
kblayoutPage = addPage(keyboardWidget, i18n("Step One: Choose your keyboard layout"));
+ // Date and Time
clockDialog = kcmDialog("kcm_clock", "clock");
QVBoxLayout *clockLayout = new QVBoxLayout;
@@ -104,6 +106,19 @@
clockWidget->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
clockPage = addPage(clockWidget, i18n("Step Two: Choose your timezone and setup the clock"));
+
+ // Network
+ netDialog = kcmDialog("kcm_networkmanagement", "networkmanagement");
+
+ QVBoxLayout *netLayout = new QVBoxLayout;
+ clockLayout->addWidget(netDialog);
+ clockLayout->setMargin(0);
+
+ QWidget *netWidget = new QWidget;
+ clockWidget->setLayout(netLayout);
+ clockWidget->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
+
+ netPage = addPage(netWidget, i18n("Step Three: Setup your network"));
}
@@ -143,6 +158,9 @@
if (currentPage() == clockPage)
clockDialog->button(KDialog::Apply)->click();
+
+ if (currentPage() == netPage)
+ netDialog->button(KDialog::Apply)->click();
KAssistantDialog::next();
}
Modified: PLDSetupAssistant/PLDSetupAssistant.h
==============================================================================
--- PLDSetupAssistant/PLDSetupAssistant.h (original)
+++ PLDSetupAssistant/PLDSetupAssistant.h Tue May 11 00:37:29 2010
@@ -30,8 +30,10 @@
KCMultiDialog *clockDialog;
KCMultiDialog *keyboardDialog;
+ KCMultiDialog *netDialog;
KPageWidgetItem *kblayoutPage;
KPageWidgetItem *clockPage;
+ KPageWidgetItem *netPage;
KCMultiDialog* kcmDialog(const QString lib, const QString name = "");
More information about the pld-cvs-commit
mailing list