X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Feditpanel.h;h=5a2bafe4a23e5953e33481b7fd8528df9c06657a;hb=c9c0e07706fad701a70ee0d1ffb0fcb6304f138c;hp=a8104612ba1b37a8aff4f835390ae42750e10e93;hpb=48a6854a1ca58aa291ffc6fe3a48807492dfbef7;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/editpanel.h b/cinelerra-5.1/cinelerra/editpanel.h index a8104612..5a2bafe4 100644 --- a/cinelerra-5.1/cinelerra/editpanel.h +++ b/cinelerra-5.1/cinelerra/editpanel.h @@ -382,6 +382,7 @@ public: class EditPanelGangTracks : public BC_Button { static VFrame **gang_images[TOTAL_GANGS]; + static const char *gang_tips[TOTAL_GANGS]; public: EditPanelGangTracks(MWindow *mwindow, EditPanel *panel, int x, int y); ~EditPanelGangTracks(); @@ -403,6 +404,71 @@ public: MWindow *mwindow; }; +class EditPanelTimecode : public BC_Button +{ +public: + EditPanelTimecode(MWindow *mwindow, EditPanel *panel, int x, int y); + ~EditPanelTimecode(); + int handle_event(); + MWindow *mwindow; + EditPanel *panel; + EditPanelTcDialog *tc_dialog; +}; + +class EditPanelTcDialog : public BC_DialogThread +{ +public: + EditPanelTcDialog(MWindow *mwindow, EditPanel *panel); + ~EditPanelTcDialog(); + BC_Window *new_gui(); + void start_dialog(int px, int py); + void handle_done_event(int result); + + MWindow *mwindow; + EditPanel *panel; + EditPanelTcWindow *tc_gui; + int px, py; +}; + +class EditPanelTcWindow : public BC_Window +{ +public: + EditPanelTcWindow(EditPanelTcDialog *tc_dialog, int x, int y); + ~EditPanelTcWindow(); + void create_objects(); + double get_timecode(); + void update(double timecode); + + EditPanelTcDialog *tc_dialog; + EditPanelTcInt *hours; + EditPanelTcInt *minutes; + EditPanelTcInt *seconds; + EditPanelTcInt *frames; +}; + +class EditPanelTcInt : public BC_TextBox +{ +public: + EditPanelTcInt(EditPanelTcWindow *window, int x, int y, int w, + int max, const char *format); + ~EditPanelTcInt(); + int handle_event(); + int keypress_event(); + void update(int v); + + EditPanelTcWindow *window; + int max, digits; + const char *format; +}; + +class EditPanelTcReset : public BC_Button +{ +public: + EditPanelTcReset(EditPanelTcWindow *window, int x, int y); + int handle_event(); + + EditPanelTcWindow *window; +}; class EditPanel { @@ -427,7 +493,8 @@ public: int use_goto, int use_clk2play, int use_scope, - int use_gang_tracks); + int use_gang_tracks, + int use_timecode); ~EditPanel(); void set_meters(MeterPanel *meter_panel); @@ -492,6 +559,7 @@ public: int use_clk2play; int use_scope; int use_gang_tracks; + int use_timecode; EditFit *fit; EditFitAutos *fit_autos; @@ -507,6 +575,7 @@ public: EditManualGoto *mangoto; EditClick2Play *click2play; EditPanelScope *scope; + EditPanelTimecode *timecode; EditPanelScopeDialog *scope_dialog; EditCopy *copy; EditPaste *paste;