#include <transition.h>
Public Types | |
typedef QList< LabelX * > | TLabelXList |
Public Member Functions | |
Transition (Editor *parent, State *ss, State *es, bool dimmed) | |
virtual | ~Transition () |
void | addNextLabel (LabelX *pLabel) |
virtual void | adjust ()=0 |
The only method where graphics changes are computed. | |
virtual void | assign ()=0 |
Assign to all referenced states (to theirs trList). | |
virtual QRectF | boundingRect () const |
virtual int | getArcAngle () const |
virtual int | getArcAngleB () const |
QColor | getColor () |
virtual int | getDirection () const |
Editor * | getEditor () const |
virtual State * | getEndState () const |
QString | getEndStateName () const |
virtual QString | getGraphMLParams () const |
GraphML export. | |
LabelX * | getLabel () const |
QColor | getLabelColor () |
float | getLabelPos () const |
QString | getLabelText () const |
virtual float | getNCurv () const |
const TLabelXList & | getNextLabels () const |
virtual QString | getNextLabelsVCCommand () const |
State * | getStartState () const |
QString | getStartStateName () const |
virtual QString | getTypeName () const =0 |
virtual QString | getTypeNameSuffix () const |
virtual QString | getVCCommand () const =0 |
VauCanSon-G transition command. | |
bool | getVCParams (QTextStream &out, EdgePrevParams &prevParams) const |
VauCanSon-G params. | |
bool | hasEndState () const |
Pay attention to Loop - doesn't have end state, but getEndState() returns startState due to automaton sence. | |
bool | isDimmed () |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
virtual void | paintSelectionDecoration (QPainter *painter) |
virtual QPainterPath | path () const |
Return path mapped to scene. | |
void | removeNextLabel (LabelX *pLabel) |
virtual void | setArcAngle (int) |
for VArc and VCurve | |
virtual void | setArcAngleB (int) |
only for VCurve | |
void | setChecked (bool checked=true) |
void | setDimEdgeLineCoef (float lineCoef) |
void | setDimmed (bool dim) |
virtual void | setDirection (int) |
void | setEdgeLabelScale (float labelScale) |
void | setEdgeLineWidth (float lineWidth) |
void | setEndState (State *state) |
void | setLabelPos (float pos) |
??? Check return type correctness!!! | |
virtual void | setLabelPosition (LabelX *pLabel, float pos, bool isLeft, int width, int height) |
virtual void | setLabelPosition () |
void | setLabelText (const QString &label) |
virtual void | setNCurv (float) |
void | setSelected (bool selected=true) |
void | setStartState (State *state) |
virtual QPainterPath | shape () const |
virtual void | unassign ()=0 |
Protected Types | |
enum | EIntersectionFindMethod { eFIND_FIRST, eFIND_TWO, eFIND_ALL } |
Protected Member Functions | |
QPainterPath | createShape (const QPainterPath &path, int bounds) const |
void | createStrokes (const QPainterPath &path) |
QPolygonF | getArrowPolygon (const QPainterPath &path) |
const QPainterPath & | getClickPath () const |
const QPainterPath & | getSelectionPath () const |
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event)=0 |
Static Protected Member Functions | |
static QPolygonF | findIntersectedPoints (const QPolygonF &curve, const QPolygonF &polygon, const EIntersectionFindMethod method) |
Protected Attributes | |
bool | checked |
coloring when selected | |
const QColor | checkedColor |
bool | dimmed |
Editor * | editor |
QPointF | endPoint |
State * | endState |
LabelX * | label |
bool | leftOriented |
QPolygonF | m_arrowPoints |
default transition arrow, angle 0 degrees, pointing to point 0,0 | |
QPainterPath | m_clickPath |
holds area for mouse click | |
int | m_labelFontSize |
EMouseClick | m_lastMouseClickType |
float | m_lineWidth |
QPainterPath | m_selectionPath |
holds area showed when item is selected | |
TLabelXList | nextLabels |
next labels (command , ) - stored as pair item + isLeft | |
QPainterPath | p |
path of transition | |
QPolygonF | pa |
arrow polygon -> transformed and rotatted m_arrowPoints | |
QPointF | startPoint |
State * | startState |
edge parameters | |
Qt::PenStyle | edgeLineStyle |
float | edgeLineWidth |
QString | edgeLineColor |
QString | edgeLabelColor |
float | edgeLabelScale |
bool | edgeLineDblStatus |
transition parameters preset | |
float | edgeLineBorderCoef |
QString | edgeLineBorderColor |
float | edgeLineDblCoef |
float | edgeLineDblSep |
transition parameters dimmed | |
Qt::PenStyle | dimEdgeLineStyle |
QString | dimEdgeLineColor |
float | dimEdgeLineCoef |
QString | dimEdgeLabelColor |
Friends | |
void | Editor::exportToGraphML (const QString &fn) |
class | NextLabelsDialog |
class | Parser |
class | TransitionEditExtendedCommand |
class | TransitionEditWithDelCommand |
class | TransitionExtendedDialog |
struct | TransitionSerializer |
class | TransitionStyleChangeCommand |
Support methods for ITransition | |
| |
QString | getSourceState () const |
QString | getDestinationState () const |
void | getCharactersOccurences (ITransition::TCharSet &characters) const |
bool | getCharacters (ITransition::TCharSet &characters, const ITransition::TCharSet &alphabet, const QString &alphabetSymbol, const QString &epsilonSymbol) const |
Returns character on which transition passes. | |
void | showErrorReport (const QString &reportText=QString("")) const |
void | dismemberCharacters (const QStringList &occurences, ITransition::TCharSet &characters) const |
Dismembers characters (found specific smybols and fill occurences param). |
Definition at line 37 of file transition.h.
typedef QList<LabelX *> Transition::TLabelXList |
Definition at line 40 of file transition.h.
enum Transition::EIntersectionFindMethod [protected] |
Definition at line 141 of file transition.h.
Definition at line 38 of file transition.cpp.
References ARROW_LEN, ARROW_WIDTH, Editor::dimEdgeLabelColor, dimEdgeLabelColor, Editor::dimEdgeLineCoef, dimEdgeLineCoef, Editor::dimEdgeLineColor, dimEdgeLineColor, Editor::dimEdgeLineStyle, dimEdgeLineStyle, dimmed, EDGE_LABEL_SIZE, Editor::edgeLabelColor, edgeLabelColor, Editor::edgeLabelScale, edgeLabelScale, Editor::edgeLineBorderCoef, edgeLineBorderCoef, Editor::edgeLineBorderColor, edgeLineBorderColor, Editor::edgeLineColor, edgeLineColor, Editor::edgeLineDblCoef, edgeLineDblCoef, Editor::edgeLineDblSep, edgeLineDblSep, Editor::edgeLineDblStatus, edgeLineDblStatus, Editor::edgeLineStyle, edgeLineStyle, Editor::edgeLineWidth, edgeLineWidth, editor, endPoint, endState, m_arrowPoints, m_labelFontSize, and m_lineWidth.
Transition::~Transition | ( | ) | [virtual] |
Definition at line 98 of file transition.cpp.
References DBGLOG, label, and nextLabels.
void Transition::addNextLabel | ( | LabelX * | pLabel | ) |
Definition at line 193 of file transition.cpp.
References dimEdgeLabelColor, dimmed, edgeLabelColor, nextLabels, and LabelX::setColor().
Referenced by Editor::addToListAndScene(), TransitionSerializer::createTransition(), and Parser::Label_r().
virtual void Transition::adjust | ( | ) | [pure virtual] |
The only method where graphics changes are computed.
Implemented in TransitionArc, TransitionSELine, TransitionLine, TransitionLoop, TransitionVArc, and TransitionVCurve.
Referenced by State::adjustTransitions(), Parser::checkTrParam(), TransitionSerializer::createTransition(), NaiveDrawAlgorithm::drawAutomaton(), BaseDrawAlgorithm::drawTransitions(), GraphVizDrawAlgorithm::drawTransitionsAccordingToGV(), Editor::editNextLabels(), Editor::editTransition(), Editor::generateDistance(), Editor::insertTransition(), NextLabelEditCommand::redo(), TransitionEditWithDelCommand::redo(), TwoStatesTransitionEditCommand::redo(), OneStateTransitionEditCommand::redo(), setEndState(), TwoStatesTransition::setLeftOriented(), setStartState(), NextLabelEditCommand::undo(), TransitionEditWithDelCommand::undo(), TwoStatesTransitionEditCommand::undo(), and OneStateTransitionEditCommand::undo().
virtual void Transition::assign | ( | ) | [pure virtual] |
Assign to all referenced states (to theirs trList).
Implemented in OneStateTransition, and TwoStatesTransition.
Referenced by Editor::addToListsAndScene(), SelectionSerializer::createItems(), createState(), NaiveDrawAlgorithm::drawAutomaton(), BaseDrawAlgorithm::drawTransitions(), GraphVizDrawAlgorithm::drawTransitionsAccordingToGV(), Parser::EndTransitionDeclaration(), Editor::generateDistance(), Editor::generateExactMatching(), and Parser::OneStateTransition().
QRectF Transition::boundingRect | ( | ) | const [virtual] |
Definition at line 243 of file transition.cpp.
References LabelX::boundingRect(), getClickPath(), label, nextLabels, and pa.
Referenced by Editor::getExpandedGridRect(), TransitionLoop::paint(), and paint().
QPainterPath Transition::createShape | ( | const QPainterPath & | path, | |
int | bounds | |||
) | const [protected] |
Definition at line 208 of file transition.cpp.
References LabelX::boundingRect(), label, nextLabels, pa, and LabelX::text().
Referenced by createStrokes().
void Transition::createStrokes | ( | const QPainterPath & | path | ) | [protected] |
Definition at line 619 of file transition.cpp.
References CLICK_BOUNDS, createShape(), g_TimeIterations, g_TimeIterationsCount, g_TimeSum, m_clickPath, m_lineWidth, M_PI, m_selectionPath, p, RELLOG, and SELECTION_BOUNDS.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionLine::adjust(), TransitionSELine::adjust(), TransitionArc::adjust(), setDimEdgeLineCoef(), setDimmed(), and setEdgeLineWidth().
void Transition::dismemberCharacters | ( | const QStringList & | occurences, | |
ITransition::TCharSet & | characters | |||
) | const [protected] |
Dismembers characters (found specific smybols and fill occurences param).
Definition at line 904 of file transition.cpp.
Referenced by getCharactersOccurences().
QPolygonF Transition::findIntersectedPoints | ( | const QPolygonF & | curve, | |
const QPolygonF & | polygon, | |||
const EIntersectionFindMethod | method | |||
) | [static, protected] |
Definition at line 693 of file transition.cpp.
References DBGLOG, DBGPAR, eFIND_FIRST, eFIND_TWO, and RELLOG.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionLine::adjust(), and TransitionArc::adjust().
virtual int Transition::getArcAngle | ( | ) | const [inline, virtual] |
Reimplemented in TransitionVArc, and TransitionVCurve.
Definition at line 93 of file transition.h.
Referenced by Editor::editTransition(), and TwoStatesTransitionEditCommand::TwoStatesTransitionEditCommand().
virtual int Transition::getArcAngleB | ( | ) | const [inline, virtual] |
Reimplemented in TransitionVCurve.
Definition at line 98 of file transition.h.
Referenced by Editor::editTransition(), and TwoStatesTransitionEditCommand::TwoStatesTransitionEditCommand().
QPolygonF Transition::getArrowPolygon | ( | const QPainterPath & | path | ) | [protected] |
Sincle transition path starts in circuit of state, only path is need This computes arrow points from anlge of last part of transition
Definition at line 677 of file transition.cpp.
References m_arrowPoints.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionLine::adjust(), and TransitionArc::adjust().
bool Transition::getCharacters | ( | ITransition::TCharSet & | characters, | |
const ITransition::TCharSet & | alphabet, | |||
const QString & | alphabetSymbol, | |||
const QString & | epsilonSymbol | |||
) | const |
Returns character on which transition passes.
Definition at line 842 of file transition.cpp.
References LabelSyntaxChecker::checkSyntax(), LabelX::getCharacterList(), LabelSyntaxChecker::getCharacters(), LabelSyntaxChecker::getPattern(), LabelSyntaxChecker::getReport(), label, nextLabels, and showErrorReport().
Referenced by Editor::getAutomaton().
void Transition::getCharactersOccurences | ( | ITransition::TCharSet & | characters | ) | const |
Returns all character occurences, supposed to be inspected to find alphabet and epsilon symbol. Used when automata setting detection is required.
Definition at line 885 of file transition.cpp.
References dismemberCharacters(), LabelX::getCharacters(), label, and nextLabels.
Referenced by Editor::detectAutomataSettings().
const QPainterPath & Transition::getClickPath | ( | ) | const [protected] |
Definition at line 667 of file transition.cpp.
References m_clickPath.
Referenced by boundingRect(), and shape().
QColor Transition::getColor | ( | ) | [inline] |
Definition at line 65 of file transition.h.
References dimEdgeLineColor, dimmed, and edgeLineColor.
QString Transition::getDestinationState | ( | ) | const |
Definition at line 827 of file transition.cpp.
References getEndStateName().
Referenced by showErrorReport(), and transitionCountBetween().
virtual int Transition::getDirection | ( | ) | const [inline, virtual] |
Reimplemented in TransitionSELine, and TransitionLoop.
Definition at line 89 of file transition.h.
Referenced by Editor::editTransition(), and OneStateTransition::getTypeNameSuffix().
Editor* Transition::getEditor | ( | ) | const [inline] |
Definition at line 119 of file transition.h.
References editor.
virtual State* Transition::getEndState | ( | ) | const [inline, virtual] |
Reimplemented in TransitionLoop.
Definition at line 107 of file transition.h.
References endState.
Referenced by Editor::editTransition(), Editor::exportToGraphML(), State::getAccessibleStates(), and getEndStateName().
QString Transition::getEndStateName | ( | ) | const |
Definition at line 114 of file transition.cpp.
References getEndState(), and State::getName().
Referenced by Editor::getAutomaton(), getDestinationState(), and TransitionSerializer::TransitionSerializer().
virtual QString Transition::getGraphMLParams | ( | ) | const [inline, virtual] |
GraphML export.
Reimplemented in TransitionVArc, and TransitionVCurve.
Definition at line 128 of file transition.h.
Referenced by Editor::exportToGraphML().
LabelX * Transition::getLabel | ( | ) | const |
Definition at line 120 of file transition.cpp.
References label.
QColor Transition::getLabelColor | ( | ) | [inline] |
Definition at line 66 of file transition.h.
References dimEdgeLabelColor, dimmed, and edgeLabelColor.
Referenced by NextLabelsDialog::addLabel(), TransitionSerializer::createTransition(), and Parser::Label_r().
float Transition::getLabelPos | ( | ) | const |
Definition at line 187 of file transition.cpp.
References label, and LabelX::posParam().
Referenced by Editor::editTransition(), and TwoStatesTransitionEditCommand::TwoStatesTransitionEditCommand().
QString Transition::getLabelText | ( | ) | const |
Definition at line 125 of file transition.cpp.
References label, and LabelX::text().
Referenced by Editor::editTransition(), Editor::exportToGraphML(), Editor::showPopup(), and TwoStatesTransitionEditCommand::TwoStatesTransitionEditCommand().
virtual float Transition::getNCurv | ( | ) | const [inline, virtual] |
Reimplemented in TransitionVArc, and TransitionVCurve.
Definition at line 94 of file transition.h.
Referenced by Editor::editTransition(), and TwoStatesTransitionEditCommand::TwoStatesTransitionEditCommand().
const TLabelXList& Transition::getNextLabels | ( | ) | const [inline] |
Definition at line 60 of file transition.h.
References nextLabels.
Referenced by TransitionSerializer::TransitionSerializer().
QString Transition::getNextLabelsVCCommand | ( | ) | const [virtual] |
Definition at line 523 of file transition.cpp.
References nextLabels.
Referenced by TransitionVCurve::getVCCommand(), TransitionVArc::getVCCommand(), TransitionLoop::getVCCommand(), TransitionLine::getVCCommand(), TransitionSELine::getVCCommand(), and TransitionArc::getVCCommand().
const QPainterPath & Transition::getSelectionPath | ( | ) | const [protected] |
Definition at line 672 of file transition.cpp.
References m_selectionPath.
Referenced by paintSelectionDecoration().
QString Transition::getSourceState | ( | ) | const |
Definition at line 822 of file transition.cpp.
References getStartStateName().
Referenced by showErrorReport().
State* Transition::getStartState | ( | ) | const [inline] |
Definition at line 106 of file transition.h.
References startState.
Referenced by Editor::editTransition(), Editor::exportToGraphML(), State::getAccessibleStates(), State::getOutgoingTransitions(), ItemsAddCommand::redo(), GeneratedGraphAddCommand::redo(), ItemsAddCommand::undo(), and GeneratedGraphAddCommand::undo().
QString Transition::getStartStateName | ( | ) | const |
Definition at line 108 of file transition.cpp.
References State::getName(), and startState.
Referenced by Editor::getAutomaton(), getSourceState(), and TransitionSerializer::TransitionSerializer().
virtual QString Transition::getTypeName | ( | ) | const [pure virtual] |
Implemented in TransitionArc, TransitionSELine, TransitionLine, TransitionLoop, TransitionVArc, and TransitionVCurve.
Referenced by Editor::editTransition(), Editor::exportToGraphML(), Editor::getAutomaton(), State::getOutgoingTransitions(), Editor::insertTransition(), State::isFinal(), State::isInitial(), Editor::saveGraph(), and Editor::showPopup().
virtual QString Transition::getTypeNameSuffix | ( | ) | const [inline, virtual] |
Reimplemented in OneStateTransition, and TwoStatesTransition.
Definition at line 82 of file transition.h.
Referenced by Editor::editTransition(), Editor::exportToGraphML(), and Editor::insertTransition().
virtual QString Transition::getVCCommand | ( | ) | const [pure virtual] |
VauCanSon-G transition command.
Implemented in TransitionArc, TransitionSELine, TransitionLine, TransitionLoop, TransitionVArc, and TransitionVCurve.
Referenced by Editor::saveGraph().
bool Transition::getVCParams | ( | QTextStream & | out, | |
EdgePrevParams & | prevParams | |||
) | const |
VauCanSon-G params.
Definition at line 423 of file transition.cpp.
References EdgePrevParams::dimEdgeLabelColor, dimEdgeLabelColor, EdgePrevParams::dimEdgeLineCoef, dimEdgeLineCoef, EdgePrevParams::dimEdgeLineColor, dimEdgeLineColor, EdgePrevParams::dimEdgeLineStyle, dimEdgeLineStyle, dimmed, Editor::edgeLabelColor, EdgePrevParams::edgeLabelColor, edgeLabelColor, EdgePrevParams::edgeLabelScale, edgeLabelScale, EdgePrevParams::edgeLineBorderCoef, edgeLineBorderCoef, EdgePrevParams::edgeLineBorderColor, edgeLineBorderColor, Editor::edgeLineColor, EdgePrevParams::edgeLineColor, edgeLineColor, EdgePrevParams::edgeLineDblCoef, edgeLineDblCoef, EdgePrevParams::edgeLineDblSep, edgeLineDblSep, EdgePrevParams::edgeLineDblStatus, edgeLineDblStatus, Editor::edgeLineStyle, EdgePrevParams::edgeLineStyle, edgeLineStyle, EdgePrevParams::edgeLineWidth, edgeLineWidth, editor, and trLineStyle().
Referenced by Editor::saveGraph().
bool Transition::hasEndState | ( | ) | const [inline] |
Pay attention to Loop - doesn't have end state, but getEndState() returns startState due to automaton sence.
Definition at line 110 of file transition.h.
References endState.
Referenced by Editor::exportToGraphML(), and TransitionSerializer::TransitionSerializer().
bool Transition::isDimmed | ( | ) |
Definition at line 348 of file transition.cpp.
References dimmed.
Referenced by Editor::editTransition(), Editor::exportToGraphML(), Editor::saveGraph(), and TwoStatesTransitionEditCommand::TwoStatesTransitionEditCommand().
void Transition::mouseDoubleClickEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected, virtual] |
Definition at line 398 of file transition.cpp.
References DBGLOG_ME, editor, Editor::getAction(), m_lastMouseClickType, and setChecked().
void Transition::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected, virtual] |
Definition at line 387 of file transition.cpp.
References DBGLOG_ME, m_lastMouseClickType, and setChecked().
virtual void Transition::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected, pure virtual] |
Implemented in OneStateTransition, and TwoStatesTransition.
void Transition::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option, | |||
QWidget * | widget | |||
) | [virtual] |
Reimplemented in TransitionLoop, and TwoStatesTransition.
Definition at line 274 of file transition.cpp.
References boundingRect(), checked, checkedColor, dimEdgeLineColor, dimEdgeLineStyle, dimmed, edgeLineColor, edgeLineStyle, m_lineWidth, p, pa, paintSelectionDecoration(), and shape().
void Transition::paintSelectionDecoration | ( | QPainter * | painter | ) | [virtual] |
Definition at line 262 of file transition.cpp.
References SelectedColor::a, SelectedColor::b, SelectedColor::g, getSelectionPath(), and SelectedColor::r.
Referenced by TransitionLoop::paint(), and paint().
virtual QPainterPath Transition::path | ( | ) | const [inline, virtual] |
Return path mapped to scene.
Reimplemented in TransitionLoop.
Definition at line 74 of file transition.h.
References p.
Referenced by StateImpl::getStatesAndPathsOn().
void Transition::removeNextLabel | ( | LabelX * | pLabel | ) |
Definition at line 202 of file transition.cpp.
References nextLabels, and RELLOG.
Referenced by Editor::removeFromListAndScene().
virtual void Transition::setArcAngle | ( | int | ) | [inline, virtual] |
for VArc and VCurve
Reimplemented in TransitionVArc, and TransitionVCurve.
Definition at line 91 of file transition.h.
Referenced by TransitionSerializer::createTransition(), BaseDrawAlgorithm::drawTransitions(), GraphVizDrawAlgorithm::drawTransitionsAccordingToGV(), Editor::editTransition(), Parser::EndTransitionDeclaration(), Editor::insertTransition(), TwoStatesTransitionEditCommand::redo(), and TwoStatesTransitionEditCommand::undo().
virtual void Transition::setArcAngleB | ( | int | ) | [inline, virtual] |
only for VCurve
Reimplemented in TransitionVCurve.
Definition at line 97 of file transition.h.
Referenced by TransitionSerializer::createTransition(), GraphVizDrawAlgorithm::drawTransitionsAccordingToGV(), Editor::editTransition(), Parser::EndTransitionDeclaration(), Editor::insertTransition(), TwoStatesTransitionEditCommand::redo(), and TwoStatesTransitionEditCommand::undo().
void Transition::setChecked | ( | bool | checked = true |
) |
Definition at line 353 of file transition.cpp.
References checked, checkedColor, dimEdgeLabelColor, dimmed, edgeLabelColor, label, nextLabels, and LabelX::setColor().
Referenced by Editor::editTransition(), mouseDoubleClickEvent(), mousePressEvent(), TwoStatesTransition::mouseReleaseEvent(), OneStateTransition::mouseReleaseEvent(), and Editor::showPopup().
void Transition::setDimEdgeLineCoef | ( | float | lineCoef | ) |
Definition at line 806 of file transition.cpp.
References createStrokes(), dimEdgeLineCoef, dimmed, m_lineWidth, and p.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
void Transition::setDimmed | ( | bool | dim | ) |
Definition at line 323 of file transition.cpp.
References createStrokes(), dimEdgeLabelColor, dimEdgeLineCoef, dimmed, edgeLabelColor, edgeLineWidth, label, m_lineWidth, nextLabels, p, and LabelX::setColor().
Referenced by TwoStatesTransitionEditCommand::redo(), OneStateTransitionEditCommand::redo(), TwoStatesTransitionEditCommand::undo(), and OneStateTransitionEditCommand::undo().
virtual void Transition::setDirection | ( | int | ) | [inline, virtual] |
Reimplemented in TransitionSELine, and TransitionLoop.
Definition at line 88 of file transition.h.
Referenced by OneStateTransitionEditCommand::redo(), and OneStateTransitionEditCommand::undo().
void Transition::setEdgeLabelScale | ( | float | labelScale | ) |
Definition at line 769 of file transition.cpp.
References edgeLabelScale, label, m_labelFontSize, nextLabels, LabelX::setFontSize(), and setLabelPosition().
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
void Transition::setEdgeLineWidth | ( | float | lineWidth | ) |
Definition at line 791 of file transition.cpp.
References createStrokes(), dimmed, edgeLineWidth, m_lineWidth, and p.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
void Transition::setEndState | ( | State * | state | ) |
Definition at line 414 of file transition.cpp.
References adjust(), endState, and RELLOG.
void Transition::setLabelPos | ( | float | pos | ) |
??? Check return type correctness!!!
Definition at line 182 of file transition.cpp.
References label, and LabelX::setPosParam().
Referenced by Editor::editTransition(), Parser::EndTransitionDeclaration(), Editor::insertTransition(), Parser::OneStateTransition(), TwoStatesTransitionEditCommand::redo(), OneStateTransitionEditCommand::redo(), TwoStatesTransitionEditCommand::undo(), and OneStateTransitionEditCommand::undo().
void Transition::setLabelPosition | ( | ) | [virtual] |
Reimplemented in TransitionArc, TransitionLine, TransitionLoop, TransitionVArc, and TransitionVCurve.
Definition at line 171 of file transition.cpp.
References nextLabels.
Referenced by TransitionSELine::adjust(), Parser::Label_r(), setEdgeLabelScale(), and setLabelText().
void Transition::setLabelPosition | ( | LabelX * | pLabel, | |
float | pos, | |||
bool | isLeft, | |||
int | width, | |||
int | height | |||
) | [virtual] |
Definition at line 146 of file transition.cpp.
References p, and TEXT_DISTANCE.
void Transition::setLabelText | ( | const QString & | label | ) |
Definition at line 133 of file transition.cpp.
References label, RELLOG, setLabelPosition(), and LabelX::setText().
Referenced by TwoStatesTransitionEditCommand::redo(), OneStateTransitionEditCommand::redo(), TwoStatesTransitionEditCommand::undo(), and OneStateTransitionEditCommand::undo().
virtual void Transition::setNCurv | ( | float | ) | [inline, virtual] |
Reimplemented in TransitionVArc, and TransitionVCurve.
Definition at line 92 of file transition.h.
Referenced by TransitionSerializer::createTransition(), GraphVizDrawAlgorithm::drawTransitionsAccordingToGV(), Editor::editTransition(), Parser::EndTransitionDeclaration(), Editor::insertTransition(), TwoStatesTransitionEditCommand::redo(), and TwoStatesTransitionEditCommand::undo().
void Transition::setSelected | ( | bool | selected = true |
) |
Definition at line 372 of file transition.cpp.
References label, nextLabels, and LabelX::text().
Referenced by Editor::generateGraph(), and Editor::paste().
void Transition::setStartState | ( | State * | state | ) |
Definition at line 408 of file transition.cpp.
References adjust(), and startState.
QPainterPath Transition::shape | ( | ) | const [virtual] |
Definition at line 238 of file transition.cpp.
References getClickPath().
Referenced by TransitionLoop::paint(), and paint().
void Transition::showErrorReport | ( | const QString & | reportText = QString("") |
) | const [protected] |
Definition at line 833 of file transition.cpp.
References editor, getDestinationState(), and getSourceState().
Referenced by getCharacters().
virtual void Transition::unassign | ( | ) | [pure virtual] |
Implemented in OneStateTransition, and TwoStatesTransition.
Referenced by State::deleteTransitions(), and Editor::removeFromListsAndScene().
void Editor::exportToGraphML | ( | const QString & | fn | ) | [friend] |
friend class NextLabelsDialog [friend] |
Definition at line 47 of file transition.h.
friend class Parser [friend] |
Definition at line 45 of file transition.h.
friend class TransitionEditExtendedCommand [friend] |
Definition at line 49 of file transition.h.
friend class TransitionEditWithDelCommand [friend] |
Definition at line 48 of file transition.h.
friend class TransitionExtendedDialog [friend] |
Definition at line 46 of file transition.h.
friend struct TransitionSerializer [friend] |
Definition at line 51 of file transition.h.
friend class TransitionStyleChangeCommand [friend] |
Definition at line 50 of file transition.h.
bool Transition::checked [protected] |
coloring when selected
Definition at line 207 of file transition.h.
Referenced by TransitionLoop::paint(), paint(), and setChecked().
const QColor Transition::checkedColor [protected] |
Definition at line 208 of file transition.h.
Referenced by TransitionLoop::paint(), paint(), and setChecked().
QString Transition::dimEdgeLabelColor [protected] |
Definition at line 202 of file transition.h.
Referenced by addNextLabel(), Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getLabelColor(), getVCParams(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), setChecked(), setDimmed(), TransitionExtendedDialog::setParams(), Transition(), TransitionArc::TransitionArc(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionLine::TransitionLine(), TransitionLoop::TransitionLoop(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionVArc::TransitionVArc(), TransitionVCurve::TransitionVCurve(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
float Transition::dimEdgeLineCoef [protected] |
Definition at line 201 of file transition.h.
Referenced by TransitionEditWithDelCommand::copyExtendedParameters(), Editor::exportToGraphML(), getVCParams(), setDimEdgeLineCoef(), setDimmed(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), and TransitionStyleChangeCommand::TransitionStyleChangeCommand().
QString Transition::dimEdgeLineColor [protected] |
Definition at line 200 of file transition.h.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getColor(), getVCParams(), TransitionLoop::paint(), paint(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
Qt::PenStyle Transition::dimEdgeLineStyle [protected] |
Definition at line 199 of file transition.h.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getVCParams(), TransitionLoop::paint(), paint(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
bool Transition::dimmed [protected] |
Definition at line 175 of file transition.h.
Referenced by addNextLabel(), getColor(), getLabelColor(), getVCParams(), isDimmed(), TransitionLoop::paint(), paint(), setChecked(), setDimEdgeLineCoef(), setDimmed(), setEdgeLineWidth(), and Transition().
QString Transition::edgeLabelColor [protected] |
Definition at line 183 of file transition.h.
Referenced by addNextLabel(), Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getLabelColor(), getVCParams(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), setChecked(), setDimmed(), TransitionExtendedDialog::setParams(), Transition(), TransitionArc::TransitionArc(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionLine::TransitionLine(), TransitionLoop::TransitionLoop(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionVArc::TransitionVArc(), TransitionVCurve::TransitionVCurve(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
float Transition::edgeLabelScale [protected] |
Definition at line 184 of file transition.h.
Referenced by TransitionEditWithDelCommand::copyExtendedParameters(), Editor::exportToGraphML(), getVCParams(), setEdgeLabelScale(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), and TransitionStyleChangeCommand::TransitionStyleChangeCommand().
float Transition::edgeLineBorderCoef [protected] |
Definition at line 190 of file transition.h.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getVCParams(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
QString Transition::edgeLineBorderColor [protected] |
Definition at line 191 of file transition.h.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getVCParams(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
QString Transition::edgeLineColor [protected] |
Definition at line 182 of file transition.h.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getColor(), getVCParams(), TransitionLoop::paint(), paint(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
float Transition::edgeLineDblCoef [protected] |
Definition at line 193 of file transition.h.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getVCParams(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
float Transition::edgeLineDblSep [protected] |
Definition at line 194 of file transition.h.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getVCParams(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
bool Transition::edgeLineDblStatus [protected] |
Definition at line 185 of file transition.h.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getVCParams(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
Qt::PenStyle Transition::edgeLineStyle [protected] |
Definition at line 180 of file transition.h.
Referenced by Parser::checkTrParam(), TransitionEditWithDelCommand::copyExtendedParameters(), TransitionSerializer::createTransition(), Editor::exportToGraphML(), getVCParams(), TransitionLoop::paint(), paint(), TransitionStyleChangeCommand::redo(), TransitionEditExtendedCommand::redo(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), TransitionStyleChangeCommand::undo(), and TransitionEditExtendedCommand::undo().
float Transition::edgeLineWidth [protected] |
Definition at line 181 of file transition.h.
Referenced by TransitionEditWithDelCommand::copyExtendedParameters(), Editor::exportToGraphML(), getVCParams(), setDimmed(), setEdgeLineWidth(), TransitionExtendedDialog::setParams(), Transition(), TransitionEditExtendedCommand::TransitionEditExtendedCommand(), and TransitionStyleChangeCommand::TransitionStyleChangeCommand().
Editor* Transition::editor [protected] |
Definition at line 161 of file transition.h.
Referenced by getEditor(), getVCParams(), mouseDoubleClickEvent(), TwoStatesTransition::mouseReleaseEvent(), OneStateTransition::mouseReleaseEvent(), showErrorReport(), and Transition().
QPointF Transition::endPoint [protected] |
Definition at line 164 of file transition.h.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLine::adjust(), TransitionArc::adjust(), TwoStatesTransition::paint(), and Transition().
State * Transition::endState [protected] |
Definition at line 163 of file transition.h.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLine::adjust(), TransitionArc::adjust(), TwoStatesTransition::assign(), getEndState(), TransitionVCurve::getVCCommand(), TransitionVArc::getVCCommand(), TransitionLine::getVCCommand(), TransitionArc::getVCCommand(), hasEndState(), setEndState(), Transition(), and TwoStatesTransition::unassign().
LabelX* Transition::label [protected] |
Definition at line 167 of file transition.h.
Referenced by boundingRect(), createShape(), getCharacters(), getCharactersOccurences(), getLabel(), getLabelPos(), getLabelText(), TransitionVCurve::getVCCommand(), TransitionVArc::getVCCommand(), TransitionLoop::getVCCommand(), TransitionLine::getVCCommand(), TransitionArc::getVCCommand(), setChecked(), setDimmed(), setEdgeLabelScale(), setLabelPos(), TransitionVCurve::setLabelPosition(), TransitionVArc::setLabelPosition(), TransitionLoop::setLabelPosition(), TransitionLine::setLabelPosition(), TransitionArc::setLabelPosition(), setLabelText(), setSelected(), TransitionArc::TransitionArc(), TransitionLine::TransitionLine(), TransitionLoop::TransitionLoop(), TransitionSELine::TransitionSELine(), TransitionVArc::TransitionVArc(), TransitionVCurve::TransitionVCurve(), and ~Transition().
bool Transition::leftOriented [protected] |
Reimplemented in TwoStatesTransition.
Definition at line 176 of file transition.h.
Referenced by TransitionLoop::TransitionLoop().
QPolygonF Transition::m_arrowPoints [protected] |
default transition arrow, angle 0 degrees, pointing to point 0,0
Definition at line 159 of file transition.h.
Referenced by TransitionSELine::adjust(), getArrowPolygon(), and Transition().
QPainterPath Transition::m_clickPath [protected] |
holds area for mouse click
Definition at line 150 of file transition.h.
Referenced by createStrokes(), and getClickPath().
int Transition::m_labelFontSize [protected] |
Definition at line 166 of file transition.h.
Referenced by NextLabelsDialog::addLabel(), TransitionSerializer::createTransition(), Parser::Label_r(), setEdgeLabelScale(), Transition(), TransitionArc::TransitionArc(), TransitionLine::TransitionLine(), TransitionLoop::TransitionLoop(), TransitionVArc::TransitionVArc(), and TransitionVCurve::TransitionVCurve().
EMouseClick Transition::m_lastMouseClickType [protected] |
Definition at line 210 of file transition.h.
Referenced by mouseDoubleClickEvent(), mousePressEvent(), TwoStatesTransition::mouseReleaseEvent(), and OneStateTransition::mouseReleaseEvent().
float Transition::m_lineWidth [protected] |
Definition at line 205 of file transition.h.
Referenced by createStrokes(), TransitionLoop::paint(), paint(), setDimEdgeLineCoef(), setDimmed(), setEdgeLineWidth(), and Transition().
QPainterPath Transition::m_selectionPath [protected] |
holds area showed when item is selected
Definition at line 151 of file transition.h.
Referenced by createStrokes(), and getSelectionPath().
TLabelXList Transition::nextLabels [protected] |
next labels (command , ) - stored as pair item + isLeft
Definition at line 170 of file transition.h.
Referenced by addNextLabel(), boundingRect(), createShape(), NextLabelsDialog::deleteLabel(), NextLabelsDialog::editLabel(), getCharacters(), getCharactersOccurences(), getNextLabels(), getNextLabelsVCCommand(), NextLabelsDialog::NextLabelsDialog(), TransitionEditWithDelCommand::redo(), removeNextLabel(), setChecked(), setDimmed(), setEdgeLabelScale(), setLabelPosition(), setSelected(), TransitionEditWithDelCommand::undo(), and ~Transition().
QPainterPath Transition::p [protected] |
path of transition
Definition at line 173 of file transition.h.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionLine::adjust(), TransitionSELine::adjust(), TransitionArc::adjust(), createStrokes(), TransitionLoop::paint(), paint(), TransitionLoop::path(), path(), setDimEdgeLineCoef(), setDimmed(), setEdgeLineWidth(), and setLabelPosition().
QPolygonF Transition::pa [protected] |
arrow polygon -> transformed and rotatted m_arrowPoints
Definition at line 172 of file transition.h.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionLine::adjust(), TransitionSELine::adjust(), TransitionArc::adjust(), boundingRect(), createShape(), TransitionLoop::paint(), and paint().
QPointF Transition::startPoint [protected] |
Definition at line 164 of file transition.h.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionLine::adjust(), TransitionSELine::adjust(), TransitionArc::adjust(), and TwoStatesTransition::paint().
State* Transition::startState [protected] |
Definition at line 163 of file transition.h.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionLine::adjust(), TransitionSELine::adjust(), TransitionArc::adjust(), TwoStatesTransition::assign(), OneStateTransition::assign(), TransitionLoop::getEndState(), getStartState(), getStartStateName(), TransitionVCurve::getVCCommand(), TransitionVArc::getVCCommand(), TransitionLoop::getVCCommand(), TransitionLine::getVCCommand(), TransitionSELine::getVCCommand(), TransitionArc::getVCCommand(), setStartState(), TwoStatesTransition::unassign(), and OneStateTransition::unassign().