diff -r 0b048b6bb6f4 -r fdb26d5b3715 editxlinkdialog.ui.h --- a/editxlinkdialog.ui.h Thu Apr 21 19:14:38 2005 +0000 +++ b/editxlinkdialog.ui.h Fri Jul 08 07:24:42 2005 +0000 @@ -10,6 +10,7 @@ { delink=false; xlo=false; + selection=NULL; } void EditXLinkDialog::deleteButtonPressed() @@ -36,6 +37,11 @@ widthBox->setValue(xlo->getWidth()); } +void EditXLinkDialog::setSelection(LinkableMapObj *s) +{ + selection=s; +} + void EditXLinkDialog::colorButtonPressed() { if (xlo) @@ -47,6 +53,21 @@ } } +void EditXLinkDialog::setColorHeadingButtonPressed() +{ + if (xlo) + { + if (selection && + (typeid(*selection) == typeid(BranchObj)) || + (typeid(*selection) == typeid(MapCenterObj)) ) + { + QColor col=((BranchObj*)(selection))->getColor(); + xlo->setColor(col); + colorButton->setPaletteBackgroundColor (col); + } + } +} + bool EditXLinkDialog::useSettingsGlobal () { return useSettings->isChecked();