34 #include <wx/treebook.h> 62 wxString rotationAngle;
66 if( dynamic_cast<PCB_EDIT_FRAME*>(
m_frame ) )
93 else if( dynamic_cast<FOOTPRINT_EDIT_FRAME*>(
m_frame ) )
112 if( dynamic_cast<PCB_EDIT_FRAME*>(
m_frame ) )
139 else if( dynamic_cast<FOOTPRINT_EDIT_FRAME*>(
m_frame ) )
162 return dynamic_cast<RATSNEST_VIEW_ITEM*>( aItem );
void UpdateAllItemsConditionally(int aUpdateFlags, std::function< bool(VIEW_ITEM *)> aCondition)
Update items in the view according to the given flags and condition.
wxCheckBox * m_magneticPads
wxChoice * m_magneticGraphicsChoice
bool TransferDataToWindow() override
bool TransferDataFromWindow() override
wxString AngleToStringDegrees(double aAngle)
A helper to convert the double aAngle (in internal unit) to a string in degrees.
PCB_BASE_EDIT_FRAME * m_frame
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
wxCheckBox * m_showSelectedRatsnest
wxCheckBox * m_cbPcbGraphic45Mode
bool m_ShowModuleRatsnest
wxCheckBox * m_allowFreePads
virtual MAGNETIC_SETTINGS * GetMagneticItemsSettings()
PANEL_EDIT_OPTIONS(PCB_BASE_EDIT_FRAME *aFrame, PAGED_DIALOG *aWindow)
An abstract base class for deriving all objects that can be added to a VIEW.
Contains methods for drawing PCB-specific items.
const PCB_DISPLAY_OPTIONS & GetDisplayOptions() const
Display options control the way tracks, vias, outlines and other things are shown (for instance solid...
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
bool ShowPageLimits() const
Auxiliary rendering target (noncached)
wxTextCtrl * m_rotationAngle
wxRadioButton * m_rbTrackDrag45
wxSimplebook * m_optionsBook
PCB specific render settings.
wxCheckBox * m_OptDisplayCurvedRatsnestLines
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.
Item needs to be redrawn.
wxCheckBox * m_cbFpGraphic45Mode
TRACK_DRAG_ACTION m_TrackDragAction
virtual PCB_RENDER_SETTINGS * GetSettings() override
Return a pointer to current settings that are going to be used when drawing items.
void MarkTargetDirty(int aTarget)
Set or clear target 'dirty' flag.
wxChoice * m_magneticTrackChoice
wxCheckBox * m_magneticGraphics
wxRadioButton * m_rbTrackDragMove
bool m_PcbUse45DegreeLimit
wxChoice * m_magneticPadChoice
bool m_FpeditUse45DegreeLimit
wxCheckBox * m_autoRefillZones
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
int GetRotationAngle() const
Return the angle used for rotate operations.
Common, abstract interface for edit frames.
Class PANEL_EDIT_OPTIONS_BASE.
wxCheckBox * m_flipLeftRight
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
PCBNEW_SETTINGS & Settings()
wxCheckBox * m_showPageLimits
wxRadioButton * m_rbTrackDragFree
void SetShowPageLimits(bool aShow)
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
MAGNETIC_SETTINGS m_MagneticItems
wxStaticBoxSizer * m_mouseCmdsWinLin
bool m_DisplayRatsnestLinesCurved
void SetRotationAngle(int aRotationAngle)
Set the angle used for rotate operations.
wxStaticBoxSizer * m_mouseCmdsOSX