KiCad PCB EDA Suite
|
#include "dialogs/dialog_create_array.h"
#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. | |
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 |
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 360 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 333 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 135 of file dialog_create_array.cpp.
Referenced by DIALOG_CREATE_ARRAY::DIALOG_CREATE_ARRAY().
|
static |
Definition at line 120 of file dialog_create_array.cpp.
Referenced by DIALOG_CREATE_ARRAY::DIALOG_CREATE_ARRAY().