![]() |
KiCad PCB EDA Suite
|
Group generic conditions for PCB editor states. More...
#include <pcb_editor_conditions.h>
Public Member Functions | |
PCB_EDITOR_CONDITIONS (PCB_BASE_FRAME *aFrame) | |
SELECTION_CONDITION | HasItems () |
Create a functor that tests if there are items in the board. More... | |
SELECTION_CONDITION | PadNumbersDisplay () |
Create a functor that tests if the pad numbers are displayed. More... | |
SELECTION_CONDITION | PadFillDisplay () |
Create a functor that tests if the frame fills the pads. More... | |
SELECTION_CONDITION | TextFillDisplay () |
Create a functor that tests if the frame fills text items. More... | |
SELECTION_CONDITION | GraphicsFillDisplay () |
Create a functor that tests if the frame fills graphics items. More... | |
SELECTION_CONDITION | ViaFillDisplay () |
Create a functor that tests if the frame fills vias. More... | |
SELECTION_CONDITION | TrackFillDisplay () |
Create a functor that tests if the frame fills tracks. More... | |
SELECTION_CONDITION | ZoneDisplayMode (ZONE_DISPLAY_MODE aMode) |
Create a functor that tests the current zone display mode in the frame. More... | |
SELECTION_CONDITION | Line45degMode () |
Create a functor that tests whether only 45 degree graphic lines should be drawn. More... | |
SELECTION_CONDITION | ContentModified () |
Create a functor that tests if the content of the frame is modified. More... | |
SELECTION_CONDITION | UndoAvailable () |
Create a functor that tests if there are any items in the undo queue. More... | |
SELECTION_CONDITION | RedoAvailable () |
Create a functor that tests if there are any items in the redo queue. More... | |
SELECTION_CONDITION | Units (EDA_UNITS aUnit) |
Create a functor that tests if the frame has the specified units. More... | |
SELECTION_CONDITION | CurrentTool (const TOOL_ACTION &aTool) |
Create a functor testing if the specified tool is the current active tool in the frame. More... | |
SELECTION_CONDITION | NoActiveTool () |
Create a functor testing if there are no tools active in the frame. More... | |
SELECTION_CONDITION | GridVisible () |
Create a functor testing if the grid is visible in a frame. More... | |
SELECTION_CONDITION | PolarCoordinates () |
Create a functor testing if polar coordinates are current being used. More... | |
SELECTION_CONDITION | FullscreenCursor () |
Create a functor testing if the cursor is full screen in a frame. More... | |
Static Public Member Functions | |
static bool | ShowAlways (const SELECTION &aSelection) |
The default condition function (always returns true). More... | |
static bool | ShowNever (const SELECTION &aSelection) |
Always returns false. More... | |
static bool | NotEmpty (const SELECTION &aSelection) |
Test if there are any items selected. More... | |
static bool | Empty (const SELECTION &aSelection) |
Test if there are no items selected. More... | |
static bool | Idle (const SELECTION &aSelection) |
Test if there no items selected or being edited. More... | |
static bool | IdleSelection (const SELECTION &aSelection) |
Test if all selected items are not being edited. More... | |
static SELECTION_CONDITION | HasType (KICAD_T aType) |
Create a functor that tests if among the selected items there is at least one of a given type. More... | |
static SELECTION_CONDITION | OnlyType (KICAD_T aType) |
Create a functor that tests if the selected items are only of given type. More... | |
static SELECTION_CONDITION | OnlyTypes (const KICAD_T aTypes[]) |
Create a functor that tests if the selected items are only of given types. More... | |
static SELECTION_CONDITION | Count (int aNumber) |
Create a functor that tests if the number of selected items is equal to the value given as parameter. More... | |
static SELECTION_CONDITION | MoreThan (int aNumber) |
Create a functor that tests if the number of selected items is greater than the value given as parameter. More... | |
static SELECTION_CONDITION | LessThan (int aNumber) |
Create a functor that tests if the number of selected items is smaller than the value given as parameter. More... | |
Static Protected Member Functions | |
static bool | hasItemsFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
< Helper function used by HasItems() More... | |
static bool | padNumberDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by PadFillDisplay() More... | |
static bool | padFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by TextFillDisplay() More... | |
static bool | textFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by GraphicsFillDisplay() More... | |
static bool | graphicsFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by ViaFillDisplay() More... | |
static bool | viaFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by TrackFillDisplay() More... | |
static bool | trackFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by ZoneDisplayMode() More... | |
static bool | zoneDisplayModeFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame, ZONE_DISPLAY_MODE aMode) |
Helper function used by Line45degMode() More... | |
static bool | line45degModeFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
static bool | contentModifiedFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame) |
< Helper function used by ContentModified(). More... | |
static bool | undoFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame) |
Helper function used by RedoAvailable(). More... | |
static bool | redoFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame) |
Helper function used by Units(). More... | |
static bool | unitsFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame, EDA_UNITS aUnits) |
Helper function used by CurrentTool(). More... | |
static bool | toolFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame, const TOOL_ACTION &aTool) |
Helper function used by NoActiveTool(). More... | |
static bool | noToolFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame) |
Helper function used by GridVisible(). More... | |
static bool | gridFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame) |
Helper function used by PolarCoordinates(). More... | |
static bool | polarCoordFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame) |
Helper function used by FullscreenCursor(). More... | |
static bool | cursorFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame) |
Helper function used by CanvasType(). More... | |
static bool | canvasTypeFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame, EDA_DRAW_PANEL_GAL::GAL_TYPE aType) |
The frame to apply the conditions to. More... | |
Protected Attributes | |
EDA_BASE_FRAME * | m_frame |
Group generic conditions for PCB editor states.
Definition at line 40 of file pcb_editor_conditions.h.
|
inline |
Definition at line 43 of file pcb_editor_conditions.h.
|
staticprotectedinherited |
The frame to apply the conditions to.
|
inherited |
Create a functor that tests if the content of the frame is modified.
Definition at line 38 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::contentModifiedFunc().
Referenced by CVPCB_MAINFRAME::setupUIConditions(), and FOOTPRINT_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
< Helper function used by ContentModified().
Helper function used by UndoAvailable().
Definition at line 107 of file editor_conditions.cpp.
References EDA_BASE_FRAME::IsContentModified().
Referenced by EDITOR_CONDITIONS::ContentModified().
|
staticinherited |
Create a functor that tests if the number of selected items is equal to the value given as parameter.
aNumber | is the number of expected items. |
Definition at line 76 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::countFunc().
Referenced by SYMBOL_EDITOR_EDIT_TOOL::Init(), SYMBOL_EDITOR_PIN_TOOL::Init(), SCH_EDIT_TOOL::Init(), EE_INSPECTION_TOOL::Init(), PAD_TOOL::Init(), CONVERT_TOOL::Init(), EE_SELECTION_TOOL::Init(), BOARD_INSPECTION_TOOL::Init(), EDIT_TOOL::Init(), and PCB_EDIT_FRAME::setupUIConditions().
|
inherited |
Create a functor testing if the specified tool is the current active tool in the frame.
Definition at line 62 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::toolFunc().
Referenced by PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), and GERBVIEW_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by CanvasType().
Definition at line 157 of file editor_conditions.cpp.
References EDA_DRAW_FRAME::GetGalDisplayOptions(), and KIGFX::GAL_DISPLAY_OPTIONS::m_fullscreenCursor.
Referenced by EDITOR_CONDITIONS::FullscreenCursor().
|
staticinherited |
Test if there are no items selected.
aSelection | is the selection to be tested. |
Definition at line 40 of file selection_conditions.cpp.
References SELECTION::Empty().
Referenced by PL_SELECTION_TOOL::Init(), and EE_SELECTION_TOOL::Init().
|
inherited |
Create a functor testing if the cursor is full screen in a frame.
Definition at line 96 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::cursorFunc().
Referenced by PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), GERBVIEW_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::GraphicsFillDisplay | ( | ) |
Create a functor that tests if the frame fills graphics items.
Definition at line 82 of file pcb_editor_conditions.cpp.
References graphicsFillDisplayFunc(), and APPEARANCE_CONTROLS::m_frame.
Referenced by FOOTPRINT_VIEWER_FRAME::setupUIConditions(), DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), and FOOTPRINT_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by ViaFillDisplay()
Definition at line 162 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetDisplayOptions(), and PCB_DISPLAY_OPTIONS::m_DisplayGraphicsFill.
Referenced by GraphicsFillDisplay().
|
staticprotectedinherited |
Helper function used by PolarCoordinates().
Definition at line 145 of file editor_conditions.cpp.
References EDA_DRAW_FRAME::IsGridVisible().
Referenced by EDITOR_CONDITIONS::GridVisible().
|
inherited |
Create a functor testing if the grid is visible in a frame.
Definition at line 74 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::gridFunc().
Referenced by PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), SYMBOL_VIEWER_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), GERBVIEW_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::HasItems | ( | ) |
Create a functor that tests if there are items in the board.
Definition at line 38 of file pcb_editor_conditions.cpp.
References hasItemsFunc(), and APPEARANCE_CONTROLS::m_frame.
Referenced by FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
< Helper function used by HasItems()
Helper function used by PadNumbersDisplay()
Definition at line 136 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetBoard(), and BOARD::IsEmpty().
Referenced by HasItems().
|
staticinherited |
Create a functor that tests if among the selected items there is at least one of a given type.
aType | is the type that is searched. |
Definition at line 58 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::hasTypeFunc().
Referenced by PAD_TOOL::Init().
|
staticinherited |
Test if there no items selected or being edited.
aSelection | is the selection to be tested. |
Definition at line 46 of file selection_conditions.cpp.
References SELECTION::Front(), and EDA_ITEM::GetEditFlags().
Referenced by SYMBOL_EDITOR_EDIT_TOOL::Init(), SCH_EDIT_TOOL::Init(), EE_INSPECTION_TOOL::Init(), EE_SELECTION_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), PL_EDITOR_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticinherited |
Test if all selected items are not being edited.
aSelection | is the selection to be tested. |
Definition at line 52 of file selection_conditions.cpp.
References SELECTION::Front(), and EDA_ITEM::GetEditFlags().
Referenced by SYMBOL_EDITOR_EDIT_TOOL::Init(), SYMBOL_EDITOR_MOVE_TOOL::Init(), and SCH_EDIT_TOOL::Init().
|
staticinherited |
Create a functor that tests if the number of selected items is smaller than the value given as parameter.
aNumber | is the number used for comparison. |
Definition at line 88 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::lessThanFunc().
Referenced by EE_SELECTION_TOOL::Init().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::Line45degMode | ( | ) |
Create a functor that tests whether only 45 degree graphic lines should be drawn.
Definition at line 126 of file pcb_editor_conditions.cpp.
References line45degModeFunc(), and APPEARANCE_CONTROLS::m_frame.
Referenced by PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Definition at line 186 of file pcb_editor_conditions.cpp.
References PCBNEW_SETTINGS::m_Use45DegreeGraphicSegments, and PCB_BASE_FRAME::Settings().
Referenced by Line45degMode().
|
staticinherited |
Create a functor that tests if the number of selected items is greater than the value given as parameter.
aNumber | is the number used for comparison. |
Definition at line 82 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::moreThanFunc().
Referenced by SCH_EDIT_TOOL::Init(), CONVERT_TOOL::Init(), ALIGN_DISTRIBUTE_TOOL::Init(), EE_SELECTION_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
inherited |
Create a functor testing if there are no tools active in the frame.
Definition at line 68 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::noToolFunc().
Referenced by FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticinherited |
Test if there are any items selected.
aSelection | is the selection to be tested. |
Definition at line 34 of file selection_conditions.cpp.
References SELECTION::Empty().
Referenced by SYMBOL_EDITOR_EDIT_TOOL::Init(), PL_EDIT_TOOL::Init(), SCH_EDIT_TOOL::Init(), GROUP_TOOL::Init(), BOARD_EDITOR_CONTROL::Init(), PCB_SELECTION_TOOL::Init(), EDIT_TOOL::Init(), and PL_EDITOR_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by GridVisible().
Definition at line 139 of file editor_conditions.cpp.
References TOOLS_HOLDER::ToolStackIsEmpty().
Referenced by EDITOR_CONDITIONS::NoActiveTool().
|
staticinherited |
Create a functor that tests if the selected items are only of given type.
aType | is the type that is searched. |
Definition at line 64 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::onlyTypeFunc().
Referenced by SYMBOL_EDITOR_PIN_TOOL::Init(), SCH_EDIT_TOOL::Init(), PAD_TOOL::Init(), EE_INSPECTION_TOOL::Init(), CONVERT_TOOL::Init(), SCH_MOVE_TOOL::Init(), BOARD_EDITOR_CONTROL::Init(), EE_SELECTION_TOOL::Init(), EDIT_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticinherited |
Create a functor that tests if the selected items are only of given types.
aTypes | is an array containing types that are searched. It has to be ended with #KICAD_T::EOT as end marker. |
Definition at line 70 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::onlyTypesFunc().
Referenced by SCH_EDIT_TOOL::Init(), CONVERT_TOOL::Init(), EE_SELECTION_TOOL::Init(), BOARD_INSPECTION_TOOL::Init(), EDIT_TOOL::Init(), EDIT_TOOL::Properties(), PCB_EDIT_FRAME::setupUIConditions(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::PadFillDisplay | ( | ) |
Create a functor that tests if the frame fills the pads.
Definition at line 60 of file pcb_editor_conditions.cpp.
References APPEARANCE_CONTROLS::m_frame, and padFillDisplayFunc().
Referenced by FOOTPRINT_VIEWER_FRAME::setupUIConditions(), DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by TextFillDisplay()
Definition at line 150 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetDisplayOptions(), and PCB_DISPLAY_OPTIONS::m_DisplayPadFill.
Referenced by PadFillDisplay().
|
staticprotected |
Helper function used by PadFillDisplay()
Definition at line 144 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetDisplayOptions(), and PCB_DISPLAY_OPTIONS::m_DisplayPadNum.
Referenced by PadNumbersDisplay().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::PadNumbersDisplay | ( | ) |
Create a functor that tests if the pad numbers are displayed.
Definition at line 49 of file pcb_editor_conditions.cpp.
References APPEARANCE_CONTROLS::m_frame, and padNumberDisplayFunc().
Referenced by FOOTPRINT_VIEWER_FRAME::setupUIConditions(), and DISPLAY_FOOTPRINTS_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by FullscreenCursor().
Definition at line 151 of file editor_conditions.cpp.
References EDA_DRAW_FRAME::GetShowPolarCoords().
Referenced by EDITOR_CONDITIONS::PolarCoordinates().
|
inherited |
Create a functor testing if polar coordinates are current being used.
Definition at line 85 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::polarCoordFunc().
Referenced by GERBVIEW_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
inherited |
Create a functor that tests if there are any items in the redo queue.
Definition at line 50 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::redoFunc().
Referenced by PL_EDITOR_FRAME::setupUIConditions(), CVPCB_MAINFRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by Units().
Definition at line 119 of file editor_conditions.cpp.
References EDA_BASE_FRAME::GetRedoCommandCount().
Referenced by EDITOR_CONDITIONS::RedoAvailable().
|
inlinestaticinherited |
The default condition function (always returns true).
aSelection | is the selection to be tested. |
Definition at line 77 of file selection_conditions.h.
Referenced by ACTION_CONDITIONS::ACTION_CONDITIONS(), CONDITIONAL_MENU::AddSeparator(), EDA_DRAW_FRAME::AddStandardSubMenus(), ROUTER_TOOL::Init(), LENGTH_TUNER_TOOL::Init(), PL_EDIT_TOOL::Init(), PAD_TOOL::Init(), PL_DRAWING_TOOLS::Init(), EDA_3D_CONTROLLER::Init(), EE_TOOL_BASE< SCH_BASE_FRAME >::Init(), PCB_TOOL_BASE::Init(), PICKER_TOOL::Init(), PL_EDITOR_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), PCB_EDIT_FRAME::setupUIConditions(), and SPECIAL_TOOLS_CONTEXT_MENU::SPECIAL_TOOLS_CONTEXT_MENU().
|
inlinestaticinherited |
Always returns false.
aSelection | is the selection to be tested. |
Definition at line 88 of file selection_conditions.h.
Referenced by ACTION_CONDITIONS::ACTION_CONDITIONS(), and PL_EDITOR_FRAME::setupUIConditions().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::TextFillDisplay | ( | ) |
Create a functor that tests if the frame fills text items.
Definition at line 71 of file pcb_editor_conditions.cpp.
References APPEARANCE_CONTROLS::m_frame, and textFillDisplayFunc().
Referenced by FOOTPRINT_VIEWER_FRAME::setupUIConditions(), DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), and FOOTPRINT_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by GraphicsFillDisplay()
Definition at line 156 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetDisplayOptions(), and PCB_DISPLAY_OPTIONS::m_DisplayTextFill.
Referenced by TextFillDisplay().
|
staticprotectedinherited |
Helper function used by NoActiveTool().
Definition at line 132 of file editor_conditions.cpp.
References TOOLS_HOLDER::IsCurrentTool().
Referenced by EDITOR_CONDITIONS::CurrentTool().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::TrackFillDisplay | ( | ) |
Create a functor that tests if the frame fills tracks.
Definition at line 104 of file pcb_editor_conditions.cpp.
References APPEARANCE_CONTROLS::m_frame, and trackFillDisplayFunc().
Referenced by PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by ZoneDisplayMode()
Definition at line 174 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetDisplayOptions(), and PCB_DISPLAY_OPTIONS::m_DisplayPcbTrackFill.
Referenced by TrackFillDisplay().
|
inherited |
Create a functor that tests if there are any items in the undo queue.
Definition at line 44 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::undoFunc().
Referenced by PL_EDITOR_FRAME::setupUIConditions(), CVPCB_MAINFRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by RedoAvailable().
Definition at line 113 of file editor_conditions.cpp.
References EDA_BASE_FRAME::GetUndoCommandCount().
Referenced by EDITOR_CONDITIONS::UndoAvailable().
|
inherited |
Create a functor that tests if the frame has the specified units.
Definition at line 56 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::unitsFunc().
Referenced by PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), GERBVIEW_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by CurrentTool().
Definition at line 125 of file editor_conditions.cpp.
References EDA_BASE_FRAME::GetUserUnits().
Referenced by EDITOR_CONDITIONS::Units().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::ViaFillDisplay | ( | ) |
Create a functor that tests if the frame fills vias.
Definition at line 93 of file pcb_editor_conditions.cpp.
References APPEARANCE_CONTROLS::m_frame, and viaFillDisplayFunc().
Referenced by PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by TrackFillDisplay()
Definition at line 168 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetDisplayOptions(), and PCB_DISPLAY_OPTIONS::m_DisplayViaFill.
Referenced by ViaFillDisplay().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::ZoneDisplayMode | ( | ZONE_DISPLAY_MODE | aMode | ) |
Create a functor that tests the current zone display mode in the frame.
aMode | is the mode to test for |
Definition at line 115 of file pcb_editor_conditions.cpp.
References APPEARANCE_CONTROLS::m_frame, and zoneDisplayModeFunc().
Referenced by PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by Line45degMode()
Definition at line 180 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetDisplayOptions(), and PCB_DISPLAY_OPTIONS::m_ZoneDisplayMode.
Referenced by ZoneDisplayMode().
|
protectedinherited |
Definition at line 155 of file editor_conditions.h.