[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui board.cpp,1.102,1.103 board.h,1.61,1.62

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
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:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.