1.1 --- a/editxlinkdialog.ui.h Thu Apr 21 19:14:38 2005 +0000
1.2 +++ b/editxlinkdialog.ui.h Mon Sep 05 11:56:31 2005 +0000
1.3 @@ -10,6 +10,7 @@
1.4 {
1.5 delink=false;
1.6 xlo=false;
1.7 + selection=NULL;
1.8 }
1.9
1.10 void EditXLinkDialog::deleteButtonPressed()
1.11 @@ -36,6 +37,11 @@
1.12 widthBox->setValue(xlo->getWidth());
1.13 }
1.14
1.15 +void EditXLinkDialog::setSelection(LinkableMapObj *s)
1.16 +{
1.17 + selection=s;
1.18 +}
1.19 +
1.20 void EditXLinkDialog::colorButtonPressed()
1.21 {
1.22 if (xlo)
1.23 @@ -47,6 +53,21 @@
1.24 }
1.25 }
1.26
1.27 +void EditXLinkDialog::setColorHeadingButtonPressed()
1.28 +{
1.29 + if (xlo)
1.30 + {
1.31 + if (selection &&
1.32 + (typeid(*selection) == typeid(BranchObj)) ||
1.33 + (typeid(*selection) == typeid(MapCenterObj)) )
1.34 + {
1.35 + QColor col=((BranchObj*)(selection))->getColor();
1.36 + xlo->setColor(col);
1.37 + colorButton->setPaletteBackgroundColor (col);
1.38 + }
1.39 + }
1.40 +}
1.41 +
1.42 bool EditXLinkDialog::useSettingsGlobal ()
1.43 {
1.44 return useSettings->isChecked();