kicad/eeschema/sim/sim_plot_frame_base.h

114 lines
3.8 KiB
C
Raw Normal View History

2016-08-11 12:41:01 +00:00
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
2016-08-11 12:41:01 +00:00
// http://www.wxformbuilder.org/
//
2018-07-29 15:27:11 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2016-08-11 12:41:01 +00:00
///////////////////////////////////////////////////////////////////////////
#pragma once
2016-08-11 12:41:01 +00:00
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
2023-01-01 23:37:24 +00:00
class ACTION_TOOLBAR;
class wxListView;
#include "sim_workbook.h"
#include "kiway_player.h"
#include <wx/gdicmn.h>
2023-01-01 23:37:24 +00:00
#include <wx/aui/aui.h>
#include <wx/aui/auibar.h>
#include <wx/font.h>
#include <wx/colour.h>
2016-08-11 12:41:01 +00:00
#include <wx/settings.h>
2023-01-01 23:37:24 +00:00
#include <wx/string.h>
#include <wx/aui/auibook.h>
#include <wx/sizer.h>
#include <wx/panel.h>
#include <wx/textctrl.h>
2016-08-11 12:42:00 +00:00
#include <wx/splitter.h>
#include <wx/stattext.h>
#include <wx/listctrl.h>
#include <wx/frame.h>
2016-08-11 12:41:01 +00:00
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class SIM_PLOT_FRAME_BASE
///////////////////////////////////////////////////////////////////////////////
class SIM_PLOT_FRAME_BASE : public KIWAY_PLAYER
{
private:
2016-08-11 12:41:01 +00:00
protected:
wxBoxSizer* m_sizerMain;
2023-01-01 23:37:24 +00:00
ACTION_TOOLBAR* m_toolBar;
wxSplitterWindow* m_splitterLeftRight;
wxPanel* m_panelLeft;
wxBoxSizer* m_sizer11;
wxSplitterWindow* m_splitterPlotAndConsole;
2016-08-11 12:42:01 +00:00
wxPanel* m_plotPanel;
wxBoxSizer* m_sizerPlot;
SIM_WORKBOOK* m_workbook;
wxPanel* m_panelConsole;
wxBoxSizer* m_sizerConsole;
wxTextCtrl* m_simConsole;
2016-08-11 12:42:01 +00:00
wxPanel* m_sidePanel;
wxBoxSizer* m_sideSizer;
wxSplitterWindow* m_splitterSignals;
wxPanel* m_panelSignals;
wxStaticText* m_staticTextSignals;
wxListView* m_signals;
wxPanel* m_panelCursorsAndTune;
wxSplitterWindow* m_splitterTuneValues;
wxPanel* m_panelCursors;
wxStaticText* m_staticTextCursors;
wxListCtrl* m_cursors;
wxPanel* m_tunePanel;
wxStaticText* m_staticTextTune;
2016-08-11 12:41:45 +00:00
wxBoxSizer* m_tuneSizer;
// Virtual event handlers, override them in your derived class
virtual void onPlotDragged( wxAuiNotebookEvent& event ) { event.Skip(); }
virtual void onPlotChanged( wxAuiNotebookEvent& event ) { event.Skip(); }
virtual void onPlotClose( wxAuiNotebookEvent& event ) { event.Skip(); }
virtual void onPlotClosed( wxAuiNotebookEvent& event ) { event.Skip(); }
virtual void onSignalDblClick( wxMouseEvent& event ) { event.Skip(); }
virtual void onSignalRClick( wxListEvent& event ) { event.Skip(); }
virtual void onCursorRClick( wxListEvent& event ) { event.Skip(); }
2016-08-11 12:41:01 +00:00
public:
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") );
2016-08-11 12:41:16 +00:00
~SIM_PLOT_FRAME_BASE();
void m_splitterLeftRightOnIdle( wxIdleEvent& )
2016-08-11 12:42:00 +00:00
{
m_splitterLeftRight->SetSashPosition( 700 );
m_splitterLeftRight->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterLeftRightOnIdle ), NULL, this );
2016-08-11 12:42:00 +00:00
}
void m_splitterPlotAndConsoleOnIdle( wxIdleEvent& )
2016-08-11 12:42:00 +00:00
{
m_splitterPlotAndConsole->SetSashPosition( 500 );
m_splitterPlotAndConsole->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterPlotAndConsoleOnIdle ), NULL, this );
2016-08-11 12:42:00 +00:00
}
void m_splitterSignalsOnIdle( wxIdleEvent& )
{
m_splitterSignals->SetSashPosition( 0 );
m_splitterSignals->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterSignalsOnIdle ), NULL, this );
}
void m_splitterTuneValuesOnIdle( wxIdleEvent& )
{
m_splitterTuneValues->SetSashPosition( 0 );
m_splitterTuneValues->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterTuneValuesOnIdle ), NULL, this );
}
2016-08-11 12:41:01 +00:00
};