Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

formatpresets.h

Go to the documentation of this file.
00001 #ifndef FORMATPRESETS_H
00002 #define FORMATPRESETS_H
00003 
00004 
00005 #include "edl.inc"
00006 #include "formatpresets.inc"
00007 #include "guicast.h"
00008 #include "mwindow.inc"
00009 #include "new.inc"
00010 #include "setformat.inc"
00011 
00012 
00013 class FormatPresets
00014 {
00015 public:
00016         FormatPresets(MWindow *mwindow,
00017                 NewWindow *new_gui, 
00018                 SetFormatWindow *format_gui, 
00019                 int x, 
00020                 int y);
00021         virtual ~FormatPresets();
00022 
00023         void create_objects();
00024         FormatPresetItem* find_preset(EDL *edl);
00025         char* get_preset_text(EDL *edl);
00026 
00027 // New preset selected
00028         virtual int handle_event();
00029         virtual EDL* get_edl();
00030         
00031         MWindow *mwindow;
00032         BC_WindowBase *gui_base;
00033         NewWindow *new_gui;
00034         SetFormatWindow *format_gui;
00035         FormatPresetsText *text;
00036         FormatPresetsPulldown *pulldown;
00037         int x, y;
00038         ArrayList<FormatPresetItem*> preset_items;
00039 };
00040 
00041 
00042 
00043 class FormatPresetsText : public BC_TextBox
00044 {
00045 public:
00046         FormatPresetsText(MWindow *mwindow, 
00047                 FormatPresets *gui,
00048                 int x, 
00049                 int y);
00050         int handle_event();
00051 // Find the listbox item which corresponds to the values in the edl.
00052         FormatPresets *gui;
00053         MWindow *mwindow;
00054 };
00055 
00056 class FormatPresetsPulldown : public BC_ListBox
00057 {
00058 public:
00059         FormatPresetsPulldown(MWindow *mwindow, 
00060                 FormatPresets *gui, 
00061                 int x, 
00062                 int y);
00063         int handle_event();
00064         MWindow *mwindow;
00065         FormatPresets *gui;
00066 };
00067 
00068 class FormatPresetItem : public BC_ListBoxItem
00069 {
00070 public:
00071         FormatPresetItem(MWindow *mwindow, FormatPresets *gui, char *text);
00072         ~FormatPresetItem();
00073 
00074         MWindow *mwindow;
00075         FormatPresets *gui;
00076 // Storage of the values for the preset
00077         EDL *edl;
00078 };
00079 
00080 
00081 
00082 
00083 
00084 #endif

Generated on Sun Jan 8 13:38:55 2006 for Cinelerra-svn by  doxygen 1.4.4