KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_EDITOR_CONDITIONS Class Reference

Group generic conditions for PCB editor states. More...

#include <sch_editor_conditions.h>

Inheritance diagram for SCH_EDITOR_CONDITIONS:
EDITOR_CONDITIONS SELECTION_CONDITIONS

Public Member Functions

 SCH_EDITOR_CONDITIONS (SCH_BASE_FRAME *aFrame)
 
SELECTION_CONDITION LineMode (LINE_MODE aMode)
 Create a functor that tests if the frame is in the specified line drawing mode.
 
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 CursorSmallCrosshairs ()
 Create a functor testing if the cursor is full screen in a frame.
 
SELECTION_CONDITION CursorFullCrosshairs ()
 
SELECTION_CONDITION Cursor45Crosshairs ()
 
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 lineModeFunc (const SELECTION &aSelection, SCH_BASE_FRAME *aFrame, LINE_MODE aMode)
 < Helper function used by LineMode().
 
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 UndoAvailable().
 
static bool redoFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame)
 Helper function used by RedoAvailable().
 
static bool unitsFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame, EDA_UNITS aUnits)
 Helper function used by Units().
 
static bool toolFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame, const TOOL_ACTION &aTool)
 Helper function used by CurrentTool().
 
static bool noToolFunc (const SELECTION &aSelection, EDA_BASE_FRAME *aFrame)
 Helper function used by NoActiveTool().
 
static bool gridFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame)
 Helper function used by GridVisible().
 
static bool gridOverridesFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame)
 Helper function used by GridOverrides().
 
static bool polarCoordFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame)
 Helper function used by PolarCoordinates().
 
static bool cursorFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame, KIGFX::CROSS_HAIR_MODE aMode)
 Helper function used by FullscreenCursor().
 
static bool bboxesFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame)
 Helper function used by DrawBoundingBoxes().
 
static bool consoleVisibleFunc (const SELECTION &aSelection, EDA_DRAW_FRAME *aFrame)
 Helper function used by ScriptingConsoleVisible().
 

Protected Attributes

EDA_BASE_FRAMEm_frame
 The frame to apply the conditions to.
 

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 HasTypes().
 
static bool onlyTypesFunc (const SELECTION &aSelection, std::vector< KICAD_T > aTypes)
 Helper function used by OnlyTypes().
 
static bool countFunc (const SELECTION &aSelection, int aNumber)
 Helper function used by Count().
 
static bool moreThanFunc (const SELECTION &aSelection, int aNumber)
 Helper function used by MoreThan().
 
static bool lessThanFunc (const SELECTION &aSelection, int aNumber)
 Helper function used by LessThan().
 
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)
 Helper function used by operator &&.
 

Detailed Description

Group generic conditions for PCB editor states.

Definition at line 39 of file sch_editor_conditions.h.

Constructor & Destructor Documentation

◆ SCH_EDITOR_CONDITIONS()

SCH_EDITOR_CONDITIONS::SCH_EDITOR_CONDITIONS ( SCH_BASE_FRAME * aFrame)
inline

Definition at line 42 of file sch_editor_conditions.h.

References EDITOR_CONDITIONS::EDITOR_CONDITIONS().

Member Function Documentation

◆ andBoolFunc()

static bool SELECTION_CONDITIONS::andBoolFunc ( const SELECTION_CONDITION & aConditionA,
SELECTION_BOOL & aConditionB,
const SELECTION & aSelection )
inlinestaticprivateinherited

Helper function used by operator &&.

Definition at line 202 of file selection_conditions.h.

Referenced by operator&&.

◆ andFunc()

static bool SELECTION_CONDITIONS::andFunc ( const SELECTION_CONDITION & aConditionA,
const SELECTION_CONDITION & aConditionB,
const SELECTION & aSelection )
inlinestaticprivateinherited

Helper function used by operator &&.

Definition at line 182 of file selection_conditions.h.

Referenced by operator&&.

◆ bboxesFunc()

bool EDITOR_CONDITIONS::bboxesFunc ( const SELECTION & aSelection,
EDA_DRAW_FRAME * aFrame )
staticprotectedinherited

◆ BoundingBoxes()

◆ consoleVisibleFunc()

bool EDITOR_CONDITIONS::consoleVisibleFunc ( const SELECTION & aSelection,
EDA_DRAW_FRAME * aFrame )
staticprotectedinherited

