KiCad PCB EDA Suite
sim_plot_frame_base.h
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Sep 8 2021)
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 "sim_workbook.h"
14#include "kiway_player.h"
15#include <wx/string.h>
16#include <wx/bitmap.h>
17#include <wx/image.h>
18#include <wx/icon.h>
19#include <wx/menu.h>
20#include <wx/font.h>
21#include <wx/colour.h>
22#include <wx/settings.h>
23#include <wx/toolbar.h>
24#include <wx/aui/auibook.h>
25#include <wx/sizer.h>
26#include <wx/panel.h>
27#include <wx/textctrl.h>
28#include <wx/splitter.h>
29#include <wx/stattext.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#define ID_MENU_WHITE_BG 1011
47
52{
53 private:
54
55 protected:
56 wxMenuBar* m_mainMenu;
57 wxMenu* m_fileMenu;
59 wxMenuItem* m_runSimulation;
60 wxMenuItem* m_addSignals;
61 wxMenuItem* m_probeSignals;
62 wxMenuItem* m_tuneValue;
63 wxMenuItem* m_showNetlist;
64 wxMenuItem* m_boardAdapter;
65 wxMenu* m_viewMenu;
66 wxBoxSizer* m_sizerMain;
67 wxToolBar* m_toolBar;
68 wxSplitterWindow* m_splitterLeftRight;
69 wxPanel* m_panelLeft;
70 wxBoxSizer* m_sizer11;
71 wxSplitterWindow* m_splitterPlotAndConsole;
72 wxPanel* m_plotPanel;
73 wxBoxSizer* m_sizerPlot;
76 wxBoxSizer* m_sizerConsole;
77 wxTextCtrl* m_simConsole;
78 wxPanel* m_sidePanel;
79 wxBoxSizer* m_sideSizer;
80 wxSplitterWindow* m_splitterSignals;
82 wxStaticText* m_staticTextSignals;
83 wxListView* m_signals;
85 wxSplitterWindow* m_splitterTuneValues;
87 wxStaticText* m_staticTextCursors;
88 wxListCtrl* m_cursors;
89 wxPanel* m_tunePanel;
90 wxStaticText* m_staticTextTune;
91 wxBoxSizer* m_tuneSizer;
92
93 // Virtual event handlers, overide them in your derived class
94 virtual void menuNewPlot( wxCommandEvent& event ) { event.Skip(); }
95 virtual void menuOpenWorkbook( wxCommandEvent& event ) { event.Skip(); }
96 virtual void menuSaveWorkbook( wxCommandEvent& event ) { event.Skip(); }
97 virtual void menuSaveWorkbookAs( wxCommandEvent& event ) { event.Skip(); }
98 virtual void menuSaveImage( wxCommandEvent& event ) { event.Skip(); }
99 virtual void menuSaveCsv( wxCommandEvent& event ) { event.Skip(); }
100 virtual void menuExit( wxCommandEvent& event ) { event.Skip(); }
101 virtual void menuSimulateUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
102 virtual void menuAddSignalsUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
103 virtual void menuProbeUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
104 virtual void menuTuneUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
105 virtual void menuZoomIn( wxCommandEvent& event ) { event.Skip(); }
106 virtual void menuZoomOut( wxCommandEvent& event ) { event.Skip(); }
107 virtual void menuZoomFit( wxCommandEvent& event ) { event.Skip(); }
108 virtual void menuShowGrid( wxCommandEvent& event ) { event.Skip(); }
109 virtual void menuShowGridUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
110 virtual void menuShowLegend( wxCommandEvent& event ) { event.Skip(); }
111 virtual void menuShowLegendUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
112 virtual void menuShowDotted( wxCommandEvent& event ) { event.Skip(); }
113 virtual void menuShowDottedUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
114 virtual void menuWhiteBackground( wxCommandEvent& event ) { event.Skip(); }
115 virtual void menuShowWhiteBackgroundUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
116 virtual void onPlotDragged( wxAuiNotebookEvent& event ) { event.Skip(); }
117 virtual void onPlotChanged( wxAuiNotebookEvent& event ) { event.Skip(); }
118 virtual void onPlotClose( wxAuiNotebookEvent& event ) { event.Skip(); }
119 virtual void onPlotClosed( wxAuiNotebookEvent& event ) { event.Skip(); }
120 virtual void onSignalDblClick( wxMouseEvent& event ) { event.Skip(); }
121 virtual void onSignalRClick( wxListEvent& event ) { event.Skip(); }
122
123
124 public:
125
126 SIM_PLOT_FRAME_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Spice Simulator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 564,531 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL, const wxString& name = wxT("SIM_PLOT_FRAME") );
127
129
130 void m_splitterLeftRightOnIdle( wxIdleEvent& )
131 {
132 m_splitterLeftRight->SetSashPosition( 700 );
133 m_splitterLeftRight->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterLeftRightOnIdle ), NULL, this );
134 }
135
137 {
138 m_splitterPlotAndConsole->SetSashPosition( 500 );
139 m_splitterPlotAndConsole->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterPlotAndConsoleOnIdle ), NULL, this );
140 }
141
142 void m_splitterSignalsOnIdle( wxIdleEvent& )
143 {
144 m_splitterSignals->SetSashPosition( 0 );
145 m_splitterSignals->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterSignalsOnIdle ), NULL, this );
146 }
147
148 void m_splitterTuneValuesOnIdle( wxIdleEvent& )
149 {
150 m_splitterTuneValues->SetSashPosition( 0 );
151 m_splitterTuneValues->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterTuneValuesOnIdle ), NULL, this );
152 }
153
154};
155
const char * name
Definition: DXF_plotter.cpp:56
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
Definition: kiway_player.h:66
Class SIM_PLOT_FRAME_BASE.
void m_splitterLeftRightOnIdle(wxIdleEvent &)
virtual void menuZoomIn(wxCommandEvent &event)
void m_splitterTuneValuesOnIdle(wxIdleEvent &)
wxSplitterWindow * m_splitterTuneValues
void m_splitterPlotAndConsoleOnIdle(wxIdleEvent &)
virtual void menuShowLegendUpdate(wxUpdateUIEvent &event)
virtual void menuShowGridUpdate(wxUpdateUIEvent &event)
wxMenuItem * m_runSimulation
virtual void menuShowWhiteBackgroundUpdate(wxUpdateUIEvent &event)
virtual void menuOpenWorkbook(wxCommandEvent &event)
virtual void menuExit(wxCommandEvent &event)
virtual void menuZoomOut(wxCommandEvent &event)
virtual void menuWhiteBackground(wxCommandEvent &event)
virtual void menuSimulateUpdate(wxUpdateUIEvent &event)
SIM_WORKBOOK * m_workbook
virtual void menuSaveCsv(wxCommandEvent &event)
virtual void menuTuneUpdate(wxUpdateUIEvent &event)
virtual void menuShowLegend(wxCommandEvent &event)
virtual void onPlotChanged(wxAuiNotebookEvent &event)
wxStaticText * m_staticTextTune
virtual void onPlotClosed(wxAuiNotebookEvent &event)
wxSplitterWindow * m_splitterPlotAndConsole
virtual void menuShowDottedUpdate(wxUpdateUIEvent &event)
virtual void menuProbeUpdate(wxUpdateUIEvent &event)
virtual void onPlotDragged(wxAuiNotebookEvent &event)
virtual void menuShowDotted(wxCommandEvent &event)
virtual void onPlotClose(wxAuiNotebookEvent &event)
virtual void menuNewPlot(wxCommandEvent &event)
virtual void menuSaveWorkbookAs(wxCommandEvent &event)
virtual void menuSaveImage(wxCommandEvent &event)
virtual void onSignalRClick(wxListEvent &event)
SIM_PLOT_FRAME_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Spice Simulator"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(564, 531), long style=wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL, const wxString &name=wxT("SIM_PLOT_FRAME"))
virtual void menuShowGrid(wxCommandEvent &event)
wxSplitterWindow * m_splitterSignals
virtual void menuZoomFit(wxCommandEvent &event)
virtual void onSignalDblClick(wxMouseEvent &event)
wxStaticText * m_staticTextCursors
wxSplitterWindow * m_splitterLeftRight
virtual void menuAddSignalsUpdate(wxUpdateUIEvent &event)
wxStaticText * m_staticTextSignals
void m_splitterSignalsOnIdle(wxIdleEvent &)
virtual void menuSaveWorkbook(wxCommandEvent &event)
#define _(s)