KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PNS_LOG_VIEWER_FRAME Class Reference

#include <pns_log_viewer_frame.h>

Inheritance diagram for PNS_LOG_VIEWER_FRAME:
PNS_LOG_VIEWER_FRAME_BASE PCB_TEST_FRAME_BASE

Public Member Functions

 PNS_LOG_VIEWER_FRAME (wxFrame *frame)
 
virtual ~PNS_LOG_VIEWER_FRAME ()
 
void SetLogFile (PNS_LOG_FILE *aLog)
 
void SetBoard2 (std::shared_ptr< BOARD > aBoard)
 
std::shared_ptr< PNS_LOG_VIEWER_OVERLAYGetOverlay () const
 
virtual void SetBoard (std::shared_ptr< BOARD > b)
 
virtual BOARDLoadAndDisplayBoard (const std::string &filename)
 
std::shared_ptr< PCB_DRAW_PANEL_GALGetPanel ()
 
std::shared_ptr< BOARDGetBoard ()
 
void LoadSettings ()
 

Protected Member Functions

virtual void onRewindCountText2 (wxCommandEvent &event)
 
void createView (wxWindow *aParent, PCB_DRAW_PANEL_GAL::GAL_TYPE aGalType=PCB_DRAW_PANEL_GAL::GAL_TYPE_OPENGL)
 

Protected Attributes

wxMenuBar * m_menubar1
 
wxMenu * m_menu1
 
wxBoxSizer * m_mainSizer
 
wxStaticText * m_rewindText
 
wxButton * m_rewindLeft
 
wxSlider * m_rewindSlider
 
wxButton * m_rewindRight
 
wxTextCtrl * m_rewindPos
 
wxStaticText * m_staticText2
 
wxTextCtrl * m_filterString
 
wxCheckBox * m_chkShowRPItems
 
wxCheckBox * m_chkThinLines
 
wxStaticText * m_algoStatus
 
wxBoxSizer * m_viewSizer
 
wxTreeListCtrl * m_itemList
 
wxStatusBar * m_statusBar
 
std::shared_ptr< PCB_DRAW_PANEL_GALm_galPanel
 
std::shared_ptr< BOARDm_board
 
KIGFX::GAL_DISPLAY_OPTIONS m_displayOptions
 

Private Member Functions

void drawLoggedItems (int iter)
 
void updateDumpPanel (int iter)
 
virtual void createUserTools () override
 
void buildListTree (wxTreeListItem item, PNS_DEBUG_SHAPE *ent, int depth=0)
 
void syncModel ()
 
PNS_DEBUG_STAGEgetCurrentStage ()
 
void updatePnsPreviewItems (int iter)
 
bool filterStringMatches (PNS_DEBUG_SHAPE *ent)
 
virtual void onReload (wxCommandEvent &event) override
 
virtual void onExit (wxCommandEvent &event) override
 
virtual void onRewindScroll (wxScrollEvent &event) override
 
virtual void onRewindCountText (wxCommandEvent &event) override
 
virtual void onListRightClick (wxMouseEvent &event)
 
virtual void onListSelect (wxCommandEvent &event)
 
virtual void onBtnRewindLeft (wxCommandEvent &event) override
 
virtual void onBtnRewindRight (wxCommandEvent &event) override
 
virtual void onListChecked (wxCommandEvent &event)
 
virtual void onShowThinLinesChecked (wxCommandEvent &event) override
 
virtual void onShowRPIsChecked (wxCommandEvent &event) override
 
virtual void onShowVerticesChecked (wxCommandEvent &event) override
 
virtual void onFilterText (wxCommandEvent &event) override
 
void drawSimpleShape (SHAPE *aShape, bool aIsSelected, const std::string &aName)
 

Private Attributes

std::shared_ptr< PNS_LOG_VIEWER_OVERLAYm_overlay
 
std::shared_ptr< PNS_LOG_FILEm_logFile
 
std::shared_ptr< PNS_LOG_PLAYERm_logPlayer
 
int m_rewindIter
 
wxMenu * m_listPopupMenu
 
std::shared_ptr< KIGFX::VIEW_GROUPm_previewItems
 
bool m_showThinLines = true
 
bool m_showRPIs = true
 
bool m_showVertices = false
 
wxString m_searchString
 

Detailed Description

Definition at line 47 of file pns_log_viewer_frame.h.

Constructor & Destructor Documentation

◆ PNS_LOG_VIEWER_FRAME()

◆ ~PNS_LOG_VIEWER_FRAME()

PNS_LOG_VIEWER_FRAME::~PNS_LOG_VIEWER_FRAME ( )
virtual

Definition at line 178 of file pns_log_viewer_frame.cpp.

