Add all the files

This commit is contained in:
Exzap 2022-08-22 22:21:23 +02:00
parent e3db07a16a
commit d60742f52b
1445 changed files with 430238 additions and 0 deletions

34
src/gui/PadViewFrame.h Normal file
View file

@ -0,0 +1,34 @@
#pragma once
#define WM_CREATE_PAD (WM_USER+1)
#define WM_DESTROY_PAD (WM_USER+2)
wxDECLARE_EVENT(EVT_PAD_CLOSE, wxCommandEvent);
wxDECLARE_EVENT(EVT_SET_WINDOW_TITLE, wxCommandEvent);
class PadViewFrame : public wxFrame
{
public:
PadViewFrame(wxFrame* parent);
~PadViewFrame();
bool Initialize();
void InitializeRenderCanvas();
void OnKeyUp(wxKeyEvent& event);
void OnChar(wxKeyEvent& event);
void AsyncSetTitle(std::string_view windowTitle);
private:
void OnMouseMove(wxMouseEvent& event);
void OnMouseLeft(wxMouseEvent& event);
void OnMouseRight(wxMouseEvent& event);
void OnSizeEvent(wxSizeEvent& event);
void OnMoveEvent(wxMoveEvent& event);
void OnGesturePan(wxPanGestureEvent& event);
void OnSetWindowTitle(wxCommandEvent& event);
wxWindow* m_render_canvas = nullptr;
};