KiCad PCB EDA Suite
sim_plot_frame_base.h
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Sep 8 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
8 #ifndef __SIM_PLOT_FRAME_BASE_H__
9 #define __SIM_PLOT_FRAME_BASE_H__
10 
11 #include <wx/artprov.h>
12 #include <wx/xrc/xmlres.h>
13 #include <wx/intl.h>
14 class KIWAY_PLAYER;
15 class wxListView;
16 
17 #include "kiway_player.h"
18 #include <wx/string.h>
19 #include <wx/bitmap.h>
20 #include <wx/image.h>
21 #include <wx/icon.h>
22 #include <wx/menu.h>
23 #include <wx/gdicmn.h>
24 #include <wx/font.h>
25 #include <wx/colour.h>
26 #include <wx/settings.h>
27 #include <wx/toolbar.h>
28 #include <wx/stattext.h>
29 #include <wx/sizer.h>
30 #include <wx/panel.h>
31 #include <wx/aui/auibook.h>
32 #include <wx/textctrl.h>
33 #include <wx/splitter.h>
34 #include <wx/listctrl.h>
35 #include <wx/statbox.h>
36 #include <wx/frame.h>
37 
39 
40 
45 {
46  private:
47 
48  protected:
49  wxMenuBar* m_mainMenu;
50  wxMenu* m_fileMenu;
52  wxMenuItem* m_runSimulation;
53  wxMenuItem* m_addSignals;
54  wxMenuItem* m_probeSignals;
55  wxMenuItem* m_tuneValue;
56  wxMenuItem* m_settings;
57  wxMenu* m_viewMenu;
58  wxBoxSizer* m_sizerMain;
59  wxToolBar* m_toolBar;
60  wxSplitterWindow* m_splitterLeftRight;
61  wxPanel* m_panelLeft;
62  wxBoxSizer* m_sizer11;
63  wxSplitterWindow* m_splitterPlotAndConsole;
64  wxPanel* m_plotPanel;
65  wxBoxSizer* m_sizerPlot;
66  wxAuiNotebook* m_plotNotebook;
67  wxPanel* m_welcomePanel;
68  wxBoxSizer* m_sizer8;
69  wxStaticText* m_staticText2;
70  wxPanel* m_panelConsole;
71  wxBoxSizer* m_sizerConsole;
72  wxTextCtrl* m_simConsole;
73  wxPanel* m_sidePanel;
74  wxBoxSizer* m_sideSizer;
75  wxSplitterWindow* m_splitterSignals;
76  wxPanel* m_panelSignals;
77  wxListView* m_signals;
79  wxSplitterWindow* m_splitterTuneValues;
80  wxPanel* m_panelCursors;
81  wxListCtrl* m_cursors;
82  wxPanel* m_tunePanel;
83  wxStaticBoxSizer* m_tuneSizerStb;
84  wxBoxSizer* m_tuneSizer;
85 
86  // Virtual event handlers, overide them in your derived class
87  virtual void menuNewPlot( wxCommandEvent& event ) { event.Skip(); }
88  virtual void menuOpenWorkbook( wxCommandEvent& event ) { event.Skip(); }
89  virtual void menuSaveWorkbook( wxCommandEvent& event ) { event.Skip(); }
90  virtual void menuSaveImage( wxCommandEvent& event ) { event.Skip(); }
91  virtual void menuSaveCsv( wxCommandEvent& event ) { event.Skip(); }
92  virtual void menuExit( wxCommandEvent& event ) { event.Skip(); }
93  virtual void menuZoomIn( wxCommandEvent& event ) { event.Skip(); }
94  virtual void menuZoomOut( wxCommandEvent& event ) { event.Skip(); }
95  virtual void menuZoomFit( wxCommandEvent& event ) { event.Skip(); }
96  virtual void menuShowGrid( wxCommandEvent& event ) { event.Skip(); }
97  virtual void menuShowGridUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
98  virtual void menuShowLegend( wxCommandEvent& event ) { event.Skip(); }
99  virtual void menuShowLegendUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
100  virtual void onPlotChanged( wxAuiNotebookEvent& event ) { event.Skip(); }
101  virtual void onPlotClose( wxAuiNotebookEvent& event ) { event.Skip(); }
102  virtual void onSignalDblClick( wxMouseEvent& event ) { event.Skip(); }
103  virtual void onSignalRClick( wxListEvent& event ) { event.Skip(); }
104 
105 
106  public:
107 
108  SIM_PLOT_FRAME_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Spice Simulator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 883,594 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL, const wxString& name = wxT("SIM_PLOT_FRAME") );
109 
111 
112  void m_splitterLeftRightOnIdle( wxIdleEvent& )
113  {
114  m_splitterLeftRight->SetSashPosition( 700 );
115  m_splitterLeftRight->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterLeftRightOnIdle ), NULL, this );
116  }
117 
118  void m_splitterPlotAndConsoleOnIdle( wxIdleEvent& )
119  {
120  m_splitterPlotAndConsole->SetSashPosition( 500 );
121  m_splitterPlotAndConsole->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterPlotAndConsoleOnIdle ), NULL, this );
122  }
123 
124  void m_splitterSignalsOnIdle( wxIdleEvent& )
125  {
126  m_splitterSignals->SetSashPosition( 0 );
127  m_splitterSignals->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterSignalsOnIdle ), NULL, this );
128  }
129 
130  void m_splitterTuneValuesOnIdle( wxIdleEvent& )
131  {
132  m_splitterTuneValues->SetSashPosition( 0 );
133  m_splitterTuneValues->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterTuneValuesOnIdle ), NULL, this );
134  }
135 
136 };
137 
138 #endif //__SIM_PLOT_FRAME_BASE_H__
Class KIWAY_PLAYER is a wxFrame capable of the OpenProjectFiles function, meaning it can load a porti...
Definition: kiway_player.h:111
SIM_PLOT_FRAME_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Spice Simulator"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(883, 594), long style=wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL, const wxString &name=wxT("SIM_PLOT_FRAME"))
wxSplitterWindow * m_splitterSignals
virtual void menuSaveWorkbook(wxCommandEvent &event)
virtual void menuShowLegendUpdate(wxUpdateUIEvent &event)
void m_splitterLeftRightOnIdle(wxIdleEvent &)
void m_splitterSignalsOnIdle(wxIdleEvent &)
virtual void onPlotChanged(wxAuiNotebookEvent &event)
Class SIM_PLOT_FRAME_BASE.
wxStaticText * m_staticText2
virtual void menuShowGrid(wxCommandEvent &event)
virtual void menuZoomOut(wxCommandEvent &event)
wxSplitterWindow * m_splitterTuneValues
wxStaticBoxSizer * m_tuneSizerStb
wxAuiNotebook * m_plotNotebook
virtual void menuSaveCsv(wxCommandEvent &event)
virtual void onSignalRClick(wxListEvent &event)
virtual void menuShowLegend(wxCommandEvent &event)
virtual void onPlotClose(wxAuiNotebookEvent &event)
wxSplitterWindow * m_splitterLeftRight
wxMenuItem * m_runSimulation
virtual void menuOpenWorkbook(wxCommandEvent &event)
virtual void menuZoomIn(wxCommandEvent &event)
void m_splitterPlotAndConsoleOnIdle(wxIdleEvent &)
virtual void onSignalDblClick(wxMouseEvent &event)
virtual void menuShowGridUpdate(wxUpdateUIEvent &event)
virtual void menuNewPlot(wxCommandEvent &event)
virtual void menuSaveImage(wxCommandEvent &event)
const char * name
void m_splitterTuneValuesOnIdle(wxIdleEvent &)
virtual void menuZoomFit(wxCommandEvent &event)
virtual void menuExit(wxCommandEvent &event)
wxSplitterWindow * m_splitterPlotAndConsole