1.1 --- a/editxlinkdialog.cpp Fri Apr 09 14:24:04 2010 +0000
1.2 +++ b/editxlinkdialog.cpp Wed Jun 09 13:14:08 2010 +0000
1.3 @@ -10,7 +10,7 @@
1.4 ui.setupUi (this);
1.5
1.6 delink=false;
1.7 - xli=NULL;
1.8 + link=NULL;
1.9 selbi=NULL;
1.10
1.11 connect ( ui.widthBox, SIGNAL (valueChanged( int)), this, SLOT (widthChanged (int)));
1.12 @@ -33,14 +33,14 @@
1.13
1.14 void EditXLinkDialog::widthChanged( int w)
1.15 {
1.16 - xli->setWidth(w);
1.17 + link->setWidth(w);
1.18 }
1.19
1.20 -void EditXLinkDialog::setXLink( XLinkItem * xi)
1.21 +void EditXLinkDialog::setLink( Link * l)
1.22 {
1.23 - xli=xi;
1.24 - ui.colorButton->setPaletteBackgroundColor (xli->getColor() );
1.25 - ui.widthBox->setValue(xli->getWidth());
1.26 + link=l;
1.27 + ui.colorButton->setPaletteBackgroundColor (link->getColor() );
1.28 + ui.widthBox->setValue(link->getWidth());
1.29 }
1.30
1.31 void EditXLinkDialog::setSelection(BranchItem *bi)
1.32 @@ -50,23 +50,23 @@
1.33
1.34 void EditXLinkDialog::colorButtonPressed()
1.35 {
1.36 - if (xli)
1.37 + if (link)
1.38 {
1.39 - QColor col = QColorDialog::getColor(xli->getColor(), this );
1.40 + QColor col = QColorDialog::getColor(link->getColor(), this );
1.41 if ( !col.isValid() ) return;
1.42 - xli->setColor( col );
1.43 + link->setColor( col );
1.44 ui.colorButton->setPaletteBackgroundColor (col);
1.45 }
1.46 }
1.47
1.48 void EditXLinkDialog::setColorHeadingButtonPressed()
1.49 {
1.50 - if (xli)
1.51 + if (link)
1.52 {
1.53 if (selbi)
1.54 {
1.55 QColor col=selbi->getHeadingColor();
1.56 - xli->setColor(col);
1.57 + link->setColor(col);
1.58 ui.colorButton->setPaletteBackgroundColor (col);
1.59 }
1.60 }