+++ /dev/null
-
-/*
- * CINELERRA
- * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#ifndef VWINDOWGUI_H
-#define VWINDOWGUI_H
-
-#include "asset.inc"
-#include "canvas.h"
-#include "editpanel.h"
-#include "guicast.h"
-#include "mainclock.inc"
-#include "meterpanel.h"
-#include "mwindow.inc"
-#include "playtransport.h"
-
-#include "timebar.h"
-
-#include "vtimebar.inc"
-#include "vwindow.inc"
-#include "zoompanel.h"
-
-class VWindowZoom;
-class VWindowSource;
-class VWindowTransport;
-class VWindowEditing;
-class VWindowCanvas;
-class VWindowMeters;
-class VWindowInPoint;
-class VWindowOutPoint;
-
-class VWindowGUI : public BC_Window
-{
-public:
- VWindowGUI(MWindow *mwindow, VWindow *vwindow);
- ~VWindowGUI();
-
- void create_objects();
- int resize_event(int w, int h);
- int translation_event();
- int close_event();
- int keypress_event();
- int button_press_event();
- int cursor_leave_event();
- int cursor_enter_event();
- int button_release_event();
- int cursor_motion_event();
-// Update source pulldown with new assets
- void update_sources(const char *title);
-// Update GUI to reflect new source
- void change_source(EDL *edl, const char *title);
- void drag_motion();
- int drag_stop();
-// void update_labels();
-// void update_points();
- void update_meters();
-
- MWindow *mwindow;
- VWindow *vwindow;
-
-// Meters are numbered from right to left
- VWindowCanvas *canvas;
-
- BC_Title *fps_title;
- MainClock *clock;
- VTimeBar *timebar;
- VWindowZoom *zoom_panel;
- VWindowTransport *transport;
- VWindowEditing *edit_panel;
-// VWindowSource *source;
- VWindowMeters *meters;
- ArrayList<BC_ListBoxItem*> sources;
- ArrayList<LabelGUI*> labels;
- VWindowInPoint *in_point;
- VWindowOutPoint *out_point;
-
-private:
- void get_scrollbars(int &canvas_x, int &canvas_y, int &canvas_w, int &canvas_h);
-};
-
-
-class VWindowMeters : public MeterPanel
-{
-public:
- VWindowMeters(MWindow *mwindow, VWindowGUI *gui, int x, int y, int h);
- ~VWindowMeters();
-
- int change_status_event(int new_status);
-
- MWindow *mwindow;
- VWindowGUI *gui;
-};
-
-
-class VWindowCanvas : public Canvas
-{
-public:
- VWindowCanvas(MWindow *mwindow, VWindowGUI *gui);
-
- void zoom_resize_window(float percentage);
- void draw_refresh(int flush = 1);
- void draw_overlays();
- void close_source();
- int get_fullscreen();
- void set_fullscreen(int value);
-
- MWindow *mwindow;
- VWindowGUI *gui;
-};
-
-class VWindowEditing : public EditPanel
-{
-public:
- VWindowEditing(MWindow *mwindow, VWindow *vwindow);
- virtual ~VWindowEditing();
-
- void copy_selection();
- void splice_selection();
- void overwrite_selection();
- void set_inpoint();
- void set_outpoint();
- void clear_inpoint();
- void clear_outpoint();
- void to_clip();
- void toggle_label();
- void prev_label();
- void next_label();
-
- MWindow *mwindow;
- VWindow *vwindow;
-};
-
-class VWindowZoom : public ZoomPanel
-{
-public:
- VWindowZoom(MWindow *mwindow, VWindowGUI *gui, int x, int y);
- ~VWindowZoom();
- int handle_event();
- MWindow *mwindow;
- VWindowGUI *gui;
-};
-
-
-class VWindowSource : public BC_PopupTextBox
-{
-public:
- VWindowSource(MWindow *mwindow, VWindowGUI *vwindow, int x, int y);
- ~VWindowSource();
- int handle_event();
- VWindowGUI *vwindow;
- MWindow *mwindow;
-};
-
-class VWindowTransport : public PlayTransport
-{
-public:
- VWindowTransport(MWindow *mwindow,
- VWindowGUI *gui,
- int x,
- int y);
- EDL* get_edl();
- void goto_start();
- void goto_end();
-
- VWindowGUI *gui;
-};
-
-class VWindowInPoint : public InPointGUI
-{
-public:
- VWindowInPoint(MWindow *mwindow,
- TimeBar *timebar,
- VWindowGUI *gui,
- long pixel,
- double position);
- int handle_event();
- VWindowGUI *gui;
-};
-
-
-class VWindowOutPoint : public OutPointGUI
-{
-public:
- VWindowOutPoint(MWindow *mwindow,
- TimeBar *timebar,
- VWindowGUI *gui,
- long pixel,
- double position);
- int handle_event();
- VWindowGUI *gui;
-};
-
-#endif