]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - radiant/groupdialog.h
set eol-style
[xonotic/netradiant.git] / radiant / groupdialog.h
1 /*
2 Copyright (C) 1999-2007 id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
4
5 This file is part of GtkRadiant.
6
7 GtkRadiant is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 GtkRadiant is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GtkRadiant; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 */
21
22 #ifndef _GROUPDIALOG_H_
23 #define _GROUPDIALOG_H_
24
25 #define DlgXBorder 5
26 #define DlgYBorder 5
27
28
29 enum
30 {
31   EntList,
32   EntComment,
33 // Spawnflags
34   EntCheck1,
35   EntCheck2,
36   EntCheck3,
37   EntCheck4,
38   EntCheck5,
39   EntCheck6,
40   EntCheck7,
41   EntCheck8,
42 // Extra Spawnflags for Halflife Support
43   EntCheck9,
44   EntCheck10,
45   EntCheck11,
46   EntCheck12,
47   EntCheck13,
48   EntCheck14,
49   EntCheck15,
50   EntCheck16,
51
52 /*
53   EntCheck17,
54   EntCheck18,
55   EntCheck19,
56   EntCheck20,
57 */
58   EntProps,
59   EntDir0,
60   EntDir45,
61   EntDir90,
62   EntDir135,
63   EntDir180,
64   EntDir225,
65   EntDir270,
66   EntDir315,
67   EntDirUp,
68   EntDirDown,
69   EntDelProp,
70   EntKeyLabel,
71   EntKeyField,
72   EntValueLabel,
73   EntValueField,
74   EntColor,
75   EntAssignSounds,
76   EntAssignModels,
77   EntTab,
78
79   EntLast,
80 };
81
82 // 17..20 where used for spawnflags (!Easy !Medium !Hard etc.), empty now..
83 extern GtkWidget* EntWidgets[EntLast];
84
85 //extern int rgIds[EntLast];
86
87
88 class GroupDlg 
89 {
90  public:
91   GroupDlg ();
92   void Create ();
93
94   void Show ()
95     { gtk_widget_show (m_pWidget); };
96   void Hide ()
97     { gtk_widget_hide (m_pWidget); };
98
99  public:
100   GtkWidget* m_pNotebook;
101   GtkWidget* m_pWidget;
102   GtkWidget* m_pTree;
103   GtkCTreeNode* m_hWorld; //leo: not used keeping because of the win32 version
104 };
105
106 extern GroupDlg *g_pGroupDlg;
107
108 #endif // _GROUPDIALOG_H_