-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTimingView.h
94 lines (79 loc) · 3.15 KB
/
TimingView.h
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
// Copyright 2008 Daniel Anselmi
//
// This file is part of TimingEditor.
//
// TimingEditor 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 3 of the License, or
// (at your option) any later version.
//
// TimingEditor 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 TimingEditor. If not, see <http://www.gnu.org/licenses/>.
//
// Contact e-mail: daniel anselmi <[email protected]>
// Program URL : http://sourceforge.net/projects/timingeditor/
//
//
#ifndef __VIEW_H__
#define __VIEW_H__
#include <wx/docmdi.h>
class TimingWindow;
class ClockSettingsPanel;
class TransitionSettingsPanel;
class Signal;
class TimingView: public wxView
{
public:
wxDocMDIChildFrame *frame;
TimingWindow *window;
ClockSettingsPanel *ClkSetPanel;
TransitionSettingsPanel *TranSetPanel;
TimingView();
~TimingView() {}
bool OnCreate(wxDocument *doc, long WXUNUSED(flags));
void OnDraw(wxDC *dc);
void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL);
bool OnClose(bool deleteWindow = true);
public:
bool CanZoomIn(void);
bool CanZoomOut(void);
bool CanPaste(void);
bool IsSomethingSelected(void);
bool IsTextSelected(void);
bool IsSignalSelected(void);
bool CanDelete(void);
void AddSignal(Signal sig);
private:
virtual void OnActivateView(bool activate, wxView *activeView, wxView *deactiveView);
void OnDelete(wxCommandEvent& event);
//void OnDeleteSignal(wxCommandEvent& event);
void OnSelectAll(wxCommandEvent& event);
void OnCopy(wxCommandEvent& event);
void OnCut(wxCommandEvent& event);
void OnPaste(wxCommandEvent& event);
void OnZoomTicksOut(wxCommandEvent& WXUNUSED(event) );
void OnZoomTicksIn(wxCommandEvent& WXUNUSED(event) );
//void OnEditClock(wxCommandEvent& event);
void OnInsertDiscontTool(wxCommandEvent& event);
void OnSelectRuler(wxCommandEvent& event);
void OnSelectHArrow(wxCommandEvent& event);
void OnSelectTextTool(wxCommandEvent& event);
void OnSelectNeutral(wxCommandEvent& event);
void OnAddClock(wxCommandEvent& event);
void OnAddSignal(wxCommandEvent& event);
void OnAddBus(wxCommandEvent& event);
void OnExportBitmap(wxCommandEvent& event);
void OnExportSVG(wxCommandEvent& event);
void OnExportPS(wxCommandEvent& event);
void OnClockApply(wxCommandEvent& event);
void OnTrnansitionPanelApply(wxCommandEvent& event);
private:
DECLARE_DYNAMIC_CLASS(TimingView)
DECLARE_EVENT_TABLE()
};
#endif