Implement missing functions
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Wed, 27 Jan 2016 23:06:16 +0000 (00:06 +0100)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Wed, 27 Jan 2016 23:06:16 +0000 (00:06 +0100)
src/edit/editor.cpp
src/edit/editor.h

index 5559ac4dbd0c95a45d48944b6abbb219719524ea..c40795bafb16c6b8917f1635e084dd61051d3b7c 100644 (file)
@@ -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
  */
index 7a3d85c7eeb22dd5e924f91b95e2926b7382db0b..42b2c2cf28ae43359def3e83b05b23014b5e7d5c 100644 (file)
@@ -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;