list_pick.hh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /********************************************************************** <BR>
  2. This file is part of Crack dot Com's free source code release of
  3. Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
  4. information about compiling & licensing issues visit this URL</a>
  5. <PRE> If that doesn't help, contact Jonathan Clark at
  6. golgotha_source@usa.net (Subject should have "GOLG" in it)
  7. ***********************************************************************/
  8. #ifndef __LIST_PICK_HH
  9. #define __LIST_PICK_HH
  10. #include "window/window.hh"
  11. class i4_menu_item_class;
  12. class i4_list_pick : public i4_parent_window_class
  13. {
  14. w32 total_items;
  15. i4_menu_item_class **items;
  16. i4_color background;
  17. w32 length;
  18. w32 scroll_event_id;
  19. sw32 start,end;
  20. i4_bool need_draw_all, free_items;
  21. public:
  22. char *name() { return "list_pick"; }
  23. i4_list_pick(w16 width, w16 height,
  24. w32 total_items,
  25. i4_menu_item_class **items,
  26. w32 scroll_event_id,
  27. i4_color background,
  28. i4_bool free_item=i4_T);
  29. ~i4_list_pick();
  30. virtual void reposition_start(w32 new_start);
  31. virtual void parent_draw(i4_draw_context_class &context);
  32. virtual void draw(i4_draw_context_class &context);
  33. virtual void receive_event(i4_event *ev);
  34. };
  35. #endif