wintv remote control + kernel patch, add codec fileref, amp up OpenEDL, add loadmode...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / mwindowgui.h
index ee920186dd8fc3787edabd103b6fc6cb1c696423..4ac94fed5262e6bd7bd253d2c68fb32b6eff8e70 100644 (file)
@@ -42,7 +42,6 @@
 #include "pluginpopup.inc"
 #include "record.inc"
 #include "remotecontrol.h"
-#include "record.inc"
 #include "renderengine.inc"
 #include "resourcepixmap.h"
 #include "resourcethread.inc"
 #include "timelinepane.inc"
 #include "track.inc"
 #include "trackcanvas.inc"
+#include "trackpopup.inc"
 #include "trackscroll.inc"
 #include "transitionpopup.inc"
+#include "wintv.inc"
 #include "zoombar.inc"
 
 
@@ -78,6 +79,16 @@ public:
        MButtons *mbuttons;
 };
 
+class StackButton : public BC_GenericButton
+{
+public:
+       StackButton(MWindow *mwindow, int x, int y);
+       int handle_event();
+       void update();
+
+       MWindow *mwindow;
+};
+
 class ProxyToggle : public BC_Toggle
 {
 public:
@@ -111,9 +122,11 @@ public:
        int focus_in_event();
        int focus_out_event();
 
-// do_canvas - 1 for incremental drawing of resources
-//          FORCE_REDRAW for delete and redraw of resources
-//          IGNORE_THREAD to ignore picon thread
+// do_canvas -
+//   NO_DRAW disable canvas draw
+//   IGNORE_THREAD to ignore picon thread
+//   NORMAL_DRAW for incremental drawing of resources
+//   FORCE_REDRAW for delete and redraw of resources
        void update(int scrollbars,
                int do_canvas,
                int timebar,
@@ -130,7 +143,7 @@ public:
        void update_proxy_toggle();
        void update_plugintoggles();
        void update_scrollbars(int flush);
-       void draw_canvas(int mode, int hide_cursor);
+       void draw_canvas(int redraw, int hide_cursor);
        void flash_canvas(int flush);
        int show_window(int flush=1);
        void deactivate_timeline();
@@ -161,7 +174,7 @@ public:
        int menu_w();
        int menu_h();
 // Draw on the status bar only.
-       void show_message(const char *message, int color=-1);
+       void show_message(const char *message, int msg_color=-1, int box_color=-1);
        void update_default_message();
        void reset_default_message();
        void default_message();
@@ -210,6 +223,7 @@ public:
        DbWindow *db_window;
        SWindow *swindow;
 // Popup menus
+       TrackPopup *track_menu;
        EditPopup *edit_menu;
        PluginPopup *plugin_menu;
        KeyframePopup *keyframe_menu;
@@ -221,6 +235,7 @@ public:
        MButtons *mbuttons;
        FFMpegToggle *ffmpeg_toggle;
        ProxyToggle *proxy_toggle;
+       StackButton *stack_button;
        PaneDivider *x_divider;
        PaneDivider *y_divider;
        TimelinePane *pane[TOTAL_PANES];
@@ -255,8 +270,9 @@ public:
 // remote control
        AndroidControl *android_control;
        RemoteControl *remote_control;
-       CWindowRemoteHandler *cwindow_remote_handler;
-       RecordRemoteHandler *record_remote_handler;
+       WinTV *wintv;
+       RemoteHandler *cwindow_remote_handler;
+       RemoteHandler *record_remote_handler;
 };
 
 #endif