References m_overlay.

Member Function Documentation

◆ buildListTree()

◆ createUserTools()

void PNS_LOG_VIEWER_FRAME::createUserTools ( )
overrideprivatevirtual

Reimplemented from PCB_TEST_FRAME_BASE.

Definition at line 184 of file pns_log_viewer_frame.cpp.

◆ createView()

◆ drawLoggedItems()

◆ drawSimpleShape()

void PNS_LOG_VIEWER_FRAME::drawSimpleShape ( SHAPE aShape,
bool  aIsSelected,
const std::string &  aName 
)
private

◆ filterStringMatches()

bool PNS_LOG_VIEWER_FRAME::filterStringMatches ( PNS_DEBUG_SHAPE ent)
private

◆ GetBoard()

std::shared_ptr< BOARD > PCB_TEST_FRAME_BASE::GetBoard ( )
inlineinherited

Definition at line 59 of file pcb_test_frame.h.

References PCB_TEST_FRAME_BASE::m_board.

◆ getCurrentStage()

PNS_DEBUG_STAGE * PNS_LOG_VIEWER_FRAME::getCurrentStage ( )
private

◆ GetOverlay()

std::shared_ptr< PNS_LOG_VIEWER_OVERLAY > PNS_LOG_VIEWER_FRAME::GetOverlay ( ) const
inline

Definition at line 56 of file pns_log_viewer_frame.h.

References m_overlay.

◆ GetPanel()

std::shared_ptr< PCB_DRAW_PANEL_GAL > PCB_TEST_FRAME_BASE::GetPanel ( )
inlineinherited

Definition at line 58 of file pcb_test_frame.h.

References PCB_TEST_FRAME_BASE::m_galPanel.

◆ LoadAndDisplayBoard()

BOARD * PCB_TEST_FRAME_BASE::LoadAndDisplayBoard ( const std::string &  filename)
virtualinherited

Definition at line 101 of file pcb_test_frame.cpp.

References PLUGIN::Load(), and IO_ERROR::Problem().

◆ LoadSettings()

void PCB_TEST_FRAME_BASE::LoadSettings ( )
inherited

◆ onBtnRewindLeft()

void PNS_LOG_VIEWER_FRAME::onBtnRewindLeft ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onBtnRewindRight()

void PNS_LOG_VIEWER_FRAME::onBtnRewindRight ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onExit()

void PNS_LOG_VIEWER_FRAME::onExit ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from PNS_LOG_VIEWER_FRAME_BASE.

Definition at line 369 of file pns_log_viewer_frame.cpp.

◆ onFilterText()

void PNS_LOG_VIEWER_FRAME::onFilterText ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onListChecked()

void PNS_LOG_VIEWER_FRAME::onListChecked ( wxCommandEvent &  event)
privatevirtual

Definition at line 375 of file pns_log_viewer_frame.cpp.

References drawLoggedItems(), m_rewindIter, and syncModel().

Referenced by PNS_LOG_VIEWER_FRAME().

◆ onListRightClick()

◆ onListSelect()

void PNS_LOG_VIEWER_FRAME::onListSelect ( wxCommandEvent &  event)
privatevirtual

Definition at line 549 of file pns_log_viewer_frame.cpp.

References drawLoggedItems(), m_rewindIter, and syncModel().

Referenced by PNS_LOG_VIEWER_FRAME().

◆ onReload()

void PNS_LOG_VIEWER_FRAME::onReload ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from PNS_LOG_VIEWER_FRAME_BASE.

Definition at line 364 of file pns_log_viewer_frame.cpp.

◆ onRewindCountText()

void PNS_LOG_VIEWER_FRAME::onRewindCountText ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onRewindCountText2()

virtual void PNS_LOG_VIEWER_FRAME_BASE::onRewindCountText2 ( wxCommandEvent &  event)
inlineprotectedvirtualinherited

◆ onRewindScroll()

void PNS_LOG_VIEWER_FRAME::onRewindScroll ( wxScrollEvent &  event)
overrideprivatevirtual

◆ onShowRPIsChecked()

void PNS_LOG_VIEWER_FRAME::onShowRPIsChecked ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onShowThinLinesChecked()

void PNS_LOG_VIEWER_FRAME::onShowThinLinesChecked ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onShowVerticesChecked()

void PNS_LOG_VIEWER_FRAME::onShowVerticesChecked ( wxCommandEvent &  event)
overrideprivatevirtual

◆ SetBoard()

◆ SetBoard2()

◆ SetLogFile()

◆ syncModel()

◆ updateDumpPanel()

◆ updatePnsPreviewItems()

Member Data Documentation

◆ m_algoStatus

