From 0921b67bca379566478979e61207efbf179ee055 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 26 Feb 2012 11:18:00 +0000 Subject: Corrected MdiChild focus issues when opening more than one file, enable or disable menu options when approriate. --- src/mainwindow.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index b76eaa8..0563aa9 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -33,10 +33,16 @@ private slots: void slot_open(); void slot_save(); void slot_save_as(); + + void slot_add(); + void slot_delete(); + void slot_duplicate(); + + void updateMenus(); private: - void init_actions(); - void init_menu(); + void initActions(); + void initMenus(); /// add a new child window EditorWindow *add_child(); @@ -56,6 +62,10 @@ private: QAction *action_save; QAction *action_save_as; QAction *action_quit; + + QAction *action_add; + QAction *action_delete; + QAction *action_duplicate; }; } -- cgit v1.2.3