various small code cleanups and improvements

Largely refactoring work to make the code somewhat nicer to work with.
This commit is contained in:
itsmattkc
2019-12-26 19:00:08 +11:00
parent 83077c939e
commit 61c60e00d6
87 changed files with 596 additions and 567 deletions
+7 -5
View File
@@ -31,7 +31,9 @@ class MenuShared : public QObject {
public:
MenuShared();
void Initialize();
static void CreateInstance();
static void DestroyInstance();
void Retranslate();
void AddItemsForNewMenu(Menu* m);
@@ -39,6 +41,8 @@ public:
void AddItemsForInOutMenu(Menu* m);
void AddItemsForClipEditMenu(Menu* m);
static MenuShared* instance();
private:
// "New" menu shared items
QAction* new_project_item_;
@@ -68,6 +72,8 @@ private:
QAction* clip_enable_disable_item_;
QAction* clip_nest_item_;
static MenuShared* instance_;
private slots:
void SplitAtPlayhead();
@@ -75,8 +81,4 @@ private slots:
};
namespace olive {
extern MenuShared menu_shared;
}
#endif // MENUSHARED_H