wxStaticText* PNS_LOG_VIEWER_FRAME_BASE::m_algoStatus
protectedinherited

◆ m_board

std::shared_ptr< BOARD > PCB_TEST_FRAME_BASE::m_board
protectedinherited

◆ m_chkShowRPItems

wxCheckBox* PNS_LOG_VIEWER_FRAME_BASE::m_chkShowRPItems
protectedinherited

◆ m_chkThinLines

wxCheckBox* PNS_LOG_VIEWER_FRAME_BASE::m_chkThinLines
protectedinherited

◆ m_displayOptions

KIGFX::GAL_DISPLAY_OPTIONS PCB_TEST_FRAME_BASE::m_displayOptions
protectedinherited

Definition at line 70 of file pcb_test_frame.h.

Referenced by PCB_TEST_FRAME_BASE::createView().

◆ m_filterString

wxTextCtrl* PNS_LOG_VIEWER_FRAME_BASE::m_filterString
protectedinherited

◆ m_galPanel

◆ m_itemList

wxTreeListCtrl* PNS_LOG_VIEWER_FRAME_BASE::m_itemList
protectedinherited

◆ m_listPopupMenu

wxMenu* PNS_LOG_VIEWER_FRAME::m_listPopupMenu
private

Definition at line 87 of file pns_log_viewer_frame.h.

Referenced by onListRightClick(), and PNS_LOG_VIEWER_FRAME().

◆ m_logFile

std::shared_ptr<PNS_LOG_FILE> PNS_LOG_VIEWER_FRAME::m_logFile
private

Definition at line 84 of file pns_log_viewer_frame.h.

Referenced by SetLogFile().

◆ m_logPlayer

std::shared_ptr<PNS_LOG_PLAYER> PNS_LOG_VIEWER_FRAME::m_logPlayer
private

◆ m_mainSizer

wxBoxSizer* PNS_LOG_VIEWER_FRAME_BASE::m_mainSizer
protectedinherited

◆ m_menu1

wxMenu* PNS_LOG_VIEWER_FRAME_BASE::m_menu1
protectedinherited

◆ m_menubar1

wxMenuBar* PNS_LOG_VIEWER_FRAME_BASE::m_menubar1
protectedinherited

◆ m_overlay

std::shared_ptr<PNS_LOG_VIEWER_OVERLAY> PNS_LOG_VIEWER_FRAME::m_overlay
private

◆ m_previewItems

std::shared_ptr<KIGFX::VIEW_GROUP> PNS_LOG_VIEWER_FRAME::m_previewItems
private

Definition at line 88 of file pns_log_viewer_frame.h.

Referenced by updatePnsPreviewItems().

◆ m_rewindIter

◆ m_rewindLeft

wxButton* PNS_LOG_VIEWER_FRAME_BASE::m_rewindLeft
protectedinherited

◆ m_rewindPos

◆ m_rewindRight

wxButton* PNS_LOG_VIEWER_FRAME_BASE::m_rewindRight
protectedinherited

◆ m_rewindSlider

wxSlider* PNS_LOG_VIEWER_FRAME_BASE::m_rewindSlider
protectedinherited

◆ m_rewindText

wxStaticText* PNS_LOG_VIEWER_FRAME_BASE::m_rewindText
protectedinherited

◆ m_searchString

wxString PNS_LOG_VIEWER_FRAME::m_searchString
private

Definition at line 93 of file pns_log_viewer_frame.h.

Referenced by drawLoggedItems(), filterStringMatches(), and onFilterText().

◆ m_showRPIs

bool PNS_LOG_VIEWER_FRAME::m_showRPIs = true
private

Definition at line 91 of file pns_log_viewer_frame.h.

Referenced by onShowRPIsChecked(), and updatePnsPreviewItems().

◆ m_showThinLines

bool PNS_LOG_VIEWER_FRAME::m_showThinLines = true
private

Definition at line 90 of file pns_log_viewer_frame.h.

Referenced by drawLoggedItems(), and onShowThinLinesChecked().

◆ m_showVertices

bool PNS_LOG_VIEWER_FRAME::m_showVertices = false
private

Definition at line 92 of file pns_log_viewer_frame.h.

Referenced by drawSimpleShape(), and onShowVerticesChecked().

◆ m_staticText2

wxStaticText* PNS_LOG_VIEWER_FRAME_BASE::m_staticText2
protectedinherited

◆ m_statusBar

wxStatusBar* PNS_LOG_VIEWER_FRAME_BASE::m_statusBar
protectedinherited

◆ m_viewSizer

wxBoxSizer* PNS_LOG_VIEWER_FRAME_BASE::m_viewSizer
protectedinherited

The documentation for this class was generated from the following files: