editxlinkdialog.ui.h
author insilmaril
Wed, 04 May 2005 20:35:39 +0000
changeset 98 58adc2d2ed08
parent 97 0b048b6bb6f4
child 99 fac7bf719295
permissions -rw-r--r--
1.6.5 new insert/remove options
     1 /****************************************************************************
     2 ** ui.h extension file, included from the uic-generated form implementation.
     3 **
     4 ** If you wish to add, delete or rename functions or slots use
     5 ** Qt Designer which will update this file, preserving your code. Create an
     6 ** init() function in place of a constructor, and a destroy() function in
     7 ** place of a destructor.
     8 *****************************************************************************/
     9 void EditXLinkDialog::init()
    10 {
    11 	delink=false;
    12 	xlo=false;
    13 }
    14 
    15 void EditXLinkDialog::deleteButtonPressed()
    16 {
    17 	delink=true;
    18 	accept();
    19 }
    20 
    21 bool EditXLinkDialog::deleteXLink()
    22 {
    23 	return delink;
    24 }	
    25 
    26 
    27 void EditXLinkDialog::widthChanged( int  w)
    28 {
    29 	xlo->setWidth(w);
    30 }
    31 
    32 void EditXLinkDialog::setXLink( XLinkObj * xo)
    33 {
    34 	xlo=xo;
    35 	colorButton->setPaletteBackgroundColor (xlo->getColor() );
    36 	widthBox->setValue(xlo->getWidth());
    37 }
    38 
    39 void EditXLinkDialog::colorButtonPressed()
    40 {
    41 	if (xlo)
    42 	{	
    43 		QColor col = QColorDialog::getColor(xlo->getColor(), this );
    44 		if ( !col.isValid() ) return;
    45 		xlo->setColor( col );
    46 		colorButton->setPaletteBackgroundColor (col);
    47 	}
    48 }
    49 
    50 bool EditXLinkDialog::useSettingsGlobal ()
    51 {
    52 	return useSettings->isChecked();
    53 }