30 #include <wx/treebook.h> 116 settings->LoadDisplayOptions( displ_opts, pcbEdit->
ShowPageLimits() );
129 if(
EDA_ITEM* item = dynamic_cast<EDA_ITEM*>( aItem ) )
bool m_DisplayPadNoConnects
wxCheckBox * m_checkCrossProbeCenter
bool TransferDataFromWindow() override
void SetElementVisibility(GAL_LAYER_ID aElement, bool aNewState)
Change the visibility of an element category.
void UpdateAllItemsConditionally(int aUpdateFlags, std::function< bool(VIEW_ITEM *)> aCondition)
Update items in the view according to the given flags and condition.
static const UTIL::CFG_MAP< PCB_DISPLAY_OPTIONS::TRACE_CLEARANCE_DISPLAY_MODE_T > traceClearanceSelectMap
wxCheckBox * m_checkCrossProbeAutoHighlight
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
int m_DisplayNetNamesMode
wxRadioBox * m_ShowNetNamesOption
class PCB_ARC, an arc track segment on a copper layer
wxCheckBox * m_OptDisplayPadNumber
class PAD, a pad in a footprint
An abstract base class for deriving all objects that can be added to a VIEW.
Class PANEL_DISPLAY_OPTIONS_BASE.
Contains methods for drawing PCB-specific items.
wxCheckBox * m_live3Drefresh
const PCB_DISPLAY_OPTIONS & GetDisplayOptions() const
Display options control the way tracks, vias, outlines and other things are shown (for instance solid...
wxCheckBox * m_OptDisplayPadClearence
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
class PCB_TRACK, a track segment (segment on a copper layer)
bool ShowPageLimits() const
TRACE_CLEARANCE_DISPLAY_MODE_T m_ShowTrackClearanceMode
How trace clearances are displayed.
Auxiliary rendering target (noncached)
GAL_OPTIONS_PANEL * m_galOptsPanel
PCB specific render settings.
void SetDisplayOptions(const PCB_DISPLAY_OPTIONS &aOptions, bool aRefresh=true)
Updates the current display options from the given options struct.
Container for display options like enable/disable some optional drawings.
bool TransferDataToWindow() override
Item needs to be redrawn.
wxCheckBox * m_OptDisplayPadNoConn
virtual PCB_RENDER_SETTINGS * GetSettings() override
Return a pointer to current settings that are going to be used when drawing items.
PANEL_DISPLAY_OPTIONS(PCB_BASE_FRAME *aFrame, PAGED_DIALOG *aWindow)
bool TransferDataToWindow() override
Load the panel controls from the given opt.
void MarkTargetDirty(int aTarget)
Set or clear target 'dirty' flag.
static CFG_NATIVE_VAL< MAP > GetValFromConfig(const MAP &aMap, long aConf)
Get the native value corresponding to the config value (read from file or UI, probably) and find it i...
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
bool zoom_to_fit
Zoom to fit items (ignored if center_on_items is off)
bool m_ShowGlobalRatsnest
show a marker on pads with no nets
wxCheckBox * m_checkCrossProbeZoom
bool auto_highlight
Automatically turn on highlight mode in the target frame.
bool m_Live3DRefresh
If true, 3D viewer will redraw on every modification operation.
wxBoxSizer * m_galOptionsSizer
The main frame for Pcbnew.
PCBNEW_SETTINGS * GetPcbNewSettings() const
wxRadioBox * m_OptDisplayTracksClearance
A base class for most all the KiCad significant classes used in schematics and boards.
class PCB_VIA, a via (like a track segment on a copper layer)
std::vector< std::pair< T, long > > CFG_MAP
A config value table is a list of native values (usually enums) to a different set of values,...
CROSS_PROBING_SETTINGS m_CrossProbing
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
bool IsElementVisible(GAL_LAYER_ID aElement) const
Test whether a given element category is visible.
wxSimplebook * m_optionsBook
bool center_on_items
Automatically pan to cross-probed items.
Definition of PCB_DISPLAY_OPTIONS class.
bool m_DisplayPadClearance
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
static long GetConfigForVal(const MAP &aMap, CFG_NATIVE_VAL< MAP > aVal)
Get the mapped config value (the one to write to file, or use in an index) from the given native (pro...
bool TransferDataFromWindow() override
Read the options set in the UI into the given options object.