y">}
MainWindow :: on_buttonStartStop_clicked ()
{(ready)
{(running)
{= false;. stop ();> buttonStartStop-> setText (trUtf8 ("Старт"));
}
{= true;. start ();> buttonStartStop-> setText (trUtf8 ("Стоп"));
}
}
}
MainWindow :: on_horizontalSlider_sliderMoved (int position)
{. setInterval (position);
} MainWindow :: on_buttonReset_clicked ()
{= 0; = 0;> widget-> setResultText (QString ("")); =
}
MainWindow :: on_lineEndState_editingFinished ()
{. clear (); str; (int i = 0; i lineEndState-> text (). length (); i + +)
{(stateSet.contains (ui-> lineEndState-> text (). at (i)))
{+ = ui-> lineEndState-> text (). at (i); + = ui-> lineEndState-> text (). at (i);
}
}> lineEndState-> setText (str);
}
MainWindow :: isAllowedState (const QChar c)
{allowedStateSet.contains (c);
}
MainWindow :: getMeaningByState (const QChar c)
{(int i = 0; i meaningsTable-> rowCount (); i + +)
{(ui-> meaningsTable-> verticalHeaderItem (i) -> text (). at (0) == c)
{str = ui-> meaningsTable-> item (i, 0) -> text (); str;
}
}
}
MainWindow :: on_lineAllowedState_editingFinished ()
{. clear (); (int i = 0; i lineAllowedState-> text (). length (); i + +)
{(stateSet.contains (ui-> lineAllowedState-> text (). at (i)))
{+ = ui-> lineAllowedState-> text (). at (i);
}
}
}
MainWindow :: on_pushButton_clicked ()
{> setRules ();
}
MainWindow :: on_about_triggered ()
{* box = new Протозанов Євген nІжГТУ 4-78-10 2012 "))),> setWindowTitle (QString (trUtf8 (" Машина Тьюрінга "))),> show ();
}
MainWindow :: on_about_Qt_triggered ()
{:: aboutQt (this, trUtf8 ("Про Qt"));
}
4. Реалізація visualization.cpp
# include
# include
# include
# include
...