mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
24 lines
690 B
C++
24 lines
690 B
C++
//
|
|
// Created by Stepan Usatiuk on 25.06.2025.
|
|
//
|
|
|
|
#include "DhfsGuiInstance.hpp"
|
|
|
|
#include "LauncherAppMainFrame.h"
|
|
|
|
DhfsGuiInstance::DhfsGuiInstance(LauncherAppMainFrame& parent): _parent(parent) {
|
|
}
|
|
|
|
void DhfsGuiInstance::OnTerminate(int pid, int status) {
|
|
wxCommandEvent* event = new wxCommandEvent(SHUTDOWN_EVENT, _parent.GetId());
|
|
event->SetEventObject(&_parent);
|
|
_parent.GetEventHandler()->QueueEvent(event);
|
|
}
|
|
|
|
void DhfsGuiInstance::OnRead(std::string s) {
|
|
wxCommandEvent* event = new wxCommandEvent(NEW_LINE_OUTPUT_EVENT, _parent.GetId());
|
|
event->SetEventObject(&_parent);
|
|
event->SetString(std::move(s));
|
|
_parent.GetEventHandler()->QueueEvent(event);
|
|
}
|