[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.50,1.51 atlantik_netw
From: kde () office ! kde ! org
Date: 2002-07-17 22:39:25
[Download RAW message or body]
Update of /home/kde/kdegames/atlantik/libatlantikclient
In directory office:/tmp/cvs-serv24826/libatlantikclient
Modified Files:
atlantik_network.cpp atlantik_network.h
Log Message:
preparing network object for reinit, displayButton fixes
Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- atlantik_network.cpp 2002/07/17 07:42:23 1.50
+++ atlantik_network.cpp 2002/07/17 22:39:21 1.51
@@ -284,7 +284,33 @@
{
QDomElement eButton = nButtons.toElement();
if (!eButton.isNull() && eButton.tagName() == "button")
- emit displayButton(eButton.attributeNode(QString("command")).value(), \
eButton.attributeNode(QString("caption")).value()); + emit \
displayButton(eButton.attributeNode(QString("command")).value(), \
eButton.attributeNode(QString("caption")).value(), \
eButton.attributeNode(QString("enabled")).value().toInt()); + }
+ }
+ }
+ else if (e.tagName() == "estatedisplay")
+ {
+ int estateId = -1;
+
+ a = e.attributeNode(QString("estateid"));
+ if (!a.isNull())
+ {
+ estateId = a.value().toInt();
+ Estate *estate;
+ if ((estate = m_estates[a.value().toInt()]))
+ {
+ emit displayEstate(estate);
+
+ for( QDomNode nButtons = n.firstChild() ; !nButtons.isNull() ; nButtons = \
nButtons.nextSibling() ) + {
+ QDomElement eButton = nButtons.toElement();
+ if (!eButton.isNull() && eButton.tagName() == "button")
+ {
+ QDomElement eButton = nButtons.toElement();
+ if (!eButton.isNull() && eButton.tagName() == "button")
+ emit displayButton(eButton.attributeNode(QString("command")).value(), \
eButton.attributeNode(QString("caption")).value(), \
eButton.attributeNode(QString("enabled")).value().toInt()); + }
+ }
}
}
}
@@ -511,7 +537,7 @@
if (!a.isNull())
{
estateId = a.value().toInt();
-
+
Estate *estate;
bool b_newEstate = false;
if (!(estate = m_estates[a.value().toInt()]))
Index: atlantik_network.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- atlantik_network.h 2002/07/16 01:47:36 1.26
+++ atlantik_network.h 2002/07/17 22:39:21 1.27
@@ -116,7 +116,8 @@
void msgChat(QString, QString);
void displayText(QString title, QString description);
- void displayButton(QString command, QString caption);
+ void displayEstate(Estate *);
+ void displayButton(QString command, QString caption, bool enabled);
void displayDefault();
void gameOption(QString title, QString type, QString value);
_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic