*/
void Editor::on_actionNew_triggered()
{
- editor->clear();
+ on_actionClear_all_triggered();
fname.sprintf("%s", "");}
/**
}
void Editor::on_actionCopy_triggered()
{
+ editor->copy();
}
void Editor::on_actionPaste_triggered()
{
+ editor->paste();
}
void Editor::on_actionCut_triggered()
{
+ editor->cut();
}
void Editor::on_actionClear_all_triggered()
{
+ editor->clear();
}
/**
* Program main function.
* argv[1] is mandatory and should be a path to the home directory of
* application (same as in configuration file).
+ *
* @param argc Number of program arguments
* @param argv Program arguments
*/