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