// note, final element will automatically have a "Quit" transition, added by the action state machine.
// Get the xml of the tree node
QStringxml=doc->toString();
// note: final element will automatically have a "Quit" transition, added by the action state machine.
// Write the xml to a file
QStringoutputFileName=QFileDialog::getSaveFileName(NULL,tr("Save history of actions ..."),Core::getCurrentWorkingDir()+"/actions_history.xml",tr("XML Files (*.xml)"));
QStringoutputFileName=QFileDialog::getSaveFileName(NULL,tr("Save history of actions ..."),Core::getCurrentWorkingDir()+"/camitk-history-"+QDateTime::currentDateTime().toString("yyyyMMdd-HHmmss")+".scxml",tr("SCXML Files (*.scxml)"));