QTfrontend/pages.cpp
changeset 1924 8f8fe856ce9d
parent 1905 b1ec8db513f2
child 1932 f586d75c8b6a
--- a/QTfrontend/pages.cpp	Thu Mar 26 19:28:56 2009 +0000
+++ b/QTfrontend/pages.cpp	Fri Mar 27 14:02:27 2009 +0000
@@ -981,5 +981,25 @@
 {
 	QGridLayout * pageLayout = new QGridLayout(this);
 
+	QLabel * lblSM = new QLabel(this);
+	lblSM->setText(tr("Server message:"));
+	pageLayout->addWidget(lblSM, 0, 0);
+
+	leServerMessage = new QLineEdit(this);
+	pageLayout->addWidget(leServerMessage, 0, 1);
+
+	pbSetSM = addButton(tr("Set message"), pageLayout, 0, 2);
 	BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, true);
+
+	connect(pbSetSM, SIGNAL(clicked()), this, SLOT(smChanged()));
 }
+
+void PageAdmin::smChanged()
+{
+	emit setServerMessage(leServerMessage->text());
+}
+
+void PageAdmin::serverMessage(const QString & str)
+{
+	leServerMessage->setText(str);
+}