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