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 *aParent, PAGED_DIALOG *aWindow)
 

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 ( FOOTPRINT_EDIT_FRAME aParent,
PAGED_DIALOG aWindow 
)

Definition at line 29 of file panel_modedit_display_options.cpp.

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

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

Member Function Documentation

bool PANEL_MODEDIT_DISPLAY_OPTIONS::TransferDataFromWindow ( )
overrideprivate

Definition at line 56 of file panel_modedit_display_options.cpp.

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

57 {
59 
60  // refresh view
62  view->RecacheAllItems();
65 
66  return true;
67 }
virtual EDA_DRAW_PANEL * GetCanvas() const
Definition: draw_frame.h:388
void RecacheAllItems()
Function RecacheAllItems() Rebuilds GAL display lists.
Definition: view.cpp:1383
KIGFX::VIEW * GetView() const
Function GetView() Returns a pointer to the VIEW instance used in the panel.
Auxiliary rendering target (noncached)
Definition: definitions.h:42
void MarkTargetDirty(int aTarget)
Function MarkTargetDirty() Sets or clears target &#39;dirty&#39; flag.
Definition: view.h:596
EDA_DRAW_PANEL_GAL * GetGalCanvas() const
Return a pointer to GAL-based canvas of given EDA draw frame.
Definition: draw_frame.h:918
Class VIEW.
Definition: view.h:61
virtual void Refresh(bool eraseBackground=true, const wxRect *rect=NULL)
bool TransferDataFromWindow() override
Read the options set in the UI into the given options object.
bool PANEL_MODEDIT_DISPLAY_OPTIONS::TransferDataToWindow ( )
overrideprivate

Definition at line 49 of file panel_modedit_display_options.cpp.

References m_galOptsPanel, and GAL_OPTIONS_PANEL::TransferDataToWindow().

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

Member Data Documentation

FOOTPRINT_EDIT_FRAME* PANEL_MODEDIT_DISPLAY_OPTIONS::m_frame
private
GAL_OPTIONS_PANEL* PANEL_MODEDIT_DISPLAY_OPTIONS::m_galOptsPanel
private

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