Helper function used by ScriptingConsoleVisible().

Definition at line 232 of file editor_conditions.cpp.

References EDA_DRAW_FRAME::IsScriptingConsoleVisible().

Referenced by ScriptingConsoleVisible().

◆ ContentModified()

SELECTION_CONDITION EDITOR_CONDITIONS::ContentModified ( )
inherited

Create a functor that tests if the content of the frame is modified.

Returns
Functor testing for modified content.

Definition at line 41 of file editor_conditions.cpp.

References contentModifiedFunc(), and m_frame.

Referenced by CVPCB_MAINFRAME::setupUIConditions(), and FOOTPRINT_EDIT_FRAME::setupUIConditions().

◆ contentModifiedFunc()

bool EDITOR_CONDITIONS::contentModifiedFunc ( const SELECTION & aSelection,
EDA_BASE_FRAME * aFrame )
staticprotectedinherited

Helper function used by ContentModified().

Definition at line 163 of file editor_conditions.cpp.

References EDA_BASE_FRAME::IsContentModified().

Referenced by ContentModified().

◆ Count()

SELECTION_CONDITION SELECTION_CONDITIONS::Count ( int aNumber)
staticinherited

Create a functor that tests if the number of selected items is equal to the value given as parameter.

Parameters
aNumberis the number of expected items.
Returns
Functor testing if the number of selected items is equal aNumber.

Definition at line 79 of file selection_conditions.cpp.

References countFunc().

Referenced by CONVERT_TOOL::Init(), EDIT_TOOL::Init(), PAD_TOOL::Init(), PCB_POINT_EDITOR::Init(), PCB_SELECTION_TOOL::Init(), SCH_POINT_EDITOR::Init(), SCH_SELECTION_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Init(), SYMBOL_EDITOR_PIN_TOOL::Init(), makeShapeModificationMenu(), and PCB_EDIT_FRAME::setupUIConditions().

◆ countFunc()

bool SELECTION_CONDITIONS::countFunc ( const SELECTION & aSelection,
int aNumber )
staticprivateinherited

Helper function used by Count().

Definition at line 142 of file selection_conditions.cpp.

References SELECTION::Size().

Referenced by Count().

◆ CurrentTool()

SELECTION_CONDITION EDITOR_CONDITIONS::CurrentTool ( const TOOL_ACTION & aTool)
inherited

Create a functor testing if the specified tool is the current active tool in the frame.

Returns
Functor testing the current tool of a frame.

Definition at line 65 of file editor_conditions.cpp.

References m_frame, and toolFunc().

Referenced by DISPLAY_FOOTPRINTS_FRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), FOOTPRINT_VIEWER_FRAME::setupUIConditions(), GERBVIEW_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), and SYMBOL_EDIT_FRAME::setupUIConditions().

◆ Cursor45Crosshairs()

◆ CursorFullCrosshairs()

◆ cursorFunc()

bool EDITOR_CONDITIONS::cursorFunc ( const SELECTION & aSelection,
EDA_DRAW_FRAME * aFrame,
KIGFX::CROSS_HAIR_MODE aMode )
staticprotectedinherited

Helper function used by FullscreenCursor().

Definition at line 219 of file editor_conditions.cpp.

References KIGFX::GAL_DISPLAY_OPTIONS::GetCursorMode(), and EDA_DRAW_FRAME::GetGalDisplayOptions().

Referenced by Cursor45Crosshairs(), CursorFullCrosshairs(), and CursorSmallCrosshairs().

◆ CursorSmallCrosshairs()

SELECTION_CONDITION EDITOR_CONDITIONS::CursorSmallCrosshairs ( )
inherited

◆ Empty()

bool SELECTION_CONDITIONS::Empty ( const SELECTION & aSelection)
staticinherited

Test if there are no items selected.

Definition at line 41 of file selection_conditions.cpp.

References SELECTION::Empty().

Referenced by PL_SELECTION_TOOL::Init(), and SCH_SELECTION_TOOL::Init().

◆ gridFunc()

bool EDITOR_CONDITIONS::gridFunc ( const SELECTION & aSelection,
EDA_DRAW_FRAME * aFrame )
staticprotectedinherited

Helper function used by GridVisible().

Definition at line 201 of file editor_conditions.cpp.

References EDA_DRAW_FRAME::IsGridVisible().

