tab_bar.hh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 I4_TAB_BAR_HH
  9. #define I4_TAB_BAR_HH
  10. #include "window/window.hh"
  11. #include "menu/menu.hh"
  12. class i4_tab_bar_data;
  13. class i4_graphical_style_class;
  14. class i4_tab_bar : public i4_menu_class
  15. {
  16. i4_tab_bar_data *data;
  17. void private_resize(w16 new_width, w16 new_height);
  18. void note_reaction_sent(i4_menu_item_class *who,
  19. i4_event_reaction_class *ev,
  20. i4_menu_item_class::reaction_type type);
  21. virtual void show(i4_parent_window_class *show_on, i4_coord x, i4_coord y) { ; }
  22. virtual void hide() { ;}
  23. public:
  24. i4_tab_bar(int width, int height, i4_graphical_style_class *style);
  25. void add_tab(i4_menu_item_class *tab_top, i4_window_class *tab_contents);
  26. void set_current_tab(int tab_number);
  27. virtual void parent_draw(i4_draw_context_class &context);
  28. ~i4_tab_bar();
  29. char *name() { return "tab_bar"; }
  30. };
  31. #endif