fix aspect ratio on split screen drag handle, add videoscope to editpanel in cwindow...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / canvas.h
index 140f70f2fd27c598ad6a03e67fe1d52cb172cbbf..c3cb283140e39d9a61d02167423abbc776f77112 100644 (file)
@@ -79,18 +79,13 @@ public:
        virtual void toggle_controls() {}
        virtual int get_cwindow_controls() { return 0; }
        virtual int get_fullscreen();
-       virtual void set_fullscreen(int value);
        virtual int get_clear_color();
-       virtual int use_fullscreen(int on);
+       virtual int set_fullscreen(int on, int unlock);
 
        int cursor_leave_event_base(BC_WindowBase *caller);
        int cursor_enter_event_base(BC_WindowBase *caller);
        int button_press_event_base(BC_WindowBase *caller);
        int keypress_event(BC_WindowBase *caller);
-// Use menu different options for different windows
-       void use_cwindow();
-       void use_rwindow();
-       void use_vwindow();
        void use_auxwindow(BC_WindowBase *aux);
 
 // Provide canvas dimensions since a BC_Bitmap containing obsolete dimensions
@@ -131,6 +126,10 @@ public:
 // Redraws the refresh_frame
        virtual void draw_refresh(int flush = 1) {};
        virtual void clear(int flash=1);
+// draw scope
+       virtual int scope_on() { return 0; }
+       virtual void draw_scope(VFrame *frame) {}
+       void process_scope(VideoDevice *video, VFrame *frame);
 
 // Get top left offset of canvas relative to output.
 // Normally negative.  Can be positive if output is smaller than canvas.
@@ -284,8 +283,6 @@ public:
        CanvasFullScreenPopup(Canvas *canvas);
 
        void create_objects();
-       void use_cwindow();
-
        Canvas *canvas;
 };
 
@@ -304,12 +301,7 @@ public:
        ~CanvasPopup();
 
        void create_objects();
-       void use_cwindow();
-       void use_rwindow();
-       void use_vwindow();
-
        Canvas *canvas;
-       CanvasToggleControls *toggle_controls;
 };
 
 class CanvasZoomSize : public BC_MenuItem
@@ -378,15 +370,6 @@ public:
        Canvas *canvas;
 };
 
-class CanvasToggleControls : public BC_MenuItem
-{
-public:
-       CanvasToggleControls(Canvas *canvas);
-       int handle_event();
-       static char* calculate_text(int cwindow_controls);
-       Canvas *canvas;
-};
-
 class CanvasFullScreenItem : public BC_MenuItem
 {
 public:
@@ -403,7 +386,6 @@ public:
        Canvas *canvas;
 };
 
-
 class CanvasPopupRemoveSource : public BC_MenuItem
 {
 public:
@@ -412,8 +394,4 @@ public:
        Canvas *canvas;
 };
 
-
-
-
-
 #endif