1 #include "branchpropwindow.h"
6 BranchPropertyWindow::BranchPropertyWindow (QWidget *parent):QDialog(parent)
13 connect ( ui.frameTypeCombo, SIGNAL (currentIndexChanged( int)), this, SLOT (frameTypeChanged (int)));
14 connect ( ui.hideLinkIfUnselected, SIGNAL (stateChanged( int)), this, SLOT (linkHideUnselectedChanged (int)));
17 void BranchPropertyWindow::setBranch (BranchObj *bo)
23 switch (branch->getFrameType())
26 ui.frameTypeCombo->setCurrentIndex (0);
29 ui.frameTypeCombo->setCurrentIndex (1);
32 ui.frameTypeCombo->setCurrentIndex (2);
37 if (branch->getHideLinkUnselected())
38 ui.hideLinkIfUnselected->setCheckState (Qt::Checked);
40 ui.hideLinkIfUnselected->setCheckState (Qt::Unchecked);
43 void BranchPropertyWindow::setMapEditor (MapEditor *me)
48 void BranchPropertyWindow::frameTypeChanged (int i)
53 case 0: mapEditor->setFrame (NoFrame); break;
54 case 1: mapEditor->setFrame (Rectangle); break;
55 case 2: mapEditor->setFrame (Ellipse); break;
59 void BranchPropertyWindow::linkHideUnselectedChanged (int i)
62 branch->setHideLinkUnselected(i);