Referenced by GridVisible().

◆ GridOverrides()

SELECTION_CONDITION EDITOR_CONDITIONS::GridOverrides ( )
inherited

Create a functor testing if the grid overrides wires is enabled in a frame.

Note
This requires the frame passed into the constructor be be derived from EDA_DRAW_FRAME.
Returns
Functor testing if grid overrides are enabled

Definition at line 88 of file editor_conditions.cpp.

References gridOverridesFunc(), and m_frame.

Referenced by FOOTPRINT_EDIT_FRAME::setupUIConditions(), PCB_EDIT_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), and SYMBOL_EDIT_FRAME::setupUIConditions().

◆ gridOverridesFunc()

bool EDITOR_CONDITIONS::gridOverridesFunc ( const SELECTION & aSelection,
EDA_DRAW_FRAME * aFrame )
staticprotectedinherited

Helper function used by GridOverrides().

Definition at line 207 of file editor_conditions.cpp.

References EDA_DRAW_FRAME::IsGridOverridden().

Referenced by GridOverrides().

◆ GridVisible()

SELECTION_CONDITION EDITOR_CONDITIONS::GridVisible ( )
inherited

◆ HasType()

SELECTION_CONDITION SELECTION_CONDITIONS::HasType ( KICAD_T aType)
staticinherited

Create a functor that tests if among the selected items there is at least one of a given type.

Parameters
aTypeis the type that is searched.
Returns
Functor testing for presence of items of a given type.

Definition at line 61 of file selection_conditions.cpp.

References hasTypeFunc().

Referenced by EDIT_TOOL::Init(), PAD_TOOL::Init(), PCB_SELECTION_TOOL::Init(), SCH_SELECTION_TOOL::Init(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), and SCH_EDIT_FRAME::setupUIConditions().

◆ hasTypeFunc()

bool SELECTION_CONDITIONS::hasTypeFunc ( const SELECTION & aSelection,
KICAD_T aType )
staticprivateinherited

Helper function used by HasType().

Definition at line 97 of file selection_conditions.cpp.

References SELECTION::Empty().

Referenced by HasType().

◆ HasTypes()

SELECTION_CONDITION SELECTION_CONDITIONS::HasTypes ( std::vector< KICAD_T > aTypes)
staticinherited

Create a functor that tests if among the selected items there is at least one of a given types.

Parameters
aTypesis an array containing types that are searched.
Returns
Functor testing for presence of items of a given types.

Definition at line 67 of file selection_conditions.cpp.

References hasTypesFunc().

Referenced by EDIT_TOOL::Init(), SCH_SELECTION_TOOL::Init(), makeShapeModificationMenu(), and PCB_EDIT_FRAME::setupUIConditions().

◆ hasTypesFunc()

bool SELECTION_CONDITIONS::hasTypesFunc ( const SELECTION & aSelection,
std::vector< KICAD_T > aTypes )
staticprivateinherited

Helper function used by HasTypes().

Definition at line 112 of file selection_conditions.cpp.

References SELECTION::Empty().

Referenced by HasTypes().

◆ Idle()

◆ IdleSelection()

bool SELECTION_CONDITIONS::IdleSelection ( const SELECTION & aSelection)
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 SYMBOL_EDITOR_EDIT_TOOL::Init(), and SYMBOL_EDITOR_MOVE_TOOL::Init().

◆ LessThan()

SELECTION_CONDITION SELECTION_CONDITIONS::LessThan ( int aNumber)
staticinherited

Create a functor that tests if the number of selected items is smaller than the value given as parameter.

Parameters
aNumberis the number used for comparison.
Returns
Functor testing if the number of selected items is smaller than aNumber.

Definition at line 91 of file selection_conditions.cpp.

References lessThanFunc().

Referenced by SCH_SELECTION_TOOL::Init().

◆ lessThanFunc()

bool SELECTION_CONDITIONS::lessThanFunc ( const SELECTION & aSelection,
int aNumber )
staticprivateinherited

Helper function used by LessThan().

Definition at line 154 of file selection_conditions.cpp.

References SELECTION::Size().

Referenced by LessThan().

◆ LineMode()

SELECTION_CONDITION SCH_EDITOR_CONDITIONS::LineMode ( LINE_MODE aMode)

Create a functor that tests if the frame is in the specified line drawing mode.

Returns
Functor testing the line drawing mode of a frame.

