00001 #ifndef BCRECENTLIST_H
00002 #define BCRECENTLIST_H
00003
00004 #include "bclistbox.h"
00005 #include "bctextbox.inc"
00006 #include "defaults.inc"
00007
00008
00009
00010
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