KiCad PCB EDA Suite
PANEL_SETUP_PINMAP_BASE Class Referenceabstract

Class PANEL_SETUP_PINMAP_BASE. More...

#include <panel_setup_pinmap_base.h>

Inheritance diagram for PANEL_SETUP_PINMAP_BASE:
RESETTABLE_PANEL PANEL_SETUP_PINMAP

Public Member Functions

 PANEL_SETUP_PINMAP_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)
 
 ~PANEL_SETUP_PINMAP_BASE ()
 
virtual void ResetPanel ()=0
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel. More...
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. More...
 

Protected Attributes

wxPanel * m_matrixPanel
 

Detailed Description

Class PANEL_SETUP_PINMAP_BASE.

Definition at line 28 of file panel_setup_pinmap_base.h.

Constructor & Destructor Documentation

◆ PANEL_SETUP_PINMAP_BASE()

PANEL_SETUP_PINMAP_BASE::PANEL_SETUP_PINMAP_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 
)

Definition at line 12 of file panel_setup_pinmap_base.cpp.

12 : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bSizer2;
15 bSizer2 = new wxBoxSizer( wxHORIZONTAL );
16
17 wxBoxSizer* m_panelMatrixSizer;
18 m_panelMatrixSizer = new wxBoxSizer( wxVERTICAL );
19
20
21 m_panelMatrixSizer->Add( 0, 5, 0, 0, 5 );
22
23 wxStaticBoxSizer* sbSizer3;
24 sbSizer3 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pin to Pin Connections") ), wxVERTICAL );
25
26 m_matrixPanel = new wxPanel( sbSizer3->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
27 m_matrixPanel->SetMinSize( wxSize( 500,444 ) );
28
29 sbSizer3->Add( m_matrixPanel, 1, wxEXPAND | wxALL, 5 );
30
31
32 m_panelMatrixSizer->Add( sbSizer3, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
33
34
35 bSizer2->Add( m_panelMatrixSizer, 1, wxEXPAND, 10 );
36
37
38 this->SetSizer( bSizer2 );
39 this->Layout();
40 bSizer2->Fit( this );
41}
const char * name
Definition: DXF_plotter.cpp:56
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
#define _(s)

References _, and m_matrixPanel.

◆ ~PANEL_SETUP_PINMAP_BASE()

PANEL_SETUP_PINMAP_BASE::~PANEL_SETUP_PINMAP_BASE ( )

Definition at line 43 of file panel_setup_pinmap_base.cpp.

44{
45}

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

73 {
74 if( aPt == wxPoint( -INT_MAX, INT_MAX ) )
75 return GetResetTooltip();
76 else
77 return wxPanel::GetHelpTextAtPoint( aPt, aOrigin );
78 }
virtual wxString GetResetTooltip() const
Get the tooltip the reset button should display when showing this panel.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

65 {
66 return _( "Reset all settings on this page to their default" );
67 }

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ ResetPanel()

Member Data Documentation

◆ m_matrixPanel

wxPanel* PANEL_SETUP_PINMAP_BASE::m_matrixPanel
protected

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