Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
copygrid.h
Go to the documentation of this file.
1// This program is free software; you can redistribute it and/or
2// modify it under the terms of the GNU General Public License
3// as published by the Free Software Foundation; either version 2
4// of the License, or (at your option) any later version.
5
6// This program is distributed in the hope that it will be useful,
7// but WITHOUT ANY WARRANTY; without even the implied warranty of
8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9// GNU General Public License for more details.
10
11// You should have received a copy of the GNU General Public License
12// along with this program; if not, write to the Free Software
13// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
20
21#ifndef _COPYGRID_H
22#define _COPYGRID_H
23
27
29class wxStfGrid : public wxGrid {
30 DECLARE_CLASS(wxStfGrid)
31public:
33
41 wxWindow* parent,
42 wxWindowID id,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
45 long style = wxWANTS_CHARS,
46 const wxString& name = wxGridNameStr
47 );
48
50
52 wxString GetSelection() const {return selection;}
53
54 // Get the context menu.
57 wxMenu* get_labelMenu() {return m_labelContext.get();}
58
61
62private:
63 wxString selection;
64 void Copy(wxCommandEvent& event);
65 void OnRClick(wxGridEvent& event);
66 void OnLabelRClick(wxGridEvent& event);
67 void OnKeyDown(wxKeyEvent& event);
68 void ViewCrosshair(wxCommandEvent& event);
69 void ViewBaseline(wxCommandEvent& event);
70 void ViewBaseSD(wxCommandEvent& event);
71 void ViewThreshold(wxCommandEvent& event);
72 void ViewPeakzero(wxCommandEvent& event);
73 void ViewPeakbase(wxCommandEvent& event);
74 void ViewPeakthreshold(wxCommandEvent& event);
75 void ViewRTLoHi(wxCommandEvent& event);
76 void ViewInnerRiseTime(wxCommandEvent& event);
77 void ViewOuterRiseTime(wxCommandEvent& event);
78 void ViewT50(wxCommandEvent& event);
79 void ViewRD(wxCommandEvent& event);
80 void ViewSloperise(wxCommandEvent& event);
81 void ViewSlopedecay(wxCommandEvent& event);
82 void ViewLatency(wxCommandEvent& event);
83#ifdef WITH_PSLOPE
84 void ViewPSlope(wxCommandEvent& event);
85#endif
86 void ViewCursors(wxCommandEvent& event);
87 void SetCheckmark(const wxString& RegEntry, int id);
88
89#if (__cplusplus < 201103)
90 boost::shared_ptr<wxMenu> m_context;
91 boost::shared_ptr<wxMenu> m_labelContext;
92#else
93 std::shared_ptr<wxMenu> m_context;
94 std::shared_ptr<wxMenu> m_labelContext;
95#endif
96 DECLARE_EVENT_TABLE()
97};
98
100
101#endif
WORD TSTime TpMarker WORD size
Definition Son.h:337
See http://www.wxwidgets.org/manuals/stable/wx_wxcommandevent.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxgrid.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxpoint.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxsize.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxstring.html (wxWidgets documentation)
See http://www.wxwidgets.org/manuals/stable/wx_wxwindow.html (wxWidgets documentation)
wxStfGrid(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxWANTS_CHARS, const wxString &name=wxGridNameStr)
Constructor.
wxString GetSelection() const
Get the selection.
Definition copygrid.h:52
void ViewResults()
Updates the context menu.
wxMenu * get_labelMenu()
Definition copygrid.h:57