|
KiCad PCB EDA Suite
|
Go to the source code of this file.
Functions | |
| std::vector< MAGNETIC_OPTIONS > | MagneticSnapOptions (bool aRouting) |
| The object snapping modes an editor offers. | |
| int | MagneticSnapIndex (const std::vector< MAGNETIC_OPTIONS > &aOptions, MAGNETIC_OPTIONS aValue) |
| The position of aValue in aOptions, falling back to the "never" entry for a value the editor does not offer. | |
| MAGNETIC_OPTIONS | MagneticSnapValue (const std::vector< MAGNETIC_OPTIONS > &aOptions, int aIndex) |
| The mode at aIndex, or "never" if the index is out of range. | |
| static wxString | magneticOptionLabel (MAGNETIC_OPTIONS aOption) |
| static void | fillMagneticChoice (wxChoice *aChoice, const std::vector< MAGNETIC_OPTIONS > &aOptions) |
|
static |
Definition at line 70 of file panel_snapping.cpp.
References magneticOptionLabel().
Referenced by PANEL_SNAPPING::PANEL_SNAPPING().
|
static |
Definition at line 57 of file panel_snapping.cpp.
References _, CAPTURE_ALWAYS, CAPTURE_CURSOR_IN_TRACK_TOOL, and NO_EFFECT.
Referenced by fillMagneticChoice().
| int MagneticSnapIndex | ( | const std::vector< MAGNETIC_OPTIONS > & | aOptions, |
| MAGNETIC_OPTIONS | aValue ) |
The position of aValue in aOptions, falling back to the "never" entry for a value the editor does not offer.
The grid helpers ignore modes an editor can't reach, so reading one back as "never" matches what the user actually gets.
Definition at line 37 of file panel_snapping.cpp.
References NO_EFFECT.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PANEL_SNAPPING::load().
| std::vector< MAGNETIC_OPTIONS > MagneticSnapOptions | ( | bool | aRouting | ) |
The object snapping modes an editor offers.
Only editors that route tracks have a mode that applies to the router alone; elsewhere the choice is between never and always.
Definition at line 25 of file panel_snapping.cpp.
References CAPTURE_ALWAYS, CAPTURE_CURSOR_IN_TRACK_TOOL, and NO_EFFECT.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PANEL_SNAPPING::PANEL_SNAPPING().
| MAGNETIC_OPTIONS MagneticSnapValue | ( | const std::vector< MAGNETIC_OPTIONS > & | aOptions, |
| int | aIndex ) |
The mode at aIndex, or "never" if the index is out of range.
Definition at line 48 of file panel_snapping.cpp.
References NO_EFFECT.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and PANEL_SNAPPING::TransferDataFromWindow().