KiCad PCB EDA Suite
Loading...
Searching...
No Matches
simulator_frame_ui_base.h
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
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>
13class WX_GRID;
14
15#include <wx/gdicmn.h>
16#include <wx/aui/auibook.h>
17#include <wx/font.h>
18#include <wx/colour.h>
19#include <wx/settings.h>
20#include <wx/string.h>
21#include <wx/sizer.h>
22#include <wx/panel.h>
23#include <wx/textctrl.h>
24#include <wx/splitter.h>
25#include <wx/srchctrl.h>
26#include <wx/grid.h>
27
29
30
34class SIMULATOR_FRAME_UI_BASE : public wxPanel
35{
36 private:
37
38 protected:
39 wxSplitterWindow* m_splitterLeftRight;
40 wxPanel* m_panelLeft;
41 wxBoxSizer* m_sizer11;
42 wxSplitterWindow* m_splitterPlotAndConsole;
43 wxPanel* m_plotPanel;
44 wxBoxSizer* m_sizerPlot;
45 wxAuiNotebook* m_plotNotebook;
47 wxBoxSizer* m_sizerConsole;
48 wxTextCtrl* m_simConsole;
49 wxPanel* m_sidePanel;
50 wxBoxSizer* m_sideSizer;
51 wxSplitterWindow* m_splitterSignals;
53 wxSearchCtrl* m_filter;
55 wxPanel* m_panelCMT;
56 wxSplitterWindow* m_splitterCursors;
59 wxPanel* m_panelMT;
60 wxSplitterWindow* m_splitterMeasurements;
63 wxPanel* m_panelTuners;
64 wxBoxSizer* m_sizerTuners;
65
66 // Virtual event handlers, override them in your derived class
67 virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); }
68 virtual void onPlotDragged( wxAuiNotebookEvent& event ) { event.Skip(); }
69 virtual void onPlotChanged( wxAuiNotebookEvent& event ) { event.Skip(); }
70 virtual void onPlotChanging( wxAuiNotebookEvent& event ) { event.Skip(); }
71 virtual void onPlotClose( wxAuiNotebookEvent& event ) { event.Skip(); }
72 virtual void onPlotClosed( wxAuiNotebookEvent& event ) { event.Skip(); }
73 virtual void OnFilterMouseMoved( wxMouseEvent& event ) { event.Skip(); }
74 virtual void OnFilterText( wxCommandEvent& event ) { event.Skip(); }
75 virtual void onSignalsGridCellChanged( wxGridEvent& event ) { event.Skip(); }
76 virtual void onCursorsGridCellChanged( wxGridEvent& event ) { event.Skip(); }
77 virtual void onMeasurementsGridCellChanged( wxGridEvent& event ) { event.Skip(); }
78
79
80 public:
81
82 SIMULATOR_FRAME_UI_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
83
85
86 void m_splitterLeftRightOnIdle( wxIdleEvent& )
87 {
88 m_splitterLeftRight->SetSashPosition( 700 );
89 m_splitterLeftRight->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_FRAME_UI_BASE::m_splitterLeftRightOnIdle ), NULL, this );
90 }
91
92 void m_splitterPlotAndConsoleOnIdle( wxIdleEvent& )
93 {
94 m_splitterPlotAndConsole->SetSashPosition( 500 );
95 m_splitterPlotAndConsole->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_FRAME_UI_BASE::m_splitterPlotAndConsoleOnIdle ), NULL, this );
96 }
97
98 void m_splitterSignalsOnIdle( wxIdleEvent& )
99 {
100 m_splitterSignals->SetSashPosition( 0 );
101 m_splitterSignals->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_FRAME_UI_BASE::m_splitterSignalsOnIdle ), NULL, this );
102 }
103
104 void m_splitterCursorsOnIdle( wxIdleEvent& )
105 {
106 m_splitterCursors->SetSashPosition( 0 );
107 m_splitterCursors->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_FRAME_UI_BASE::m_splitterCursorsOnIdle ), NULL, this );
108 }
109
110 void m_splitterMeasurementsOnIdle( wxIdleEvent& )
111 {
112 m_splitterMeasurements->SetSashPosition( 0 );
113 m_splitterMeasurements->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_FRAME_UI_BASE::m_splitterMeasurementsOnIdle ), NULL, this );
114 }
115
116};
117
const char * name
Definition: DXF_plotter.cpp:57
Class SIMULATOR_FRAME_UI_BASE.
virtual void onPlotDragged(wxAuiNotebookEvent &event)
virtual void onPlotClosed(wxAuiNotebookEvent &event)
virtual void onPlotChanging(wxAuiNotebookEvent &event)
wxSplitterWindow * m_splitterLeftRight
virtual void onPlotClose(wxAuiNotebookEvent &event)
wxSplitterWindow * m_splitterMeasurements
void m_splitterLeftRightOnIdle(wxIdleEvent &)
virtual void OnFilterText(wxCommandEvent &event)
void m_splitterMeasurementsOnIdle(wxIdleEvent &)
wxSplitterWindow * m_splitterCursors
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void onMeasurementsGridCellChanged(wxGridEvent &event)
virtual void onPlotChanged(wxAuiNotebookEvent &event)
virtual void onCursorsGridCellChanged(wxGridEvent &event)
void m_splitterPlotAndConsoleOnIdle(wxIdleEvent &)
void m_splitterCursorsOnIdle(wxIdleEvent &)
virtual void onSignalsGridCellChanged(wxGridEvent &event)
wxSplitterWindow * m_splitterPlotAndConsole
void m_splitterSignalsOnIdle(wxIdleEvent &)
wxSplitterWindow * m_splitterSignals
virtual void OnFilterMouseMoved(wxMouseEvent &event)