#define AUTO_ZOOM N_("Auto")
+#define CROP_REFORMAT 0
+#define CROP_RESIZE 1
+#define CROP_SHRINK 2
+#define CROP_MODES 3
+
+
class CWindowGUI : public BC_Window
{
public:
void create_objects();
int resize_event(int w, int h);
- void zoom_canvas(double value, int update_menu);
- float get_auto_zoom();
+ void update_canvas(int redraw=1);
// Events for the fullscreen canvas fall through to here.
int button_press_event();
void keyboard_zoomout();
void update_meters();
void stop_transport(const char *lock_msg);
+ void sync_parameters(int change_type, int redraw=0, int overlay=0);
MWindow *mwindow;
CWindow *cwindow;
CTimeBar *timebar;
BC_Pixmap *active;
BC_Pixmap *inactive;
+ VFrame *focus_frame;
// MainClock *clock;
void panel_fit_autos(int all);
void panel_set_editing_mode(int mode);
void panel_set_auto_keyframes(int v);
+ void panel_set_span_keyframes(int v);
void panel_set_labels_follow_edits(int v);
MWindow *mwindow;
{
public:
CWindowTransport(MWindow *mwindow,
- CWindowGUI *gui,
- int x,
- int y);
+ CWindowGUI *gui, int x, int y);
+ bool use_mixers() { return true; }
EDL* get_edl();
void goto_start();
void goto_end();
int get_xscroll();
int get_yscroll();
float get_zoom();
+ void zoom_auto();
+ int do_scroll(EDL *edl, float cursor_x, float cursor_y);
int do_eyedrop(int &rerender, int button_press, int draw);
int do_mask(int &redraw,
int &rerender,
int button_press,
int cursor_motion,
int draw);
+ int do_mask_focus();
void draw_refresh(int flash = 1);
int need_overlays();
void draw_overlays();
int cursor_motion_event();
int button_press_event();
int button_release_event();
- int get_fullscreen();
- void set_fullscreen(int value);
int test_crop(int button_press, int &redraw);
int test_bezier(int button_press,
int &redraw,
void reset_camera();
void reset_projector();
void draw_crophandle(int x, int y);
- void zoom_auto();
+ int set_fullscreen(int on, int unlock);
-// Draw the projector overlay in different colors.
- void draw_bezier(int do_camera);
+// Draw the camera/projector overlay in different colors.
+ void draw_outlines(int do_camera);
void draw_crop();
void calculate_origin();
void toggle_controls();
int get_cwindow_controls();
+ int get_clear_color();
MWindow *mwindow;
CWindowGUI *gui;
+ float last_xscroll, last_yscroll;
+ float last_zoom;
};
#endif