KiCad PCB EDA Suite
|
#include <panel_setup_text_and_graphics.h>
Public Member Functions | |
PANEL_SETUP_TEXT_AND_GRAPHICS (wxWindow *aParentWindow, PCB_EDIT_FRAME *aFrame) | |
~PANEL_SETUP_TEXT_AND_GRAPHICS () override | |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
void | ImportSettingsFrom (BOARD *aBoard) |
Protected Attributes | |
wxBoxSizer * | m_gridSizer |
wxStaticText * | m_staticTextDefProp |
wxStaticLine * | m_staticline11 |
WX_GRID * | m_grid |
wxStaticText * | m_staticTextDefPropDim |
wxStaticLine * | m_staticline1 |
wxStaticText * | m_lblDimensionUnits |
wxChoice * | m_dimensionUnits |
wxStaticText * | m_lblTextPositionMode |
wxChoice * | m_dimensionTextPositionMode |
wxStaticText * | m_lblDimensionUnitsFormat |
wxChoice * | m_dimensionUnitsFormat |
wxCheckBox * | m_dimensionTextKeepAligned |
wxStaticText * | m_lblDimensionPrecision |
wxChoice * | m_dimensionPrecision |
wxStaticText * | m_lblArrowLength |
wxTextCtrl * | m_dimensionArrowLength |
wxStaticText * | m_arrowLengthUnits |
wxCheckBox * | m_dimensionSuppressZeroes |
wxStaticText * | m_lblExtensionOffset |
wxTextCtrl * | m_dimensionExtensionOffset |
wxStaticText * | m_dimensionExtensionOffsetUnits |
Private Member Functions | |
void | onUnitsChanged (wxCommandEvent &aEvent) |
Private Attributes | |
PCB_EDIT_FRAME * | m_Frame |
BOARD_DESIGN_SETTINGS * | m_BrdSettings |
UNIT_BINDER | m_arrowLength |
UNIT_BINDER | m_extensionOffset |
Definition at line 38 of file panel_setup_text_and_graphics.h.
PANEL_SETUP_TEXT_AND_GRAPHICS::PANEL_SETUP_TEXT_AND_GRAPHICS | ( | wxWindow * | aParentWindow, |
PCB_EDIT_FRAME * | aFrame | ||
) |
Definition at line 56 of file panel_setup_text_and_graphics.cpp.
References COL_LINE_THICKNESS, COL_TEXT_HEIGHT, COL_TEXT_THICKNESS, COL_TEXT_WIDTH, PCB_BASE_FRAME::GetBoard(), BOARD::GetDesignSettings(), WX_GRID::GetVisibleWidth(), m_BrdSettings, m_Frame, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_grid, onUnitsChanged(), WX_GRID::SetAutoEvalCols(), and WX_GRID::SetUnitsProvider().
|
override |
Definition at line 102 of file panel_setup_text_and_graphics.cpp.
References m_Frame, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_grid, and onUnitsChanged().
void PANEL_SETUP_TEXT_AND_GRAPHICS::ImportSettingsFrom | ( | BOARD * | aBoard | ) |
Definition at line 319 of file panel_setup_text_and_graphics.cpp.
References WX_GRID::CommitPendingChanges(), BOARD::GetDesignSettings(), m_BrdSettings, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_grid, and TransferDataToWindow().
|
private |
Definition at line 111 of file panel_setup_text_and_graphics.cpp.
References m_BrdSettings, TransferDataFromWindow(), and TransferDataToWindow().
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS(), and ~PANEL_SETUP_TEXT_AND_GRAPHICS().
|
override |
Definition at line 197 of file panel_setup_text_and_graphics.cpp.
References _, COL_LINE_THICKNESS, COL_TEXT_HEIGHT, COL_TEXT_ITALIC, COL_TEXT_THICKNESS, COL_TEXT_UPRIGHT, COL_TEXT_WIDTH, WX_GRID::CommitPendingChanges(), WX_GRID::GetUnitValue(), UNIT_BINDER::GetValue(), KIDIALOG::KD_ERROR, m_arrowLength, m_BrdSettings, BOARD_DESIGN_SETTINGS::m_DimensionArrowLength, BOARD_DESIGN_SETTINGS::m_DimensionExtensionOffset, BOARD_DESIGN_SETTINGS::m_DimensionKeepTextAligned, BOARD_DESIGN_SETTINGS::m_DimensionPrecision, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionPrecision, BOARD_DESIGN_SETTINGS::m_DimensionSuppressZeroes, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionSuppressZeroes, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionTextKeepAligned, BOARD_DESIGN_SETTINGS::m_DimensionTextPosition, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionTextPositionMode, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionUnits, BOARD_DESIGN_SETTINGS::m_DimensionUnitsFormat, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionUnitsFormat, BOARD_DESIGN_SETTINGS::m_DimensionUnitsMode, m_extensionOffset, m_Frame, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_grid, BOARD_DESIGN_SETTINGS::m_LineThickness, BOARD_DESIGN_SETTINGS::m_TextItalic, BOARD_DESIGN_SETTINGS::m_TextSize, BOARD_DESIGN_SETTINGS::m_TextThickness, BOARD_DESIGN_SETTINGS::m_TextUpright, MAXIMUM_LINE_WIDTH_MM, MINIMUM_LINE_WIDTH_MM, minSize, EDA_IU_SCALE::mmToIU(), pcbIUScale, ROW_COUNT, ROW_COURTYARD, ROW_EDGES, SET_MILS_CELL, KIDIALOG::ShowModal(), UNITS_PROVIDER::StringFromValue(), TEXT_MAX_SIZE_MM, and TEXT_MIN_SIZE_MM.
Referenced by onUnitsChanged().
|
override |
Definition at line 127 of file panel_setup_text_and_graphics.cpp.
References COL_LINE_THICKNESS, COL_TEXT_HEIGHT, COL_TEXT_ITALIC, COL_TEXT_THICKNESS, COL_TEXT_UPRIGHT, COL_TEXT_WIDTH, DISABLE_CELL, WX_GRID::GetVisibleWidth(), m_arrowLength, m_BrdSettings, BOARD_DESIGN_SETTINGS::m_DimensionArrowLength, BOARD_DESIGN_SETTINGS::m_DimensionExtensionOffset, BOARD_DESIGN_SETTINGS::m_DimensionKeepTextAligned, BOARD_DESIGN_SETTINGS::m_DimensionPrecision, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionPrecision, BOARD_DESIGN_SETTINGS::m_DimensionSuppressZeroes, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionSuppressZeroes, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionTextKeepAligned, BOARD_DESIGN_SETTINGS::m_DimensionTextPosition, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionTextPositionMode, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionUnits, BOARD_DESIGN_SETTINGS::m_DimensionUnitsFormat, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionUnitsFormat, BOARD_DESIGN_SETTINGS::m_DimensionUnitsMode, m_extensionOffset, PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_grid, BOARD_DESIGN_SETTINGS::m_LineThickness, BOARD_DESIGN_SETTINGS::m_TextItalic, BOARD_DESIGN_SETTINGS::m_TextSize, BOARD_DESIGN_SETTINGS::m_TextThickness, BOARD_DESIGN_SETTINGS::m_TextUpright, ROW_COUNT, ROW_COURTYARD, ROW_EDGES, SET_MILS_CELL, UNIT_BINDER::SetValue(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ImportSettingsFrom(), and onUnitsChanged().
|
private |
Definition at line 55 of file panel_setup_text_and_graphics.h.
Referenced by TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 57 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
private |
Definition at line 54 of file panel_setup_text_and_graphics.h.
Referenced by ImportSettingsFrom(), onUnitsChanged(), PANEL_SETUP_TEXT_AND_GRAPHICS(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 56 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 60 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 61 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 54 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 58 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 52 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 49 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 47 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 51 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 56 of file panel_setup_text_and_graphics.h.
Referenced by TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 53 of file panel_setup_text_and_graphics.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS(), TransferDataFromWindow(), and ~PANEL_SETUP_TEXT_AND_GRAPHICS().
|
protectedinherited |
|
protectedinherited |
Definition at line 40 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 55 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 53 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 46 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 50 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 59 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 48 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 45 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 42 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 41 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().
|
protectedinherited |
Definition at line 44 of file panel_setup_text_and_graphics_base.h.
Referenced by PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::PANEL_SETUP_TEXT_AND_GRAPHICS_BASE().