3131
3232#define MAJOR_VERSION 0
3333#define MINOR_VERSION 0
34- #define BUGFIX_VERSION 1
34+ #define BUGFIX_VERSION 2
3535
3636MainWindow::MainWindow (QWidget *parent) :
3737 QMainWindow(parent),
@@ -70,6 +70,26 @@ MainWindow::MainWindow(QWidget *parent) :
7070
7171 m_signal.setComponent (ui->nodalView ->getOutput ()->component ());
7272
73+ // ===== Edit Menu =====
74+
75+ QAction* act_selectAll = new QAction (" Select All" , this );
76+ act_selectAll->setShortcut (QKeySequence::SelectAll);
77+ connect (act_selectAll, SIGNAL (triggered ()), ui->nodalView , SLOT (selectAll ()));
78+
79+ QAction* act_copy = new QAction (" Copy" , this );
80+ act_copy->setShortcut (QKeySequence::Copy);
81+ connect (act_copy, SIGNAL (triggered ()), ui->nodalView , SLOT (copyComponents ()));
82+
83+ QAction* act_paste = new QAction (" Paste" , this );
84+ act_paste->setShortcut (QKeySequence::Paste);
85+ connect (act_paste, SIGNAL (triggered ()), ui->nodalView , SLOT (pasteComponents ()));
86+
87+ ui->menuEdit ->addAction (act_copy);
88+ ui->menuEdit ->addAction (act_paste);
89+ ui->menuEdit ->addAction (act_selectAll);
90+
91+ // ===== Component Menu =====
92+
7393 QMenu* menu_Add = new QMenu (" Add" , this );
7494 ui->menuComponents ->addMenu (menu_Add);
7595
@@ -87,6 +107,8 @@ MainWindow::MainWindow(QWidget *parent) :
87107 menu_Add->addAction (action);
88108 }
89109
110+ // ===== Audio Menu =====
111+
90112 QAction* act_generate = new QAction (" Generate" , this );
91113 act_generate->setShortcut (QKeySequence::Refresh);
92114 connect (act_generate, SIGNAL (triggered ()), &m_signal, SLOT (generate ()));
0 commit comments