[prev in list] [next in list] [prev in thread] [next in thread] 

List:       atlantik-devel
Subject:    [atlantik-devel] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.37,1.38 atlantik_ne
From:       kde () office ! kde ! org
Date:       2002-07-01 8:43:45
[Download RAW message or body]

Update of /home/kde/kdegames/atlantik/libatlantikclient
In directory office:/tmp/cvs-serv3377/libatlantikclient

Modified Files:
	atlantik_network.cpp atlantik_network.h 
Log Message:
removed <br> from message window
added dialog buttons for 10%/200$ tax to boarddisplay

Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- atlantik_network.cpp	2002/06/30 23:32:29	1.37
+++ atlantik_network.cpp	2002/07/01 08:43:43	1.38
@@ -237,7 +237,7 @@
 {
 	QDomAttr a;
 
-	while(!n.isNull())
+	for ( ; !n.isNull() ; n = n.nextSibling() )
 	{
 		QDomElement e = n.toElement();
 		if(!e.isNull())
@@ -257,9 +257,13 @@
 			}
 			else if (e.tagName() == "display")
 			{
-				QString type = e.attributeNode(QString("type")).value();
-				if (1 || type == "foo")
-					emit displayText(e.attributeNode(QString("name")).value(), \
e.attributeNode(QString("description")).value()); +				emit \
displayText(e.attributeNode(QString("name")).value(), \
e.attributeNode(QString("description")).value()); +				for( QDomNode nButtons = \
n.firstChild() ; !nButtons.isNull() ; nButtons = nButtons.nextSibling() ) +				{
+					QDomElement eButton = nButtons.toElement();
+					if (!eButton.isNull() && eButton.tagName() == "button")
+						emit displayButton(eButton.attributeNode(QString("command")).value(), \
eButton.attributeNode(QString("caption")).value()); +				}
 			}
 			else if (e.tagName() == "updategamelist")
 			{
@@ -420,7 +424,7 @@
 					}
 
 					// Emit signal so GUI implementations can create view(s)
-#warning port to atlanticcore, but somehow dont create view until all properties are \
set +#warning port to atlanticcore and create view there
 					if (b_newPlayer)
 						emit newPlayer(player);
 
@@ -446,7 +450,7 @@
 					}
 
 					// Emit signal so GUI implementations can create view(s)
-#warning port to atlanticcore, but somehow dont create view until all properties are \
set +#warning port to atlanticcore and create view there
 					if (b_newEstateGroup)
 						emit newEstateGroup(estateGroup);
 
@@ -533,7 +537,7 @@
 						estate->setPrice(a.value().toInt());
 
 					// Emit signal so GUI implementations can create view(s)
-#warning port to atlanticcore, but somehow dont create view until all properties are \
set +#warning port to atlanticcore and create view there
 					if (b_newEstate)
 						emit newEstate(estate);
 
@@ -662,7 +666,7 @@
 					}
 
 					// Emit signal so GUI implementations can create view(s)
-#warning port to atlanticcore, but somehow dont create view until all properties are \
set +#warning port to atlanticcore and create view there
 					if (b_newTrade)
 						emit newTrade(trade);
 
@@ -714,7 +718,7 @@
 					}
 
 					// Emit signal so GUI implementations can create view(s)
-#warning port to atlanticcore, but somehow dont create view until all properties are \
set +#warning port to atlanticcore and create view there
 					if (b_newAuction)
 						emit newAuction(auction);
 
@@ -725,9 +729,9 @@
 			else
 				kdDebug() << "ignored TAG: " << e.tagName() << endl;
 		}
-		QDomNode node = n.firstChild();
-		processNode(node);
-		n = n.nextSibling();
+		// TODO: remove permanently?
+		// QDomNode node = n.firstChild();
+		// processNode(node);
 	}
 }
 

Index: atlantik_network.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- atlantik_network.h	2002/06/29 12:51:33	1.19
+++ atlantik_network.h	2002/07/01 08:43:43	1.20
@@ -41,6 +41,7 @@
 	void cmdChat(QString msg);
 
 private slots:
+	void writeData(QString msg);
 	void rollDice();
 	void endTurn();
 	void newGame(const QString &gameType);
@@ -112,7 +113,8 @@
 	void msgError(QString);
 	void msgChat(QString, QString);
 
-	void displayText(QString, QString);
+	void displayText(QString title, QString description);
+	void displayButton(QString command, QString caption);
 
 	void gameListClear();
 	void gamelistEndUpdate(QString);
@@ -150,7 +152,6 @@
 	void auctionCompleted(Auction *auction);
 
 private:
-	void writeData(QString msg);
 	void processMsg(QString);
 	void processNode(QDomNode);
 

_______________________________________________
atlantik-devel mailing list
atlantik-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic