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

bcrecentlist.h

Go to the documentation of this file.
00001 #ifndef BCRECENTLIST_H
00002 #define BCRECENTLIST_H
00003 
00004 #include "bclistbox.h"
00005 #include "bctextbox.inc"
00006 #include "defaults.inc"
00007 
00008 // Maintain a list of text items (up to 'max') from session to session.
00009 // List automatically saved to Cinelerra_rc as 'RECENT_prefix_0', etc.
00010 // Item value is written to 'text_box' when item is selected (if textbox set)
00011 
00012 #define RECENT_MAX_ITEMS 10
00013 #define RECENT_POPUP_HEIGHT 100
00014 
00015 class BC_RecentList : public BC_ListBox
00016 {
00017  public:
00018         BC_RecentList(const char *type, Defaults *defaults, 
00019                       BC_TextBox *textbox, int max,
00020                       int x, int y, int w, int h);
00021         BC_RecentList(const char *type, Defaults *defaults);
00022         BC_RecentList(const char *type, Defaults *defaults, 
00023                       BC_TextBox *textbox);
00024 
00025         ~BC_RecentList();
00026 
00027         int handle_event();
00028         int load_items(const char *prefix = NULL);
00029         int add_item(const char *prefix, char *text);
00030         
00031         ArrayList<BC_ListBoxItem*> items;
00032  private: 
00033         const char *type;
00034         BC_TextBox *textbox;
00035         Defaults *defaults;
00036 };
00037 
00038 #endif /* BCRECENTLIST_H */

Generated on Sun Jan 8 13:26:32 2006 for Guicast-svn by  doxygen 1.4.4