]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - radiant/groupdialog.h
apply misc fixes from Markus Fischer and Rambetter
[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   EntCheck17,
53   EntCheck18,
54   EntCheck19,
55   EntCheck20,
56
57   EntProps,
58   EntDir0,
59   EntDir45,
60   EntDir90,
61   EntDir135,
62   EntDir180,
63   EntDir225,
64   EntDir270,
65   EntDir315,
66   EntDirUp,
67   EntDirDown,
68   EntDelProp,
69   EntKeyLabel,
70   EntKeyField,
71   EntValueLabel,
72   EntValueField,
73   EntColor,
74   EntAssignSounds,
75   EntAssignModels,
76   EntTab,
77
78   EntLast,
79 };
80
81 extern GtkWidget* EntWidgets[EntLast];
82
83 //extern int rgIds[EntLast];
84
85
86 class GroupDlg
87 {
88  public:
89   GroupDlg ();
90   void Create ();
91
92   void Show ()
93     { gtk_widget_show (m_pWidget); };
94   void Hide ()
95     { gtk_widget_hide (m_pWidget); };
96
97  public:
98   GtkWidget* m_pNotebook;
99   GtkWidget* m_pWidget;
100   GtkWidget* m_pTree;
101   GtkCTreeNode* m_hWorld; //leo: not used keeping because of the win32 version
102 };
103
104 extern GroupDlg *g_pGroupDlg;
105
106 #endif // _GROUPDIALOG_H_