Small refactoring.

This commit is contained in:
Maciej Suminski 2013-09-09 14:31:27 +02:00
parent 8a4417ec46
commit d0749a3a52
3 changed files with 4 additions and 5 deletions

View File

@ -197,8 +197,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
dir = m_view->ToWorld( dir, false );
m_view->SetCenter( m_view->GetCenter() + dir * m_autoPanSpeed );
wxPaintEvent redrawEvent;
wxPostEvent( m_parentPanel, redrawEvent );
m_parentPanel->Refresh();
}
break;

View File

@ -36,7 +36,7 @@ class TOOL_MANAGER;
class PCB_BASE_FRAME;
namespace KiGfx {
class VIEW ;
class VIEW;
};
/**

View File

@ -54,8 +54,8 @@ public:
void onWheel( wxMouseEvent& aEvent );
void onMotion( wxMouseEvent& aEvent );
void onButton( wxMouseEvent& aEvent );
void onEnter( wxMouseEvent& aEvent );
void onTimer( wxTimerEvent& aEvent );
void onEnter( wxMouseEvent& WXUNUSED( aEvent ) );
void onTimer( wxTimerEvent& WXUNUSED( aEvent ) );
/**
* Function SetGrabMouse()