source: golgotha/src/i4/gui/tab_bar.hh @ 608

Last change on this file since 608 was 80, checked in by Sam Hocevar, 15 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.4 KB
Line 
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
9#ifndef I4_TAB_BAR_HH
10#define I4_TAB_BAR_HH
11
12#include "window/window.hh"
13#include "menu/menu.hh"
14
15class i4_tab_bar_data;
16class i4_graphical_style_class;
17
18class i4_tab_bar : public i4_menu_class
19{
20  i4_tab_bar_data *data;
21  void private_resize(w16 new_width, w16 new_height);
22  void note_reaction_sent(i4_menu_item_class *who,
23                          i4_event_reaction_class *ev,
24                          i4_menu_item_class::reaction_type type);
25  virtual void show(i4_parent_window_class *show_on, i4_coord x, i4_coord y) { ; }
26  virtual void hide() { ;}
27public:
28  i4_tab_bar(int width, int height, i4_graphical_style_class *style);
29  void add_tab(i4_menu_item_class *tab_top, i4_window_class *tab_contents);
30  void set_current_tab(int tab_number);
31
32  virtual void parent_draw(i4_draw_context_class &context);
33  ~i4_tab_bar();
34  char *name() { return "tab_bar"; }
35};
36
37
38#endif
Note: See TracBrowser for help on using the repository browser.