From b8c877963f6ec943d91fa3f9f2a44741e1ddacdd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Thu, 28 Jan 2016 00:06:16 +0100 Subject: [PATCH] Implement missing functions --- src/edit/editor.cpp | 7 ++++++- src/edit/editor.h | 5 ----- 2 files changed, 6 insertions(+), 6 deletions(-) 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; -- 2.30.2