]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/patchdialog.h
q3map2/light_bounce: prevent infinite loop on obscure bias compute
[xonotic/netradiant.git] / radiant / patchdialog.h
index 04c4f6b673e3e8b06992b6ed8c74e9df0abe90a3..ca1f6c9eeb0671cb5645c2cf9178298c42210ee3 100644 (file)
@@ -1,85 +1,43 @@
-/*\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 _PATCHDIALOG_H_\r
-#define _PATCHDIALOG_H_\r
-\r
-#include "dialog.h"\r
-\r
-#ifdef _DEBUG\r
-//#define DBG_PI\r
-#endif\r
-\r
-class PatchDialog : public Dialog\r
-{\r
- public:\r
-  // overrides from Dialog\r
-  void HideDlg();\r
-  void ShowDlg();\r
-\r
-//  void UpdateInfo();\r
-//  void SetPatchInfo();\r
-  void GetPatchInfo();\r
-  void UpdateSpinners(bool bUp, int nID);\r
-  // read the current patch on map and initialize m_fX m_fY accordingly\r
-  void UpdateRowColInfo();\r
-  // sync the dialog our internal data structures\r
-  // depending on the flag it will read or write\r
-  // we use m_nCol m_nRow m_fX m_fY m_fZ m_fS m_fT m_strName\r
-  // (NOTE: this doesn't actually commit stuff to the map or read from it)\r
-  void UpdateData (bool retrieve);\r
-\r
-  void InitDefaultIncrement(texdef_t *);\r
-\r
-  PatchDialog();\r
-  patchMesh_t *m_Patch;\r
-\r
-  Str  m_strName;\r
-  float        m_fS;\r
-  float        m_fT;\r
-  float        m_fX;\r
-  float        m_fY;\r
-  float        m_fZ;\r
-/*  float      m_fHScale;\r
-  float        m_fHShift;\r
-  float        m_fRotate;\r
-  float        m_fVScale;\r
-  float        m_fVShift; */\r
-  int   m_nCol;\r
-  int   m_nRow;\r
-  GtkWidget *m_pRowCombo;\r
-  GtkWidget *m_pColCombo;\r
-\r
-  GtkWidget *GetWidget () { return m_pWidget; }\r
-\r
-  // 0 is invalid, otherwise it's the Id of the last 'do' we are responsible for\r
-//  int m_nUndoId;\r
-  \r
-  // turn on/off processing of the "changed" "value_changed" messages\r
-  // (need to turn off when we are feeding data in)\r
-  // NOTE: much more simple than blocking signals\r
-  bool m_bListenChanged;\r
-\r
-protected:\r
-  void BuildDialog ();\r
-};\r
-\r
-#endif // _PATCHDIALOG_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
+ */
+
+#include <uilib/uilib.h>
+
+#if !defined( INCLUDED_PATCHDIALOG_H )
+#define INCLUDED_PATCHDIALOG_H
+
+void PatchInspector_Construct();
+void PatchInspector_Destroy();
+
+void PatchInspector_constructWindow( ui::Window main_window );
+void PatchInspector_destroyWindow();
+
+namespace scene
+{
+class Graph;
+}
+
+void Scene_PatchTranslateTexture_Selected( scene::Graph& graph, float s, float t );
+void Scene_PatchRotateTexture_Selected( scene::Graph& graph, float angle );
+void Scene_PatchScaleTexture_Selected( scene::Graph& graph, float s, float t );
+
+
+#endif