X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fformatpresets.h;fp=cinelerra-5.1%2Fcinelerra%2Fformatpresets.h;h=751ca94e7af9de7ba28f7179b5834c3a1fe752ac;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hp=0000000000000000000000000000000000000000;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/formatpresets.h b/cinelerra-5.1/cinelerra/formatpresets.h new file mode 100644 index 00000000..751ca94e --- /dev/null +++ b/cinelerra-5.1/cinelerra/formatpresets.h @@ -0,0 +1,105 @@ + +/* + * 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 FORMATPRESETS_H +#define FORMATPRESETS_H + + +#include "edl.inc" +#include "formatpresets.inc" +#include "guicast.h" +#include "mwindow.inc" +#include "new.inc" +#include "setformat.inc" + + +class FormatPresets +{ +public: + FormatPresets(MWindow *mwindow, + NewWindow *new_gui, + SetFormatWindow *format_gui, + int x, + int y); + virtual ~FormatPresets(); + + void create_objects(); + FormatPresetItem* find_preset(EDL *edl); + const char* get_preset_text(EDL *edl); + +// New preset selected + virtual int handle_event(); + virtual EDL* get_edl(); + + MWindow *mwindow; + BC_WindowBase *gui_base; + NewWindow *new_gui; + SetFormatWindow *format_gui; + FormatPresetsText *text; + FormatPresetsPulldown *pulldown; + int x, y; + ArrayList preset_items; +}; + + + +class FormatPresetsText : public BC_TextBox +{ +public: + FormatPresetsText(MWindow *mwindow, + FormatPresets *gui, + int x, + int y); + int handle_event(); +// Find the listbox item which corresponds to the values in the edl. + FormatPresets *gui; + MWindow *mwindow; +}; + +class FormatPresetsPulldown : public BC_ListBox +{ +public: + FormatPresetsPulldown(MWindow *mwindow, + FormatPresets *gui, + int x, + int y); + int handle_event(); + MWindow *mwindow; + FormatPresets *gui; +}; + +class FormatPresetItem : public BC_ListBoxItem +{ +public: + FormatPresetItem(MWindow *mwindow, FormatPresets *gui, const char *text); + ~FormatPresetItem(); + + MWindow *mwindow; + FormatPresets *gui; +// Storage of the values for the preset + EDL *edl; +}; + + + + + +#endif