12PNS_LOG_VIEWER_FRAME_BASE::PNS_LOG_VIEWER_FRAME_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) : wxFrame( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxMenuItem* m_menuOpenLogfile;
19 m_menuOpenLogfile =
new wxMenuItem(
m_menuFile, wxID_ANY, wxString( wxT(
"Open") ) , wxEmptyString, wxITEM_NORMAL );
22 wxMenuItem* m_menuOpenTestcase;
23 m_menuOpenTestcase =
new wxMenuItem(
m_menuFile, wxID_ANY, wxString( wxT(
"Open") ) , wxEmptyString, wxITEM_NORMAL );
26 wxMenuItem* m_menuSaveTestcase;
27 m_menuSaveTestcase =
new wxMenuItem(
m_menuFile, wxID_ANY, wxString( wxT(
"Save Testcase") ) , wxEmptyString, wxITEM_NORMAL );
30 wxMenuItem* m_menuExit;
31 m_menuExit =
new wxMenuItem(
m_menuFile, wxID_ANY, wxString( wxT(
"Exit") ) , wxEmptyString, wxITEM_NORMAL );
37 wxMenuItem* m_menuShowRPIs;
38 m_menuShowRPIs =
new wxMenuItem(
m_menuView, wxID_ANY, wxString( wxT(
"Show PREVIEW_ITEMS") ) , wxEmptyString, wxITEM_CHECK );
40 m_menuShowRPIs->Check(
true );
42 wxMenuItem* m_menuOverrideLineWidth;
43 m_menuOverrideLineWidth =
new wxMenuItem(
m_menuView, wxID_ANY, wxString( wxT(
"Override line width") ) , wxEmptyString, wxITEM_CHECK );
46 wxMenuItem* m_menuShowVertexNumbers;
47 m_menuShowVertexNumbers =
new wxMenuItem(
m_menuView, wxID_ANY, wxString( wxT(
"Show Vertex Numbers") ) , wxEmptyString, wxITEM_CHECK );
58 m_topBarSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
60 m_rewindText =
new wxStaticText(
this, wxID_ANY, wxT(
"Rewind: "), wxDefaultPosition, wxDefaultSize, 0 );
64 m_rewindLeft =
new wxButton(
this, wxID_ANY, wxT(
"<"), wxDefaultPosition, wxSize( 50,-1 ), 0 );
69 m_rewindSlider =
new wxSlider(
this, wxID_ANY, 50, 0, 100, wxDefaultPosition, wxSize( 200,-1 ), wxSL_HORIZONTAL );
74 m_rewindRight =
new wxButton(
this, wxID_ANY, wxT(
">"), wxDefaultPosition, wxSize( 50,-1 ), 0 );
79 m_rewindPos =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 50,-1 ), wxTE_PROCESS_ENTER );
84 m_staticText2 =
new wxStaticText(
this, wxID_ANY, wxT(
"Filter:"), wxDefaultPosition, wxDefaultSize, 0 );
88 m_filterString =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
91 m_algoStatus =
new wxStaticText(
this, wxID_ANY, wxT(
"MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
93 m_algoStatus->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
100 m_ideLabel =
new wxStaticText(
this, wxID_ANY, wxT(
"IDE:"), wxPoint( -1,-1 ), wxDefaultSize, 0 );
102 m_ideLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
106 wxString m_ideChoiceChoices[] = { wxT(
"VS Code"), wxT(
"Visual Studio (full)"), wxT(
"CLion"), wxT(
"Emacs") };
107 int m_ideChoiceNChoices =
sizeof( m_ideChoiceChoices ) /
sizeof( wxString );
108 m_ideChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_ideChoiceNChoices, m_ideChoiceChoices, 0 );
110 m_ideChoice->SetToolTip( wxT(
"Select IDE for go to line functionality") );
117 m_mainSplitter =
new wxSplitterWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
123 bSizer5 =
new wxBoxSizer( wxVERTICAL );
128 bSizer6 =
new wxBoxSizer( wxVERTICAL );
130 m_itemList =
new wxTreeListCtrl(
m_panelListView, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTL_CHECKBOX|wxTL_DEFAULT_STYLE|wxTL_MULTIPLE );
132 bSizer6->Add(
m_itemList, 1, wxALL|wxEXPAND, 5 );
141 bSizer7 =
new wxBoxSizer( wxVERTICAL );
143 m_consoleText =
new wxTextCtrl(
m_panelConsole, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH );
164 m_statusBar = this->CreateStatusBar( 1, wxSTB_SIZEGRIP, wxID_ANY );
166 this->Centre( wxBOTH );
void m_mainSplitterOnIdle(wxIdleEvent &)
virtual void onFilterText(wxCommandEvent &event)
virtual void onRewindScroll(wxScrollEvent &event)
wxStaticText * m_rewindText
wxTreeListCtrl * m_itemList
wxFlexGridSizer * m_topBarSizer
wxStatusBar * m_statusBar
wxSplitterWindow * m_mainSplitter
virtual void onRewindCountText(wxCommandEvent &event)
virtual void onExit(wxCommandEvent &event)
wxStaticText * m_algoStatus
PNS_LOG_VIEWER_FRAME_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("P&S Log Viewer"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(1045, 574), long style=wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL)
~PNS_LOG_VIEWER_FRAME_BASE()
virtual void onBtnRewindRight(wxCommandEvent &event)
virtual void onOpen(wxCommandEvent &event)
virtual void onSaveAs(wxCommandEvent &event)
virtual void onBtnRewindLeft(wxCommandEvent &event)
wxNotebook * m_propsNotebook
wxTextCtrl * m_filterString
virtual void onShowThinLinesChecked(wxCommandEvent &event)
wxStaticText * m_staticText2
wxPanel * m_panelListView
wxSlider * m_rewindSlider
wxStaticText * m_ideLabel
virtual void onShowRPIsChecked(wxCommandEvent &event)
virtual void onShowVerticesChecked(wxCommandEvent &event)
wxTextCtrl * m_consoleText
virtual void onRewindCountText2(wxCommandEvent &event)