add window layout feature, resource wdw select used, blue_dot/blond_cv theme fix...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / mainmenu.h
index 2796e15571c84bd0f60de3985fd32f9ed9fafb41..b87e8088833b2b1e1f16586366d48d08ed3b7b26 100644 (file)
@@ -44,6 +44,8 @@ class KeyframeCurveTypeItem;
 class SplitX;
 class SplitY;
 class MixerViewer;
+class LoadLayoutItem;
+class LoadLayout;
 
 
 #include "arraylist.h"
@@ -67,6 +69,9 @@ class MixerViewer;
 #define TOTAL_LOADS 10      // number of files to cache
 #define TOTAL_EFFECTS 10     // number of effects to cache
 
+#define LAYOUT_LOAD 0
+#define LAYOUT_SAVE 1
+
 class MainMenu : public BC_MenuBar
 {
 public:
@@ -148,6 +153,8 @@ public:
        SplitX *split_x;
        SplitY *split_y;
        MixerViewer *mixer_viewer;
+       LoadLayout *load_layout;
+       LoadLayout *save_layout;
 };
 
 // ========================================= edit
@@ -705,4 +712,25 @@ public:
        MWindow *mwindow;
 };
 
+
+class LoadLayoutItem : public BC_MenuItem
+{
+public:
+       LoadLayoutItem(LoadLayout *load_layout, const char *text, int no, int hotkey);
+       int handle_event();
+
+       int no;
+       LoadLayout *load_layout;
+};
+
+class LoadLayout : public BC_MenuItem
+{
+public:
+       LoadLayout(MWindow *mwindow, const char *text, int action);
+       void create_objects();
+
+       MWindow *mwindow; 
+       int action;
+};
+
 #endif