-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainFrame.h
More file actions
32 lines (31 loc) · 834 Bytes
/
MainFrame.h
File metadata and controls
32 lines (31 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "Helpers.h"
#include "OCVProc.h"
#include "SerialPort.h"
#include "CoordParams.h"
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
class MainFrame : public wxFrame
{
MCUConn* serialPort;
OCVProc* ocvProc;
wxSize defaultButtonSize = wxSize(60,30);
wxPanel *streamContainer;
wxPanel *basePanel;
wxButton *btnCapture;
wxButton *btnRotate;
wxButton *btnMirror;
wxChoice* choiceManAuto;
wxCheckListBox* selectPoints;
wxButton* sendPoints;
void InitUI(wxSize size,wxSize cameraRes);
void btnCaptureClicked(wxCommandEvent &event);
void btnRotateClicked(wxCommandEvent &event);
void btnMirrorClicked(wxCommandEvent &event);
void autoManChanged(wxCommandEvent& event);
public:
MainFrame(const wxString &title, const wxSize &size,OCVProc* ocvObj,MCUConn* serialObj);
~MainFrame();
};