]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/groupdialog.h
Enable auto-redraw of the GLArea on GTK3
[xonotic/netradiant.git] / radiant / groupdialog.h
index a253107154bb36d337c911887574a89feeeb53af..f136f382c02f116f2c62123f5467f6f315a51b11 100644 (file)
-/*\r
-Copyright (C) 1999-2007 id Software, Inc. and contributors.\r
-For a list of contributors, see the accompanying CONTRIBUTORS file.\r
-\r
-This file is part of GtkRadiant.\r
-\r
-GtkRadiant is free software; you can redistribute it and/or modify\r
-it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation; either version 2 of the License, or\r
-(at your option) any later version.\r
-\r
-GtkRadiant is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-GNU General Public License for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with GtkRadiant; if not, write to the Free Software\r
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
-*/\r
-\r
-#ifndef _GROUPDIALOG_H_\r
-#define _GROUPDIALOG_H_\r
-\r
-#define DlgXBorder 5\r
-#define DlgYBorder 5\r
-\r
-\r
-enum\r
-{\r
-  EntList,\r
-  EntComment,\r
-// Spawnflags\r
-  EntCheck1,\r
-  EntCheck2,\r
-  EntCheck3,\r
-  EntCheck4,\r
-  EntCheck5,\r
-  EntCheck6,\r
-  EntCheck7,\r
-  EntCheck8,\r
-// Extra Spawnflags for Halflife Support\r
-  EntCheck9,\r
-  EntCheck10,\r
-  EntCheck11,\r
-  EntCheck12,\r
-  EntCheck13,\r
-  EntCheck14,\r
-  EntCheck15,\r
-  EntCheck16,\r
-\r
-/*\r
-  EntCheck17,\r
-  EntCheck18,\r
-  EntCheck19,\r
-  EntCheck20,\r
-*/\r
-  EntProps,\r
-  EntDir0,\r
-  EntDir45,\r
-  EntDir90,\r
-  EntDir135,\r
-  EntDir180,\r
-  EntDir225,\r
-  EntDir270,\r
-  EntDir315,\r
-  EntDirUp,\r
-  EntDirDown,\r
-  EntDelProp,\r
-  EntKeyLabel,\r
-  EntKeyField,\r
-  EntValueLabel,\r
-  EntValueField,\r
-  EntColor,\r
-  EntAssignSounds,\r
-  EntAssignModels,\r
-  EntTab,\r
-\r
-  EntLast,\r
-};\r
-\r
-// 17..20 where used for spawnflags (!Easy !Medium !Hard etc.), empty now..\r
-extern GtkWidget* EntWidgets[EntLast];\r
-\r
-//extern int rgIds[EntLast];\r
-\r
-\r
-class GroupDlg \r
-{\r
- public:\r
-  GroupDlg ();\r
-  void Create ();\r
-\r
-  void Show ()\r
-    { gtk_widget_show (m_pWidget); };\r
-  void Hide ()\r
-    { gtk_widget_hide (m_pWidget); };\r
-\r
- public:\r
-  GtkWidget* m_pNotebook;\r
-  GtkWidget* m_pWidget;\r
-  GtkWidget* m_pTree;\r
-  GtkCTreeNode* m_hWorld; //leo: not used keeping because of the win32 version\r
-};\r
-\r
-extern GroupDlg *g_pGroupDlg;\r
-\r
-#endif // _GROUPDIALOG_H_\r
+/*
+   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   For a list of contributors, see the accompanying CONTRIBUTORS file.
+
+   This file is part of GtkRadiant.
+
+   GtkRadiant is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   GtkRadiant is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#if !defined( INCLUDED_GROUPDIALOG_H )
+#define INCLUDED_GROUPDIALOG_H
+
+#include <uilib/uilib.h>
+#include "property.h"
+#include "generic/callback.h"
+
+void GroupDialog_Construct();
+void GroupDialog_Destroy();
+
+void GroupDialog_constructWindow( ui::Window main_window );
+void GroupDialog_destroyWindow();
+ui::Window GroupDialog_getWindow();
+void GroupDialog_show();
+
+inline void RawStringExport( const char* string, const Callback<void(const char *)> &importer ){
+       importer( string );
+}
+typedef ConstPointerCaller<char, void(const Callback<void(const char *)> &), RawStringExport> RawStringExportCaller;
+ui::Widget GroupDialog_addPage( const char* tabLabel, ui::Widget widget, const Callback<void(const Callback<void(const char *)> &)>& title );
+
+void GroupDialog_showPage( ui::Widget page );
+void GroupDialog_updatePageTitle( ui::Widget page );
+bool GroupDialog_isShown();
+ui::Widget GroupDialog_getPage();
+
+#endif