#include <state.h>
Public Member Functions | |
State (const QPoint &position, Editor *parent, const QString label="", const QString name="", bool dBorder=false, bool dim=false) | |
State () | |
virtual | ~State () |
virtual void | addTransition (Transition *transition) |
void | adjustTransitions () |
virtual QRectF | boundingRect () const |
void | clearTransitionList () |
virtual void | deleteTransitions () |
virtual int | getHeight () const =0 |
virtual QString | getLabel () const |
virtual QPolygonF | getMyPolygon () const |
virtual QString | getName () const |
int | getTextAscent () const |
int | getTextDescent () const |
int | getTextHeight () const |
int | getTextWidth () const |
QList< Transition * > | getTransitionList () |
virtual QString | getTypeName () const =0 |
virtual QString | getVCCommand () const |
virtual bool | getVCParams (QTextStream &out, StatePrevParams &prevParams) |
virtual int | getWidth () const =0 |
virtual bool | isAutoNammed () const |
virtual bool | isDimmed () const |
virtual bool | isDoubleBorder () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)=0 |
virtual void | paintSelectionDecoration (QPainter *painter) |
virtual void | removeTransition (Transition *transition) |
virtual void | setAutoNammed (bool autoNammed) |
void | setChecked (bool checked=true) |
virtual void | setDimmed (bool dim) |
void | setDimStateLineCoef (float lineCoef) |
virtual void | setDoubleBorder (bool dBroder) |
virtual void | setLabel (const QString &label) |
void | setMarked (bool marked) |
virtual void | setName (const QString &name) |
void | setStateLabelScale (float labelScale) |
void | setStateLineDoubleCoef (float lineCoef) |
void | setStateLineDoubleSep (float lineSep) |
void | setStateLineWidth (float lineWidth) |
void | setTransitionList (const QList< Transition * > &trList) |
virtual QPainterPath | shape () const =0 |
Support methods for IState creation | |
bool | isInitial () const |
bool | isFinal () const |
QList< State * > | getAccessibleStates () const |
returns list of accessible states from this state on sigle transition, ignores orientation | |
QList< Transition * > | getOutgoingTransitions () const |
Protected Member Functions | |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
give know about moving with state to all connected trasitions | |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
moving with state | |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
mouseEvents | |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual void | updateMyPolygon ()=0 |
compute states polygon | |
Protected Attributes | |
bool | autoNammed |
atomatic naming | |
bool | checked |
const QColor | checkedColor |
bool | dimmed |
by default solid gray | |
bool | doubleBorder |
if true, it is FinalState | |
Editor * | editor |
QString | label |
original label | |
EMouseClick | m_lastMouseClickType |
float | m_lineWidth |
bool | m_marked |
QString | m_origColor |
stores original color before state is marked | |
bool | m_otherMoved |
for moving with multiple states | |
QPainterPath | myPath |
state painter path, corresponding to myPolygon | |
QPolygonF | myPolygon |
polygon to finding intersection with transitions | |
QString | name |
name of state | |
QPointF | oldPos |
due to Undo and Redo | |
int | stateLabelSize |
StringProcessor * | stringProcessor |
handles greek symbols, provide painting and export funcitons | |
QList< Transition * > | transitionList |
transitions connected to state | |
state parameters | |
Qt::PenStyle | stateLineStyle |
float | stateLineWidth |
QString | stateLineColor |
QString | stateLabelColor |
float | stateLabelScale |
Qt::BrushStyle | stateFillStatus |
QString | stateFillColor |
state parametres dimmed | |
Qt::PenStyle | dimStateLineStyle |
QString | dimStateLineColor |
float | dimStateLineCoef |
QString | dimStateLabelColor |
QString | dimStateFillColor |
state parametres double | |
float | stateLineDoubleCoef |
float | stateLineDoubleSep |
Friends | |
void | Editor::exportToGraphML (const QString &fn) |
class | Parser |
class | StateEditExtendedCommand |
class | StateEditWithDelCommand |
class | StateExtendedDialog |
struct | StateSerializer |
class | StateStyleChangeCommand |
Definition at line 35 of file state.h.
State::State | ( | const QPoint & | position, | |
Editor * | parent, | |||
const QString | label = "" , |
|||
const QString | name = "" , |
|||
bool | dBorder = false , |
|||
bool | dim = false | |||
) |
Definition at line 25 of file state.cpp.
References dimmed, Editor::dimStateFillColor, dimStateFillColor, Editor::dimStateLabelColor, dimStateLabelColor, Editor::dimStateLineCoef, dimStateLineCoef, Editor::dimStateLineColor, dimStateLineColor, Editor::dimStateLineStyle, dimStateLineStyle, editor, label, m_lineWidth, STATE_LABEL_SIZE, Editor::stateFillColor, stateFillColor, Editor::stateFillStatus, stateFillStatus, Editor::stateLabelColor, stateLabelColor, Editor::stateLabelScale, stateLabelScale, stateLabelSize, Editor::stateLineColor, stateLineColor, Editor::stateLineDoubleCoef, stateLineDoubleCoef, Editor::stateLineDoubleSep, stateLineDoubleSep, Editor::stateLineStyle, stateLineStyle, Editor::stateLineWidth, stateLineWidth, stringProcessor, and Z_STATE.
State::~State | ( | ) | [virtual] |
Definition at line 73 of file state.cpp.
References DBGLOG, deleteTransitions(), and stringProcessor.
void State::addTransition | ( | Transition * | transition | ) | [virtual] |
Definition at line 219 of file state.cpp.
References RELLOG, and transitionList.
Referenced by TwoStatesTransition::assign(), and OneStateTransition::assign().
void State::adjustTransitions | ( | ) |
Definition at line 343 of file state.cpp.
References Transition::adjust(), and transitionList.
Referenced by itemChange(), StateEditExtendedCommand::redo(), StateEditWithDelCommand::redo(), StateVar::setLabel(), StateEditExtendedCommand::undo(), and StateEditWithDelCommand::undo().
QRectF State::boundingRect | ( | ) | const [virtual] |
Definition at line 286 of file state.cpp.
References doubleBorder, getHeight(), getTextHeight(), getTextWidth(), getWidth(), m_lineWidth, stateLineDoubleCoef, and stateLineDoubleSep.
Referenced by Editor::getExpandedGridRect(), StateVar::paint(), StateNormal::paint(), paintSelectionDecoration(), and SelectionSerializer::SelectionSerializer().
void State::clearTransitionList | ( | ) | [inline] |
Definition at line 89 of file state.h.
References transitionList.
Referenced by StateEditWithDelCommand::redo(), and StateEditWithDelCommand::undo().
void State::deleteTransitions | ( | ) | [virtual] |
Definition at line 233 of file state.cpp.
References transitionList, and Transition::unassign().
Referenced by ~State().
QList< State * > State::getAccessibleStates | ( | ) | const |
returns list of accessible states from this state on sigle transition, ignores orientation
only for BFS - finding automata, so orientation of transition is skipped
Definition at line 616 of file state.cpp.
References Transition::getEndState(), Transition::getStartState(), and transitionList.
virtual int State::getHeight | ( | ) | const [pure virtual] |
Implemented in StateNormal, and StateVar.
Referenced by TransitionSELine::adjust(), and boundingRect().
virtual QString State::getLabel | ( | ) | const [inline, virtual] |
Definition at line 74 of file state.h.
References label.
Referenced by Editor::editState(), Editor::exportToGraphML(), Editor::getAutomaton(), getVCCommand(), Editor::showPopup(), and StateEditCommand::StateEditCommand().
QPolygonF State::getMyPolygon | ( | ) | const [virtual] |
Definition at line 80 of file state.cpp.
References myPolygon.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionLine::adjust(), and TransitionArc::adjust().
virtual QString State::getName | ( | ) | const [inline, virtual] |
Definition at line 76 of file state.h.
References name.
Referenced by Editor::addToListsAndScene(), createCommandString(), SelectionSerializer::createItems(), TransitionSerializer::createTransition(), GraphVizDrawAlgorithm::drawAutomaton(), FarthestFinalDrawAlgorithm::drawAutomaton(), NaiveDrawAlgorithm::drawAutomaton(), Editor::editState(), Editor::exportToGraphML(), Editor::getAutomaton(), Transition::getEndStateName(), Transition::getStartStateName(), TransitionVCurve::getVCCommand(), TransitionVArc::getVCCommand(), TransitionLoop::getVCCommand(), TransitionLine::getVCCommand(), TransitionSELine::getVCCommand(), TransitionArc::getVCCommand(), getVCCommand(), Editor::insertState(), Editor::removeFromListsAndScene(), Editor::renameState(), Editor::showPopup(), StateEditCommand::StateEditCommand(), and transitionCountBetween().
QList< Transition * > State::getOutgoingTransitions | ( | ) | const |
Definition at line 599 of file state.cpp.
References Transition::getStartState(), Transition::getTypeName(), and transitionList.
Referenced by Editor::detectAutomataSettings(), Editor::getExpandedGridRect(), and transitionCountBetween().
int State::getTextAscent | ( | ) | const [inline] |
Definition at line 65 of file state.h.
References StringProcessor::getAscent(), and stringProcessor.
Referenced by StateVar::paint(), and StateNormal::paint().
int State::getTextDescent | ( | ) | const [inline] |
Definition at line 66 of file state.h.
References StringProcessor::getDescent(), and stringProcessor.
Referenced by StateVar::paint(), and StateNormal::paint().
int State::getTextHeight | ( | ) | const [inline] |
Definition at line 64 of file state.h.
References StringProcessor::getHeight(), and stringProcessor.
Referenced by boundingRect().
int State::getTextWidth | ( | ) | const [inline] |
Definition at line 63 of file state.h.
References StringProcessor::getWidth(), and stringProcessor.
Referenced by boundingRect(), StateVar::paint(), and StateNormal::paint().
QList<Transition *> State::getTransitionList | ( | ) | [inline] |
Definition at line 87 of file state.h.
References transitionList.
Referenced by Editor::generateGraph(), ItemsAddCommand::redo(), GeneratedGraphAddCommand::redo(), StateDeleteCommand::StateDeleteCommand(), StateEditWithDelCommand::StateEditWithDelCommand(), ItemsAddCommand::undo(), and GeneratedGraphAddCommand::undo().
virtual QString State::getTypeName | ( | ) | const [pure virtual] |
Implemented in StateNormal, and StateVar.
Referenced by Editor::editState(), Editor::exportToGraphML(), and getVCCommand().
QString State::getVCCommand | ( | ) | const [virtual] |
Definition at line 204 of file state.cpp.
References editor, getLabel(), getName(), getTypeName(), and Editor::mapToGrid().
Referenced by Editor::saveGraph().
bool State::getVCParams | ( | QTextStream & | out, | |
StatePrevParams & | prevParams | |||
) | [virtual] |
Definition at line 85 of file state.cpp.
References dimmed, StatePrevParams::dimStateFillColor, dimStateFillColor, StatePrevParams::dimStateLabelColor, dimStateLabelColor, StatePrevParams::dimStateLineCoef, dimStateLineCoef, StatePrevParams::dimStateLineColor, dimStateLineColor, StatePrevParams::dimStateLineStyle, dimStateLineStyle, doubleBorder, editor, Editor::stateFillColor, StatePrevParams::stateFillColor, stateFillColor, Editor::stateFillStatus, StatePrevParams::stateFillStatus, stateFillStatus, Editor::stateLabelColor, StatePrevParams::stateLabelColor, stateLabelColor, StatePrevParams::stateLabelScale, stateLabelScale, Editor::stateLineColor, StatePrevParams::stateLineColor, stateLineColor, StatePrevParams::stateLineDoubleCoef, stateLineDoubleCoef, StatePrevParams::stateLineDoubleSep, stateLineDoubleSep, Editor::stateLineStyle, StatePrevParams::stateLineStyle, stateLineStyle, StatePrevParams::stateLineWidth, stateLineWidth, trFillStatus(), and trLineStyle().
Referenced by Editor::saveGraph().
virtual int State::getWidth | ( | ) | const [pure virtual] |
Implemented in StateNormal, and StateVar.
Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionLoop::adjust(), TransitionSELine::adjust(), TransitionArc::adjust(), and boundingRect().
virtual bool State::isAutoNammed | ( | ) | const [inline, virtual] |
Definition at line 78 of file state.h.
References autoNammed.
Referenced by Editor::editState(), and StateEditCommand::StateEditCommand().
virtual bool State::isDimmed | ( | ) | const [inline, virtual] |
Definition at line 77 of file state.h.
References dimmed.
Referenced by Editor::editState(), Editor::exportToGraphML(), Editor::saveGraph(), setMarked(), and StateEditCommand::StateEditCommand().
virtual bool State::isDoubleBorder | ( | ) | const [inline, virtual] |
Definition at line 75 of file state.h.
References doubleBorder.
Referenced by Editor::exportToGraphML(), and StateEditCommand::StateEditCommand().
bool State::isFinal | ( | ) | const |
Definition at line 584 of file state.cpp.
References doubleBorder, Transition::getTypeName(), and transitionList.
Referenced by Editor::getAutomaton(), and Editor::getFinalStates().
bool State::isInitial | ( | ) | const |
Definition at line 571 of file state.cpp.
References Transition::getTypeName(), and transitionList.
Referenced by Editor::editState(), Editor::getAutomaton(), and Editor::getInitialStates().
QVariant State::itemChange | ( | GraphicsItemChange | change, | |
const QVariant & | value | |||
) | [protected, virtual] |
give know about moving with state to all connected trasitions
Definition at line 329 of file state.cpp.
References adjustTransitions().
void State::mouseDoubleClickEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 414 of file state.cpp.
References DBGLOG_ME, editor, Editor::getAction(), m_lastMouseClickType, and setChecked().
void State::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
moving with state
Definition at line 424 of file state.cpp.
References editor, eMouseLeftClick, eMouseMove, Editor::getAction(), GRID_STEP, Editor::itemAlignToGrid(), m_lastMouseClickType, and Editor::snapped().
void State::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
mouseEvents
Definition at line 351 of file state.cpp.
References DBGLOG_ME, editor, Editor::eSelection, Editor::getAction(), m_lastMouseClickType, oldPos, and setChecked().
void State::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 381 of file state.cpp.
References DBGLOG_ME, editor, Editor::editState(), eMouseDoubleClick, eMouseLeftClick, eMouseMiddleClick, eMouseRightClick, Editor::eSelection, Editor::getAction(), Editor::insertTransition(), m_lastMouseClickType, oldPos, setChecked(), Editor::setSelectedState(), Editor::showPopup(), and Editor::stateMoved().
virtual void State::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option, | |||
QWidget * | widget | |||
) | [pure virtual] |
Implemented in StateNormal, and StateVar.
void State::paintSelectionDecoration | ( | QPainter * | painter | ) | [virtual] |
Definition at line 309 of file state.cpp.
References SelectedColor::a, SelectedColor::b, boundingRect(), SelectedColor::g, and SelectedColor::r.
Referenced by StateVar::paint(), and StateNormal::paint().
void State::removeTransition | ( | Transition * | transition | ) | [virtual] |
Definition at line 227 of file state.cpp.
References transitionList.
Referenced by TwoStatesTransition::unassign(), and OneStateTransition::unassign().
void State::setAutoNammed | ( | bool | autoNammed | ) | [virtual] |
Definition at line 281 of file state.cpp.
References autoNammed.
Referenced by Editor::insertState(), Editor::paste(), StateEditCommand::redo(), and StateEditCommand::undo().
void State::setChecked | ( | bool | checked = true |
) |
Definition at line 321 of file state.cpp.
References DBGLOG_ME, and DBGPAR.
Referenced by Editor::editState(), Editor::insertTransition(), mouseDoubleClickEvent(), mousePressEvent(), Editor::mousePressEvent(), mouseReleaseEvent(), Editor::setAction(), and Editor::showPopup().
void State::setDimmed | ( | bool | dim | ) | [virtual] |
Definition at line 267 of file state.cpp.
References dimmed, dimStateLineCoef, m_lineWidth, stateLineWidth, and updateMyPolygon().
Referenced by StateEditCommand::redo(), and StateEditCommand::undo().
void State::setDimStateLineCoef | ( | float | lineCoef | ) |
Definition at line 499 of file state.cpp.
References dimmed, dimStateLineCoef, m_lineWidth, and updateMyPolygon().
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), Parser::StateDeclaration(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
void State::setDoubleBorder | ( | bool | dBroder | ) | [virtual] |
Definition at line 256 of file state.cpp.
References doubleBorder, and updateMyPolygon().
Referenced by NaiveDrawAlgorithm::drawAutomaton(), StateEditCommand::redo(), and StateEditCommand::undo().
void State::setLabel | ( | const QString & | label | ) | [virtual] |
Reimplemented in StateVar.
Definition at line 244 of file state.cpp.
References label, StringProcessor::setText(), and stringProcessor.
Referenced by StateEditCommand::redo(), and StateEditCommand::undo().
void State::setMarked | ( | bool | marked | ) |
Definition at line 537 of file state.cpp.
References dimStateFillColor, isDimmed(), m_marked, m_origColor, stateFillColor, and toMarkerColor().
Referenced by StatesSetMarkedCommand::redo(), and StatesSetMarkedCommand::undo().
void State::setName | ( | const QString & | name | ) | [virtual] |
Definition at line 251 of file state.cpp.
References name.
Referenced by Editor::renameState().
void State::setStateLabelScale | ( | float | labelScale | ) |
Definition at line 474 of file state.cpp.
References StringProcessor::setFontSize(), stateLabelScale, stateLabelSize, stringProcessor, and updateMyPolygon().
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), Parser::StateDeclaration(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
void State::setStateLineDoubleCoef | ( | float | lineCoef | ) |
Definition at line 513 of file state.cpp.
References doubleBorder, stateLineDoubleCoef, and updateMyPolygon().
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), Parser::StateDeclaration(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
void State::setStateLineDoubleSep | ( | float | lineSep | ) |
Definition at line 525 of file state.cpp.
References doubleBorder, stateLineDoubleSep, and updateMyPolygon().
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), Parser::StateDeclaration(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
void State::setStateLineWidth | ( | float | lineWidth | ) |
Definition at line 485 of file state.cpp.
References dimmed, m_lineWidth, stateLineWidth, and updateMyPolygon().
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), Parser::StateDeclaration(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
void State::setTransitionList | ( | const QList< Transition * > & | trList | ) | [inline] |
Definition at line 88 of file state.h.
References transitionList.
Referenced by StateEditWithDelCommand::redo(), and StateEditWithDelCommand::undo().
virtual QPainterPath State::shape | ( | ) | const [pure virtual] |
Implemented in StateNormal, and StateVar.
virtual void State::updateMyPolygon | ( | ) | [protected, pure virtual] |
compute states polygon
Implemented in StateNormal, and StateVar.
Referenced by setDimmed(), setDimStateLineCoef(), setDoubleBorder(), setStateLabelScale(), setStateLineDoubleCoef(), setStateLineDoubleSep(), and setStateLineWidth().
void Editor::exportToGraphML | ( | const QString & | fn | ) | [friend] |
friend class StateEditExtendedCommand [friend] |
friend class StateEditWithDelCommand [friend] |
friend class StateExtendedDialog [friend] |
friend struct StateSerializer [friend] |
friend class StateStyleChangeCommand [friend] |
bool State::autoNammed [protected] |
atomatic naming
Definition at line 132 of file state.h.
Referenced by isAutoNammed(), and setAutoNammed().
bool State::checked [protected] |
Definition at line 171 of file state.h.
Referenced by StateVar::paint(), and StateNormal::paint().
const QColor State::checkedColor [protected] |
Definition at line 172 of file state.h.
Referenced by StateVar::paint(), and StateNormal::paint().
bool State::dimmed [protected] |
by default solid gray
Definition at line 138 of file state.h.
Referenced by getVCParams(), isDimmed(), StateVar::paint(), StateNormal::paint(), setDimmed(), setDimStateLineCoef(), setStateLineWidth(), and State().
QString State::dimStateFillColor [protected] |
Definition at line 159 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), setMarked(), StateExtendedDialog::setParams(), State(), Parser::StateDeclaration(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
QString State::dimStateLabelColor [protected] |
Definition at line 158 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), StateExtendedDialog::setParams(), State(), Parser::StateDeclaration(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
float State::dimStateLineCoef [protected] |
Definition at line 157 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), Editor::exportToGraphML(), getVCParams(), setDimmed(), setDimStateLineCoef(), StateExtendedDialog::setParams(), State(), StateEditExtendedCommand::StateEditExtendedCommand(), and StateStyleChangeCommand::StateStyleChangeCommand().
QString State::dimStateLineColor [protected] |
Definition at line 156 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), StateExtendedDialog::setParams(), State(), Parser::StateDeclaration(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
Qt::PenStyle State::dimStateLineStyle [protected] |
Definition at line 155 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), StateExtendedDialog::setParams(), State(), Parser::StateDeclaration(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
bool State::doubleBorder [protected] |
if true, it is FinalState
Definition at line 140 of file state.h.
Referenced by boundingRect(), StateVar::getTypeName(), StateNormal::getTypeName(), getVCParams(), isDoubleBorder(), isFinal(), StateVar::paint(), StateNormal::paint(), setDoubleBorder(), setStateLineDoubleCoef(), setStateLineDoubleSep(), StateVar::updateMyPolygon(), and StateNormal::updateMyPolygon().
Editor* State::editor [protected] |
Definition at line 123 of file state.h.
Referenced by getVCCommand(), getVCParams(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and State().
QString State::label [protected] |
original label
Definition at line 135 of file state.h.
Referenced by getLabel(), setLabel(), and State().
EMouseClick State::m_lastMouseClickType [protected] |
Definition at line 179 of file state.h.
Referenced by mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
float State::m_lineWidth [protected] |
Definition at line 169 of file state.h.
Referenced by boundingRect(), StateVar::paint(), StateNormal::paint(), setDimmed(), setDimStateLineCoef(), setStateLineWidth(), State(), StateVar::updateMyPolygon(), and StateNormal::updateMyPolygon().
bool State::m_marked [protected] |
Definition at line 175 of file state.h.
Referenced by setMarked().
QString State::m_origColor [protected] |
stores original color before state is marked
Definition at line 174 of file state.h.
Referenced by setMarked().
bool State::m_otherMoved [protected] |
QPainterPath State::myPath [protected] |
state painter path, corresponding to myPolygon
Definition at line 127 of file state.h.
Referenced by StateVar::shape(), StateNormal::shape(), StateVar::updateMyPolygon(), and StateNormal::updateMyPolygon().
QPolygonF State::myPolygon [protected] |
polygon to finding intersection with transitions
Definition at line 126 of file state.h.
Referenced by getMyPolygon(), StateVar::updateMyPolygon(), and StateNormal::updateMyPolygon().
QString State::name [protected] |
QPointF State::oldPos [protected] |
due to Undo and Redo
Definition at line 124 of file state.h.
Referenced by mousePressEvent(), and mouseReleaseEvent().
QString State::stateFillColor [protected] |
Definition at line 150 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), setMarked(), StateExtendedDialog::setParams(), State(), Parser::StateDeclaration(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
Qt::BrushStyle State::stateFillStatus [protected] |
Definition at line 149 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), StateExtendedDialog::setParams(), State(), Parser::StateDeclaration(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
QString State::stateLabelColor [protected] |
Definition at line 147 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), StateExtendedDialog::setParams(), State(), Parser::StateDeclaration(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
float State::stateLabelScale [protected] |
Definition at line 148 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), Editor::exportToGraphML(), getVCParams(), StateExtendedDialog::setParams(), setStateLabelScale(), State(), StateEditExtendedCommand::StateEditExtendedCommand(), and StateStyleChangeCommand::StateStyleChangeCommand().
int State::stateLabelSize [protected] |
Definition at line 168 of file state.h.
Referenced by StateSerializer::createState(), setStateLabelScale(), and State().
QString State::stateLineColor [protected] |
Definition at line 146 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), StateExtendedDialog::setParams(), State(), Parser::StateDeclaration(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
float State::stateLineDoubleCoef [protected] |
Definition at line 164 of file state.h.
Referenced by boundingRect(), StateEditWithDelCommand::copyExtendedParameters(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateExtendedDialog::setParams(), setStateLineDoubleCoef(), State(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateVar::updateMyPolygon(), and StateNormal::updateMyPolygon().
float State::stateLineDoubleSep [protected] |
Definition at line 165 of file state.h.
Referenced by boundingRect(), StateEditWithDelCommand::copyExtendedParameters(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateExtendedDialog::setParams(), setStateLineDoubleSep(), State(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateVar::updateMyPolygon(), and StateNormal::updateMyPolygon().
Qt::PenStyle State::stateLineStyle [protected] |
Definition at line 144 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), StateSerializer::createState(), Editor::exportToGraphML(), getVCParams(), StateVar::paint(), StateNormal::paint(), StateStyleChangeCommand::redo(), StateEditExtendedCommand::redo(), StateExtendedDialog::setParams(), State(), Parser::StateDeclaration(), StateEditExtendedCommand::StateEditExtendedCommand(), StateStyleChangeCommand::StateStyleChangeCommand(), StateStyleChangeCommand::undo(), and StateEditExtendedCommand::undo().
float State::stateLineWidth [protected] |
Definition at line 145 of file state.h.
Referenced by StateEditWithDelCommand::copyExtendedParameters(), Editor::exportToGraphML(), getVCParams(), setDimmed(), StateExtendedDialog::setParams(), setStateLineWidth(), State(), StateEditExtendedCommand::StateEditExtendedCommand(), and StateStyleChangeCommand::StateStyleChangeCommand().
StringProcessor* State::stringProcessor [protected] |
handles greek symbols, provide painting and export funcitons
Definition at line 136 of file state.h.
Referenced by getTextAscent(), getTextDescent(), getTextHeight(), getTextWidth(), StateVar::getWidth(), StateVar::paint(), StateNormal::paint(), setLabel(), setStateLabelScale(), State(), and ~State().
QList<Transition *> State::transitionList [protected] |
transitions connected to state
Definition at line 130 of file state.h.
Referenced by addTransition(), adjustTransitions(), clearTransitionList(), deleteTransitions(), getAccessibleStates(), getOutgoingTransitions(), getTransitionList(), isFinal(), isInitial(), removeTransition(), and setTransitionList().