2016-08-11 12:41:01 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2022-12-07 21:34:33 +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
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-11-20 14:48:08 +00:00
|
|
|
#pragma once
|
2016-08-11 12:41:01 +00:00
|
|
|
|
2020-04-15 01:51:58 +00:00
|
|
|
#include <wx/artprov.h>
|
2021-03-08 15:31:02 +00:00
|
|
|
#include <wx/xrc/xmlres.h>
|
|
|
|
#include <wx/intl.h>
|
2023-01-29 16:01:03 +00:00
|
|
|
class WX_GRID;
|
2022-10-25 02:35:45 +00:00
|
|
|
|
2023-02-12 14:55:00 +00:00
|
|
|
#include "sim_notebook.h"
|
2022-10-25 02:35:45 +00:00
|
|
|
#include <wx/gdicmn.h>
|
2023-06-15 12:39:04 +00:00
|
|
|
#include <wx/aui/auibook.h>
|
2021-03-08 15:31:02 +00:00
|
|
|
#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>
|
2016-08-11 12:41:35 +00:00
|
|
|
#include <wx/sizer.h>
|
2021-03-08 15:31:02 +00:00
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/textctrl.h>
|
2016-08-11 12:42:00 +00:00
|
|
|
#include <wx/splitter.h>
|
2023-01-29 16:01:03 +00:00
|
|
|
#include <wx/srchctrl.h>
|
|
|
|
#include <wx/grid.h>
|
2016-08-11 12:41:01 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2023-06-15 12:39:04 +00:00
|
|
|
/// Class SIMULATOR_PANEL_BASE
|
2016-08-11 12:41:01 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2023-06-15 12:39:04 +00:00
|
|
|
class SIMULATOR_PANEL_BASE : public wxPanel
|
2016-08-11 12:41:01 +00:00
|
|
|
{
|
|
|
|
private:
|
2019-11-20 14:48:08 +00:00
|
|
|
|
2016-08-11 12:41:01 +00:00
|
|
|
protected:
|
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;
|
2023-02-12 14:55:00 +00:00
|
|
|
SIM_NOTEBOOK* m_plotNotebook;
|
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;
|
2023-01-29 16:01:03 +00:00
|
|
|
wxSearchCtrl* m_filter;
|
|
|
|
WX_GRID* m_signalsGrid;
|
2023-02-11 20:39:50 +00:00
|
|
|
wxPanel* m_panelCMT;
|
|
|
|
wxSplitterWindow* m_splitterCursors;
|
2016-12-02 14:34:23 +00:00
|
|
|
wxPanel* m_panelCursors;
|
2023-01-29 16:01:03 +00:00
|
|
|
WX_GRID* m_cursorsGrid;
|
2023-02-11 20:39:50 +00:00
|
|
|
wxPanel* m_panelMT;
|
|
|
|
wxSplitterWindow* m_splitterMeasurements;
|
|
|
|
wxPanel* m_panelMeasurements;
|
|
|
|
WX_GRID* m_measurementsGrid;
|
|
|
|
wxPanel* m_panelTuners;
|
|
|
|
wxBoxSizer* m_sizerTuners;
|
2019-11-20 14:48:08 +00:00
|
|
|
|
2022-10-25 02:35:45 +00:00
|
|
|
// Virtual event handlers, override them in your derived class
|
2021-05-11 23:27:34 +00:00
|
|
|
virtual void onPlotDragged( wxAuiNotebookEvent& 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(); }
|
2021-05-11 23:27:34 +00:00
|
|
|
virtual void onPlotClosed( wxAuiNotebookEvent& event ) { event.Skip(); }
|
2023-01-29 16:01:03 +00:00
|
|
|
virtual void OnFilterMouseMoved( wxMouseEvent& event ) { event.Skip(); }
|
|
|
|
virtual void OnFilterText( wxCommandEvent& event ) { event.Skip(); }
|
|
|
|
virtual void onSignalsGridCellChanged( wxGridEvent& event ) { event.Skip(); }
|
|
|
|
virtual void onCursorsGridCellChanged( wxGridEvent& event ) { event.Skip(); }
|
2023-02-11 20:39:50 +00:00
|
|
|
virtual void onMeasurementsGridCellChanged( wxGridEvent& event ) { event.Skip(); }
|
2019-11-20 14:48:08 +00:00
|
|
|
|
|
|
|
|
2016-08-11 12:41:01 +00:00
|
|
|
public:
|
2019-11-20 14:48:08 +00:00
|
|
|
|
2023-06-15 12:39:04 +00:00
|
|
|
SIMULATOR_PANEL_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 );
|
2019-11-20 14:48:08 +00:00
|
|
|
|
2023-06-15 12:39:04 +00:00
|
|
|
~SIMULATOR_PANEL_BASE();
|
2019-11-20 14:48:08 +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 );
|
2023-06-15 12:39:04 +00:00
|
|
|
m_splitterLeftRight->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_PANEL_BASE::m_splitterLeftRightOnIdle ), NULL, this );
|
2016-08-11 12:42:00 +00:00
|
|
|
}
|
2019-11-20 14:48:08 +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 );
|
2023-06-15 12:39:04 +00:00
|
|
|
m_splitterPlotAndConsole->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_PANEL_BASE::m_splitterPlotAndConsoleOnIdle ), NULL, this );
|
2016-08-11 12:42:00 +00:00
|
|
|
}
|
2019-11-20 14:48:08 +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 );
|
2023-06-15 12:39:04 +00:00
|
|
|
m_splitterSignals->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_PANEL_BASE::m_splitterSignalsOnIdle ), NULL, this );
|
2016-12-02 07:58:01 +00:00
|
|
|
}
|
2019-11-20 14:48:08 +00:00
|
|
|
|
2023-02-11 20:39:50 +00:00
|
|
|
void m_splitterCursorsOnIdle( wxIdleEvent& )
|
2016-12-02 07:58:01 +00:00
|
|
|
{
|
2023-02-11 20:39:50 +00:00
|
|
|
m_splitterCursors->SetSashPosition( 0 );
|
2023-06-15 12:39:04 +00:00
|
|
|
m_splitterCursors->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_PANEL_BASE::m_splitterCursorsOnIdle ), NULL, this );
|
2023-02-11 20:39:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void m_splitterMeasurementsOnIdle( wxIdleEvent& )
|
|
|
|
{
|
|
|
|
m_splitterMeasurements->SetSashPosition( 0 );
|
2023-06-15 12:39:04 +00:00
|
|
|
m_splitterMeasurements->Disconnect( wxEVT_IDLE, wxIdleEventHandler( SIMULATOR_PANEL_BASE::m_splitterMeasurementsOnIdle ), NULL, this );
|
2016-12-02 07:58:01 +00:00
|
|
|
}
|
2019-11-20 14:48:08 +00:00
|
|
|
|
2016-08-11 12:41:01 +00:00
|
|
|
};
|
|
|
|
|