- SelectionSystemWindowObserver* m_window_observer;
- XORRectangle m_XORRectangle;
- WindowPositionTracker m_positionTracker;
-
- static void captureStates();
- static void releaseStates();
-
- void PositionView(const Vector3& position);
- const Vector3& GetOrigin();
- void SetOrigin(const Vector3& origin);
- void Scroll(int x, int y);
-
- void XY_Draw();
- void DrawCameraIcon(const Vector3& origin, const Vector3& angles);
- void XY_DrawBlockGrid();
- void XY_DrawGrid();
-
- void XY_MouseUp(int x, int y, unsigned int buttons);
- void XY_MouseDown(int x, int y, unsigned int buttons);
- void XY_MouseMoved(int x, int y, unsigned int buttons);
-
- void NewBrushDrag_Begin(int x, int y);
- void NewBrushDrag(int x, int y);
- void NewBrushDrag_End(int x, int y);
-
- void XY_ToPoint(int x, int y, Vector3& point);
- void XY_SnapToGrid(Vector3& point);
-
- void Move_Begin();
- void Move_End();
- bool m_move_started;
- guint m_move_focusOut;
-
- void Zoom_Begin();
- void Zoom_End();
- bool m_zoom_started;
- guint m_zoom_focusOut;
-
- void SetActive(bool b)
- {
- m_bActive = b;
- };
- bool Active()
- {
- return m_bActive;
- };
-
- void Clipper_OnLButtonDown(int x, int y);
- void Clipper_OnLButtonUp(int x, int y);
- void Clipper_OnMouseMoved(int x, int y);
- void Clipper_Crosshair_OnMouseMoved(int x, int y);
- void DropClipPoint(int pointx, int pointy);
-
- void SetViewType(VIEWTYPE n);
- bool m_bActive;
-
- static GtkMenu* m_mnuDrop;
-
- int m_chasemouse_current_x, m_chasemouse_current_y;
- int m_chasemouse_delta_x, m_chasemouse_delta_y;
-
-
- guint m_chasemouse_handler;
- void ChaseMouse();
- bool chaseMouseMotion(int pointx, int pointy);
-
- void updateModelview();
- void updateProjection();
- Matrix4 m_projection;
- Matrix4 m_modelview;
-
- int m_nWidth;
- int m_nHeight;
+SelectionSystemWindowObserver* m_window_observer;
+XORRectangle m_XORRectangle;
+WindowPositionTracker m_positionTracker;
+
+static void captureStates();
+static void releaseStates();
+
+void PositionView( const Vector3& position );
+const Vector3& GetOrigin();
+void SetOrigin( const Vector3& origin );
+void Scroll( int x, int y );
+
+void XY_Draw();
+void DrawCameraIcon( const Vector3& origin, const Vector3& angles );
+void XY_DrawBlockGrid();
+void XY_DrawAxis();
+void XY_DrawGrid();
+void XY_DrawBackground();
+void XY_LoadBackgroundImage( const char *name );
+void XY_DisableBackground();
+
+void XY_MouseUp( int x, int y, unsigned int buttons );
+void XY_MouseDown( int x, int y, unsigned int buttons );
+void XY_MouseMoved( int x, int y, unsigned int buttons );
+
+void NewBrushDrag_Begin( int x, int y );
+void NewBrushDrag( int x, int y );
+void NewBrushDrag_End( int x, int y );
+
+void XY_ToPoint( int x, int y, Vector3& point );
+void XY_SnapToGrid( Vector3& point );
+
+void Move_Begin();
+void Move_End();
+bool m_move_started;
+guint m_move_focusOut;
+
+void Zoom_Begin();
+void Zoom_End();
+bool m_zoom_started;
+guint m_zoom_focusOut;
+
+void Redraw();
+
+void SetActive( bool b ){
+ m_bActive = b;
+};
+bool Active(){
+ return m_bActive;
+};
+
+void Clipper_OnLButtonDown( int x, int y );
+void Clipper_OnLButtonUp( int x, int y );
+void Clipper_OnMouseMoved( int x, int y );
+void Clipper_Crosshair_OnMouseMoved( int x, int y );
+void DropClipPoint( int pointx, int pointy );
+
+void SetViewType( VIEWTYPE n );
+bool m_bActive;
+
+static ui::Menu m_mnuDrop;
+
+int m_chasemouse_current_x, m_chasemouse_current_y;
+int m_chasemouse_delta_x, m_chasemouse_delta_y;
+
+
+guint m_chasemouse_handler;
+void ChaseMouse();
+bool chaseMouseMotion( int pointx, int pointy );
+
+void updateModelview(bool reconstruct = true);
+void updateProjection(bool reconstruct = true);
+Matrix4 m_projection;
+Matrix4 m_modelview;
+
+int m_nWidth;
+int m_nHeight;
+// background image stuff
+qtexture_t *m_tex;
+bool m_backgroundActivated;
+float m_alpha; // vertex alpha
+float m_xmin, m_ymin, m_xmax, m_ymax;