summaryrefslogtreecommitdiffstats
path: root/Project/WorkspaceBase.cpp
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2017-01-02 19:31:11 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2017-01-02 19:31:11 -0200
commit2c0b51586b3b2243ae0fdcd653139818e4b4e23e (patch)
tree89c1435aac9213230f04b06d4183c94f6ea36663 /Project/WorkspaceBase.cpp
parent7aed88dbcf9d37a1f40c8cad115f055c4d69e7a9 (diff)
downloadPSP.git-2c0b51586b3b2243ae0fdcd653139818e4b4e23e.tar.gz
PSP.git-2c0b51586b3b2243ae0fdcd653139818e4b4e23e.tar.xz
PSP.git-2c0b51586b3b2243ae0fdcd653139818e4b4e23e.zip
Fast data visualization implemented
Diffstat (limited to 'Project/WorkspaceBase.cpp')
-rw-r--r--Project/WorkspaceBase.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Project/WorkspaceBase.cpp b/Project/WorkspaceBase.cpp
index f4973d6..8c98633 100644
--- a/Project/WorkspaceBase.cpp
+++ b/Project/WorkspaceBase.cpp
@@ -37,6 +37,9 @@ WorkspaceBase::WorkspaceBase(wxWindow* parent, wxWindowID id, const wxPoint& pos
boxSizer_lvl_1_1->Add(m_glCanvas, 1, wxEXPAND, WXC_FROM_DIP(5));
+ m_timer = new wxTimer;
+ m_timer->Start(1500, false);
+
SetName(wxT("WorkspaceBase"));
SetSize(500,300);
if (GetSizer()) {
@@ -53,6 +56,7 @@ WorkspaceBase::WorkspaceBase(wxWindow* parent, wxWindowID id, const wxPoint& pos
m_glCanvas->Connect(wxEVT_MOUSEWHEEL, wxMouseEventHandler(WorkspaceBase::OnScroll), NULL, this);
m_glCanvas->Connect(wxEVT_RIGHT_DOWN, wxMouseEventHandler(WorkspaceBase::OnRightClickDown), NULL, this);
m_glCanvas->Connect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(WorkspaceBase::OnLeftDoubleClick), NULL, this);
+ m_timer->Connect(wxEVT_TIMER, wxTimerEventHandler(WorkspaceBase::OnTimer), NULL, this);
}
@@ -68,5 +72,9 @@ WorkspaceBase::~WorkspaceBase()
m_glCanvas->Disconnect(wxEVT_MOUSEWHEEL, wxMouseEventHandler(WorkspaceBase::OnScroll), NULL, this);
m_glCanvas->Disconnect(wxEVT_RIGHT_DOWN, wxMouseEventHandler(WorkspaceBase::OnRightClickDown), NULL, this);
m_glCanvas->Disconnect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(WorkspaceBase::OnLeftDoubleClick), NULL, this);
+ m_timer->Disconnect(wxEVT_TIMER, wxTimerEventHandler(WorkspaceBase::OnTimer), NULL, this);
+ m_timer->Stop();
+ wxDELETE( m_timer );
+
}