-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsbLoader.h
More file actions
107 lines (92 loc) · 2.6 KB
/
Copy pathUsbLoader.h
File metadata and controls
107 lines (92 loc) · 2.6 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Aug 31 2019)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#pragma once
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#include "wx/wx.h"
#include "wx/app.h"
#include "wx/grid.h"
#include "wx/treectrl.h"
#include "wx/spinctrl.h"
#include "wx/artprov.h"
#include "wx/clipbrd.h"
#include "wx/colordlg.h"
#include "wx/wxhtml.h"
#include "wx/imaglist.h"
#include "wx/dataobj.h"
#include "wx/dcclient.h"
#include "wx/bmpbuttn.h"
#include "wx/menu.h"
#include "wx/toolbar.h"
#include "wx/msgdlg.h"
#include "wx/textdlg.h"
#include "wx/artprov.h"
#include "wx/xrc/xmlres.h"
#include "wx/string.h"
#include "wx/textctrl.h"
#include "wx/gdicmn.h"
#include "wx/font.h"
#include "wx/colour.h"
#include "wx/settings.h"
#include "wx/bitmap.h"
#include "wx/image.h"
#include "wx/icon.h"
#include "wx/button.h"
#include "wx/sizer.h"
#include "wx/wrapsizer.h"
#include "wx/statusbr.h"
#include "wx/frame.h"
#include "wx/panel.h"
#include "wx/aui/aui.h"
#include "libusb.h"
#include "string.h"
#include <iostream>
#include "USBDevice.h"
using namespace std;
///////////////////////////////////////////////////////////////////////////////
/// Class HauptFenster
///////////////////////////////////////////////////////////////////////////////
class HauptFenster : public wxFrame
{
enum
{
ID_USBINT = wxID_HIGHEST + 1,
ID_EXIT,
ID_CHECK_LED,
ID_TIMER,
ID_CLEANLOG
};
private:
bool fininish;
bool connected;
USBDevice* digiSpark;
//wxAuiManager m_mgr;
//wxDECLARE_EVENT_TABLE();
protected:
wxPanel* m_panel;
wxPanel* midPan;
wxTextCtrl* m_textCtrlAusgabe;
wxButton* m_buttonCleanlog;
wxTextCtrl* m_textCtrlEingabe;
wxStaticText* m_staticText1;
wxStaticText* m_staticText2;
wxButton* m_buttonConnect;
wxButton* m_buttonEnde;
wxStatusBar* m_statusBar1;
wxCheckBox* m_checkBox1;
wxTimer* m_Timer;
wxGauge* m_Gauge;
public:
//HauptFenster( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,500 ), long style = wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxTAB_TRAVERSAL );
HauptFenster(const wxString& title);
~HauptFenster();
void trackUSBInterfaceClick(wxCommandEvent& event);
void OnExitClick(wxCommandEvent& event);
void LEDToggle(wxCommandEvent& event);
void OnTimerEvent(wxTimerEvent& event);
void CleanOutputLogClick(wxCommandEvent& event);
};