]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/patchdialog.h
Merge branch 'Melanosuchus/texture_browser' into 'master'
[xonotic/netradiant.git] / radiant / patchdialog.h
index ff908ded661cac6dee791035a0278d0a416c433b..1304ccbe23cac1f203b0dd5fc9d674f7a551fd8c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2007 id Software, Inc. and contributors.
+   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.
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PATCHDIALOG_H_
-#define _PATCHDIALOG_H_
+#if !defined( INCLUDED_PATCHDIALOG_H )
+#define INCLUDED_PATCHDIALOG_H
 
-#include "dialog.h"
+void PatchInspector_Construct();
+void PatchInspector_Destroy();
 
-#ifdef _DEBUG
-//#define DBG_PI
-#endif
+typedef struct _GtkWidget GtkWidget;
+typedef struct _GtkWindow GtkWindow;
+void PatchInspector_constructWindow( GtkWindow* main_window );
+void PatchInspector_destroyWindow();
 
-class PatchDialog : public Dialog
+namespace scene
 {
-public:
-// overrides from Dialog
-void HideDlg();
-void ShowDlg();
-
-//  void UpdateInfo();
-//  void SetPatchInfo();
-void GetPatchInfo();
-void UpdateSpinners( bool bUp, int nID );
-// read the current patch on map and initialize m_fX m_fY accordingly
-void UpdateRowColInfo();
-// sync the dialog our internal data structures
-// depending on the flag it will read or write
-// we use m_nCol m_nRow m_fX m_fY m_fZ m_fS m_fT m_strName
-// (NOTE: this doesn't actually commit stuff to the map or read from it)
-void UpdateData( bool retrieve );
-
-void InitDefaultIncrement( texdef_t * );
-
-PatchDialog();
-patchMesh_t *m_Patch;
+class Graph;
+}
 
-Str m_strName;
-float m_fS;
-float m_fT;
-float m_fX;
-float m_fY;
-float m_fZ;
-/*  float      m_fHScale;
-   float       m_fHShift;
-   float       m_fRotate;
-   float       m_fVScale;
-   float       m_fVShift; */
-int m_nCol;
-int m_nRow;
-GtkWidget *m_pRowCombo;
-GtkWidget *m_pColCombo;
+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 );
 
-GtkWidget *GetWidget() { return m_pWidget; }
 
-// 0 is invalid, otherwise it's the Id of the last 'do' we are responsible for
-//  int m_nUndoId;
-
-// turn on/off processing of the "changed" "value_changed" messages
-// (need to turn off when we are feeding data in)
-// NOTE: much more simple than blocking signals
-bool m_bListenChanged;
-
-protected:
-void BuildDialog();
-};
-
-#endif // _PATCHDIALOG_H_
+#endif