Definition at line 38 of file sch_editor_conditions.cpp.

References lineModeFunc(), and EDITOR_CONDITIONS::m_frame.

Referenced by SCH_EDIT_FRAME::setupUIConditions().

◆ lineModeFunc()

bool SCH_EDITOR_CONDITIONS::lineModeFunc ( const SELECTION & aSelection,
SCH_BASE_FRAME * aFrame,
LINE_MODE aMode )
staticprotected

< Helper function used by LineMode().

Definition at line 48 of file sch_editor_conditions.cpp.

References SCH_BASE_FRAME::eeconfig(), EESCHEMA_SETTINGS::DRAWING::line_mode, and EESCHEMA_SETTINGS::m_Drawing.

Referenced by LineMode().

◆ MoreThan()

SELECTION_CONDITION SELECTION_CONDITIONS::MoreThan ( int aNumber)
staticinherited

Create a functor that tests if the number of selected items is greater than the value given as parameter.

Parameters
aNumberis the number used for comparison.
Returns
Functor testing if the number of selected items is greater than aNumber.

Definition at line 85 of file selection_conditions.cpp.

References moreThanFunc().

Referenced by EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::addMenus(), ALIGN_DISTRIBUTE_TOOL::Init(), CONVERT_TOOL::Init(), EDIT_TOOL::Init(), PCB_SELECTION_TOOL::Init(), SCH_LINE_WIRE_BUS_TOOL::Init(), SCH_SELECTION_TOOL::Init(), SYMBOL_EDITOR_EDIT_TOOL::Init(), makeShapeModificationMenu(), and PCB_EDIT_FRAME::setupUIConditions().

◆ moreThanFunc()

bool SELECTION_CONDITIONS::moreThanFunc ( const SELECTION & aSelection,
int aNumber )
staticprivateinherited

Helper function used by MoreThan().

Definition at line 148 of file selection_conditions.cpp.

References SELECTION::Size().

Referenced by MoreThan().

◆ NoActiveTool()

SELECTION_CONDITION EDITOR_CONDITIONS::NoActiveTool ( )
inherited

Create a functor testing if there are no tools active in the frame.

Returns
Functor testing the frame has no tools running.

Definition at line 71 of file editor_conditions.cpp.

References m_frame, and noToolFunc().

Referenced by FOOTPRINT_EDIT_FRAME::setupUIConditions(), PCB_EDIT_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), and SYMBOL_EDIT_FRAME::setupUIConditions().

◆ NotEmpty()

◆ notFunc()

static bool SELECTION_CONDITIONS::notFunc ( const SELECTION_CONDITION & aCondition,
const SELECTION & aSelection )
inlinestaticprivateinherited

Helper function used by operator !.

Definition at line 189 of file selection_conditions.h.

Referenced by operator!.

◆ noToolFunc()

bool EDITOR_CONDITIONS::noToolFunc ( const SELECTION & aSelection,
EDA_BASE_FRAME * aFrame )
staticprotectedinherited

Helper function used by NoActiveTool().

Definition at line 195 of file editor_conditions.cpp.

References TOOLS_HOLDER::ToolStackIsEmpty().

Referenced by NoActiveTool().

◆ OnlyTypes()

◆ onlyTypesFunc()

bool SELECTION_CONDITIONS::onlyTypesFunc ( const SELECTION & aSelection,
std::vector< KICAD_T > aTypes )
staticprivateinherited

Helper function used by OnlyTypes().

Definition at line 127 of file selection_conditions.cpp.

References SELECTION::Empty().

Referenced by OnlyTypes().

◆ orBoolFunc()

static bool SELECTION_CONDITIONS::orBoolFunc ( const SELECTION_CONDITION & aConditionA,
SELECTION_BOOL & aConditionB,
const SELECTION & aSelection )
inlinestaticprivateinherited

Helper function used by operator ||.

Definition at line 195 of file selection_conditions.h.

Referenced by operator||.

◆ orFunc()

static bool SELECTION_CONDITIONS::orFunc ( const SELECTION_CONDITION & aConditionA,
const SELECTION_CONDITION & aConditionB,
const SELECTION & aSelection )
inlinestaticprivateinherited

Helper function used by operator ||.

Definition at line 175 of file selection_conditions.h.

Referenced by operator||.

◆ polarCoordFunc()

