source: golgotha/src/golg/editor/pmenu.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 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: 2.7 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 G1_PMENU_HH
10#define G1_PMENU_HH
11
12#include "menu/key_item.hh"
13#include "palette/pal.hh"
14#include "string/string.hh"
15
16class i4_parent_window_class;
17class i4_graphical_style_class;
18class i4_pull_menu_class;
19class g1_editor_key_item;
20
21
22i4_pull_menu_class *g1_create_editor_menu(i4_graphical_style_class *style,
23                                          const i4_pal_handle_class &pal,
24                                          i4_parent_window_class *root_window,
25                                          i4_string_manager_class &st,
26                                          g1_editor_key_item **command_key_list);
27enum
28{
29  G1_EDITOR_NEW,
30  G1_EDITOR_SAVE,
31  G1_EDITOR_SAVEAS,
32  G1_EDITOR_LOAD,
33  G1_EDITOR_MERGE_TERRAIN,
34  G1_EDITOR_EXIT,
35
36  G1_EDITOR_UNDO,
37  G1_EDITOR_REDO,
38  G1_EDITOR_CUT,
39  G1_EDITOR_COPY,
40  G1_EDITOR_PASTE,
41  G1_EDITOR_TOGGLE,
42  G1_EDITOR_NO_SNAP,
43  G1_EDITOR_SNAP_CENTER,
44  G1_EDITOR_SNAP_ORIGIN,
45
46  G1_EDITOR_WINDOW_OBJECTS,
47  G1_EDITOR_WINDOW_SCENES,
48  G1_EDITOR_WINDOW_RADAR,
49  G1_EDITOR_1_VIEW,
50  G1_EDITOR_4_VIEWS,
51  G1_EDITOR_TILE_PICKER,
52
53  G1_EDITOR_RECALC_LIGHT,
54  G1_EDITOR_SELECT_ALL_VERTS,
55  G1_EDITOR_RESIZE_MAP,
56  G1_EDITOR_SET_SKY,
57
58  G1_EDITOR_FOG_ALL,
59  G1_EDITOR_FOG_NONE,
60
61  G1_EDITOR_TICK_MAP,
62  G1_EDITOR_PROFILE,
63  G1_EDITOR_DEBUG,
64  G1_EDITOR_AI_WINDOW,
65 
66  G1_EDITOR_LOAD_HEIGHT_MAP,
67  G1_EDITOR_SAVE_HEIGHT_MAP,
68
69  G1_EDITOR_FLATTEN_TERRAIN,
70  G1_EDITOR_SMOOTH_TERRAIN,
71  G1_EDITOR_NOISE_TERRAIN,
72
73  G1_EDITOR_OPEN_DLL,
74
75  G1_EDITOR_LAST,
76  G1_EDITOR_SKIP
77};
78
79class g1_editor_key_item : public i4_key_item_class
80{
81public:
82  w16 command_id;
83  g1_editor_key_item(
84                    const i4_const_str &_text,
85                    i4_color_hint_class *color_hint,
86                    i4_font_hint_class *font_hint,
87                    i4_graphical_style_class *style,
88                    w16 key,
89                    w16 modifiers,
90                    w16 command_id,
91                    w16 pad_left_right,
92                    w16 pad_up_down
93                    );
94  virtual void action();
95
96};
97
98void validate_command(w16 command_id);
99void invalidate_command(w16 command_id);
100
101#endif
Note: See TracBrowser for help on using the repository browser.