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

List:       atlantik-devel
Subject:    [atlantik-cvs] CVS: kdegames/atlantik/libatlantikui board.cpp,1.102,1.103 board.h,1.61,1.62
From:       kde () office ! kde ! org
Date:       2002-12-23 4:03:57
[Download RAW message or body]

Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv2934/libatlantikui

Modified Files:
	board.cpp board.h 
Log Message:
API: make use of cleartext/clearbuttons attributes in display


Index: board.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.cpp,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- board.cpp	14 Dec 2002 00:49:26 -0000	1.102
+++ board.cpp	23 Dec 2002 04:03:55 -0000	1.103
@@ -427,19 +427,19 @@
 		eDetails->addCloseButton();
 }
 
-void AtlantikBoard::insertDetails(QString text, Estate *estate)
+void AtlantikBoard::insertDetails(QString text, bool clearText, bool clearButtons, Estate *estate)
 {
 	EstateDetails *eDetails = 0;
 
 	if ((eDetails = dynamic_cast<EstateDetails*>(m_lastServerDisplay)))
 	{
-		if (eDetails->estate() == estate || !(eDetails->estate()))
-			eDetails->appendText(text);
-		else
-		{
+		if (clearText)
 			eDetails->setText(text);
+		else
+			eDetails->appendText(text);
+
+		if (clearButtons)
 			eDetails->clearButtons();
-		}
 
 		eDetails->setEstate(estate);
 		return;

Index: board.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/board.h,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- board.h	28 Nov 2002 21:38:24 -0000	1.61
+++ board.h	23 Dec 2002 04:03:55 -0000	1.62
@@ -58,7 +58,7 @@
 	void displayDefault();
 	void displayButton(QString command, QString caption, bool enabled);
 	void prependEstateDetails(Estate *);
-	void insertDetails(QString text, Estate *estate = 0);
+	void insertDetails(QString text, bool clearText, bool clearButtons, Estate *estate = 0);
 	void addCloseButton();
 
 signals:

_______________________________________________
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