You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
4.2 KiB

  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!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #pragma once
  8. #include <wx/artprov.h>
  9. #include <wx/xrc/xmlres.h>
  10. #include <wx/intl.h>
  11. class ACTION_TOOLBAR;
  12. class WX_GRID;
  13. #include "sim_notebook.h"
  14. #include "kiway_player.h"
  15. #include <wx/gdicmn.h>
  16. #include <wx/aui/aui.h>
  17. #include <wx/aui/auibar.h>
  18. #include <wx/font.h>
  19. #include <wx/colour.h>
  20. #include <wx/settings.h>
  21. #include <wx/string.h>
  22. #include <wx/aui/auibook.h>
  23. #include <wx/sizer.h>
  24. #include <wx/panel.h>
  25. #include <wx/textctrl.h>
  26. #include <wx/splitter.h>
  27. #include <wx/srchctrl.h>
  28. #include <wx/grid.h>
  29. #include <wx/frame.h>
  30. ///////////////////////////////////////////////////////////////////////////
  31. ///////////////////////////////////////////////////////////////////////////////
  32. /// Class SIM_PLOT_FRAME_BASE
  33. ///////////////////////////////////////////////////////////////////////////////
  34. class SIM_PLOT_FRAME_BASE : public KIWAY_PLAYER
  35. {
  36. private:
  37. protected:
  38. wxBoxSizer* m_sizerMain;
  39. ACTION_TOOLBAR* m_toolBar;
  40. wxSplitterWindow* m_splitterLeftRight;
  41. wxPanel* m_panelLeft;
  42. wxBoxSizer* m_sizer11;
  43. wxSplitterWindow* m_splitterPlotAndConsole;
  44. wxPanel* m_plotPanel;
  45. wxBoxSizer* m_sizerPlot;
  46. SIM_NOTEBOOK* m_plotNotebook;
  47. wxPanel* m_panelConsole;
  48. wxBoxSizer* m_sizerConsole;
  49. wxTextCtrl* m_simConsole;
  50. wxPanel* m_sidePanel;
  51. wxBoxSizer* m_sideSizer;
  52. wxSplitterWindow* m_splitterSignals;
  53. wxPanel* m_panelSignals;
  54. wxSearchCtrl* m_filter;
  55. WX_GRID* m_signalsGrid;
  56. wxPanel* m_panelCMT;
  57. wxSplitterWindow* m_splitterCursors;
  58. wxPanel* m_panelCursors;
  59. WX_GRID* m_cursorsGrid;
  60. wxPanel* m_panelMT;
  61. wxSplitterWindow* m_splitterMeasurements;
  62. wxPanel* m_panelMeasurements;
  63. WX_GRID* m_measurementsGrid;
  64. wxPanel* m_panelTuners;
  65. wxBoxSizer* m_sizerTuners;
  66. // Virtual event handlers, override them in your derived class
  67. virtual void onPlotDragged( wxAuiNotebookEvent& event ) { event.Skip(); }
  68. virtual void onPlotChanged( wxAuiNotebookEvent& event ) { event.Skip(); }
  69. virtual void onPlotClose( wxAuiNotebookEvent& event ) { event.Skip(); }
  70. virtual void onPlotClosed( wxAuiNotebookEvent& event ) { event.Skip(); }
  71. virtual void OnFilterMouseMoved( wxMouseEvent& event ) { event.Skip(); }
  72. virtual void OnFilterText( wxCommandEvent& event ) { event.Skip(); }
  73. virtual void onSignalsGridCellChanged( wxGridEvent& event ) { event.Skip(); }
  74. virtual void onCursorsGridCellChanged( wxGridEvent& event ) { event.Skip(); }
  75. virtual void onMeasurementsGridCellChanged( wxGridEvent& event ) { event.Skip(); }
  76. public:
  77. 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") );
  78. ~SIM_PLOT_FRAME_BASE();
  79. void m_splitterLeftRightOnIdle( wxIdleEvent& )
  80. {
  81. m_splitterLeftRight->SetSashPosition( 700 );
  82. m_splitterLeftRight->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterLeftRightOnIdle ), NULL, this );
  83. }
  84. void m_splitterPlotAndConsoleOnIdle( wxIdleEvent& )
  85. {
  86. m_splitterPlotAndConsole->SetSashPosition( 500 );
  87. m_splitterPlotAndConsole->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterPlotAndConsoleOnIdle ), NULL, this );
  88. }
  89. void m_splitterSignalsOnIdle( wxIdleEvent& )
  90. {
  91. m_splitterSignals->SetSashPosition( 0 );
  92. m_splitterSignals->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterSignalsOnIdle ), NULL, this );
  93. }
  94. void m_splitterCursorsOnIdle( wxIdleEvent& )
  95. {
  96. m_splitterCursors->SetSashPosition( 0 );
  97. m_splitterCursors->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterCursorsOnIdle ), NULL, this );
  98. }
  99. void m_splitterMeasurementsOnIdle( wxIdleEvent& )
  100. {
  101. m_splitterMeasurements->SetSashPosition( 0 );
  102. m_splitterMeasurements->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterMeasurementsOnIdle ), NULL, this );
  103. }
  104. };