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. | |
SELECTION_CONDITION | PadNumbersDisplay () |
Create a functor that tests if the pad numbers are displayed. | |
SELECTION_CONDITION | PadFillDisplay () |
Create a functor that tests if the frame fills the pads. | |
SELECTION_CONDITION | TextFillDisplay () |
Create a functor that tests if the frame fills text items. | |
SELECTION_CONDITION | GraphicsFillDisplay () |
Create a functor that tests if the frame fills graphics items. | |
SELECTION_CONDITION | ViaFillDisplay () |
Create a functor that tests if the frame fills vias. | |
SELECTION_CONDITION | TrackFillDisplay () |
Create a functor that tests if the frame fills tracks. | |
SELECTION_CONDITION | ZoneDisplayMode (ZONE_DISPLAY_MODE aMode) |
Create a functor that tests the current zone display mode in the frame. | |
SELECTION_CONDITION | Get45degMode () |
Create a functor that tests whether only 45 degree lines should be allowed. | |
SELECTION_CONDITION | ContentModified () |
Create a functor that tests if the content of the frame is modified. | |
virtual SELECTION_CONDITION | UndoAvailable () |
Create a functor that tests if there are any items in the undo queue. | |
SELECTION_CONDITION | RedoAvailable () |
Create a functor that tests if there are any items in the redo queue. | |
SELECTION_CONDITION | Units (EDA_UNITS aUnit) |
Create a functor that tests if the frame has the specified units. | |
SELECTION_CONDITION | CurrentTool (const TOOL_ACTION &aTool) |
Create a functor testing if the specified tool is the current active tool in the frame. | |
SELECTION_CONDITION | NoActiveTool () |
Create a functor testing if there are no tools active in the frame. | |
SELECTION_CONDITION | GridVisible () |
Create a functor testing if the grid is visible in a frame. | |
SELECTION_CONDITION | GridOverrides () |
Create a functor testing if the grid overrides wires is enabled in a frame. | |
SELECTION_CONDITION | PolarCoordinates () |
Create a functor testing if polar coordinates are current being used. | |
SELECTION_CONDITION | FullscreenCursor () |
Create a functor testing if the cursor is full screen in a frame. | |
SELECTION_CONDITION | BoundingBoxes () |
SELECTION_CONDITION | ScriptingConsoleVisible () |
Create a functor testing if the python scripting console window is visible. | |
Static Public Member Functions | |
static bool | ShowAlways (const SELECTION &aSelection) |
The default condition function (always returns true). | |
static bool | ShowNever (const SELECTION &aSelection) |
Always returns false. | |
static bool | NotEmpty (const SELECTION &aSelection) |
Test if there are any items selected. | |
static bool | Empty (const SELECTION &aSelection) |
Test if there are no items selected. | |
static bool | Idle (const SELECTION &aSelection) |
Test if there no items selected or being edited. | |
static bool | IdleSelection (const SELECTION &aSelection) |
Test if all selected items are not being edited. | |
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. | |
static SELECTION_CONDITION | HasTypes (std::vector< KICAD_T > aTypes) |
Create a functor that tests if among the selected items there is at least one of a given types. | |
static SELECTION_CONDITION | OnlyTypes (std::vector< KICAD_T > aTypes) |
Create a functor that tests if the selected items are only of given types. | |
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. | |
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. | |
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. | |
Static Protected Member Functions | |
static bool | hasItemsFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
< Helper function used by HasItems() | |
static bool | padNumberDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by PadFillDisplay() | |
static bool | padFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by TextFillDisplay() | |
static bool | textFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by GraphicsFillDisplay() | |
static bool | graphicsFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by ViaFillDisplay() | |
static bool | viaFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by TrackFillDisplay() | |
static bool | trackFillDisplayFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
Helper function used by ZoneDisplayMode() | |
static bool | zoneDisplayModeFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame, ZONE_DISPLAY_MODE aMode) |
Helper function used by Line45degMode() | |
static bool | get45degModeFunc (const SELECTION &aSelection, PCB_BASE_FRAME *aFrame) |
static bool | contentModifiedFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame) |
< Helper function used by ContentModified(). | |
static bool | undoFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame) |
Helper function used by RedoAvailable(). | |
static bool | redoFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame) |
Helper function used by Units(). | |
static bool | unitsFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame, EDA_UNITS aUnits) |
Helper function used by CurrentTool(). | |
static bool | toolFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame, const TOOL_ACTION &aTool) |
Helper function used by NoActiveTool(). | |
static bool | noToolFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame) |
Helper function used by GridVisible(). | |
static bool | gridFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame) |
Helper function used by GridOverrides(). | |
static bool | gridOverridesFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame) |
Helper function used by PolarCoordinates(). | |
static bool | polarCoordFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame) |
Helper function used by FullscreenCursor(). | |
static bool | cursorFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame) |
Helper function used by DrawBoundingBoxes(). | |
static bool | bboxesFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame) |
Helper function used by ScriptingConsoleVisible(). | |
static bool | consoleVisibleFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame) |
The frame to apply the conditions to. | |
Protected Attributes | |
EDA_BASE_FRAME * | m_frame |
Static Private Member Functions | |
static bool | hasTypeFunc (const SELECTION &aSelection, KICAD_T aType) |
< Helper function used by HasType() | |
static bool | hasTypesFunc (const SELECTION &aSelection, std::vector< KICAD_T > aTypes) |
Helper function used by OnlyTypes() | |
static bool | onlyTypesFunc (const SELECTION &aSelection, std::vector< KICAD_T > aTypes) |
Helper function used by Count() | |
static bool | countFunc (const SELECTION &aSelection, int aNumber) |
Helper function used by MoreThan() | |
static bool | moreThanFunc (const SELECTION &aSelection, int aNumber) |
Helper function used by LessThan() | |
static bool | lessThanFunc (const SELECTION &aSelection, int aNumber) |
Helper function used by operator||. | |
static bool | orFunc (const SELECTION_CONDITION &aConditionA, const SELECTION_CONDITION &aConditionB, const SELECTION &aSelection) |
Helper function used by operator&&. | |
static bool | andFunc (const SELECTION_CONDITION &aConditionA, const SELECTION_CONDITION &aConditionB, const SELECTION &aSelection) |
Helper function used by operator! | |
static bool | notFunc (const SELECTION_CONDITION &aCondition, const SELECTION &aSelection) |
Helper function used by operator||. | |
static bool | orBoolFunc (const SELECTION_CONDITION &aConditionA, SELECTION_BOOL &aConditionB, const SELECTION &aSelection) |
Helper function used by operator&&. | |
static bool | andBoolFunc (const SELECTION_CONDITION &aConditionA, SELECTION_BOOL &aConditionB, const SELECTION &aSelection) |
Group generic conditions for PCB editor states.
Definition at line 41 of file pcb_editor_conditions.h.
|
inline |
Definition at line 44 of file pcb_editor_conditions.h.
|
inlinestaticprivateinherited |
Definition at line 202 of file selection_conditions.h.
|
inlinestaticprivateinherited |
Helper function used by operator!
Definition at line 182 of file selection_conditions.h.
|
staticprotectedinherited |
Helper function used by ScriptingConsoleVisible().
Definition at line 202 of file editor_conditions.cpp.
References EDA_DRAW_FRAME::GetCanvas(), KIGFX::RENDER_SETTINGS::GetDrawBoundingBoxes(), KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), and EDA_DRAW_PANEL_GAL::GetView().
Referenced by EDITOR_CONDITIONS::BoundingBoxes().
|
inherited |
Definition at line 120 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::bboxesFunc(), and EDITOR_CONDITIONS::m_frame.
Referenced by SCH_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
The frame to apply the conditions to.
Definition at line 208 of file editor_conditions.cpp.
References EDA_DRAW_FRAME::IsScriptingConsoleVisible().
Referenced by EDITOR_CONDITIONS::ScriptingConsoleVisible().
|
inherited |
Create a functor that tests if the content of the frame is modified.
Definition at line 40 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::contentModifiedFunc(), and EDITOR_CONDITIONS::m_frame.
Referenced by CVPCB_MAINFRAME::setupUIConditions(), and FOOTPRINT_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
< Helper function used by ContentModified().
Helper function used by UndoAvailable().
Definition at line 140 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 79 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::countFunc().
Referenced by EE_SELECTION_TOOL::Init(), SCH_EDIT_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Init(), SYMBOL_EDITOR_PIN_TOOL::Init(), CONVERT_TOOL::Init(), EDIT_TOOL::Init(), PAD_TOOL::Init(), PCB_SELECTION_TOOL::Init(), makeShapeModificationMenu(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprivateinherited |
Helper function used by MoreThan()
Definition at line 142 of file selection_conditions.cpp.
References SELECTION::Size().
Referenced by SELECTION_CONDITIONS::Count().
|
inherited |
Create a functor testing if the specified tool is the current active tool in the frame.
Definition at line 64 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and EDITOR_CONDITIONS::toolFunc().
Referenced by DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), GERBVIEW_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and FOOTPRINT_VIEWER_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by DrawBoundingBoxes().
Definition at line 196 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.
Definition at line 41 of file selection_conditions.cpp.
References SELECTION::Empty().
Referenced by EE_SELECTION_TOOL::Init(), and PL_SELECTION_TOOL::Init().
|
inherited |
Create a functor testing if the cursor is full screen in a frame.
Definition at line 109 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::cursorFunc(), and EDITOR_CONDITIONS::m_frame.
Referenced by DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), GERBVIEW_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::Get45degMode | ( | ) |
Create a functor that tests whether only 45 degree lines should be allowed.
Definition at line 129 of file pcb_editor_conditions.cpp.
References get45degModeFunc(), and EDITOR_CONDITIONS::m_frame.
Referenced by PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Definition at line 189 of file pcb_editor_conditions.cpp.
References FRAME_PCB_EDITOR, SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), EDA_BASE_FRAME::IsType(), and Pgm().
Referenced by Get45degMode().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::GraphicsFillDisplay | ( | ) |
Create a functor that tests if the frame fills graphics items.
Definition at line 85 of file pcb_editor_conditions.cpp.
References graphicsFillDisplayFunc(), and EDITOR_CONDITIONS::m_frame.
Referenced by DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by ViaFillDisplay()
Definition at line 165 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetViewerSettingsBase(), PCB_VIEWERS_SETTINGS_BASE::VIEWERS_DISPLAY_OPTIONS::m_DisplayGraphicsFill, and PCB_VIEWERS_SETTINGS_BASE::m_ViewersDisplay.
Referenced by GraphicsFillDisplay().
|
staticprotectedinherited |
Helper function used by GridOverrides().
Definition at line 178 of file editor_conditions.cpp.
References EDA_DRAW_FRAME::IsGridVisible().
Referenced by EDITOR_CONDITIONS::GridVisible().
|
inherited |
Create a functor testing if the grid overrides wires is enabled in a frame.
Definition at line 87 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::gridOverridesFunc(), and EDITOR_CONDITIONS::m_frame.
Referenced by SCH_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by PolarCoordinates().
Definition at line 184 of file editor_conditions.cpp.
References EDA_DRAW_FRAME::IsGridOverridden().
Referenced by EDITOR_CONDITIONS::GridOverrides().
|
inherited |
Create a functor testing if the grid is visible in a frame.
Definition at line 76 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::gridFunc(), and EDITOR_CONDITIONS::m_frame.
Referenced by DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), SYMBOL_VIEWER_FRAME::setupUIConditions(), GERBVIEW_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_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 41 of file pcb_editor_conditions.cpp.
References hasItemsFunc(), and EDITOR_CONDITIONS::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 139 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 61 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::hasTypeFunc().
Referenced by SCH_EDIT_TOOL::Init(), EDIT_TOOL::Init(), PAD_TOOL::Init(), PCB_SELECTION_TOOL::Init(), and FOOTPRINT_EDIT_FRAME::setupUIConditions().
|
staticprivateinherited |
< Helper function used by HasType()
Helper function used by HasTypes()
Definition at line 97 of file selection_conditions.cpp.
References SELECTION::Empty().
Referenced by SELECTION_CONDITIONS::HasType().
|
staticinherited |
Create a functor that tests if among the selected items there is at least one of a given types.
aTypes | is an array containing types that are searched. |
Definition at line 67 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::hasTypesFunc().
Referenced by EE_SELECTION_TOOL::Init(), SCH_EDIT_TOOL::Init(), EDIT_TOOL::Init(), makeShapeModificationMenu(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprivateinherited |
Helper function used by OnlyTypes()
Definition at line 112 of file selection_conditions.cpp.
References SELECTION::Empty().
Referenced by SELECTION_CONDITIONS::HasTypes().
|
staticinherited |
Test if there no items selected or being edited.
Definition at line 47 of file selection_conditions.cpp.
References SELECTION::Front(), EDA_ITEM::GetEditFlags(), IS_MOVING, IS_NEW, and IS_PASTED.
Referenced by EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::addMenus(), EE_INSPECTION_TOOL::Init(), EE_SELECTION_TOOL::Init(), SCH_EDIT_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Init(), SCH_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticinherited |
Test if all selected items are not being edited.
Definition at line 55 of file selection_conditions.cpp.
References SELECTION::Front(), and EDA_ITEM::GetEditFlags().
Referenced by SCH_EDIT_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Init(), and SYMBOL_EDITOR_MOVE_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 91 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::lessThanFunc().
Referenced by EE_SELECTION_TOOL::Init().
|
staticprivateinherited |
Helper function used by operator||.
Definition at line 154 of file selection_conditions.cpp.
References SELECTION::Size().
Referenced by SELECTION_CONDITIONS::LessThan().
|
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 85 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::moreThanFunc().
Referenced by EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::addMenus(), EE_SELECTION_TOOL::Init(), SCH_EDIT_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Init(), CONVERT_TOOL::Init(), EDIT_TOOL::Init(), PCB_SELECTION_TOOL::Init(), ALIGN_DISTRIBUTE_TOOL::Init(), makeShapeModificationMenu(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprivateinherited |
Helper function used by LessThan()
Definition at line 148 of file selection_conditions.cpp.
References SELECTION::Size().
Referenced by SELECTION_CONDITIONS::MoreThan().
|
inherited |
Create a functor testing if there are no tools active in the frame.
Definition at line 70 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and EDITOR_CONDITIONS::noToolFunc().
Referenced by SCH_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticinherited |
Test if there are any items selected.
Definition at line 35 of file selection_conditions.cpp.
References SELECTION::Empty().
Referenced by SCH_EDIT_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Init(), PL_EDIT_TOOL::Init(), BOARD_EDITOR_CONTROL::Init(), EDIT_TOOL::Init(), GROUP_TOOL::Init(), PCB_SELECTION_TOOL::Init(), makePositioningToolsMenu(), SCH_EDIT_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
inlinestaticprivateinherited |
Helper function used by operator||.
Definition at line 189 of file selection_conditions.h.
|
staticprotectedinherited |
Helper function used by GridVisible().
Definition at line 172 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 types.
aTypes | is an array containing types that are searched. |
Definition at line 73 of file selection_conditions.cpp.
References SELECTION_CONDITIONS::onlyTypesFunc().
Referenced by EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::addMenus(), EE_SELECTION_TOOL::Init(), SCH_EDIT_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), SCH_MOVE_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Init(), SYMBOL_EDITOR_PIN_TOOL::Init(), BOARD_EDITOR_CONTROL::Init(), CONVERT_TOOL::Init(), EDIT_TOOL::Init(), PAD_TOOL::Init(), PCB_SELECTION_TOOL::Init(), makeShapeModificationMenu(), SCH_EDIT_TOOL::Properties(), EDIT_TOOL::Properties(), PCB_EDIT_FRAME::setupUIConditions(), BOARD_EDITOR_CONTROL::TrackWidthDec(), BOARD_EDITOR_CONTROL::TrackWidthInc(), BOARD_EDITOR_CONTROL::ViaSizeDec(), and BOARD_EDITOR_CONTROL::ViaSizeInc().
|
staticprivateinherited |
Helper function used by Count()
Definition at line 127 of file selection_conditions.cpp.
References SELECTION::Empty().
Referenced by SELECTION_CONDITIONS::OnlyTypes().
|
inlinestaticprivateinherited |
Helper function used by operator&&.
Definition at line 195 of file selection_conditions.h.
|
inlinestaticprivateinherited |
Helper function used by operator&&.
Definition at line 175 of file selection_conditions.h.
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::PadFillDisplay | ( | ) |
Create a functor that tests if the frame fills the pads.
Definition at line 63 of file pcb_editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and padFillDisplayFunc().
Referenced by DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by TextFillDisplay()
Definition at line 153 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetViewerSettingsBase(), PCB_VIEWERS_SETTINGS_BASE::VIEWERS_DISPLAY_OPTIONS::m_DisplayPadFill, and PCB_VIEWERS_SETTINGS_BASE::m_ViewersDisplay.
Referenced by PadFillDisplay().
|
staticprotected |
Helper function used by PadFillDisplay()
Definition at line 147 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetViewerSettingsBase(), PCB_VIEWERS_SETTINGS_BASE::VIEWERS_DISPLAY_OPTIONS::m_DisplayPadNumbers, and PCB_VIEWERS_SETTINGS_BASE::m_ViewersDisplay.
Referenced by PadNumbersDisplay().
SELECTION_CONDITION PCB_EDITOR_CONDITIONS::PadNumbersDisplay | ( | ) |
Create a functor that tests if the pad numbers are displayed.
Definition at line 52 of file pcb_editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and padNumberDisplayFunc().
Referenced by DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), and FOOTPRINT_VIEWER_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by FullscreenCursor().
Definition at line 190 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 98 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and 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 52 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and EDITOR_CONDITIONS::redoFunc().
Referenced by CVPCB_MAINFRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by Units().
Definition at line 152 of file editor_conditions.cpp.
References EDA_BASE_FRAME::GetRedoCommandCount().
Referenced by EDITOR_CONDITIONS::RedoAvailable().
|
inherited |
Create a functor testing if the python scripting console window is visible.
Definition at line 130 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::consoleVisibleFunc(), and EDITOR_CONDITIONS::m_frame.
Referenced by SCH_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
inlinestaticinherited |
The default condition function (always returns true).
Definition at line 75 of file selection_conditions.h.
Referenced by ACTION_CONDITIONS::ACTION_CONDITIONS(), LIBRARY_EDITOR_CONTROL::AddContextMenuItems(), CONDITIONAL_MENU::AddSeparator(), EDA_DRAW_FRAME::AddStandardSubMenus(), EDA_3D_CONTROLLER::Init(), EE_TOOL_BASE< T >::Init(), SCH_DESIGN_BLOCK_CONTROL::Init(), SCH_EDIT_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), PICKER_TOOL::Init(), ZOOM_TOOL::Init(), PL_DRAWING_TOOLS::Init(), PL_EDIT_TOOL::Init(), ROUTER_TOOL::Init(), FOOTPRINT_EDITOR_CONTROL::Init(), GENERATOR_TOOL::Init(), PAD_TOOL::Init(), PCB_PICKER_TOOL::Init(), PCB_TOOL_BASE::Init(), LOCK_CONTEXT_MENU::LOCK_CONTEXT_MENU(), SCH_EDIT_FRAME::setupUIConditions(), SIMULATOR_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
inlinestaticinherited |
Always returns false.
Definition at line 80 of file selection_conditions.h.
Referenced by ACTION_CONDITIONS::ACTION_CONDITIONS(), KICAD_MANAGER_FRAME::setupUIConditions(), 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 74 of file pcb_editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and textFillDisplayFunc().
Referenced by DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by GraphicsFillDisplay()
Definition at line 159 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetViewerSettingsBase(), PCB_VIEWERS_SETTINGS_BASE::VIEWERS_DISPLAY_OPTIONS::m_DisplayTextFill, and PCB_VIEWERS_SETTINGS_BASE::m_ViewersDisplay.
Referenced by TextFillDisplay().
|
staticprotectedinherited |
Helper function used by NoActiveTool().
Definition at line 165 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 107 of file pcb_editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and trackFillDisplayFunc().
Referenced by PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by ZoneDisplayMode()
Definition at line 177 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetPcbNewSettings(), PCBNEW_SETTINGS::m_Display, and PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_DisplayPcbTrackFill.
Referenced by TrackFillDisplay().
|
virtualinherited |
Create a functor that tests if there are any items in the undo queue.
Definition at line 46 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and EDITOR_CONDITIONS::undoFunc().
Referenced by CVPCB_MAINFRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), and FOOTPRINT_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by RedoAvailable().
Definition at line 146 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 58 of file editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and EDITOR_CONDITIONS::unitsFunc().
Referenced by DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), SYMBOL_EDIT_FRAME::setupUIConditions(), GERBVIEW_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().
|
staticprotectedinherited |
Helper function used by CurrentTool().
Definition at line 158 of file editor_conditions.cpp.
References UNITS_PROVIDER::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 96 of file pcb_editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and viaFillDisplayFunc().
Referenced by PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by TrackFillDisplay()
Definition at line 171 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetPcbNewSettings(), PCBNEW_SETTINGS::m_Display, and PCBNEW_SETTINGS::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 118 of file pcb_editor_conditions.cpp.
References EDITOR_CONDITIONS::m_frame, and zoneDisplayModeFunc().
Referenced by PCB_EDIT_FRAME::setupUIConditions().
|
staticprotected |
Helper function used by Line45degMode()
Definition at line 183 of file pcb_editor_conditions.cpp.
References PCB_BASE_FRAME::GetDisplayOptions(), and PCB_DISPLAY_OPTIONS::m_ZoneDisplayMode.
Referenced by ZoneDisplayMode().
|
protectedinherited |
Definition at line 180 of file editor_conditions.h.
Referenced by EDITOR_CONDITIONS::BoundingBoxes(), EDITOR_CONDITIONS::ContentModified(), EDITOR_CONDITIONS::CurrentTool(), EDITOR_CONDITIONS::FullscreenCursor(), Get45degMode(), GraphicsFillDisplay(), EDITOR_CONDITIONS::GridOverrides(), EDITOR_CONDITIONS::GridVisible(), HasItems(), SCH_EDITOR_CONDITIONS::LineMode(), EDITOR_CONDITIONS::NoActiveTool(), PadFillDisplay(), PadNumbersDisplay(), EDITOR_CONDITIONS::PolarCoordinates(), EDITOR_CONDITIONS::RedoAvailable(), EDITOR_CONDITIONS::ScriptingConsoleVisible(), TextFillDisplay(), TrackFillDisplay(), EDITOR_CONDITIONS::UndoAvailable(), EDITOR_CONDITIONS::Units(), ViaFillDisplay(), and ZoneDisplayMode().