Stimfit  0.13.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
copygrid.h
Go to the documentation of this file.
00001 // This program is free software; you can redistribute it and/or
00002 // modify it under the terms of the GNU General Public License
00003 // as published by the Free Software Foundation; either version 2
00004 // of the License, or (at your option) any later version.
00005 
00006 // This program is distributed in the hope that it will be useful,
00007 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00008 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00009 // GNU General Public License for more details.
00010 
00011 // You should have received a copy of the GNU General Public License
00012 // along with this program; if not, write to the Free Software
00013 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00014 
00021 #ifndef _COPYGRID_H
00022 #define _COPYGRID_H
00023 
00028 
00029 class wxStfGrid : public wxGrid {
00030     DECLARE_CLASS(wxStfGrid)
00031 public:
00033 
00040     wxStfGrid(
00041             wxWindow* parent, 
00042             wxWindowID id, 
00043             const wxPoint& pos = wxDefaultPosition, 
00044             const wxSize& size = wxDefaultSize, 
00045             long style = wxWANTS_CHARS, 
00046             const wxString& name = wxGridNameStr
00047     );
00048     
00050 
00052     wxString GetSelection() const {return selection;}
00053 
00054     // Get the context menu.
00057     wxMenu* get_labelMenu() {return m_labelContext.get();}
00058     
00060     void ViewResults();
00061 
00062 private:
00063     wxString selection;
00064     void Copy(wxCommandEvent& event);
00065     void OnRClick(wxGridEvent& event);
00066     void OnLabelRClick(wxGridEvent& event);
00067     void OnKeyDown(wxKeyEvent& event);
00068     void ViewCrosshair(wxCommandEvent& event);
00069     void ViewBaseline(wxCommandEvent& event);
00070     void ViewBaseSD(wxCommandEvent& event);
00071     void ViewThreshold(wxCommandEvent& event);
00072     void ViewPeakzero(wxCommandEvent& event);
00073     void ViewPeakbase(wxCommandEvent& event);
00074     void ViewPeakthreshold(wxCommandEvent& event);
00075     void ViewRTLoHi(wxCommandEvent& event);
00076     void ViewInnerRiseTime(wxCommandEvent& event);
00077     void ViewOuterRiseTime(wxCommandEvent& event);
00078     void ViewT50(wxCommandEvent& event);
00079     void ViewRD(wxCommandEvent& event);
00080     void ViewSloperise(wxCommandEvent& event);
00081     void ViewSlopedecay(wxCommandEvent& event);
00082     void ViewLatency(wxCommandEvent& event);
00083 #ifdef WITH_PSLOPE
00084     void ViewPSlope(wxCommandEvent& event);
00085 #endif
00086     void ViewCursors(wxCommandEvent& event);
00087     void SetCheckmark(const wxString& RegEntry, int id);
00088 
00089     boost::shared_ptr<wxMenu> m_context;
00090     boost::shared_ptr<wxMenu> m_labelContext;
00091     DECLARE_EVENT_TABLE()
00092 };
00093 
00096 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines