aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/right_panel/GameTabRightPanel.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-09 16:36:48 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-09 16:36:48 +0100
commitf4108bc06cd9fa1977267836e9176118e8863b57 (patch)
tree3cd663f6547c6915d4f0fe8cf137fe68a9a1bec4 /src/game_tab/right_panel/GameTabRightPanel.cpp
parent30b7577ab321e70b5ebb2c4ec1b9edfe1d3c0a44 (diff)
Bind live engine analysis to BoardCanvas
Diffstat (limited to 'src/game_tab/right_panel/GameTabRightPanel.cpp')
-rw-r--r--src/game_tab/right_panel/GameTabRightPanel.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game_tab/right_panel/GameTabRightPanel.cpp b/src/game_tab/right_panel/GameTabRightPanel.cpp
index 7aa8bbd..f421228 100644
--- a/src/game_tab/right_panel/GameTabRightPanel.cpp
+++ b/src/game_tab/right_panel/GameTabRightPanel.cpp
@@ -60,6 +60,12 @@ void GameTabRightPanel::OnLiveAnalysis(wxCommandEvent &event) {
live_engine->Bind(wxEVT_CLOSE_WINDOW,
&GameTabRightPanel::OnLiveEngineClose, this,
ID_LIVE_ENGINE_DIALOG);
+ live_engine->Bind(SHOW_ENGINE_EVALUATION, [p=this](wxCommandEvent &e){
+ wxCommandEvent notifyEvent(SHOW_ENGINE_EVALUATION,p->GetId());
+ notifyEvent.SetEventObject(p);
+ notifyEvent.SetClientData(e.GetClientData());
+ p->ProcessEvent(notifyEvent);
+ });
}
}
}