[rkward-cvs] rkward/rkward/plugin rkvarslot.cpp,1.8,1.9 rkvarslot.h,1.6,1.7

adrien adhardemare at users.sourceforge.net
Mon Apr 11 12:49:36 UTC 2005


Update of /cvsroot/rkward/rkward/rkward/plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26785/rkward/plugin

Modified Files:
	rkvarslot.cpp rkvarslot.h 
Log Message:
small changes (a new option is born...)


Index: rkvarslot.h
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkvarslot.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** rkvarslot.h	2 Apr 2005 08:48:10 -0000	1.6
--- rkvarslot.h	11 Apr 2005 12:49:34 -0000	1.7
***************
*** 79,82 ****
--- 79,83 ----
  	bool belongToClasses (const QString &nom) ;
  	bool varOrCont ;
+ 	bool dupli ;
  protected:
  	bool isSatisfied ();

Index: rkvarslot.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkvarslot.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** rkvarslot.cpp	2 Apr 2005 08:48:10 -0000	1.8
--- rkvarslot.cpp	11 Apr 2005 12:49:34 -0000	1.9
***************
*** 55,58 ****
--- 55,65 ----
  
  	multi = (element.attribute ("multi") == "true");
+ 	QString temp  = element.attribute ("duplicate","false") ; 
+ 	if (temp == "true") {
+ 	qDebug("##########################oui");
+ 	dupli = true ; }
+ 	else {
+ 	qDebug("##########################non");
+ 	dupli = false ; }
  	
  	if (!multi) {
***************
*** 212,215 ****
--- 219,225 ----
  					}
  				}
+ 				if (dupli) {
+ 				
+ 				duplicate = false ; }
  				if (!duplicate && belongToClasses(sel->makeClassString(""))) {
  					QListViewItem *new_item = new QListViewItem (list, sel->getShortName ());
***************
*** 229,232 ****
--- 239,243 ----
  					}
  				}
+ 				if (dupli) duplicate = false ; 
  				if (!duplicate && belongToClasses(selcont->makeClassString(""))) {
  					QListViewItem *new_item = new QListViewItem (list, selcont->getShortName ());





More information about the rkward-tracker mailing list