6 #include "bctextbox.inc"
8 // Maintain a list of text items (up to 'max') from session to session.
9 // List automatically saved to Cinelerra_rc as 'RECENT_prefix_0', etc.
10 // Item value is written to 'text_box' when item is selected (if textbox set)
12 #define RECENT_MAX_ITEMS 10
13 #define RECENT_POPUP_HEIGHT 100
15 class BC_RecentList
: public BC_ListBox
18 BC_RecentList(const char *type
, BC_Hash
*defaults
,
19 BC_TextBox
*textbox
, int max
,
20 int x
, int y
, int w
, int h
);
21 BC_RecentList(const char *type
, BC_Hash
*defaults
);
22 BC_RecentList(const char *type
, BC_Hash
*defaults
,
28 int load_items(const char *prefix
= NULL
);
29 int add_item(const char *prefix
, char *text
);
31 ArrayList
<BC_ListBoxItem
*> items
;
38 #endif /* BCRECENTLIST_H */