kicad/eeschema/sim/sim_plot_frame_base.h

121 lines
4.1 KiB
C
Raw Normal View History

2016-08-11 12:41:01 +00:00
///////////////////////////////////////////////////////////////////////////
2016-08-11 12:42:02 +00:00
// C++ code generated with wxFormBuilder (version Jun 24 2016)
2016-08-11 12:41:01 +00:00
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __SIM_PLOT_FRAME_BASE_H__
#define __SIM_PLOT_FRAME_BASE_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
2016-08-11 12:41:16 +00:00
#include <wx/intl.h>
2016-08-11 12:41:01 +00:00
class KIWAY_PLAYER;
#include "kiway_player.h"
#include <wx/string.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/menu.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
2016-08-11 12:42:00 +00:00
#include <wx/toolbar.h>
#include <wx/stattext.h>
#include <wx/sizer.h>
2016-08-11 12:42:00 +00:00
#include <wx/panel.h>
#include <wx/aui/auibook.h>
2016-08-11 12:42:00 +00:00
#include <wx/textctrl.h>
#include <wx/splitter.h>
2016-08-11 12:41:01 +00:00
#include <wx/listbox.h>
2016-08-11 12:41:45 +00:00
#include <wx/statbox.h>
#include <wx/listctrl.h>
2016-08-11 12:41:01 +00:00
#include <wx/frame.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class SIM_PLOT_FRAME_BASE
///////////////////////////////////////////////////////////////////////////////
class SIM_PLOT_FRAME_BASE : public KIWAY_PLAYER
{
private:
protected:
wxMenuBar* m_mainMenu;
wxMenu* m_fileMenu;
2016-08-11 12:42:00 +00:00
wxMenu* m_simulationMenu;
2016-08-11 12:42:13 +00:00
wxMenuItem* m_runSimulation;
wxMenuItem* m_addSignals;
wxMenuItem* m_probeSignals;
wxMenuItem* m_tuneValue;
wxMenuItem* m_settings;
wxMenu* m_viewMenu;
wxBoxSizer* m_sizer1;
2016-08-11 12:42:00 +00:00
wxToolBar* m_toolBar;
wxSplitterWindow* m_splitterPlot;
wxPanel* m_panel2;
wxBoxSizer* m_sizer11;
2016-08-11 12:42:00 +00:00
wxSplitterWindow* m_splitterConsole;
2016-08-11 12:42:01 +00:00
wxPanel* m_plotPanel;
wxBoxSizer* m_sizer5;
wxAuiNotebook* m_plotNotebook;
2016-08-11 12:42:00 +00:00
wxPanel* m_welcomePanel;
wxBoxSizer* m_sizer8;
2016-08-11 12:42:00 +00:00
wxStaticText* m_staticText2;
wxPanel* m_panel5;
wxBoxSizer* m_sizer13;
wxTextCtrl* m_simConsole;
2016-08-11 12:42:01 +00:00
wxPanel* m_sidePanel;
wxBoxSizer* m_sideSizer;
2016-08-11 12:41:01 +00:00
wxListBox* m_signals;
wxListCtrl* m_cursors;
2016-08-11 12:42:01 +00:00
wxStaticBoxSizer* sbSizer4;
2016-08-11 12:41:45 +00:00
wxBoxSizer* m_tuneSizer;
2016-08-11 12:41:01 +00:00
// Virtual event handlers, overide them in your derived class
virtual void menuNewPlot( wxCommandEvent& event ) { event.Skip(); }
virtual void menuOpenWorkbook( wxCommandEvent& event ) { event.Skip(); }
virtual void menuSaveWorkbook( wxCommandEvent& event ) { event.Skip(); }
2016-08-11 12:41:28 +00:00
virtual void menuSaveImage( wxCommandEvent& event ) { event.Skip(); }
virtual void menuSaveCsv( wxCommandEvent& event ) { event.Skip(); }
virtual void menuExit( wxCommandEvent& event ) { event.Skip(); }
virtual void menuZoomIn( wxCommandEvent& event ) { event.Skip(); }
virtual void menuZoomOut( wxCommandEvent& event ) { event.Skip(); }
virtual void menuZoomFit( wxCommandEvent& event ) { event.Skip(); }
virtual void menuShowGrid( wxCommandEvent& event ) { event.Skip(); }
virtual void menuShowGridUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
virtual void menuShowLegend( wxCommandEvent& event ) { event.Skip(); }
virtual void menuShowLegendUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
virtual void onPlotChanged( wxAuiNotebookEvent& event ) { event.Skip(); }
virtual void onPlotClose( wxAuiNotebookEvent& event ) { event.Skip(); }
2016-08-11 12:41:16 +00:00
virtual void onSignalDblClick( wxCommandEvent& event ) { event.Skip(); }
virtual void onSignalRClick( wxMouseEvent& event ) { event.Skip(); }
2016-08-11 12:41:01 +00:00
2016-08-11 12:41:01 +00:00
public:
2016-08-11 12:42:16 +00:00
SIM_PLOT_FRAME_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Simulation Workbook"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 1000,700 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL, const wxString& name = wxT("SIM_PLOT_FRAME") );
2016-08-11 12:41:01 +00:00
2016-08-11 12:41:16 +00:00
~SIM_PLOT_FRAME_BASE();
2016-08-11 12:42:00 +00:00
void m_splitterPlotOnIdle( wxIdleEvent& )
{
2016-08-11 12:42:16 +00:00
m_splitterPlot->SetSashPosition( 700 );
2016-08-11 12:42:00 +00:00
m_splitterPlot->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterPlotOnIdle ), NULL, this );
}
void m_splitterConsoleOnIdle( wxIdleEvent& )
{
2016-08-11 12:42:16 +00:00
m_splitterConsole->SetSashPosition( 500 );
2016-08-11 12:42:00 +00:00
m_splitterConsole->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterConsoleOnIdle ), NULL, this );
}
2016-08-11 12:41:01 +00:00
};
#endif //__SIM_PLOT_FRAME_BASE_H__