#include <editor.h>
Collaboration diagram for Editor:Public Types | |
| enum | EAction { eSelection, eInsertState, eInsertTransition } |
| enum | EMouseAction { eNoMouseAction, eMoveItem, eMoveMultItem, eInsertItem, eSelectItem, eSelectMultipleItems, eShowPopup, eShowSelectionPopup } |
holds current mouse aciton, affected by accelerators (CTRL, SHIFT) and by which mouse button is pressed More... | |
| enum | Format { vcg, tex, gml, eps, svg, png, bmp, xpm } |
| typedef QList< State * > | TStateList |
| typedef QMap< QString, State * > | TStateMap |
| typedef QList< Transition * > | TTransitionList |
Public Slots | |
| void | canRedoChangedSlot (bool can) |
| void | canUndoChangedSlot (bool can) |
| void | copySelection () |
| void | copyState () |
| void | cutSelection () |
| void | cutState () |
| void | expandGrid (int bound=0) |
| void | moveState () |
| void | paste () |
| void | paste (const QPoint &insertPoint) |
| void | redo () |
| void | removeSelection () |
| void | resetZoom () |
| void | runAlgorithm () |
| sender() is QAction and its data is set as index to algorithmList | |
| void | showGridRectDialog () |
| void | showUndoView (bool show) |
| void | simulateAutomatonWork () |
| runs SimulationDialog | |
| void | slotShowFrame (bool show) |
| void | slotShowGrid (bool show) |
| void | stateMoved (State *state, const QPointF &oldPos) |
| void | undo () |
| void | zoomIn () |
| void | zoomOut () |
editing methods | |
| void | editState (State *state) |
| void | editTransition (OneStateTransition *tr) |
| void | editTransition (TwoStatesTransition *tr) |
| void | editStateStyleParams () |
| void | editTransitionStyleParams () |
extra functions | |
| void | switchAntialiasing () |
| void | generateGraph () |
| void | createLaTeXTable () |
Signals | |
| void | actionChanged (int action) |
| bool | canNewFile (bool can) |
| bool | canOpenFile (bool can) |
| bool | canRedoChanged (bool can) |
| bool | canSaveFile (bool can) |
| bool | canUndoChanged (bool can) |
| bool | canZoomIn (bool can) |
| bool | canZoomOut (bool can) |
| void | isChanged (bool changed) |
| bool | itemsAvailable (bool available) |
| void | showChanged (bool showG, bool showF) |
| bool | showUndoStackAvailable (bool available) |
| bool | toolsAvailable (bool available) |
| void | undoViewClosed () |
| bool | utilsAvailable (bool available) |
Public Member Functions | |
| Editor (MainWindow *parent=0) | |
| ~Editor () | |
| int | addAlgorithm (const QSharedPointer< IAlgorithm > &algorithm) |
| returns algorithm index | |
| void | addGraphVizDrawAlgorithm (IGraphViz *graphVizWrapper) |
| add GraphVizDrawAlgorithm which uses given GraphViz Wrapper plugin | |
| void | addToListAndScene (LabelX *pLabel) |
| void | addToListAndScene (Transition *transition) |
| void | addToListsAndScene (Transition *transition) |
| void | addToListsAndScene (State *state) |
| EAction | getAction () |
| QSharedPointer< IAutomataCreator > | getAutomataCreator () |
| returns public automata creator | |
| int | getBorder () |
| QString | getFileName () const |
| QRect | getGridRect () |
| grid coordinates | |
| State * | getStateByName (const TStateMap &stateMap, const QString &name) const |
| QList< State * > | getStateList () |
| QList< Transition * > | getTransitionList () |
| QString | getUniqueAutoName () |
| void | insertTransition () |
| bool | isAddition () const |
| bool | isChanged () const |
| returns m_undoStack's clean state | |
| bool | isPastePossible () |
| bool | isSaved () const |
| bool | isSomethingSelected () |
| bool | itemAlignToGrid (QGraphicsItem *item) |
| template<typename T > | |
| bool | itemsAlignToGrid (QList< T * > items) |
| IAutomaton::TAutomataList | loadAutomata (const QString &dialogTitle, int count, QStringList &fileNames, IAlgorithm *algorithm=NULL) |
| QPointF | mapToGrid (const QPointF &scenePos) |
| maps scene positon to grid position | |
| void | newFile () |
| void | openFile (const QString &fn) |
| void | removeFromListAndScene (Transition *transition) |
| void | removeFromListAndScene (LabelX *pLabel) |
| void | removeFromListsAndScene (State *state) |
| void | removeFromListsAndScene (Transition *transition) |
| void | removeTransition (Transition *transition) |
| void | renameState (State *state, const QString &name) |
| void | setAction (EAction action) |
| void | setBorder (int b) |
| void | setFileName (const QString &fn) |
| void | setGridRect (QRect gridRect) |
| sets new grid rect coordinates | |
| void | setSelectedState (State *state) |
| void | setSelectedTransition (Transition *transition) |
| void | setShowGridFrame (bool grid, bool frame) |
| void | setStatePrevParamsDef (StatePrevParams &prevParams) |
| void | setStatusBar (const QString &text, int ms) |
| void | setTrPrevParamsDef (EdgePrevParams &prevTrParams) |
| void | showPopup (OneStateTransition *transition, const QPointF &point) |
| void | showPopup (TwoStatesTransition *transition, const QPointF &point) |
| bool | showPopup (State *state) |
| void | slotAlignToGrid () |
| void | slotSnapToGrid () |
| bool | snapped () |
| bool | testStateName (const QString &s) |
| QPoint | toScenePos (const QPointF &gridPos) |
| converts | |
| void | update () |
Exporting methods | |
| void | exportToVaucanson (const QString &fn, bool additionals=0) |
| void | exportToGraphML (const QString &fn=0) |
| void | exportToEPS (const QString &fn) |
| void | exportToSVG (const QString &fn) |
| void | exportToPixmap (const QString &fn, Format f) |
| void | saveToFile (const QString &fn, bool latexHeader=false) |
| void | saveLaTeXHeader (QTextStream &out) |
| void | saveHeader (QTextStream &out) |
| void | saveVCSettings (QTextStream &out) |
| void | saveGraph (QTextStream &out) |
| void | saveFooter (QTextStream &out) |
| void | saveLaTeXFooter (QTextStream &out) |
Static Public Member Functions | |
| static QString | parseCharacter (const QString &text) |
| ensures that given text contains just one symbol | |
| static ITransition::TCharSet | parseCharSet (const QString &text) |
| primarilly used for parse alphabet | |
Public Attributes | |
state parameters adjustable | |
| Qt::PenStyle | stateLineStyle |
| float | stateLineWidth |
| QString | stateLineColor |
| QString | stateLabelColor |
| float | stateLabelScale |
| Qt::BrushStyle | stateFillStatus |
| QString | stateFillColor |
state parameters preset | |
| Qt::PenStyle | dimStateLineStyle |
| QString | dimStateLineColor |
| float | dimStateLineCoef |
| QString | dimStateLabelColor |
| QString | dimStateFillColor |
state parameters double | |
| float | stateLineDoubleCoef |
| float | stateLineDoubleSep |
edge parameters adjustable | |
| Qt::PenStyle | edgeLineStyle |
| float | edgeLineWidth |
| QString | edgeLineColor |
| QString | edgeLabelColor |
| float | edgeLabelScale |
| bool | edgeLineDblStatus |
transition parameters dimmed | |
| Qt::PenStyle | dimEdgeLineStyle |
| QString | dimEdgeLineColor |
| float | dimEdgeLineCoef |
| QString | dimEdgeLabelColor |
transition parameters border | |
| float | edgeLineBorderCoef |
| QString | edgeLineBorderColor |
transition parameters double | |
| float | edgeLineDblCoef |
| float | edgeLineDblSep |
Protected Types | |
| typedef QList< QSharedPointer < IAlgorithm > > | TAlgorithmList |
| typedef QList< QSharedPointer < IDrawAlgorithm > > | TDrawAlgorithmList |
Protected Member Functions | |
| void | addToUndoStack (QUndoCommand *command) |
| QList< State * > | createGraphicsItems (const QSharedPointer< IAutomaton > &automaton) |
| void | createUndoView () |
| bool | detectAutomataSettings (const QList< State * > &stateList, ITransition::TCharSet &alphabet, QString &alphabetSymbol, QString &epsilonSymbol) |
| void | drawBackground (QPainter *painter, const QRectF &rect) |
| paints grid and labels, if required | |
| QList< State * > | generateDistance (int typ, QString string, int distance, QPoint startPoint) |
| QList< State * > | generateExactMatching (QString string, QPoint startPoint) |
| QSharedPointer< AutomatonImpl > | getAutomaton (const TStateList &stateList, ITransition::TCharSet &alphabet, QString &alphabetSymbol, QString &epsilonSymbol) |
| QStringList | getDrawAlgorithms () const |
| QRect | getExpandedGridRect (const TStateList &states, int bound) |
| retunrs expanded gridRect in a way that all states will be in grid with given boundary (int grid coordinates) | |
| QList< State * > | getFinalStates (const QList< State * > &stateList) |
| QList< State * > | getInitialStates (const QList< State * > &stateList) |
| int | getNewStateNumber () |
| QRectF | getPrintRect () |
| State * | getStateByName (const QString &name) const |
| QString | getUniqueAutoName (const TStateMap &stateMap) |
| void | increaseNewStateNumber () |
| void | insertState (const QPoint &point) |
| State * | insertState (State *state) |
| used by parser | |
| void | itemsInvertSelection (QList< QGraphicsItem * > items) |
| QSharedPointer< AutomatonImpl > | loadAutomaton (const QString &dialogTitle) |
| void | mouseDoubleClickEvent (QMouseEvent *event) |
| void | mouseMoveEvent (QMouseEvent *event) |
| void | mousePressEvent (QMouseEvent *event) |
| void | mouseReleaseEvent (QMouseEvent *event) |
| void | resizeEvent (QResizeEvent *event) |
| holds background large enought (according to scene) | |
| void | scaleView (qreal scaleFactor) |
| void | setActionCursor (EAction action) |
| void | setActionInternal (EAction action) |
| void | setRightSceneRect () |
| bool | testStateName (const QString &s, const TStateMap &stateMap) |
| void | updateMenuState () |
| sets metu items enabled/disabled as necessary | |
| void | wheelEvent (QWheelEvent *event) |
Protected Attributes | |
| bool | antial |
| true if scene is rendered in anialiasing mode | |
| QPoint | br |
| bottomRight -> scene usage | |
| QRect | gridRect |
| VauCanSon-G grid metrics. | |
| TAlgorithmList | m_algorithmList |
| holds list of available algorithms | |
| int | m_currentDrawAlgorithm |
| index of lastly used drawing algorithm | |
| EMouseAction | m_currentMouseAction |
| holds current mouse action | |
| TDrawAlgorithmList | m_drawAlgorithmList |
| holds drawing algorithms | |
| bool | m_itemsMoved |
| for performance -> no undo command needed if nothing is moved | |
| EMouseClick | m_lastMouseAction |
| remembers last mouse action | |
| QPointF | m_origPos |
| original mouse position for moving with multiple states | |
| QVector< QPointF > | m_origPositions |
| original positions of selected items before moving them | |
| QRubberBand * | m_rubberBand |
| determines current selection | |
| QPoint | m_rubberBandOrigin |
| rubberBand origin point (stored on press event) | |
| bool | m_sceneChanged |
| EAction | m_selectedAction |
| holds selected editor tool | |
| bool | m_simulationIsRun |
| if simulation is running, no operations with object on scene are available | |
| bool | m_stateIsMoving |
| special selected state of editor, state is moved by mouse move, click to release this mode | |
| TStateMap | m_stateMap |
| TTransitionList | m_transitionList |
| QUndoStack * | m_undoStack |
| undo, redo functionality | |
| UndoView * | m_undoView |
| allows to show m_undoStack and operate on it | |
| qreal | m_zoomInFactor |
| zoomOutFactor = 1/m_zoomInFactor; | |
| MainWindow * | mw |
| parent window, for display messages with statusBar() | |
| int | newStateNumber |
| automatic naming as Q1, Q2, ... | |
| int | sceneBorder |
| State * | selectedState |
| for operations on states | |
| Transition * | selectedTransition |
| for operations on transitions | |
| bool | showFrame |
| bool | showGrid |
| bool | snapToGrid |
| State * | startState |
| for inserting transitions | |
popup menu | |
| QMenu * | popup |
| QAction * | popupPasteHere |
| QMenu * | popupSelection |
| QMenu * | popupState |
| QAction * | popupStateLabel |
| QMenu * | popupTransition |
| QAction * | popupTransitionLabel |
| QAction * | popupTransitionEdit |
| QAction * | popupOneStateTransitionEdit |
| QAction * | popupTwoStatesTransitionEdit |
| QPoint | m_popupPoint |
save | |
| QString | fileName |
| bool | saved |
| bool | addition |
Private Slots | |
| void | editNextLabels () |
| void | editOneStateTransition () |
| void | editState () |
| void | editStateParams () |
| void | editTransitionParams () |
| void | editTwoStatesTransition () |
| void | pasteOnPos () |
| private only for pasting form popup | |
| void | removeState () |
| void | removeTransition () |
| void | sceneChanged (const QList< QRectF > &rects) |
| due to performance -> only sets up internal flag m_sceneChanged when scene signal changed() is emited -> don't forget connect it! | |
| void | setClean (bool clean) |
| sets mainwindow head according to m_undoStack clean state | |
| void | setStatesMarked (QList< State * > states, bool marked) |
| void | simulationFinished () |
Friends | |
| class | NextLabelsDialog |
| class | Parser |
| struct | StateSerializer |
| class | StateStyleChangeCommand |
| class | StateStyleDialog |
| struct | TransitionSerializer |
| class | TransitionStyleChangeCommand |
| class | TransitionStyleDialog |
Definition at line 57 of file editor.h.
typedef QList<QSharedPointer<IAlgorithm> > Editor::TAlgorithmList [protected] |
typedef QList<QSharedPointer<IDrawAlgorithm> > Editor::TDrawAlgorithmList [protected] |
| typedef QList<State*> Editor::TStateList |
| typedef QMap<QString, State*> Editor::TStateMap |
| typedef QList<Transition*> Editor::TTransitionList |
| enum Editor::EAction |
| enum Editor::EMouseAction |
| enum Editor::Format |
| Editor::Editor | ( | MainWindow * | parent = 0 |
) |
right action will be selected when used according to transition type
needed because editor propagates mouse click to main window
Definition at line 123 of file editor.cpp.
References antial, canRedoChanged(), canRedoChangedSlot(), canUndoChanged(), canUndoChangedSlot(), copySelection(), copyState(), createUndoView(), cutSelection(), cutState(), DBGLOG, DBGPAR, dimEdgeLabelColor, dimEdgeLineCoef, dimEdgeLineColor, dimEdgeLineStyle, dimStateFillColor, dimStateLabelColor, dimStateLineCoef, dimStateLineColor, dimStateLineStyle, edgeLabelColor, edgeLabelScale, edgeLineBorderCoef, edgeLineBorderColor, edgeLineColor, edgeLineDblCoef, edgeLineDblSep, edgeLineDblStatus, edgeLineStyle, edgeLineWidth, editNextLabels(), editOneStateTransition(), editState(), editStateParams(), editStateStyleParams(), editTransitionParams(), editTransitionStyleParams(), editTwoStatesTransition(), fileName, LLX, LLY, m_currentDrawAlgorithm, m_drawAlgorithmList, m_rubberBand, m_undoStack, m_undoView, m_zoomInFactor, moveState(), NEW_FILENAME, newStateNumber, pasteOnPos(), popup, popupOneStateTransitionEdit, popupPasteHere, popupSelection, popupState, popupStateLabel, popupTransition, popupTransitionEdit, popupTransitionLabel, popupTwoStatesTransitionEdit, removeSelection(), removeState(), removeTransition(), sceneChanged(), setClean(), setGridRect(), showGridRectDialog(), stateFillColor, stateFillStatus, stateLabelColor, stateLabelScale, stateLineColor, stateLineDoubleCoef, stateLineDoubleSep, stateLineStyle, stateLineWidth, UNDO_LIMIT, undoViewClosed(), URX, URY, and ZOOM_DIVIDER.
Here is the call graph for this function:| Editor::~Editor | ( | ) |
Definition at line 282 of file editor.cpp.
References DBGLOG, TransitionManager::getInstance(), StateManager::getInstance(), getStateList(), and m_undoStack.
Here is the call graph for this function:| void Editor::actionChanged | ( | int | action | ) | [signal] |
Definition at line 367 of file moc_editor.cpp.
Referenced by setActionInternal().
Here is the caller graph for this function:| int Editor::addAlgorithm | ( | const QSharedPointer< IAlgorithm > & | algorithm | ) |
returns algorithm index
Definition at line 3137 of file editor.cpp.
References getAutomataCreator(), and m_algorithmList.
Referenced by MainWindow::processAlgorithmsPlugin().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::addGraphVizDrawAlgorithm | ( | IGraphViz * | graphVizWrapper | ) |
add GraphVizDrawAlgorithm which uses given GraphViz Wrapper plugin
Definition at line 3146 of file editor.cpp.
References DBGLOG, IGraphViz::getGraphVizVersion(), GRAPHVIZ_VERSION, m_currentDrawAlgorithm, m_drawAlgorithmList, and RELLOG.
Referenced by MainWindow::processGraphVizPlugin().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::addToListAndScene | ( | LabelX * | pLabel | ) |
Definition at line 2850 of file editor.cpp.
References Transition::addNextLabel(), DBGLOG_ADD, and LabelX::getTransition().
Here is the call graph for this function:| void Editor::addToListAndScene | ( | Transition * | transition | ) |
Definition at line 2828 of file editor.cpp.
References DBGLOG_ADD, and m_transitionList.
Referenced by addToListsAndScene(), ItemsAddCommand::redo(), GeneratedGraphAddCommand::redo(), NextLabelAddCommand::redo(), and NextLabelDeleteCommand::undo().
Here is the caller graph for this function:| void Editor::addToListsAndScene | ( | Transition * | transition | ) |
Definition at line 2857 of file editor.cpp.
References addToListAndScene(), and Transition::assign().
Referenced by insertState(), ItemsAddCommand::redo(), GeneratedGraphAddCommand::redo(), TransitionEditWithDelCommand::redo(), TransitionAddCommand::redo(), StateEditWithDelCommand::redo(), StateAddCommand::redo(), ItemsRemoveCommand::undo(), TransitionEditWithDelCommand::undo(), TransitionDeleteCommand::undo(), StateEditWithDelCommand::undo(), and StateDeleteCommand::undo().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::addToListsAndScene | ( | State * | state | ) |
Definition at line 2864 of file editor.cpp.
References DBGLOG_ADD, DBGPAR, State::getName(), and m_stateMap.
Here is the call graph for this function:| void Editor::addToUndoStack | ( | QUndoCommand * | command | ) | [protected] |
Definition at line 3132 of file editor.cpp.
References m_undoStack.
Referenced by NextLabelsDialog::addLabel(), NextLabelsDialog::deleteLabel(), and NextLabelsDialog::editLabel().
Here is the caller graph for this function:| bool Editor::canNewFile | ( | bool | can | ) | [signal] |
Definition at line 275 of file moc_editor.cpp.
Referenced by updateMenuState().
Here is the caller graph for this function:| bool Editor::canOpenFile | ( | bool | can | ) | [signal] |
Definition at line 266 of file moc_editor.cpp.
Referenced by updateMenuState().
Here is the caller graph for this function:| bool Editor::canRedoChanged | ( | bool | can | ) | [signal] |
Definition at line 257 of file moc_editor.cpp.
Referenced by canRedoChangedSlot(), Editor(), and updateMenuState().
Here is the caller graph for this function:| void Editor::canRedoChangedSlot | ( | bool | can | ) | [slot] |
Definition at line 410 of file editor.cpp.
References canRedoChanged(), and m_simulationIsRun.
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Editor::canSaveFile | ( | bool | can | ) | [signal] |
Definition at line 284 of file moc_editor.cpp.
Referenced by updateMenuState().
Here is the caller graph for this function:| bool Editor::canUndoChanged | ( | bool | can | ) | [signal] |
Definition at line 248 of file moc_editor.cpp.
Referenced by canUndoChangedSlot(), Editor(), and updateMenuState().
Here is the caller graph for this function:| void Editor::canUndoChangedSlot | ( | bool | can | ) | [slot] |
Definition at line 404 of file editor.cpp.
References canUndoChanged(), and m_simulationIsRun.
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Editor::canZoomIn | ( | bool | can | ) | [signal] |
Definition at line 349 of file moc_editor.cpp.
Referenced by scaleView().
Here is the caller graph for this function:| bool Editor::canZoomOut | ( | bool | can | ) | [signal] |
Definition at line 358 of file moc_editor.cpp.
Referenced by scaleView().
Here is the caller graph for this function:| void Editor::copySelection | ( | ) | [slot] |
Definition at line 1643 of file editor.cpp.
References CLIPBOARD_FORMAT.
Referenced by MainWindow::copy(), cutSelection(), and Editor().
Here is the caller graph for this function:| void Editor::copyState | ( | ) | [slot] |
Definition at line 1627 of file editor.cpp.
References CLIPBOARD_FORMAT_STATE, selectedState, and StateSerializer.
Referenced by cutState(), and Editor().
Here is the caller graph for this function:| QList< State * > Editor::createGraphicsItems | ( | const QSharedPointer< IAutomaton > & | automaton | ) | [protected] |
Should be used only if algorithm does positioning
Definition at line 3313 of file editor.cpp.
Referenced by runAlgorithm().
Here is the caller graph for this function:| void Editor::createLaTeXTable | ( | ) | [slot] |
Definition at line 3117 of file editor.cpp.
References loadAutomaton(), and RELLOG.
Here is the call graph for this function:| void Editor::createUndoView | ( | ) | [protected] |
Definition at line 300 of file editor.cpp.
References m_undoStack, and m_undoView.
Referenced by Editor().
Here is the caller graph for this function:| void Editor::cutSelection | ( | ) | [slot] |
Definition at line 1564 of file editor.cpp.
References copySelection(), and removeSelection().
Referenced by MainWindow::cut(), and Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::cutState | ( | ) | [slot] |
Definition at line 1621 of file editor.cpp.
References copyState(), and removeState().
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Editor::detectAutomataSettings | ( | const QList< State * > & | stateList, | |
| ITransition::TCharSet & | alphabet, | |||
| QString & | alphabetSymbol, | |||
| QString & | epsilonSymbol | |||
| ) | [protected] |
Detects parameters of automata on scene.
Definition at line 3557 of file editor.cpp.
References DBGLOG_AI, AutomataCreator::defaultAlphabetSymbList, AutomataCreator::defaultEpsilonSymbList, Transition::getCharactersOccurences(), State::getOutgoingTransitions(), and RELLOG.
Referenced by getAutomaton().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::drawBackground | ( | QPainter * | painter, | |
| const QRectF & | rect | |||
| ) | [protected] |
| void Editor::editNextLabels | ( | ) | [private, slot] |
Definition at line 2458 of file editor.cpp.
References Transition::adjust(), and selectedTransition.
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::editOneStateTransition | ( | ) | [private, slot] |
Definition at line 2338 of file editor.cpp.
References editTransition(), and selectedTransition.
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::editState | ( | ) | [private, slot] |
Definition at line 2238 of file editor.cpp.
References TransitionManager::createOneStateTransition(), StateManager::createState(), TransitionManager::getInstance(), StateManager::getInstance(), State::getLabel(), State::getName(), State::getTypeName(), StateManager::getTypeNameId(), StateManager::getTypeNameList(), State::isAutoNammed(), State::isDimmed(), State::isInitial(), m_undoStack, mw, selectedState, State::setChecked(), MainWindow::setStatusBar(), update(), and WEST.
Referenced by Editor(), and editState().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::editState | ( | State * | state | ) | [slot] |
Definition at line 2325 of file editor.cpp.
References editState(), and selectedState.
Referenced by State::mouseReleaseEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::editStateParams | ( | ) | [private, slot] |
Definition at line 2300 of file editor.cpp.
References StateExtendedDialog::getDimFillColor(), StateExtendedDialog::getDimLabelColor(), StateExtendedDialog::getDimLineCoef(), StateExtendedDialog::getDimLineColor(), StateExtendedDialog::getDimLineStyle(), StateExtendedDialog::getFillColor(), StateExtendedDialog::getFillStatus(), StateExtendedDialog::getLabelColor(), StateExtendedDialog::getLabelScale(), StateExtendedDialog::getLineColor(), StateExtendedDialog::getLineDblCoef(), StateExtendedDialog::getLineDblSep(), StateExtendedDialog::getLineStyle(), StateExtendedDialog::getLineWidth(), m_undoStack, mw, selectedState, StateExtendedDialog::setParams(), MainWindow::setStatusBar(), and update().
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::editStateStyleParams | ( | ) | [slot] |
Definition at line 2319 of file editor.cpp.
Referenced by Editor().
Here is the caller graph for this function:| void Editor::editTransition | ( | OneStateTransition * | tr | ) | [slot] |
Definition at line 2348 of file editor.cpp.
References Transition::adjust(), TransitionManager::createOneStateTransition(), DBGLOG, TransitionLoopSEDialog::eEdit, TransitionLoopSEDialog::getDirection(), Transition::getDirection(), TransitionManager::getInstance(), TransitionLoopSEDialog::getLabel(), TransitionLoopSEDialog::getLabelPos(), Transition::getLabelPos(), Transition::getLabelText(), Transition::getStartState(), TransitionLoopSEDialog::getType(), Transition::getTypeName(), TransitionManager::getTypeNameId(), TransitionLoopSEDialog::isDimmed(), Transition::isDimmed(), m_undoStack, selectedTransition, Transition::setChecked(), TransitionLoopSEDialog::setDimmed(), TransitionLoopSEDialog::setDirection(), TransitionLoopSEDialog::setLabel(), Transition::setLabelPos(), TransitionLoopSEDialog::setLabelPos(), and TransitionLoopSEDialog::setType().
Referenced by editOneStateTransition(), editTwoStatesTransition(), TwoStatesTransition::mouseReleaseEvent(), and OneStateTransition::mouseReleaseEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::editTransition | ( | TwoStatesTransition * | tr | ) | [slot] |
Definition at line 2395 of file editor.cpp.
References Transition::adjust(), TransitionManager::createTwoStatesTransition(), DBGLOG, TransitionDialog::eEdit, TransitionDialog::getArcAngle(), Transition::getArcAngle(), TransitionDialog::getArcAngleB(), Transition::getArcAngleB(), Transition::getEndState(), TransitionManager::getInstance(), TransitionDialog::getLabel(), TransitionDialog::getLabelPos(), Transition::getLabelPos(), Transition::getLabelText(), TransitionDialog::getNCurv(), Transition::getNCurv(), Transition::getStartState(), TransitionDialog::getType(), Transition::getTypeName(), TransitionManager::getTypeNameId(), Transition::getTypeNameSuffix(), TransitionDialog::isDimmed(), Transition::isDimmed(), TransitionDialog::isLeftOriented(), TwoStatesTransition::isLeftOriented(), m_undoStack, mw, selectedTransition, Transition::setArcAngle(), TransitionDialog::setArcAngle(), Transition::setArcAngleB(), TransitionDialog::setArcAngleB(), Transition::setChecked(), TransitionDialog::setDimmed(), Transition::setLabelPos(), TransitionDialog::setLabelPos(), TransitionDialog::setName(), Transition::setNCurv(), TransitionDialog::setNCurv(), MainWindow::setStatusBar(), TransitionDialog::setTrOrientation(), TransitionDialog::setType(), and update().
Here is the call graph for this function:| void Editor::editTransitionParams | ( | ) | [private, slot] |
Definition at line 2465 of file editor.cpp.
References TransitionExtendedDialog::getDblStatus(), TransitionExtendedDialog::getDimLabelColor(), TransitionExtendedDialog::getDimLineCoef(), TransitionExtendedDialog::getDimLineColor(), TransitionExtendedDialog::getDimLineStyle(), TransitionExtendedDialog::getLabelColor(), TransitionExtendedDialog::getLabelScale(), TransitionExtendedDialog::getLineBorderCoef(), TransitionExtendedDialog::getLineBorderColor(), TransitionExtendedDialog::getLineColor(), TransitionExtendedDialog::getLineDblCoef(), TransitionExtendedDialog::getLineDblSep(), TransitionExtendedDialog::getLineStyle(), TransitionExtendedDialog::getLineWidth(), m_undoStack, mw, selectedTransition, TransitionExtendedDialog::setParams(), and MainWindow::setStatusBar().
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::editTransitionStyleParams | ( | ) | [slot] |
Definition at line 2484 of file editor.cpp.
Referenced by Editor().
Here is the caller graph for this function:| void Editor::editTwoStatesTransition | ( | ) | [private, slot] |
Definition at line 2343 of file editor.cpp.
References editTransition(), and selectedTransition.
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::expandGrid | ( | int | bound = 0 |
) | [slot] |
expands grid according to items bounding box
| bound | keeps free space around items |
Definition at line 3324 of file editor.cpp.
References getBorder(), getExpandedGridRect(), m_stateMap, and m_undoStack.
Here is the call graph for this function:| void Editor::exportToEPS | ( | const QString & | fn | ) |
Definition at line 1422 of file editor.cpp.
References DBGLOG, getPrintRect(), mw, and MainWindow::setStatusBar().
Referenced by MainWindow::exportTo().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::exportToGraphML | ( | const QString & | fn = 0 |
) |
Definition at line 945 of file editor.cpp.
References DEF_ARC_ANGLE, DEF_ARC_CURV, DEF_VCURV_ANGLE, DEF_VCURV_ANGLE_B, Transition::dimEdgeLabelColor, dimEdgeLabelColor, Transition::dimEdgeLineCoef, dimEdgeLineCoef, Transition::dimEdgeLineColor, dimEdgeLineColor, Transition::dimEdgeLineStyle, dimEdgeLineStyle, State::dimStateFillColor, dimStateFillColor, State::dimStateLabelColor, dimStateLabelColor, State::dimStateLineCoef, dimStateLineCoef, State::dimStateLineColor, dimStateLineColor, State::dimStateLineStyle, dimStateLineStyle, Transition::edgeLabelColor, edgeLabelColor, Transition::edgeLabelScale, edgeLabelScale, Transition::edgeLineBorderCoef, edgeLineBorderCoef, Transition::edgeLineBorderColor, edgeLineBorderColor, Transition::edgeLineColor, edgeLineColor, Transition::edgeLineDblCoef, edgeLineDblCoef, Transition::edgeLineDblSep, edgeLineDblSep, Transition::edgeLineDblStatus, edgeLineDblStatus, Transition::edgeLineStyle, edgeLineStyle, Transition::edgeLineWidth, edgeLineWidth, Transition::getEndState(), Transition::getGraphMLParams(), State::getLabel(), Transition::getLabelText(), State::getName(), Transition::getStartState(), getStateList(), Transition::getTypeName(), State::getTypeName(), Transition::getTypeNameSuffix(), Transition::hasEndState(), Transition::isDimmed(), State::isDimmed(), State::isDoubleBorder(), m_transitionList, mapToGrid(), mw, MainWindow::setStatusBar(), State::stateFillColor, stateFillColor, State::stateFillStatus, stateFillStatus, State::stateLabelColor, stateLabelColor, State::stateLabelScale, stateLabelScale, State::stateLineColor, stateLineColor, State::stateLineDoubleCoef, stateLineDoubleCoef, State::stateLineDoubleSep, stateLineDoubleSep, State::stateLineStyle, stateLineStyle, State::stateLineWidth, stateLineWidth, trBool(), trFillStatus(), and trLineStyle().
Referenced by MainWindow::exportTo().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::exportToPixmap | ( | const QString & | fn, | |
| Format | f | |||
| ) |
Definition at line 1473 of file editor.cpp.
References bmp, getPrintRect(), mw, png, MainWindow::setStatusBar(), and xpm.
Referenced by MainWindow::exportTo().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::exportToSVG | ( | const QString & | fn | ) |
| void Editor::exportToVaucanson | ( | const QString & | fn, | |
| bool | additionals = 0 | |||
| ) |
Definition at line 640 of file editor.cpp.
References saveToFile().
Referenced by MainWindow::save(), and MainWindow::saveAs().
Here is the call graph for this function:
Here is the caller graph for this function:| QList< State * > Editor::generateDistance | ( | int | typ, | |
| QString | string, | |||
| int | distance, | |||
| QPoint | startPoint | |||
| ) | [protected] |
Definition at line 3026 of file editor.cpp.
References Transition::adjust(), Transition::assign(), TransitionManager::createOneStateTransition(), createState(), TransitionManager::createTwoStatesTransition(), TransitionManager::getInstance(), StateManager::getInstance(), getUniqueAutoName(), HAMMING_HSPACE, HAMMING_VSPACE, LEVEN_HSPACE, LEVEN_VSPACE, m_stateMap, NORTH, toScenePos(), and WEST.
Referenced by generateGraph().
Here is the call graph for this function:
Here is the caller graph for this function:| QList< State * > Editor::generateExactMatching | ( | QString | string, | |
| QPoint | startPoint | |||
| ) | [protected] |
Definition at line 2987 of file editor.cpp.
References Transition::assign(), TransitionManager::createOneStateTransition(), StateManager::createState(), TransitionManager::createTwoStatesTransition(), EXACT_HSPACE, TransitionManager::getInstance(), StateManager::getInstance(), getUniqueAutoName(), m_stateMap, NORTH, toScenePos(), and WEST.
Referenced by generateGraph().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::generateGraph | ( | ) | [slot] |
Definition at line 2904 of file editor.cpp.
References DBGLOG, eSelection, EXACT_HSPACE, generateDistance(), generateExactMatching(), GraphGenerationDialog::getDistance(), GraphGenerationDialog::getStartPoint(), GraphGenerationDialog::getString(), State::getTransitionList(), GraphGenerationDialog::getType(), gridRect, HAMMING_HSPACE, HAMMING_VSPACE, GraphGenerationDialog::isExpandRequired(), m_undoStack, setActionInternal(), and Transition::setSelected().
Here is the call graph for this function:| EAction Editor::getAction | ( | ) | [inline] |
Definition at line 96 of file editor.h.
References m_selectedAction.
Referenced by Transition::mouseDoubleClickEvent(), State::mouseDoubleClickEvent(), State::mouseMoveEvent(), State::mousePressEvent(), and State::mouseReleaseEvent().
Here is the caller graph for this function:| QSharedPointer< IAutomataCreator > Editor::getAutomataCreator | ( | ) |
returns public automata creator
Definition at line 3878 of file editor.cpp.
Referenced by addAlgorithm().
Here is the caller graph for this function:| QSharedPointer< AutomatonImpl > Editor::getAutomaton | ( | const TStateList & | stateList, | |
| ITransition::TCharSet & | alphabet, | |||
| QString & | alphabetSymbol, | |||
| QString & | epsilonSymbol | |||
| ) | [protected] |
Parse one automaton from whole scene. Uses getAutomata() and then join parsed automata. Can detect automata setting if needed.
Definition at line 3478 of file editor.cpp.
References DBGLOG, DBGPAR, AutomataCreator::defaultAlphabetSymbList, AutomataCreator::defaultEpsilonSymbList, detectAutomataSettings(), Transition::getCharacters(), Transition::getEndStateName(), getInitialStates(), State::getLabel(), State::getName(), Transition::getStartStateName(), Transition::getTypeName(), State::isFinal(), and State::isInitial().
Referenced by loadAutomata(), and loadAutomaton().
Here is the call graph for this function:
Here is the caller graph for this function:| int Editor::getBorder | ( | ) | [inline] |
Definition at line 84 of file editor.h.
References sceneBorder.
Referenced by EditorChangeGridRectCommand::EditorChangeGridRectCommand(), expandGrid(), and runAlgorithm().
Here is the caller graph for this function:| QStringList Editor::getDrawAlgorithms | ( | ) | const [protected] |
Definition at line 3159 of file editor.cpp.
References m_drawAlgorithmList.
Referenced by loadAutomata().
Here is the caller graph for this function:| QRect Editor::getExpandedGridRect | ( | const TStateList & | states, | |
| int | bound | |||
| ) | [protected] |
retunrs expanded gridRect in a way that all states will be in grid with given boundary (int grid coordinates)
Definition at line 3331 of file editor.cpp.
References Transition::boundingRect(), State::boundingRect(), DBGLOG, DBGPAR, State::getOutgoingTransitions(), and mapToGrid().
Referenced by expandGrid(), and runAlgorithm().
Here is the call graph for this function:
Here is the caller graph for this function:| QString Editor::getFileName | ( | ) | const [inline] |
Definition at line 159 of file editor.h.
References fileName.
Referenced by MainWindow::exportTo(), MainWindow::openFile(), MainWindow::save(), and MainWindow::saveAs().
Here is the caller graph for this function:Definition at line 3896 of file editor.cpp.
References State::isFinal().
Here is the call graph for this function:| QRect Editor::getGridRect | ( | ) |
grid coordinates
Definition at line 344 of file editor.cpp.
References gridRect.
Referenced by EditorChangeGridRectCommand::EditorChangeGridRectCommand(), GeneratedGraphAddCommand::GeneratedGraphAddCommand(), GraphGenerationDialog::GraphGenerationDialog(), ItemsAddCommand::ItemsAddCommand(), and AutomataWorkSimulator::saveInputState().
Here is the caller graph for this function:Definition at line 3883 of file editor.cpp.
References State::isInitial().
Referenced by getAutomaton().
Here is the call graph for this function:
Here is the caller graph for this function:| int Editor::getNewStateNumber | ( | ) | [inline, protected] |
Definition at line 363 of file editor.h.
References newStateNumber.
Referenced by getUniqueAutoName().
Here is the caller graph for this function:| QRectF Editor::getPrintRect | ( | ) | [protected] |
Definition at line 1412 of file editor.cpp.
References showFrame.
Referenced by exportToEPS(), and exportToPixmap().
Here is the caller graph for this function:| State* Editor::getStateByName | ( | const QString & | name | ) | const [inline, protected] |
Definition at line 415 of file editor.h.
References getStateByName(), and m_stateMap.
Here is the call graph for this function:returns state instance from
| stateMap | accorgin to given | |
| name |
| NULL | if no state has |
| name |
Definition at line 2641 of file editor.cpp.
Referenced by NaiveDrawAlgorithm::drawAutomaton(), BaseDrawAlgorithm::drawTransitions(), and getStateByName().
Here is the caller graph for this function:| QList<State*> Editor::getStateList | ( | ) | [inline] |
Definition at line 190 of file editor.h.
References m_stateMap.
Referenced by exportToGraphML(), loadAutomata(), loadAutomaton(), newFile(), removeSelection(), runAlgorithm(), saveGraph(), setGridRect(), slotAlignToGrid(), StateStyleChangeCommand::StateStyleChangeCommand(), and ~Editor().
Here is the caller graph for this function:| QList<Transition*> Editor::getTransitionList | ( | ) | [inline] |
Definition at line 196 of file editor.h.
References m_transitionList.
Referenced by TransitionStyleChangeCommand::TransitionStyleChangeCommand().
Here is the caller graph for this function:| QString Editor::getUniqueAutoName | ( | const TStateMap & | stateMap | ) | [protected] |
Definition at line 2622 of file editor.cpp.
References getNewStateNumber(), increaseNewStateNumber(), and testStateName().
Here is the call graph for this function:| QString Editor::getUniqueAutoName | ( | ) |
Definition at line 2617 of file editor.cpp.
References m_stateMap.
Referenced by StateDialog::changeAutoName(), StateSerializer::createState(), generateDistance(), generateExactMatching(), and insertState().
Here is the caller graph for this function:| void Editor::increaseNewStateNumber | ( | ) | [inline, protected] |
Definition at line 364 of file editor.h.
References newStateNumber.
Referenced by StateSerializer::createState(), and getUniqueAutoName().
Here is the caller graph for this function:| void Editor::insertState | ( | const QPoint & | point | ) | [protected] |
Definition at line 2495 of file editor.cpp.
References TransitionManager::createOneStateTransition(), StateManager::createState(), TransitionManager::getInstance(), StateManager::getInstance(), State::getName(), StateManager::getTypeNameList(), getUniqueAutoName(), m_undoStack, mw, State::setAutoNammed(), MainWindow::setStatusBar(), and WEST.
Referenced by mouseReleaseEvent().
Here is the call graph for this function:
Here is the caller graph for this function:used by parser
Definition at line 2539 of file editor.cpp.
References addToListsAndScene(), State::getName(), and State::setAutoNammed().
Here is the call graph for this function:| void Editor::insertTransition | ( | ) |
Definition at line 2552 of file editor.cpp.
References Transition::adjust(), TransitionManager::createOneStateTransition(), TransitionManager::createTwoStatesTransition(), DBGLOG_ADD, TransitionDialog::eAdd, TransitionLoopSEDialog::eAdd, TransitionDialog::getArcAngle(), TransitionDialog::getArcAngleB(), TransitionManager::getInstance(), TransitionDialog::getLabelPos(), TransitionLoopSEDialog::getLabelPos(), TransitionDialog::getNCurv(), Transition::getTypeName(), Transition::getTypeNameSuffix(), m_undoStack, mw, selectedState, Transition::setArcAngle(), Transition::setArcAngleB(), State::setChecked(), Transition::setLabelPos(), Transition::setNCurv(), MainWindow::setStatusBar(), and startState.
Referenced by State::mouseReleaseEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Editor::isAddition | ( | ) | const [inline] |
Definition at line 160 of file editor.h.
References addition.
Referenced by MainWindow::save().
Here is the caller graph for this function:| bool Editor::isChanged | ( | ) | const |
returns m_undoStack's clean state
Definition at line 504 of file editor.cpp.
References m_undoStack.
Referenced by MainWindow::closeEvent(), MainWindow::newFile(), MainWindow::openFile(), MainWindow::save(), and setClean().
Here is the caller graph for this function:| void Editor::isChanged | ( | bool | changed | ) | [signal] |
Definition at line 329 of file moc_editor.cpp.
| bool Editor::isPastePossible | ( | ) |
Definition at line 1608 of file editor.cpp.
References CLIPBOARD_FORMAT, CLIPBOARD_FORMAT_STATE, DBGLOG, and m_simulationIsRun.
Referenced by mouseReleaseEvent(), MainWindow::paste(), and MainWindow::updateEditMenu().
Here is the caller graph for this function:| bool Editor::isSaved | ( | ) | const [inline] |
Definition at line 161 of file editor.h.
References saved.
Referenced by MainWindow::save().
Here is the caller graph for this function:| bool Editor::isSomethingSelected | ( | ) |
Definition at line 1603 of file editor.cpp.
Referenced by MainWindow::copy(), MainWindow::cut(), MainWindow::remove(), and MainWindow::updateEditMenu().
Here is the caller graph for this function:| bool Editor::itemAlignToGrid | ( | QGraphicsItem * | item | ) |
Definition at line 1756 of file editor.cpp.
References GRID_STEP.
Referenced by itemsAlignToGrid(), State::mouseMoveEvent(), and mouseMoveEvent().
Here is the caller graph for this function:| bool Editor::itemsAlignToGrid | ( | QList< T * > | items | ) | [inline] |
Definition at line 169 of file editor.h.
References itemAlignToGrid().
Referenced by mouseMoveEvent(), and slotAlignToGrid().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Editor::itemsAvailable | ( | bool | available | ) | [signal] |
Definition at line 293 of file moc_editor.cpp.
Referenced by updateMenuState().
Here is the caller graph for this function:| void Editor::itemsInvertSelection | ( | QList< QGraphicsItem * > | items | ) | [protected] |
Definition at line 1748 of file editor.cpp.
Referenced by mousePressEvent(), and mouseReleaseEvent().
Here is the caller graph for this function:| IAutomaton::TAutomataList Editor::loadAutomata | ( | const QString & | dialogTitle, | |
| int | count, | |||
| QStringList & | fileNames, | |||
| IAlgorithm * | algorithm = NULL | |||
| ) |
Definition at line 3197 of file editor.cpp.
References DBGLOG_AI, DBGPAR, getAutomaton(), getDrawAlgorithms(), Parser::getReport(), getStateList(), m_currentDrawAlgorithm, m_drawAlgorithmList, m_stateMap, RELLOG, and Parser::run().
Referenced by runAlgorithm().
Here is the call graph for this function:
Here is the caller graph for this function:| QSharedPointer< AutomatonImpl > Editor::loadAutomaton | ( | const QString & | dialogTitle | ) | [protected] |
loads single automaton from current file for actions with automaton (use when don't want to modify automaton)
Definition at line 3170 of file editor.cpp.
References LoadAutomataDialog::alphabetIsSet(), LoadAutomataDialog::alphabetSymbolIsSet(), LoadAutomataDialog::epsilonSymbolIsSet(), LoadAutomataDialog::getAlphabet(), LoadAutomataDialog::getAlphabetSymbol(), getAutomaton(), LoadAutomataDialog::getEpsilonSymbol(), getStateList(), and m_stateMap.
Referenced by createLaTeXTable(), and simulateAutomatonWork().
Here is the call graph for this function:
Here is the caller graph for this function:| QPointF Editor::mapToGrid | ( | const QPointF & | scenePos | ) |
maps scene positon to grid position
Definition at line 603 of file editor.cpp.
References GRID_STEP, and gridRect.
Referenced by exportToGraphML(), getExpandedGridRect(), State::getVCCommand(), and mouseMoveEvent().
Here is the caller graph for this function:| void Editor::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 2146 of file editor.cpp.
References DBGLOG_ME, m_currentMouseAction, and m_simulationIsRun.
| void Editor::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 1958 of file editor.cpp.
References eMoveMultItem, eSelection, GRID_STEP, gridRect, itemAlignToGrid(), itemsAlignToGrid(), m_currentMouseAction, m_itemsMoved, m_origPos, m_rubberBand, m_rubberBandOrigin, m_selectedAction, m_stateIsMoving, mapToGrid(), mw, selectedState, MainWindow::setStatusBar(), snapped(), and snapToGrid.
Here is the call graph for this function:| void Editor::mousePressEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 1778 of file editor.cpp.
References DBGLOG_ME, eInsertState, eInsertTransition, eSelection, itemsInvertSelection(), m_currentMouseAction, m_itemsMoved, m_origPos, m_origPositions, m_rubberBand, m_rubberBandOrigin, m_selectedAction, m_simulationIsRun, m_stateIsMoving, RELLOG, selectedState, State::setChecked(), stateMoved(), and trMouseAction().
Here is the call graph for this function:| void Editor::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected] |
Definition at line 2085 of file editor.cpp.
References createMoveItemsCommand(), DBGLOG_ME, eInsertItem, eInsertState, eMoveMultItem, eSelection, eShowPopup, eShowSelectionPopup, GRID_STEP, insertState(), isPastePossible(), itemsInvertSelection(), m_currentMouseAction, m_itemsMoved, m_origPositions, m_popupPoint, m_rubberBand, m_sceneChanged, m_selectedAction, m_stateIsMoving, m_undoStack, popup, popupPasteHere, popupSelection, setActionCursor(), setRightSceneRect(), snapped(), and update().
Here is the call graph for this function:| void Editor::moveState | ( | ) | [slot] |
Definition at line 1548 of file editor.cpp.
References DBGLOG_ME, m_itemsMoved, m_origPos, m_origPositions, m_stateIsMoving, and selectedState.
Referenced by Editor().
Here is the caller graph for this function:| void Editor::newFile | ( | ) |
Definition at line 526 of file editor.cpp.
References getStateList(), m_stateMap, m_transitionList, m_undoStack, NEW_FILENAME, newStateNumber, saved, setClean(), and setFileName().
Referenced by MainWindow::newFile(), and openFile().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::openFile | ( | const QString & | fn | ) |
Definition at line 548 of file editor.cpp.
References DBGLOG, Parser::getReport(), mw, newFile(), ItemsAddCommand::redo(), RELLOG, Parser::run(), saved, setClean(), setFileName(), MainWindow::setStatusBar(), showFrame, showGrid, and update().
Referenced by MainWindow::MainWindow(), and MainWindow::openFile().
Here is the call graph for this function:
Here is the caller graph for this function:| QString Editor::parseCharacter | ( | const QString & | text | ) | [static] |
ensures that given text contains just one symbol
Definition at line 3930 of file editor.cpp.
References StringProcessor::computeCharacterList().
Referenced by LoadAutomataDialog::myAccept().
Here is the call graph for this function:
Here is the caller graph for this function:| ITransition::TCharSet Editor::parseCharSet | ( | const QString & | text | ) | [static] |
primarilly used for parse alphabet
Definition at line 3910 of file editor.cpp.
References StringProcessor::computeCharacterList().
Referenced by LoadAutomataDialog::myAccept().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::paste | ( | ) | [slot] |
Definition at line 1737 of file editor.cpp.
Referenced by MainWindow::paste(), and pasteOnPos().
Here is the caller graph for this function:| void Editor::paste | ( | const QPoint & | insertPoint | ) | [slot] |
Definition at line 1660 of file editor.cpp.
References CLIPBOARD_FORMAT, CLIPBOARD_FORMAT_STATE, DBGLOG_SER, eSelection, gridRect, m_undoStack, PROGRAM_NAME, RELLOG, setActionInternal(), State::setAutoNammed(), and Transition::setSelected().
Here is the call graph for this function:| void Editor::pasteOnPos | ( | ) | [private, slot] |
private only for pasting form popup
Definition at line 1743 of file editor.cpp.
References m_popupPoint, and paste().
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::redo | ( | ) | [slot] |
Definition at line 2739 of file editor.cpp.
References m_undoStack, and startState.
Referenced by AutomataWorkSimulator::processStep().
Here is the caller graph for this function:| void Editor::removeFromListAndScene | ( | Transition * | transition | ) |
Definition at line 2797 of file editor.cpp.
References DBGLOG_ADD, and m_transitionList.
Referenced by NextLabelDeleteCommand::redo(), removeFromListsAndScene(), ItemsAddCommand::undo(), GeneratedGraphAddCommand::undo(), and NextLabelAddCommand::undo().
Here is the caller graph for this function:| void Editor::removeFromListAndScene | ( | LabelX * | pLabel | ) |
Definition at line 2821 of file editor.cpp.
References DBGLOG_ADD, LabelX::getTransition(), and Transition::removeNextLabel().
Here is the call graph for this function:| void Editor::removeFromListsAndScene | ( | Transition * | transition | ) |
Definition at line 2777 of file editor.cpp.
References removeFromListAndScene(), and Transition::unassign().
Referenced by ItemsRemoveCommand::redo(), TransitionEditWithDelCommand::redo(), TransitionDeleteCommand::redo(), StateEditWithDelCommand::redo(), StateDeleteCommand::redo(), ItemsAddCommand::undo(), GeneratedGraphAddCommand::undo(), TransitionEditWithDelCommand::undo(), TransitionAddCommand::undo(), StateEditWithDelCommand::undo(), and StateAddCommand::undo().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::removeFromListsAndScene | ( | State * | state | ) |
Definition at line 2784 of file editor.cpp.
References DBGLOG_ADD, DBGPAR, State::getName(), m_stateMap, and selectedState.
Here is the call graph for this function:| void Editor::removeSelection | ( | ) | [slot] |
Definition at line 1570 of file editor.cpp.
References getStateList(), m_transitionList, and m_undoStack.
Referenced by cutSelection(), Editor(), and MainWindow::remove().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::removeState | ( | ) | [private, slot] |
Definition at line 2331 of file editor.cpp.
References m_undoStack, and selectedState.
Referenced by cutState(), and Editor().
Here is the caller graph for this function:| void Editor::removeTransition | ( | ) | [private, slot] |
Definition at line 2489 of file editor.cpp.
References m_undoStack, and selectedTransition.
Referenced by Editor().
Here is the caller graph for this function:| void Editor::removeTransition | ( | Transition * | transition | ) |
| void Editor::renameState | ( | State * | state, | |
| const QString & | name | |||
| ) |
Definition at line 2874 of file editor.cpp.
References State::getName(), m_stateMap, and State::setName().
Referenced by StateEditCommand::redo(), and StateEditCommand::undo().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::resetZoom | ( | ) | [slot] |
Definition at line 2765 of file editor.cpp.
References scaleView().
Here is the call graph for this function:| void Editor::resizeEvent | ( | QResizeEvent * | event | ) | [protected] |
holds background large enought (according to scene)
Definition at line 1512 of file editor.cpp.
References setRightSceneRect().
Here is the call graph for this function:| void Editor::runAlgorithm | ( | ) | [slot] |
sender() is QAction and its data is set as index to algorithmList
Definition at line 3357 of file editor.cpp.
References createGraphicsItems(), DBGLOG, DBGLOG_AI, getBorder(), getExpandedGridRect(), getStateList(), gridRect, loadAutomata(), m_algorithmList, m_currentDrawAlgorithm, m_drawAlgorithmList, m_transitionList, m_undoStack, and RELLOG.
Here is the call graph for this function:| void Editor::saveFooter | ( | QTextStream & | out | ) |
Definition at line 702 of file editor.cpp.
Referenced by AutomataWorkSimulator::generateSlideshow(), and saveToFile().
Here is the caller graph for this function:| void Editor::saveGraph | ( | QTextStream & | out | ) |
Definition at line 707 of file editor.cpp.
References EdgePrevParams::dimEdgeLabelColor, EdgePrevParams::dimEdgeLineCoef, EdgePrevParams::dimEdgeLineColor, EdgePrevParams::dimEdgeLineStyle, StatePrevParams::dimStateFillColor, StatePrevParams::dimStateLabelColor, StatePrevParams::dimStateLineCoef, StatePrevParams::dimStateLineColor, StatePrevParams::dimStateLineStyle, edgeLabelColor, EdgePrevParams::edgeLabelColor, EdgePrevParams::edgeLabelScale, EdgePrevParams::edgeLineBorderCoef, EdgePrevParams::edgeLineBorderColor, edgeLineColor, EdgePrevParams::edgeLineColor, EdgePrevParams::edgeLineDblCoef, EdgePrevParams::edgeLineDblSep, edgeLineDblStatus, EdgePrevParams::edgeLineDblStatus, edgeLineStyle, EdgePrevParams::edgeLineStyle, EdgePrevParams::edgeLineWidth, getStateList(), Transition::getTypeName(), Transition::getVCCommand(), State::getVCCommand(), Transition::getVCParams(), State::getVCParams(), Transition::isDimmed(), State::isDimmed(), m_stateMap, m_transitionList, SBS_IF, SBS_STATES, SBS_TRAN, setStatePrevParamsDef(), setTrPrevParamsDef(), stateFillColor, StatePrevParams::stateFillColor, stateFillStatus, StatePrevParams::stateFillStatus, stateLabelColor, StatePrevParams::stateLabelColor, StatePrevParams::stateLabelScale, stateLineColor, StatePrevParams::stateLineColor, StatePrevParams::stateLineDoubleCoef, StatePrevParams::stateLineDoubleSep, stateLineStyle, StatePrevParams::stateLineStyle, and StatePrevParams::stateLineWidth.
Referenced by AutomataWorkSimulator::generateSlideshow(), and saveToFile().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::saveHeader | ( | QTextStream & | out | ) |
Definition at line 658 of file editor.cpp.
References gridRect, showFrame, and showGrid.
Referenced by AutomataWorkSimulator::generateSlideshow(), and saveToFile().
Here is the caller graph for this function:| void Editor::saveLaTeXFooter | ( | QTextStream & | out | ) |
Definition at line 653 of file editor.cpp.
Referenced by AutomataWorkSimulator::generateSlideshow(), and saveToFile().
Here is the caller graph for this function:| void Editor::saveLaTeXHeader | ( | QTextStream & | out | ) |
Definition at line 645 of file editor.cpp.
Referenced by AutomataWorkSimulator::generateSlideshow(), and saveToFile().
Here is the caller graph for this function:| void Editor::saveToFile | ( | const QString & | fn, | |
| bool | latexHeader = false | |||
| ) |
Definition at line 906 of file editor.cpp.
References addition, m_undoStack, mw, RELLOG, saved, saveFooter(), saveGraph(), saveHeader(), saveLaTeXFooter(), saveLaTeXHeader(), saveVCSettings(), and MainWindow::setStatusBar().
Referenced by exportToVaucanson().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::saveVCSettings | ( | QTextStream & | out | ) |
Definition at line 673 of file editor.cpp.
References DEF_COLOR, DEF_EDGE_LINE_DBL_STATUS, DEF_EDGE_LINE_WIDTH, DEF_FILL_COLOR, DEF_FILL_STATUS, DEF_LABEL_SCALE, DEF_LINE_STYLE, DEF_STATE_LINE_WIDTH, edgeLabelColor, edgeLabelScale, edgeLineColor, edgeLineDblStatus, edgeLineStyle, edgeLineWidth, stateFillColor, stateFillStatus, stateLabelScale, stateLineColor, stateLineStyle, stateLineWidth, trFillStatus(), and trLineStyle().
Referenced by AutomataWorkSimulator::generateSlideshow(), and saveToFile().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::scaleView | ( | qreal | scaleFactor | ) | [protected] |
Definition at line 1527 of file editor.cpp.
References canZoomIn(), and canZoomOut().
Referenced by resetZoom(), wheelEvent(), zoomIn(), and zoomOut().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::sceneChanged | ( | const QList< QRectF > & | rects | ) | [private, slot] |
due to performance -> only sets up internal flag m_sceneChanged when scene signal changed() is emited -> don't forget connect it!
Definition at line 1507 of file editor.cpp.
References m_sceneChanged.
Referenced by Editor().
Here is the caller graph for this function:| void Editor::setAction | ( | EAction | action | ) |
Definition at line 349 of file editor.cpp.
References eSelection, m_selectedAction, selectedState, setActionCursor(), State::setChecked(), and startState.
Referenced by MainWindow::MainWindow(), setActionInternal(), MainWindow::setSelection(), MainWindow::setState(), and MainWindow::setTransition().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::setActionCursor | ( | EAction | action | ) | [protected] |
Definition at line 366 of file editor.cpp.
References DBGLOG_ME, eInsertState, eInsertTransition, and eSelection.
Referenced by mouseReleaseEvent(), and setAction().
Here is the caller graph for this function:| void Editor::setActionInternal | ( | EAction | action | ) | [protected] |
Definition at line 387 of file editor.cpp.
References actionChanged(), and setAction().
Referenced by generateGraph(), and paste().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::setBorder | ( | int | b | ) | [inline] |
Definition at line 85 of file editor.h.
References sceneBorder.
Referenced by EditorChangeGridRectCommand::redo(), and EditorChangeGridRectCommand::undo().
Here is the caller graph for this function:| void Editor::setClean | ( | bool | clean | ) | [private, slot] |
sets mainwindow head according to m_undoStack clean state
Definition at line 509 of file editor.cpp.
References fileName, isChanged(), m_undoStack, mw, PROGRAM_NAME, and saved.
Referenced by Editor(), newFile(), and openFile().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::setFileName | ( | const QString & | fn | ) |
Definition at line 630 of file editor.cpp.
References DBGLOG, DBGPAR, fileName, mw, and PROGRAM_NAME.
Referenced by newFile(), openFile(), and MainWindow::saveAs().
Here is the caller graph for this function:| void Editor::setGridRect | ( | QRect | gridRect | ) |
sets new grid rect coordinates
Definition at line 308 of file editor.cpp.
References br, getStateList(), GRID_STEP, and sceneBorder.
Referenced by Editor(), ItemsAddCommand::redo(), GeneratedGraphAddCommand::redo(), EditorChangeGridRectCommand::redo(), ItemsAddCommand::undo(), GeneratedGraphAddCommand::undo(), EditorChangeGridRectCommand::undo(), and Parser::VCPicture().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::setRightSceneRect | ( | ) | [protected] |
Definition at line 1496 of file editor.cpp.
References br, and sceneBorder.
Referenced by mouseReleaseEvent(), and resizeEvent().
Here is the caller graph for this function:| void Editor::setSelectedState | ( | State * | state | ) |
Definition at line 393 of file editor.cpp.
References selectedState.
Referenced by State::mouseReleaseEvent().
Here is the caller graph for this function:| void Editor::setSelectedTransition | ( | Transition * | transition | ) | [inline] |
Definition at line 98 of file editor.h.
References selectedTransition.
| void Editor::setShowGridFrame | ( | bool | grid, | |
| bool | frame | |||
| ) |
Definition at line 461 of file editor.cpp.
References showChanged(), showFrame, and showGrid.
Referenced by ShowGridFrameCommand::redo(), and ShowGridFrameCommand::undo().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::setStatePrevParamsDef | ( | StatePrevParams & | prevParams | ) |
Definition at line 609 of file editor.cpp.
References stateFillColor, StatePrevParams::stateFillColor, stateFillStatus, StatePrevParams::stateFillStatus, stateLabelColor, StatePrevParams::stateLabelColor, StatePrevParams::stateLabelScale, stateLineColor, StatePrevParams::stateLineColor, stateLineStyle, StatePrevParams::stateLineStyle, and StatePrevParams::stateLineWidth.
Referenced by saveGraph().
Here is the caller graph for this function:| void Editor::setStatesMarked | ( | QList< State * > | states, | |
| bool | marked | |||
| ) | [private, slot] |
Definition at line 3452 of file editor.cpp.
References m_undoStack.
Referenced by simulateAutomatonWork().
Here is the caller graph for this function:| void Editor::setStatusBar | ( | const QString & | text, | |
| int | ms | |||
| ) |
Definition at line 2702 of file editor.cpp.
References mw, and MainWindow::setStatusBar().
Here is the call graph for this function:| void Editor::setTrPrevParamsDef | ( | EdgePrevParams & | prevTrParams | ) |
Definition at line 620 of file editor.cpp.
References edgeLabelColor, EdgePrevParams::edgeLabelColor, EdgePrevParams::edgeLabelScale, edgeLineColor, EdgePrevParams::edgeLineColor, edgeLineDblStatus, EdgePrevParams::edgeLineDblStatus, edgeLineStyle, EdgePrevParams::edgeLineStyle, and EdgePrevParams::edgeLineWidth.
Referenced by saveGraph().
Here is the caller graph for this function:| void Editor::showChanged | ( | bool | showG, | |
| bool | showF | |||
| ) | [signal] |
Definition at line 342 of file moc_editor.cpp.
Referenced by Parser::Parser(), Parser::Predeclaration(), and setShowGridFrame().
Here is the caller graph for this function:| void Editor::showGridRectDialog | ( | ) | [slot] |
Definition at line 2709 of file editor.cpp.
References GridRectDialog::getBorder(), GridRectDialog::getLowerLeftX(), GridRectDialog::getLowerLeftY(), GridRectDialog::getUpperRightX(), GridRectDialog::getUpperRightY(), gridRect, m_undoStack, sceneBorder, GridRectDialog::setBorder(), GridRectDialog::setLowerLeftX(), GridRectDialog::setLowerLeftY(), GridRectDialog::setUpperRightX(), and GridRectDialog::setUpperRightY().
Referenced by Editor().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::showPopup | ( | TwoStatesTransition * | transition, | |
| const QPointF & | point | |||
| ) |
Definition at line 2211 of file editor.cpp.
References Transition::getLabelText(), Transition::getTypeName(), TwoStatesTransition::getTypeNameSuffix(), popupTransition, popupTransitionEdit, popupTransitionLabel, popupTwoStatesTransitionEdit, selectedTransition, and Transition::setChecked().
Here is the call graph for this function:| void Editor::showPopup | ( | OneStateTransition * | transition, | |
| const QPointF & | point | |||
| ) |
Definition at line 2185 of file editor.cpp.
References Transition::getLabelText(), Transition::getTypeName(), OneStateTransition::getTypeNameSuffix(), popupOneStateTransitionEdit, popupTransition, popupTransitionEdit, popupTransitionLabel, selectedTransition, and Transition::setChecked().
Here is the call graph for this function:| bool Editor::showPopup | ( | State * | state | ) |
| false | if element was deleted! |
Definition at line 2165 of file editor.cpp.
References State::getLabel(), State::getName(), m_stateIsMoving, popupState, popupStateLabel, selectedState, State::setChecked(), and startState.
Referenced by TwoStatesTransition::mouseReleaseEvent(), State::mouseReleaseEvent(), and OneStateTransition::mouseReleaseEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Editor::showUndoStackAvailable | ( | bool | available | ) | [signal] |
Definition at line 320 of file moc_editor.cpp.
Referenced by updateMenuState().
Here is the caller graph for this function:| void Editor::showUndoView | ( | bool | show | ) | [slot] |
Definition at line 2747 of file editor.cpp.
References m_undoView.
| void Editor::simulateAutomatonWork | ( | ) | [slot] |
runs SimulationDialog
Definition at line 3425 of file editor.cpp.
References loadAutomaton(), m_simulationIsRun, m_undoStack, AutomataWorkSimulator::run(), setStatesMarked(), simulationFinished(), and updateMenuState().
Here is the call graph for this function:| void Editor::simulationFinished | ( | ) | [private, slot] |
Definition at line 3441 of file editor.cpp.
References m_simulationIsRun, and updateMenuState().
Referenced by simulateAutomatonWork().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::slotAlignToGrid | ( | ) |
Definition at line 434 of file editor.cpp.
References createMoveItemsCommand(), DBGLOG, getStateList(), itemsAlignToGrid(), m_undoStack, mw, and MainWindow::setStatusBar().
Referenced by MainWindow::alignToGrid().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::slotShowFrame | ( | bool | show | ) | [slot] |
Definition at line 483 of file editor.cpp.
References m_undoStack, mw, MainWindow::setStatusBar(), showFrame, and showGrid.
Here is the call graph for this function:| void Editor::slotShowGrid | ( | bool | show | ) | [slot] |
Definition at line 472 of file editor.cpp.
References m_undoStack, mw, MainWindow::setStatusBar(), showFrame, and showGrid.
Here is the call graph for this function:| void Editor::slotSnapToGrid | ( | ) |
Definition at line 416 of file editor.cpp.
References mw, MainWindow::setStatusBar(), and snapToGrid.
Referenced by MainWindow::snapToGrid().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Editor::snapped | ( | ) | [inline] |
| true | if automatic snapping is used |
Definition at line 100 of file editor.h.
References snapToGrid.
Referenced by State::mouseMoveEvent(), mouseMoveEvent(), and mouseReleaseEvent().
Here is the caller graph for this function:| void Editor::stateMoved | ( | State * | state, | |
| const QPointF & | oldPos | |||
| ) | [slot] |
Definition at line 2771 of file editor.cpp.
References m_undoStack, and update().
Referenced by mousePressEvent(), and State::mouseReleaseEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| void Editor::switchAntialiasing | ( | ) | [slot] |
Definition at line 2889 of file editor.cpp.
| bool Editor::testStateName | ( | const QString & | s, | |
| const TStateMap & | stateMap | |||
| ) | [protected] |
Definition at line 499 of file editor.cpp.
| bool Editor::testStateName | ( | const QString & | s | ) |
Definition at line 494 of file editor.cpp.
References m_stateMap.
Referenced by getUniqueAutoName(), and StateDialog::testAccept().
Here is the caller graph for this function:| bool Editor::toolsAvailable | ( | bool | available | ) | [signal] |
Definition at line 302 of file moc_editor.cpp.
Referenced by updateMenuState().
Here is the caller graph for this function:| QPoint Editor::toScenePos | ( | const QPointF & | gridPos | ) |
converts
| gridPoc | to scene position |
Definition at line 2532 of file editor.cpp.
References GRID_STEP, and gridRect.
Referenced by FarthestFinalDrawAlgorithm::drawAutomaton(), generateDistance(), generateExactMatching(), and Parser::StateDeclaration().
Here is the caller graph for this function:| void Editor::undo | ( | ) | [slot] |
Definition at line 2732 of file editor.cpp.
References m_undoStack, and startState.
Referenced by AutomataWorkSimulator::stepBackward().
Here is the caller graph for this function:| void Editor::undoViewClosed | ( | ) | [signal] |
Definition at line 336 of file moc_editor.cpp.
Referenced by Editor().
Here is the caller graph for this function:| void Editor::update | ( | ) |
Definition at line 399 of file editor.cpp.
Referenced by AutomataWorkSimulator::animate(), editState(), editStateParams(), editTransition(), mouseReleaseEvent(), openFile(), TransitionStyleChangeCommand::redo(), StateStyleChangeCommand::redo(), AutomataWorkSimulator::setActiveStatesMarked(), stateMoved(), TransitionStyleChangeCommand::undo(), and StateStyleChangeCommand::undo().
Here is the caller graph for this function:| void Editor::updateMenuState | ( | ) | [protected] |
sets metu items enabled/disabled as necessary
Definition at line 3459 of file editor.cpp.
References canNewFile(), canOpenFile(), canRedoChanged(), canSaveFile(), canUndoChanged(), itemsAvailable(), m_simulationIsRun, m_undoStack, m_undoView, showUndoStackAvailable(), toolsAvailable(), and utilsAvailable().
Referenced by simulateAutomatonWork(), and simulationFinished().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Editor::utilsAvailable | ( | bool | available | ) | [signal] |
Definition at line 311 of file moc_editor.cpp.
Referenced by updateMenuState().
Here is the caller graph for this function:| void Editor::wheelEvent | ( | QWheelEvent * | event | ) | [protected] |
Definition at line 1517 of file editor.cpp.
References scaleView().
Here is the call graph for this function:| void Editor::zoomIn | ( | ) | [slot] |
Definition at line 2755 of file editor.cpp.
References m_zoomInFactor, and scaleView().
Here is the call graph for this function:| void Editor::zoomOut | ( | ) | [slot] |
Definition at line 2760 of file editor.cpp.
References m_zoomInFactor, and scaleView().
Here is the call graph for this function:friend class NextLabelsDialog [friend] |
friend struct StateSerializer [friend] |
Definition at line 77 of file editor.h.
Referenced by copyState().
friend class StateStyleChangeCommand [friend] |
friend class StateStyleDialog [friend] |
friend struct TransitionSerializer [friend] |
friend class TransitionStyleChangeCommand [friend] |
friend class TransitionStyleDialog [friend] |
bool Editor::addition [protected] |
Definition at line 465 of file editor.h.
Referenced by isAddition(), Parser::Predeclaration(), and saveToFile().
bool Editor::antial [protected] |
true if scene is rendered in anialiasing mode
Definition at line 459 of file editor.h.
Referenced by Editor(), and switchAntialiasing().
QPoint Editor::br [protected] |
bottomRight -> scene usage
Definition at line 407 of file editor.h.
Referenced by setGridRect(), and setRightSceneRect().
| QString Editor::dimEdgeLabelColor |
Definition at line 246 of file editor.h.
Referenced by Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| float Editor::dimEdgeLineCoef |
Definition at line 245 of file editor.h.
Referenced by Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| QString Editor::dimEdgeLineColor |
Definition at line 244 of file editor.h.
Referenced by Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| Qt::PenStyle Editor::dimEdgeLineStyle |
Definition at line 243 of file editor.h.
Referenced by Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| QString Editor::dimStateFillColor |
Definition at line 224 of file editor.h.
Referenced by Editor(), exportToGraphML(), StateStyleChangeCommand::redo(), StateStyleDialog::setParams(), State::State(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| QString Editor::dimStateLabelColor |
Definition at line 223 of file editor.h.
Referenced by Editor(), exportToGraphML(), StateStyleChangeCommand::redo(), StateStyleDialog::setParams(), State::State(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| float Editor::dimStateLineCoef |
Definition at line 222 of file editor.h.
Referenced by Editor(), exportToGraphML(), StateStyleChangeCommand::redo(), StateStyleDialog::setParams(), State::State(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| QString Editor::dimStateLineColor |
Definition at line 221 of file editor.h.
Referenced by Editor(), exportToGraphML(), StateStyleChangeCommand::redo(), StateStyleDialog::setParams(), State::State(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| Qt::PenStyle Editor::dimStateLineStyle |
Definition at line 220 of file editor.h.
Referenced by Editor(), exportToGraphML(), StateStyleChangeCommand::redo(), StateStyleDialog::setParams(), State::State(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| QString Editor::edgeLabelColor |
Definition at line 237 of file editor.h.
Referenced by Parser::checkTrParam(), Parser::ChgParam(), Editor(), exportToGraphML(), Transition::getVCParams(), TransitionStyleChangeCommand::redo(), saveGraph(), saveVCSettings(), TransitionStyleDialog::setParams(), setTrPrevParamsDef(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| float Editor::edgeLabelScale |
Definition at line 238 of file editor.h.
Referenced by Parser::ChgParam(), Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), saveVCSettings(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
Definition at line 250 of file editor.h.
Referenced by Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| QString Editor::edgeLineBorderColor |
Definition at line 251 of file editor.h.
Referenced by Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| QString Editor::edgeLineColor |
Definition at line 236 of file editor.h.
Referenced by Parser::checkTrParam(), Parser::ChgParam(), Editor(), exportToGraphML(), Transition::getVCParams(), TransitionStyleChangeCommand::redo(), saveGraph(), saveVCSettings(), TransitionStyleDialog::setParams(), setTrPrevParamsDef(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| float Editor::edgeLineDblCoef |
Definition at line 255 of file editor.h.
Referenced by Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| float Editor::edgeLineDblSep |
Definition at line 256 of file editor.h.
Referenced by Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
Definition at line 239 of file editor.h.
Referenced by Parser::checkTrParam(), Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), saveGraph(), saveVCSettings(), TransitionStyleDialog::setParams(), setTrPrevParamsDef(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| Qt::PenStyle Editor::edgeLineStyle |
Definition at line 234 of file editor.h.
Referenced by Parser::checkTrParam(), Parser::ChgParam(), Editor(), exportToGraphML(), Transition::getVCParams(), TransitionStyleChangeCommand::redo(), saveGraph(), saveVCSettings(), TransitionStyleDialog::setParams(), setTrPrevParamsDef(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
| float Editor::edgeLineWidth |
Definition at line 235 of file editor.h.
Referenced by Parser::ChgParam(), Editor(), exportToGraphML(), TransitionStyleChangeCommand::redo(), saveVCSettings(), TransitionStyleDialog::setParams(), Transition::Transition(), TransitionStyleChangeCommand::TransitionStyleChangeCommand(), and TransitionStyleChangeCommand::undo().
QString Editor::fileName [protected] |
Definition at line 463 of file editor.h.
Referenced by Editor(), getFileName(), setClean(), and setFileName().
QRect Editor::gridRect [protected] |
VauCanSon-G grid metrics.
Definition at line 408 of file editor.h.
Referenced by drawBackground(), generateGraph(), getGridRect(), mapToGrid(), mouseMoveEvent(), paste(), runAlgorithm(), saveHeader(), showGridRectDialog(), and toScenePos().
TAlgorithmList Editor::m_algorithmList [protected] |
holds list of available algorithms
Definition at line 488 of file editor.h.
Referenced by addAlgorithm(), and runAlgorithm().
int Editor::m_currentDrawAlgorithm [protected] |
index of lastly used drawing algorithm
Definition at line 492 of file editor.h.
Referenced by addGraphVizDrawAlgorithm(), Editor(), loadAutomata(), and runAlgorithm().
EMouseAction Editor::m_currentMouseAction [protected] |
holds current mouse action
Definition at line 424 of file editor.h.
Referenced by mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
TDrawAlgorithmList Editor::m_drawAlgorithmList [protected] |
holds drawing algorithms
Definition at line 491 of file editor.h.
Referenced by addGraphVizDrawAlgorithm(), Editor(), getDrawAlgorithms(), loadAutomata(), and runAlgorithm().
bool Editor::m_itemsMoved [protected] |
for performance -> no undo command needed if nothing is moved
Definition at line 474 of file editor.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and moveState().
EMouseClick Editor::m_lastMouseAction [protected] |
QPointF Editor::m_origPos [protected] |
original mouse position for moving with multiple states
Definition at line 472 of file editor.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and moveState().
QVector<QPointF> Editor::m_origPositions [protected] |
original positions of selected items before moving them
Definition at line 473 of file editor.h.
Referenced by mousePressEvent(), mouseReleaseEvent(), and moveState().
QPoint Editor::m_popupPoint [protected] |
Definition at line 456 of file editor.h.
Referenced by mouseReleaseEvent(), and pasteOnPos().
QRubberBand* Editor::m_rubberBand [protected] |
determines current selection
Definition at line 468 of file editor.h.
Referenced by Editor(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
QPoint Editor::m_rubberBandOrigin [protected] |
rubberBand origin point (stored on press event)
Definition at line 469 of file editor.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
bool Editor::m_sceneChanged [protected] |
performance flag for better handling mouse release event -> if scene has been changed, view's sceneRect should be updated
Definition at line 481 of file editor.h.
Referenced by mouseReleaseEvent(), and sceneChanged().
EAction Editor::m_selectedAction [protected] |
holds selected editor tool
Definition at line 423 of file editor.h.
Referenced by getAction(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and setAction().
bool Editor::m_simulationIsRun [protected] |
if simulation is running, no operations with object on scene are available
Definition at line 483 of file editor.h.
Referenced by canRedoChangedSlot(), canUndoChangedSlot(), isPastePossible(), mouseDoubleClickEvent(), mousePressEvent(), simulateAutomatonWork(), simulationFinished(), and updateMenuState().
bool Editor::m_stateIsMoving [protected] |
special selected state of editor, state is moved by mouse move, click to release this mode
Definition at line 477 of file editor.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), moveState(), and showPopup().
TStateMap Editor::m_stateMap [protected] |
Definition at line 428 of file editor.h.
Referenced by addToListsAndScene(), expandGrid(), generateDistance(), generateExactMatching(), getStateByName(), getStateList(), getUniqueAutoName(), loadAutomata(), loadAutomaton(), newFile(), removeFromListsAndScene(), renameState(), saveGraph(), and testStateName().
TTransitionList Editor::m_transitionList [protected] |
Definition at line 429 of file editor.h.
Referenced by addToListAndScene(), exportToGraphML(), getTransitionList(), newFile(), removeFromListAndScene(), removeSelection(), runAlgorithm(), and saveGraph().
QUndoStack* Editor::m_undoStack [protected] |
undo, redo functionality
Definition at line 435 of file editor.h.
Referenced by addToUndoStack(), createUndoView(), Editor(), editState(), editStateParams(), editTransition(), editTransitionParams(), expandGrid(), generateGraph(), insertState(), insertTransition(), isChanged(), mouseReleaseEvent(), TransitionStyleDialog::myAccept(), StateStyleDialog::myAccept(), newFile(), paste(), redo(), removeSelection(), removeState(), removeTransition(), runAlgorithm(), saveToFile(), setClean(), setStatesMarked(), showGridRectDialog(), simulateAutomatonWork(), slotAlignToGrid(), slotShowFrame(), slotShowGrid(), stateMoved(), undo(), updateMenuState(), and ~Editor().
UndoView* Editor::m_undoView [protected] |
allows to show m_undoStack and operate on it
Definition at line 436 of file editor.h.
Referenced by createUndoView(), Editor(), showUndoView(), and updateMenuState().
qreal Editor::m_zoomInFactor [protected] |
MainWindow* Editor::mw [protected] |
parent window, for display messages with statusBar()
Definition at line 404 of file editor.h.
Referenced by editState(), editStateParams(), editTransition(), editTransitionParams(), exportToEPS(), exportToGraphML(), exportToPixmap(), insertState(), insertTransition(), mouseMoveEvent(), openFile(), saveToFile(), setClean(), setFileName(), setStatusBar(), slotAlignToGrid(), slotShowFrame(), slotShowGrid(), and slotSnapToGrid().
int Editor::newStateNumber [protected] |
automatic naming as Q1, Q2, ...
Definition at line 426 of file editor.h.
Referenced by Editor(), getNewStateNumber(), increaseNewStateNumber(), and newFile().
QMenu* Editor::popup [protected] |
Definition at line 441 of file editor.h.
Referenced by Editor(), and mouseReleaseEvent().
QAction* Editor::popupOneStateTransitionEdit [protected] |
Definition at line 453 of file editor.h.
Referenced by Editor(), and showPopup().
QAction* Editor::popupPasteHere [protected] |
Definition at line 442 of file editor.h.
Referenced by Editor(), and mouseReleaseEvent().
QMenu* Editor::popupSelection [protected] |
Definition at line 444 of file editor.h.
Referenced by Editor(), and mouseReleaseEvent().
QMenu* Editor::popupState [protected] |
Definition at line 446 of file editor.h.
Referenced by Editor(), and showPopup().
QAction* Editor::popupStateLabel [protected] |
Definition at line 447 of file editor.h.
Referenced by Editor(), and showPopup().
QMenu* Editor::popupTransition [protected] |
Definition at line 449 of file editor.h.
Referenced by Editor(), and showPopup().
QAction* Editor::popupTransitionEdit [protected] |
Definition at line 452 of file editor.h.
Referenced by Editor(), and showPopup().
QAction* Editor::popupTransitionLabel [protected] |
Definition at line 450 of file editor.h.
Referenced by Editor(), and showPopup().
QAction* Editor::popupTwoStatesTransitionEdit [protected] |
Definition at line 454 of file editor.h.
Referenced by Editor(), and showPopup().
bool Editor::saved [protected] |
Definition at line 464 of file editor.h.
Referenced by isSaved(), newFile(), openFile(), saveToFile(), and setClean().
int Editor::sceneBorder [protected] |
Definition at line 405 of file editor.h.
Referenced by getBorder(), setBorder(), setGridRect(), setRightSceneRect(), and showGridRectDialog().
State* Editor::selectedState [protected] |
for operations on states
Definition at line 411 of file editor.h.
Referenced by copyState(), editState(), editStateParams(), insertTransition(), mouseMoveEvent(), mousePressEvent(), moveState(), removeFromListsAndScene(), removeState(), setAction(), setSelectedState(), and showPopup().
Transition* Editor::selectedTransition [protected] |
for operations on transitions
Definition at line 412 of file editor.h.
Referenced by editNextLabels(), editOneStateTransition(), editTransition(), editTransitionParams(), editTwoStatesTransition(), removeTransition(), setSelectedTransition(), and showPopup().
bool Editor::showFrame [protected] |
Definition at line 433 of file editor.h.
Referenced by drawBackground(), getPrintRect(), openFile(), Parser::Parser(), Parser::Predeclaration(), saveHeader(), setShowGridFrame(), slotShowFrame(), and slotShowGrid().
bool Editor::showGrid [protected] |
Definition at line 432 of file editor.h.
Referenced by drawBackground(), openFile(), Parser::Parser(), Parser::Predeclaration(), saveHeader(), setShowGridFrame(), slotShowFrame(), and slotShowGrid().
bool Editor::snapToGrid [protected] |
Definition at line 431 of file editor.h.
Referenced by mouseMoveEvent(), slotSnapToGrid(), and snapped().
State* Editor::startState [protected] |
for inserting transitions
Definition at line 410 of file editor.h.
Referenced by insertTransition(), redo(), setAction(), showPopup(), and undo().
| QString Editor::stateFillColor |
Definition at line 216 of file editor.h.
Referenced by Parser::ChgParam(), Editor(), exportToGraphML(), State::getVCParams(), StateStyleChangeCommand::redo(), saveGraph(), saveVCSettings(), StateStyleDialog::setParams(), setStatePrevParamsDef(), State::State(), Parser::StateDeclaration(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| Qt::BrushStyle Editor::stateFillStatus |
Definition at line 215 of file editor.h.
Referenced by Parser::ChgParam(), Editor(), exportToGraphML(), State::getVCParams(), StateStyleChangeCommand::redo(), saveGraph(), saveVCSettings(), StateStyleDialog::setParams(), setStatePrevParamsDef(), State::State(), Parser::StateDeclaration(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| QString Editor::stateLabelColor |
Definition at line 213 of file editor.h.
Referenced by Parser::ChgParam(), Editor(), exportToGraphML(), State::getVCParams(), StateStyleChangeCommand::redo(), saveGraph(), StateStyleDialog::setParams(), setStatePrevParamsDef(), State::State(), Parser::StateDeclaration(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| float Editor::stateLabelScale |
Definition at line 214 of file editor.h.
Referenced by Parser::ChgParam(), Editor(), exportToGraphML(), StateStyleChangeCommand::redo(), saveVCSettings(), StateStyleDialog::setParams(), State::State(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| QString Editor::stateLineColor |
Definition at line 212 of file editor.h.
Referenced by Parser::ChgParam(), Editor(), exportToGraphML(), State::getVCParams(), StateStyleChangeCommand::redo(), saveGraph(), saveVCSettings(), StateStyleDialog::setParams(), setStatePrevParamsDef(), State::State(), Parser::StateDeclaration(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
Definition at line 228 of file editor.h.
Referenced by Editor(), exportToGraphML(), StateStyleChangeCommand::redo(), StateStyleDialog::setParams(), State::State(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
Definition at line 229 of file editor.h.
Referenced by Editor(), exportToGraphML(), StateStyleChangeCommand::redo(), StateStyleDialog::setParams(), State::State(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| Qt::PenStyle Editor::stateLineStyle |
Definition at line 210 of file editor.h.
Referenced by Parser::ChgParam(), Editor(), exportToGraphML(), State::getVCParams(), StateStyleChangeCommand::redo(), saveGraph(), saveVCSettings(), StateStyleDialog::setParams(), setStatePrevParamsDef(), State::State(), Parser::StateDeclaration(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
| float Editor::stateLineWidth |
Definition at line 211 of file editor.h.
Referenced by Parser::ChgParam(), Editor(), exportToGraphML(), StateStyleChangeCommand::redo(), saveVCSettings(), StateStyleDialog::setParams(), State::State(), StateStyleChangeCommand::StateStyleChangeCommand(), and StateStyleChangeCommand::undo().
1.7.0