From: Rafał Długołęcki Date: Wed, 27 Jan 2016 23:06:16 +0000 (+0100) Subject: Implement missing functions X-Git-Tag: 3.4-b1~36 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=b8c877963f6ec943d91fa3f9f2a44741e1ddacdd;p=vlp.git Implement missing functions --- diff --git a/src/edit/editor.cpp b/src/edit/editor.cpp index 5559ac4..c40795b 100644 --- a/src/edit/editor.cpp +++ b/src/edit/editor.cpp @@ -178,7 +178,7 @@ void Editor::compile(int mode) */ void Editor::on_actionNew_triggered() { - editor->clear(); + on_actionClear_all_triggered(); fname.sprintf("%s", "");} /** @@ -232,15 +232,19 @@ void Editor::on_actionQuit_triggered() } 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(); } /** @@ -511,6 +515,7 @@ void Editor::on_actionUnit_structure_triggered() * 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 */ diff --git a/src/edit/editor.h b/src/edit/editor.h index 7a3d85c..42b2c2c 100644 --- a/src/edit/editor.h +++ b/src/edit/editor.h @@ -39,11 +39,6 @@ public: public: void load(const char *fileName); void save(const char *fileName); - void props(); - void print(); - - void log_unit(); - void log_prog(); private: QString fname; QString find_text;