bool EDITOR_CONDITIONS::polarCoordFunc ( const SELECTION & aSelection,
EDA_DRAW_FRAME * aFrame )
staticprotectedinherited

Helper function used by PolarCoordinates().

Definition at line 213 of file editor_conditions.cpp.

References EDA_DRAW_FRAME::GetShowPolarCoords().

Referenced by PolarCoordinates().

◆ PolarCoordinates()

SELECTION_CONDITION EDITOR_CONDITIONS::PolarCoordinates ( )
inherited

Create a functor testing if polar coordinates are current being used.

Note
This requires the frame passed into the constructor be be derived from EDA_DRAW_FRAME.
Returns
Functor testing if the grid is visible

Definition at line 99 of file editor_conditions.cpp.

References m_frame, and polarCoordFunc().

Referenced by GERBVIEW_FRAME::setupUIConditions(), and PCB_EDIT_FRAME::setupUIConditions().

◆ RedoAvailable()

SELECTION_CONDITION EDITOR_CONDITIONS::RedoAvailable ( )
inherited

Create a functor that tests if there are any items in the redo queue.

Returns
Functor testing if the redo queue has items.

Definition at line 53 of file editor_conditions.cpp.

References m_frame, and redoFunc().

Referenced by CVPCB_MAINFRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), PCB_EDIT_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), SCH_EDIT_FRAME::setupUIConditions(), and SYMBOL_EDIT_FRAME::setupUIConditions().

◆ redoFunc()

bool EDITOR_CONDITIONS::redoFunc ( const SELECTION & aSelection,
EDA_BASE_FRAME * aFrame )
staticprotectedinherited

Helper function used by RedoAvailable().

Definition at line 175 of file editor_conditions.cpp.

References EDA_BASE_FRAME::GetRedoCommandCount().

Referenced by RedoAvailable().

◆ ScriptingConsoleVisible()

SELECTION_CONDITION EDITOR_CONDITIONS::ScriptingConsoleVisible ( )
inherited

Create a functor testing if the python scripting console window is visible.

Note
This requires the frame passed into the constructor be be derived from EDA_DRAW_FRAME.
Returns
Functor testing if the python scripting console window is visible

Definition at line 153 of file editor_conditions.cpp.

References consoleVisibleFunc(), and m_frame.

Referenced by PCB_EDIT_FRAME::setupUIConditions().

◆ ShowAlways()

◆ ShowNever()

static bool SELECTION_CONDITIONS::ShowNever ( const SELECTION & aSelection)
inlinestaticinherited

◆ toolFunc()

bool EDITOR_CONDITIONS::toolFunc ( const SELECTION & aSelection,
EDA_BASE_FRAME * aFrame,
const TOOL_ACTION & aTool )
staticprotectedinherited

Helper function used by CurrentTool().

Definition at line 188 of file editor_conditions.cpp.

References TOOLS_HOLDER::IsCurrentTool().

Referenced by CurrentTool().

◆ UndoAvailable()

SELECTION_CONDITION EDITOR_CONDITIONS::UndoAvailable ( )
virtualinherited

Create a functor that tests if there are any items in the undo queue.

Returns
Functor testing if the undo queue has items.

Definition at line 47 of file editor_conditions.cpp.

References m_frame, and undoFunc().

Referenced by CVPCB_MAINFRAME::setupUIConditions(), FOOTPRINT_EDIT_FRAME::setupUIConditions(), PL_EDITOR_FRAME::setupUIConditions(), and SYMBOL_EDIT_FRAME::setupUIConditions().

◆ undoFunc()

bool EDITOR_CONDITIONS::undoFunc ( const SELECTION & aSelection,
EDA_BASE_FRAME * aFrame )
staticprotectedinherited

Helper function used by UndoAvailable().

Definition at line 169 of file editor_conditions.cpp.

References EDA_BASE_FRAME::GetUndoCommandCount().

Referenced by UndoAvailable().

◆ Units()

◆ unitsFunc()

bool EDITOR_CONDITIONS::unitsFunc ( const SELECTION & aSelection,
EDA_BASE_FRAME * aFrame,
EDA_UNITS aUnits )
staticprotectedinherited

Helper function used by Units().

Definition at line 181 of file editor_conditions.cpp.

References UNITS_PROVIDER::GetUserUnits().

Referenced by Units().

Member Data Documentation

◆ m_frame


The documentation for this class was generated from the following files: