Repository navigation
Expand file tree
/
Copy pathserialadapterv1.cpp
More file actions
58 lines (46 loc) · 2.08 KB
/
Copy pathserialadapterv1.cpp
File metadata and controls
58 lines (46 loc) · 2.08 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
/**
*
* Xeroxpatrone
*
* http://code.google.com/p/xeroxpatrone
*
* Copyright (C) 2010 Dominik Meyer
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include "serialadapterv1.h"
#include <wx/choicebk.h>
SerialAdapterV1::SerialAdapterV1(wxPanel* pPanel, const wxPoint& pos) : ProgrammingAdapter(pPanel, pos) {
SetAdapterName(_T("Serial Adapter (v1)"));
SetAdapterType(COMv1);
wxChoicebook* xModeChoiceBook = new wxChoicebook(this, wxID_ANY, wxPoint(0, 5), wxSize(390, 450));
wxPanel* xWritePage = new wxPanel(xModeChoiceBook);
wxStaticText* xWritePageText = new wxStaticText(xWritePage, wxID_ANY, _T("Write EEPROM"), wxPoint(0, 5), wxSize(380, 25));
wxPanel* xReadPage = new wxPanel(xModeChoiceBook);
wxStaticText* xReadPageText = new wxStaticText(xReadPage, wxID_ANY, _T("Read EEPROM"), wxPoint(0, 5), wxSize(380, 25));
xModeChoiceBook->AddPage(xWritePage, _T("Write"), true);
xModeChoiceBook->AddPage(xReadPage, _T("Read"), false);
wxStaticText* xReadNoOptionsText = new wxStaticText(xReadPage, wxID_ANY, _T("No Options (not implemented yet COMv1)"), wxPoint(0, 30), wxSize(380, 25));
wxStaticText* xWriteNoOptionsText = new wxStaticText(xWritePage, wxID_ANY, _T("No Options (not implemented yet COMv1)"), wxPoint(0, 30), wxSize(380, 25));
}
SerialAdapterV1::~SerialAdapterV1() {
}
bool SerialAdapterV1::Init() {
return false;
}
bool SerialAdapterV1::OnShow() {
return true;
}