fixed some bugs in xlinks, more remove/insert functions
authorinsilmaril
Wed, 18 May 2005 07:39:51 +0000
changeset 100f79a53ee8cf6
parent 99 fac7bf719295
child 101 1d092be4fe33
fixed some bugs in xlinks, more remove/insert functions
branchobj.cpp
branchobj.h
xml.cpp
     1.1 --- a/branchobj.cpp	Wed May 18 07:39:51 2005 +0000
     1.2 +++ b/branchobj.cpp	Wed May 18 07:39:51 2005 +0000
     1.3 @@ -422,6 +422,10 @@
     1.4      }	
     1.5  }
     1.6  
     1.7 +QColor BranchObj::getColor()
     1.8 +{
     1.9 +	return heading->getColor();
    1.10 +}
    1.11  
    1.12  BranchObj* BranchObj::first()
    1.13  {
     2.1 --- a/branchobj.h	Wed May 18 07:39:51 2005 +0000
     2.2 +++ b/branchobj.h	Wed May 18 07:39:51 2005 +0000
     2.3 @@ -43,6 +43,7 @@
     2.4      virtual void setVisibility(bool);	    // set vis. for w
     2.5  	virtual void setLinkColor();			// set the color of link
     2.6  	virtual void setColor(QColor,bool);		// set the color of heading
     2.7 +	virtual QColor getColor();				// get color of heading
     2.8  
     2.9  
    2.10  	BranchObj* first ();				// set Iterator to first LMO
     3.1 --- a/xml.cpp	Wed May 18 07:39:51 2005 +0000
     3.2 +++ b/xml.cpp	Wed May 18 07:39:51 2005 +0000
     3.3 @@ -106,14 +106,14 @@
     3.4  				col.setNamedColor(atts.value("linkColor"));
     3.5  				me->setLinkColor(col);
     3.6  			}	
     3.7 -			if (!atts.value( "xlinkColor").isEmpty() ) 
     3.8 +			if (!atts.value( "defXLinkColor").isEmpty() ) 
     3.9  			{
    3.10 -				col.setNamedColor(atts.value("xlinkColor"));
    3.11 +				col.setNamedColor(atts.value("defXLinkColor"));
    3.12  				me->setDefXLinkColor(col);
    3.13  			}	
    3.14 -			if (!atts.value( "xlinkWidth").isEmpty() ) 
    3.15 +			if (!atts.value( "defXLinkWidth").isEmpty() ) 
    3.16  			{
    3.17 -				me->setDefXLinkWidth(atts.value("xlinkWidth").toInt ());
    3.18 +				me->setDefXLinkWidth(atts.value("defXLinkWidth").toInt ());
    3.19  			}	
    3.20  		}	
    3.21  	} else if ( eName == "select" && state == StateMap )