39using namespace std::placeholders;
 
  102    wxASSERT( drwFrame );
 
 
  113    wxASSERT( drwFrame );
 
 
  124    wxASSERT( drwFrame );
 
 
  134    wxASSERT( drwFrame );
 
 
  144    return board && !board->
IsEmpty();
 
 
Information pertinent to a Pcbnew printed circuit board.
 
virtual APP_SETTINGS_BASE * config() const
Return the settings object used in SaveSettings(), and is overloaded in KICAD_MANAGER_FRAME.
 
EDA_BASE_FRAME * m_frame
The frame to apply the conditions to.
 
DISPLAY_OPTIONS m_Display
 
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
 
const PCB_DISPLAY_OPTIONS & GetDisplayOptions() const
Display options control the way tracks, vias, outlines and other things are shown (for instance solid...
 
PCBNEW_SETTINGS * GetPcbNewSettings() const
 
virtual PCB_VIEWERS_SETTINGS_BASE * GetViewerSettingsBase() const
 
ZONE_DISPLAY_MODE m_ZoneDisplayMode
 
static bool hasItemsFunc(const SELECTION &aSelection, PCB_BASE_FRAME *aFrame)
< Helper function used by HasItems()
 
SELECTION_CONDITION PadFillDisplay()
Create a functor that tests if the frame fills the pads.
 
static bool padNumberDisplayFunc(const SELECTION &aSelection, PCB_BASE_FRAME *aFrame)
Helper function used by PadFillDisplay()
 
SELECTION_CONDITION TrackFillDisplay()
Create a functor that tests if the frame fills tracks.
 
static bool padFillDisplayFunc(const SELECTION &aSelection, PCB_BASE_FRAME *aFrame)
Helper function used by TextFillDisplay()
 
SELECTION_CONDITION HasItems()
Create a functor that tests if there are items in the board.
 
static bool graphicsFillDisplayFunc(const SELECTION &aSelection, PCB_BASE_FRAME *aFrame)
Helper function used by ViaFillDisplay()
 
SELECTION_CONDITION GraphicsFillDisplay()
Create a functor that tests if the frame fills graphics items.
 
static bool zoneDisplayModeFunc(const SELECTION &aSelection, PCB_BASE_FRAME *aFrame, ZONE_DISPLAY_MODE aMode)
 
SELECTION_CONDITION ZoneDisplayMode(ZONE_DISPLAY_MODE aMode)
Create a functor that tests the current zone display mode in the frame.
 
SELECTION_CONDITION FootprintViewerAutoZoom()
Create a functor that tests if the footprint viewer should auto zoom on new footprints.
 
static bool textFillDisplayFunc(const SELECTION &aSelection, PCB_BASE_FRAME *aFrame)
Helper function used by GraphicsFillDisplay()
 
static bool footprintViewerAutoZoom(const SELECTION &aSelection, PCB_BASE_FRAME *aFrame)
Helper function used by FootprintViewerAutoZoom()
 
static bool viaFillDisplayFunc(const SELECTION &aSelection, PCB_BASE_FRAME *aFrame)
Helper function used by TrackFillDisplay()
 
SELECTION_CONDITION ViaFillDisplay()
Create a functor that tests if the frame fills vias.
 
static bool trackFillDisplayFunc(const SELECTION &aSelection, PCB_BASE_FRAME *aFrame)
Helper function used by ZoneDisplayMode()
 
SELECTION_CONDITION PadNumbersDisplay()
Create a functor that tests if the pad numbers are displayed.
 
SELECTION_CONDITION TextFillDisplay()
Create a functor that tests if the frame fills text items.
 
bool m_FootprintViewerAutoZoomOnSelect
true to use automatic zoom on fp selection
 
VIEWERS_DISPLAY_OPTIONS m_ViewersDisplay
 
a few functions useful in geometry calculations.
 
std::function< bool(const SELECTION &)> SELECTION_CONDITION
Functor type that checks a specific condition for selected items.
 
bool m_DisplayPcbTrackFill
 
bool m_DisplayGraphicsFill