X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Feditpopup.h;h=89754a25b880ce9ebbb23f9b72723c67c49326e7;hb=7fa4ccc2c91d37f20f3618261e4cbaa9d5d3c740;hp=50ae929382ebaeb0c723039f4324fd2871397bfc;hpb=b30123c9534e8df8da1694d40396d86396bf1c08;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/editpopup.h b/cinelerra-5.1/cinelerra/editpopup.h index 50ae9293..89754a25 100644 --- a/cinelerra-5.1/cinelerra/editpopup.h +++ b/cinelerra-5.1/cinelerra/editpopup.h @@ -29,12 +29,23 @@ #include "plugindialog.inc" #include "resizetrackthread.inc" -class EditPopupResize; +class EditPopup; class EditPopupMatchSize; +class EditPopupResize; +class EditPopupDeleteTrack; +class EditPopupAddTrack; +class EditPopupFindAsset; +class EditAttachEffect; +class EditMoveTrackUp; +class EditMoveTrackDown; +class EditPopupTitle; +class EditTitleDialogThread; class EditPopupTitleText; class EditPopupTitleWindow; -class EditPopupTitleButton; -class EditPopupTitleButtonRes; +class EditPopupShow; +class EditShowDialogThread; +class EditPopupShowText; +class EditPopupShowWindow; class EditPopup : public BC_PopupMenu { @@ -144,38 +155,51 @@ public: class EditPopupTitle : public BC_MenuItem { public: - EditPopupTitle (MWindow *mwindow, EditPopup *popup); + EditPopupTitle(MWindow *mwindow, EditPopup *popup); ~EditPopupTitle(); int handle_event(); MWindow *mwindow; EditPopup *popup; + EditTitleDialogThread *dialog_thread; +}; + +class EditTitleDialogThread : public BC_DialogThread +{ +public: + EditTitleDialogThread(EditPopupTitle *edit_title); + ~EditTitleDialogThread(); + BC_Window* new_gui(); + void start(int wx, int wy); + void handle_close_event(int result); + void handle_done_event(int result); + + int wx, wy; + EditPopupTitle *edit_title; EditPopupTitleWindow *window; }; class EditPopupTitleText : public BC_TextBox { public: - EditPopupTitleText (EditPopupTitleWindow *window, + EditPopupTitleText(EditPopupTitleWindow *window, MWindow *mwindow, int x, int y, const char *text); ~EditPopupTitleText(); - int handle_event(); - EditPopupTitleWindow *window; MWindow *mwindow; + EditPopupTitleWindow *window; }; - class EditPopupTitleWindow : public BC_Window { public: - EditPopupTitleWindow (MWindow *mwindow, EditPopup *popup); - ~EditPopupTitleWindow (); + EditPopupTitleWindow(MWindow *mwindow, EditPopup *popup, int wx, int wy); + ~EditPopupTitleWindow(); void create_objects(); - int close_event(); + void handle_close_event(int result); EditPopupTitleText *title_text; MWindow *mwindow; @@ -183,4 +207,56 @@ public: char new_text[BCTEXTLEN]; }; + +class EditPopupShow : public BC_MenuItem +{ +public: + EditPopupShow(MWindow *mwindow, EditPopup *popup); + ~EditPopupShow(); + + int handle_event(); + + MWindow *mwindow; + EditPopup *popup; + EditShowDialogThread *dialog_thread; +}; + +class EditShowDialogThread : public BC_DialogThread +{ +public: + EditShowDialogThread(EditPopupShow *edit_show); + ~EditShowDialogThread(); + BC_Window* new_gui(); + void start(int wx, int wy); + void handle_close_event(int result); + + int wx, wy; + EditPopupShow *edit_show; + EditPopupShowWindow *window; +}; + +class EditPopupShowText : public BC_TextBox +{ +public: + EditPopupShowText(EditPopupShowWindow *window, + MWindow *mwindow, int x, int y, const char *text); + ~EditPopupShowText(); + + EditPopupShowWindow *window; + MWindow *mwindow; +}; + +class EditPopupShowWindow : public BC_Window +{ +public: + EditPopupShowWindow(MWindow *mwindow, EditPopup *popup, int wx, int wy); + ~EditPopupShowWindow(); + + void create_objects(); + + EditPopupShowText *show_text; + MWindow *mwindow; + EditPopup *popup; +}; + #endif