X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fclipedit.h;fp=cinelerra-5.1%2Fcinelerra%2Fclipedit.h;h=57a78f108e1d814a12a162369c2bcad108b7b868;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hp=0000000000000000000000000000000000000000;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/clipedit.h b/cinelerra-5.1/cinelerra/clipedit.h new file mode 100644 index 00000000..57a78f10 --- /dev/null +++ b/cinelerra-5.1/cinelerra/clipedit.h @@ -0,0 +1,102 @@ + +/* + * CINELERRA + * Copyright (C) 2008 Adam Williams + * + * 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 CLIPEDIT_H +#define CLIPEDIT_H + +#include "awindow.inc" +#include "bcdialog.h" +#include "edl.inc" +#include "guicast.h" +#include "mwindow.inc" +#include "vwindow.inc" + +class ClipEditWindow; + +class ClipEdit : public BC_DialogThread +{ +public: + ClipEdit(MWindow *mwindow, AWindow *awindow, VWindow *vwindow); + ~ClipEdit(); + + void edit_clip(EDL *clip); + void create_clip(EDL *clip); +// After the window is closed and deleted, this is called. + void handle_close_event(int result); + +// User creates the window and initializes it here. + BC_Window* new_gui(); + +// If it is being created or edited + MWindow *mwindow; + AWindow *awindow; + VWindow *vwindow; + + + EDL *clip; + EDL *original; + ClipEditWindow *window; + int create_it; +}; + + + + +class ClipEditWindow : public BC_Window +{ +public: + ClipEditWindow(MWindow *mwindow, ClipEdit *thread); + ~ClipEditWindow(); + + void create_objects(); + + + int create_it; + MWindow *mwindow; + ClipEdit *thread; + BC_TextBox *titlebox; +}; + + + +class ClipEditTitle : public BC_TextBox +{ +public: + ClipEditTitle(ClipEditWindow *window, int x, int y, int w); + int handle_event(); + ClipEditWindow *window; +}; + + +class ClipEditComments : public BC_TextBox +{ +public: + ClipEditComments(ClipEditWindow *window, int x, int y, int w, int rows); + int handle_event(); + ClipEditWindow *window; +}; + + + + + + +#endif