KiCad PCB EDA Suite
PANEL_MODEDIT_DISPLAY_OPTIONS Class Reference

#include <panel_modedit_display_options.h>

Inheritance diagram for PANEL_MODEDIT_DISPLAY_OPTIONS:

Public Member Functions

 PANEL_MODEDIT_DISPLAY_OPTIONS (FOOTPRINT_EDIT_FRAME *aFrame, PAGED_DIALOG *aParent)
 

Private Member Functions

bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 

Private Attributes

FOOTPRINT_EDIT_FRAMEm_frame
 
GAL_OPTIONS_PANELm_galOptsPanel
 

Detailed Description

Definition at line 30 of file panel_modedit_display_options.h.

Constructor & Destructor Documentation

◆ PANEL_MODEDIT_DISPLAY_OPTIONS()

PANEL_MODEDIT_DISPLAY_OPTIONS::PANEL_MODEDIT_DISPLAY_OPTIONS ( FOOTPRINT_EDIT_FRAME aFrame,
PAGED_DIALOG aParent 
)

Definition at line 28 of file panel_modedit_display_options.cpp.

29  :
30  wxPanel( aParent->GetTreebook(), wxID_ANY ),
31  m_frame( aFrame )
32 {
33  auto mainSizer = new wxBoxSizer( wxHORIZONTAL );
34  SetSizer( mainSizer );
35 
36  // install GAL options pane
38 
39  m_galOptsPanel = new GAL_OPTIONS_PANEL( this, galOptions );
40  mainSizer->Add( m_galOptsPanel, 1, wxEXPAND | wxLEFT, 5 );
41 
42  // a spacer to take up the other half of the width
43  auto spacer = new wxPanel( this, wxID_ANY );
44  mainSizer->Add( spacer, 1, wxEXPAND | wxLEFT, 5 );
45 }
KIGFX::GAL_DISPLAY_OPTIONS & GetGalDisplayOptions()
Return a reference to the gal rendering options used by GAL for rendering.
wxTreebook * GetTreebook()
Definition: paged_dialog.h:43

References EDA_DRAW_FRAME::GetGalDisplayOptions(), m_frame, and m_galOptsPanel.

Member Function Documentation

◆ TransferDataFromWindow()

bool PANEL_MODEDIT_DISPLAY_OPTIONS::TransferDataFromWindow ( )
overrideprivate

Definition at line 55 of file panel_modedit_display_options.cpp.

56 {
58 
59  // refresh view
63 
64  return true;
65 }
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
void RecacheAllItems()
Function RecacheAllItems() Rebuilds GAL display lists.
Definition: view.cpp:1402
Auxiliary rendering target (noncached)
Definition: definitions.h:49
void MarkTargetDirty(int aTarget)
Function MarkTargetDirty() Sets or clears target 'dirty' flag.
Definition: view.h:585
virtual KIGFX::PCB_VIEW * GetView() const override
Function GetView() Returns a pointer to the VIEW instance used in the panel.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
bool TransferDataFromWindow() override
Read the options set in the UI into the given options object.

References PCB_BASE_FRAME::GetCanvas(), PCB_DRAW_PANEL_GAL::GetView(), m_frame, m_galOptsPanel, KIGFX::VIEW::MarkTargetDirty(), KIGFX::VIEW::RecacheAllItems(), EDA_DRAW_PANEL_GAL::Refresh(), KIGFX::TARGET_NONCACHED, and GAL_OPTIONS_PANEL::TransferDataFromWindow().

◆ TransferDataToWindow()

bool PANEL_MODEDIT_DISPLAY_OPTIONS::TransferDataToWindow ( )
overrideprivate

Definition at line 48 of file panel_modedit_display_options.cpp.

49 {
51  return true;
52 }
bool TransferDataToWindow() override
Load the panel controls from the given opt.

References m_galOptsPanel, and GAL_OPTIONS_PANEL::TransferDataToWindow().

Member Data Documentation

◆ m_frame

FOOTPRINT_EDIT_FRAME* PANEL_MODEDIT_DISPLAY_OPTIONS::m_frame
private

◆ m_galOptsPanel

GAL_OPTIONS_PANEL* PANEL_MODEDIT_DISPLAY_OPTIONS::m_galOptsPanel
private

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