2016-08-11 12:41:01 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2019-08-05 06:47:38 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Dec 30 2017)
|
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
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-08-05 06:47:38 +00:00
|
|
|
#ifndef __SIM_PLOT_FRAME_BASE_H__
|
|
|
|
#define __SIM_PLOT_FRAME_BASE_H__
|
2016-08-11 12:41:01 +00:00
|
|
|
|
|
|
|
#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
|
|
|
#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>
|
2016-08-11 12:41:35 +00:00
|
|
|
#include <wx/sizer.h>
|
2016-08-11 12:42:00 +00:00
|
|
|
#include <wx/panel.h>
|
2016-08-11 12:42:07 +00:00
|
|
|
#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:26 +00:00
|
|
|
#include <wx/listctrl.h>
|
2016-08-11 12:41:01 +00:00
|
|
|
#include <wx/frame.h>
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-04-14 13:31:32 +00:00
|
|
|
#define ID_SAVE_AS_IMAGE 1000
|
|
|
|
#define ID_SAVE_AS_CSV 1001
|
|
|
|
#define ID_MENU_RUN_SIM 1002
|
|
|
|
#define ID_MENU_ADD_SIGNAL 1003
|
|
|
|
#define ID_MENU_PROBE_SIGNALS 1004
|
|
|
|
#define ID_MENU_TUNE_SIGNALS 1005
|
|
|
|
#define ID_MENU_SHOW_NETLIST 1006
|
|
|
|
#define ID_MENU_SET_SIMUL 1007
|
|
|
|
#define ID_MENU_SHOW_GRID 1008
|
|
|
|
#define ID_MENU_SHOW_LEGEND 1009
|
2016-08-11 12:41:01 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Class SIM_PLOT_FRAME_BASE
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
class SIM_PLOT_FRAME_BASE : public KIWAY_PLAYER
|
|
|
|
{
|
|
|
|
private:
|
2019-08-05 06:47:38 +00:00
|
|
|
|
2016-08-11 12:41:01 +00:00
|
|
|
protected:
|
2016-08-11 12:41:22 +00:00
|
|
|
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;
|
2018-03-03 16:36:26 +00:00
|
|
|
wxMenuItem* m_showNetlist;
|
2016-08-11 12:42:13 +00:00
|
|
|
wxMenuItem* m_settings;
|
2016-08-11 12:41:22 +00:00
|
|
|
wxMenu* m_viewMenu;
|
2016-12-02 14:34:23 +00:00
|
|
|
wxBoxSizer* m_sizerMain;
|
2016-08-11 12:42:00 +00:00
|
|
|
wxToolBar* m_toolBar;
|
2016-12-02 14:34:23 +00:00
|
|
|
wxSplitterWindow* m_splitterLeftRight;
|
|
|
|
wxPanel* m_panelLeft;
|
2016-08-11 12:42:02 +00:00
|
|
|
wxBoxSizer* m_sizer11;
|
2016-12-02 14:34:23 +00:00
|
|
|
wxSplitterWindow* m_splitterPlotAndConsole;
|
2016-08-11 12:42:01 +00:00
|
|
|
wxPanel* m_plotPanel;
|
2016-12-02 14:34:23 +00:00
|
|
|
wxBoxSizer* m_sizerPlot;
|
2016-08-11 12:42:07 +00:00
|
|
|
wxAuiNotebook* m_plotNotebook;
|
2016-08-11 12:42:00 +00:00
|
|
|
wxPanel* m_welcomePanel;
|
2016-08-11 12:42:02 +00:00
|
|
|
wxBoxSizer* m_sizer8;
|
2018-07-29 15:27:11 +00:00
|
|
|
wxStaticText* m_staticTextInfo;
|
2016-12-02 14:34:23 +00:00
|
|
|
wxPanel* m_panelConsole;
|
|
|
|
wxBoxSizer* m_sizerConsole;
|
2016-08-11 12:41:35 +00:00
|
|
|
wxTextCtrl* m_simConsole;
|
2016-08-11 12:42:01 +00:00
|
|
|
wxPanel* m_sidePanel;
|
|
|
|
wxBoxSizer* m_sideSizer;
|
2016-12-02 14:34:23 +00:00
|
|
|
wxSplitterWindow* m_splitterSignals;
|
|
|
|
wxPanel* m_panelSignals;
|
2019-08-05 06:47:38 +00:00
|
|
|
wxStaticText* m_staticText2;
|
2016-08-29 09:39:54 +00:00
|
|
|
wxListView* m_signals;
|
2016-12-02 14:34:23 +00:00
|
|
|
wxPanel* m_panelCursorsAndTune;
|
|
|
|
wxSplitterWindow* m_splitterTuneValues;
|
|
|
|
wxPanel* m_panelCursors;
|
2019-08-05 06:47:38 +00:00
|
|
|
wxStaticText* m_staticText3;
|
2016-08-11 12:41:26 +00:00
|
|
|
wxListCtrl* m_cursors;
|
2016-12-02 07:58:01 +00:00
|
|
|
wxPanel* m_tunePanel;
|
2019-08-05 06:47:38 +00:00
|
|
|
wxStaticText* m_staticText4;
|
2016-08-11 12:41:45 +00:00
|
|
|
wxBoxSizer* m_tuneSizer;
|
2019-08-05 06:47:38 +00:00
|
|
|
|
2016-08-11 12:41:01 +00:00
|
|
|
// Virtual event handlers, overide them in your derived class
|
2016-08-11 12:41:22 +00:00
|
|
|
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(); }
|
2016-08-11 12:41:22 +00:00
|
|
|
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(); }
|
2016-08-11 12:41:27 +00:00
|
|
|
virtual void menuShowGridUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
|
|
|
|
virtual void menuShowLegend( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void menuShowLegendUpdate( wxUpdateUIEvent& event ) { event.Skip(); }
|
2016-08-11 12:42:07 +00:00
|
|
|
virtual void onPlotChanged( wxAuiNotebookEvent& event ) { event.Skip(); }
|
|
|
|
virtual void onPlotClose( wxAuiNotebookEvent& event ) { event.Skip(); }
|
2016-08-29 09:39:54 +00:00
|
|
|
virtual void onSignalDblClick( wxMouseEvent& event ) { event.Skip(); }
|
|
|
|
virtual void onSignalRClick( wxListEvent& event ) { event.Skip(); }
|
2019-08-05 06:47:38 +00:00
|
|
|
|
|
|
|
|
2016-08-11 12:41:01 +00:00
|
|
|
public:
|
2019-08-05 06:47:38 +00:00
|
|
|
|
|
|
|
SIM_PLOT_FRAME_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Spice Simulator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), 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();
|
2019-08-05 06:47:38 +00:00
|
|
|
|
2016-12-02 14:34:23 +00:00
|
|
|
void m_splitterLeftRightOnIdle( wxIdleEvent& )
|
2016-08-11 12:42:00 +00:00
|
|
|
{
|
2016-12-02 14:34:23 +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
|
|
|
}
|
2019-08-05 06:47:38 +00:00
|
|
|
|
2016-12-02 14:34:23 +00:00
|
|
|
void m_splitterPlotAndConsoleOnIdle( wxIdleEvent& )
|
2016-08-11 12:42:00 +00:00
|
|
|
{
|
2016-12-02 14:34:23 +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
|
|
|
}
|
2019-08-05 06:47:38 +00:00
|
|
|
|
2016-12-02 14:34:23 +00:00
|
|
|
void m_splitterSignalsOnIdle( wxIdleEvent& )
|
2016-12-02 07:58:01 +00:00
|
|
|
{
|
2016-12-02 14:34:23 +00:00
|
|
|
m_splitterSignals->SetSashPosition( 0 );
|
|
|
|
m_splitterSignals->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterSignalsOnIdle ), NULL, this );
|
2016-12-02 07:58:01 +00:00
|
|
|
}
|
2019-08-05 06:47:38 +00:00
|
|
|
|
2016-12-02 14:34:23 +00:00
|
|
|
void m_splitterTuneValuesOnIdle( wxIdleEvent& )
|
2016-12-02 07:58:01 +00:00
|
|
|
{
|
2016-12-02 14:34:23 +00:00
|
|
|
m_splitterTuneValues->SetSashPosition( 0 );
|
|
|
|
m_splitterTuneValues->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIM_PLOT_FRAME_BASE::m_splitterTuneValuesOnIdle ), NULL, this );
|
2016-12-02 07:58:01 +00:00
|
|
|
}
|
2019-08-05 06:47:38 +00:00
|
|
|
|
2016-08-11 12:41:01 +00:00
|
|
|
};
|
|
|
|
|
2019-08-05 06:47:38 +00:00
|
|
|
#endif //__SIM_PLOT_FRAME_BASE_H__
|