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