bool m_zoom_started;
guint m_zoom_focusOut;
+void ZoomIn();
+void ZoomOut();
+void ZoomInWithMouse( int pointx, int pointy );
+
+void Redraw();
+
void SetActive( bool b ){
m_bActive = b;
};
void ChaseMouse();
bool chaseMouseMotion( int pointx, int pointy );
-void updateModelview();
-void updateProjection();
+void updateModelview(bool reconstruct = true);
+void updateProjection(bool reconstruct = true);
Matrix4 m_projection;
Matrix4 m_modelview;
Signal0 onDestroyed;
Signal3<const WindowVector&, ButtonIdentifier, ModifierFlags> onMouseDown;
void mouseDown( const WindowVector& position, ButtonIdentifier button, ModifierFlags modifiers );
-typedef Member3<XYWnd, const WindowVector&, ButtonIdentifier, ModifierFlags, void, &XYWnd::mouseDown> MouseDownCaller;
+typedef Member<XYWnd, void(const WindowVector&, ButtonIdentifier, ModifierFlags), &XYWnd::mouseDown> MouseDownCaller;
};
inline void XYWnd_Update( XYWnd& xywnd ){
bool m_bRightClick;
bool m_bNoStipple;
+ bool m_bImprovedWheelZoom;
xywindow_globals_t() :
- color_gridback( 1.f, 1.f, 1.f ),
- color_gridminor( 0.75f, 0.75f, 0.75f ),
- color_gridmajor( 0.5f, 0.5f, 0.5f ),
- color_gridblock( 0.f, 0.f, 1.f ),
+ color_gridback( 0.77f, 0.77f, 0.77f ),
+ color_gridminor( 0.83f, 0.83f, 0.83f ),
+ color_gridmajor( 0.89f, 0.89f, 0.89f ),
+ color_gridblock( 1.0f, 1.0f, 1.0f ),
color_gridtext( 0.f, 0.f, 0.f ),
color_brushes( 0.f, 0.f, 0.f ),
color_selbrushes( 1.f, 0.f, 0.f ),
AxisColorY( 0.f, 1.f, 0.f ),
AxisColorZ( 0.f, 0.f, 1.f ),
m_bRightClick( true ),
- m_bNoStipple( false ){
+ m_bNoStipple( false ),
+ m_bImprovedWheelZoom( true ){
}
};