14SIMULATOR_FRAME_UI_BASE::SIMULATOR_FRAME_UI_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
16 wxBoxSizer* sizerMain;
17 sizerMain =
new wxBoxSizer( wxVERTICAL );
19 m_splitterLeftRight =
new wxSplitterWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3DSASH|wxSP_LIVE_UPDATE|wxBORDER_NONE );
39 m_plotNotebook =
new wxAuiNotebook(
m_plotPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_CLOSE_ON_ALL_TABS|wxAUI_NB_MIDDLE_CLICK_CLOSE|wxAUI_NB_TAB_MOVE|wxAUI_NB_TOP );
54 m_simConsole =
new wxTextCtrl(
m_panelConsole, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_DONTWRAP|wxTE_MULTILINE|wxTE_READONLY );
55 m_simConsole->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL,
false, wxEmptyString ) );
84 wxBoxSizer* bSizerSignals;
85 bSizerSignals =
new wxBoxSizer( wxVERTICAL );
87 m_filter =
new wxSearchCtrl(
m_panelSignals, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
92 bSizerSignals->Add(
m_filter, 0, wxEXPAND, 5 );
117 m_signalsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
122 m_signalsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
127 m_signalsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
137 wxBoxSizer* bSizerCMT;
138 bSizerCMT =
new wxBoxSizer( wxVERTICAL );
140 m_splitterCursors =
new wxSplitterWindow(
m_panelCMT, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3DSASH|wxSP_LIVE_UPDATE|wxBORDER_NONE );
148 wxBoxSizer* bSizerCursors;
149 bSizerCursors =
new wxBoxSizer( wxVERTICAL );
172 m_cursorsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
177 m_cursorsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
182 m_cursorsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
190 m_panelMT->SetMinSize( wxSize( -1,100 ) );
192 wxBoxSizer* bSizerMT;
193 bSizerMT =
new wxBoxSizer( wxVERTICAL );
203 wxBoxSizer* bSizerMeasurements;
204 bSizerMeasurements =
new wxBoxSizer( wxVERTICAL );
276 this->SetSizer( sizerMain );
278 sizerMain->Fit(
this );
virtual void onPlotDragged(wxAuiNotebookEvent &event)
virtual void onPlotClosed(wxAuiNotebookEvent &event)
~SIMULATOR_FRAME_UI_BASE()
virtual void onPlotChanging(wxAuiNotebookEvent &event)
wxBoxSizer * m_sizerTuners
WX_GRID * m_measurementsGrid
wxBoxSizer * m_sizerConsole
wxSplitterWindow * m_splitterLeftRight
virtual void onPlotClose(wxAuiNotebookEvent &event)
wxSplitterWindow * m_splitterMeasurements
void m_splitterLeftRightOnIdle(wxIdleEvent &)
virtual void OnFilterText(wxCommandEvent &event)
void m_splitterMeasurementsOnIdle(wxIdleEvent &)
wxTextCtrl * m_simConsole
wxPanel * m_panelMeasurements
wxSplitterWindow * m_splitterCursors
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void onMeasurementsGridCellChanged(wxGridEvent &event)
virtual void onPlotChanged(wxAuiNotebookEvent &event)
virtual void onCursorsGridCellChanged(wxGridEvent &event)
void m_splitterPlotAndConsoleOnIdle(wxIdleEvent &)
void m_splitterCursorsOnIdle(wxIdleEvent &)
virtual void onSignalsGridCellChanged(wxGridEvent &event)
wxSplitterWindow * m_splitterPlotAndConsole
SIMULATOR_FRAME_UI_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)
void m_splitterSignalsOnIdle(wxIdleEvent &)
wxSplitterWindow * m_splitterSignals
virtual void OnFilterMouseMoved(wxMouseEvent &event)
wxAuiNotebook * m_plotNotebook
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...