|
KiCad PCB EDA Suite
|
#include "dialogs/dialog_create_array.h"#include <set>#include <wx/msgdlg.h>#include <base_units.h>#include <footprint.h>#include <pcb_edit_frame.h>#include <tools/pcb_actions.h>#include <tools/pcb_picker_tool.h>#include <tool/tool_manager.h>#include <widgets/text_ctrl_eval.h>Go to the source code of this file.
Classes | |
| struct | CREATE_ARRAY_DIALOG_ENTRIES |
| Struct containing the last-entered values for the dialog. More... | |
| struct | NUMBERING_LIST_DATA |
| Local mapping for list-box <-> numbering type. More... | |
Functions | |
| static bool | validateLongEntry (const wxTextEntry &entry, long &dest, const wxString &description, wxArrayString &errors) |
| Validate and save a long integer entry. | |
| static bool | validateAxisOptions (const wxTextCtrl &offsetEntry, const wxChoice &typeEntry, const wxTextCtrl &aStepEntry, ARRAY_AXIS &aAxis, wxArrayString &errors) |
| Validates and saves (if valid) the type and offset of an array axis numbering. | |
| static bool | arrayHasStackedPositions (const ARRAY_OPTIONS &aOptions, const VECTOR2I &aPos) |
| Detect whether the array configuration would produce two or more items at the same position and rotation, i.e. | |
Variables | |
| static CREATE_ARRAY_DIALOG_ENTRIES | s_arrayOptions |
| static const std::vector< NUMBERING_LIST_DATA > | numberingTypeData |
| List of type <--> name mappings (in order) for the numbering type list boxes. | |
|
static |
Detect whether the array configuration would produce two or more items at the same position and rotation, i.e.
visually stacked on top of one another. Uses the same transform path that array creation will use so partial-row/column overlaps and circular full-circle layouts are all classified correctly.
Definition at line 423 of file dialog_create_array.cpp.
References ARRAY_OPTIONS::GetArraySize(), ARRAY_OPTIONS::GetTransform(), ARRAY_OPTIONS::TRANSFORM::m_offset, and ARRAY_OPTIONS::TRANSFORM::m_rotation.
Referenced by DIALOG_CREATE_ARRAY::TransferDataFromWindow().
|
static |
Validates and saves (if valid) the type and offset of an array axis numbering.
| offsetEntry | the entry of the offset (text) |
| typeEntry | the entry of the axis nmbering scheme (choice) |
| type | the destination of the type if valid |
| offset | the destination of the offset if valid |
| errors | error string accumulator |
Definition at line 383 of file dialog_create_array.cpp.
References _, ARRAY_AXIS::GetAlphabet(), NUMBERING_LIST_DATA::m_numbering_type, ARRAY_AXIS::SetAxisType(), ARRAY_AXIS::SetOffset(), ARRAY_AXIS::SetStep(), text, and validateLongEntry().
Referenced by DIALOG_CREATE_ARRAY::TransferDataFromWindow().
|
static |
Validate and save a long integer entry.
| entry | the text entry to read from |
| dest | the value destination |
| description | description of the field (used if the value is not OK) |
| errors | a list of errors to add any error to |
Definition at line 356 of file dialog_create_array.cpp.
References _.
Referenced by DIALOG_CREATE_ARRAY::TransferDataFromWindow(), and validateAxisOptions().
|
static |
List of type <--> name mappings (in order) for the numbering type list boxes.
Definition at line 110 of file dialog_create_array.cpp.
Referenced by DIALOG_CREATE_ARRAY::DIALOG_CREATE_ARRAY(), and DIALOG_CREATE_ARRAY::OnAxisNumberingChange().
|
static |
Definition at line 95 of file dialog_create_array.cpp.
Referenced by DIALOG_CREATE_ARRAY::DIALOG_CREATE_ARRAY().