editxlinkdialog.ui.h
changeset 382 8b0ab4c0f767
parent 381 c79df732d095
child 383 bf5ba1bd4764
     1.1 --- a/editxlinkdialog.ui.h	Fri Sep 08 12:30:09 2006 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,74 +0,0 @@
     1.4 -/****************************************************************************
     1.5 -** ui.h extension file, included from the uic-generated form implementation.
     1.6 -**
     1.7 -** If you wish to add, delete or rename functions or slots use
     1.8 -** Qt Designer which will update this file, preserving your code. Create an
     1.9 -** init() function in place of a constructor, and a destroy() function in
    1.10 -** place of a destructor.
    1.11 -*****************************************************************************/
    1.12 -void EditXLinkDialog::init()
    1.13 -{
    1.14 -	delink=false;
    1.15 -	xlo=false;
    1.16 -	selection=NULL;
    1.17 -}
    1.18 -
    1.19 -void EditXLinkDialog::deleteButtonPressed()
    1.20 -{
    1.21 -	delink=true;
    1.22 -	accept();
    1.23 -}
    1.24 -
    1.25 -bool EditXLinkDialog::deleteXLink()
    1.26 -{
    1.27 -	return delink;
    1.28 -}	
    1.29 -
    1.30 -
    1.31 -void EditXLinkDialog::widthChanged( int  w)
    1.32 -{
    1.33 -	xlo->setWidth(w);
    1.34 -}
    1.35 -
    1.36 -void EditXLinkDialog::setXLink( XLinkObj * xo)
    1.37 -{
    1.38 -	xlo=xo;
    1.39 -	colorButton->setPaletteBackgroundColor (xlo->getColor() );
    1.40 -	widthBox->setValue(xlo->getWidth());
    1.41 -}
    1.42 -
    1.43 -void EditXLinkDialog::setSelection(LinkableMapObj *s)
    1.44 -{
    1.45 -	selection=s;
    1.46 -}
    1.47 -
    1.48 -void EditXLinkDialog::colorButtonPressed()
    1.49 -{
    1.50 -	if (xlo)
    1.51 -	{	
    1.52 -		QColor col = QColorDialog::getColor(xlo->getColor(), this );
    1.53 -		if ( !col.isValid() ) return;
    1.54 -		xlo->setColor( col );
    1.55 -		colorButton->setPaletteBackgroundColor (col);
    1.56 -	}
    1.57 -}
    1.58 -
    1.59 -void EditXLinkDialog::setColorHeadingButtonPressed()
    1.60 -{
    1.61 -	if (xlo)
    1.62 -	{	
    1.63 -		if (selection && 
    1.64 -			(typeid(*selection) == typeid(BranchObj)) || 
    1.65 -			(typeid(*selection) == typeid(MapCenterObj))  )
    1.66 -		{
    1.67 -			QColor col=((BranchObj*)(selection))->getColor();
    1.68 -			xlo->setColor(col);
    1.69 -			colorButton->setPaletteBackgroundColor (col);
    1.70 -		}
    1.71 -	}
    1.72 -}
    1.73 -
    1.74 -bool EditXLinkDialog::useSettingsGlobal ()
    1.75 -{
    1.76 -	return useSettings->isChecked();
    1.77 -}