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

#include <panel_setup_text_and_graphics.h>

Inheritance diagram for PANEL_SETUP_TEXT_AND_GRAPHICS:
PANEL_SETUP_TEXT_AND_GRAPHICS_BASE

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_GRIDm_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_FRAMEm_Frame
 
BOARD_DESIGN_SETTINGSm_BrdSettings
 
UNIT_BINDER m_arrowLength
 
UNIT_BINDER m_extensionOffset
 

Detailed Description

Definition at line 38 of file panel_setup_text_and_graphics.h.

Constructor & Destructor Documentation

◆ PANEL_SETUP_TEXT_AND_GRAPHICS()

◆ ~PANEL_SETUP_TEXT_AND_GRAPHICS()

PANEL_SETUP_TEXT_AND_GRAPHICS::~PANEL_SETUP_TEXT_AND_GRAPHICS ( )
override

Member Function Documentation

◆ ImportSettingsFrom()

void PANEL_SETUP_TEXT_AND_GRAPHICS::ImportSettingsFrom ( BOARD aBoard)

◆ onUnitsChanged()

void PANEL_SETUP_TEXT_AND_GRAPHICS::onUnitsChanged ( wxCommandEvent &  aEvent)
private

◆ TransferDataFromWindow()

bool PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataFromWindow ( )
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().

◆ TransferDataToWindow()

bool PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataToWindow ( )
override

Member Data Documentation

◆ m_arrowLength

UNIT_BINDER PANEL_SETUP_TEXT_AND_GRAPHICS::m_arrowLength
private

Definition at line 55 of file panel_setup_text_and_graphics.h.

Referenced by TransferDataFromWindow(), and TransferDataToWindow().

◆ m_arrowLengthUnits

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_arrowLengthUnits
protectedinherited

◆ m_BrdSettings

BOARD_DESIGN_SETTINGS* PANEL_SETUP_TEXT_AND_GRAPHICS::m_BrdSettings
private

◆ m_dimensionArrowLength

wxTextCtrl* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionArrowLength
protectedinherited

◆ m_dimensionExtensionOffset

wxTextCtrl* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionExtensionOffset
protectedinherited

◆ m_dimensionExtensionOffsetUnits

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionExtensionOffsetUnits
protectedinherited

◆ m_dimensionPrecision

wxChoice* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionPrecision
protectedinherited

◆ m_dimensionSuppressZeroes

wxCheckBox* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionSuppressZeroes
protectedinherited

◆ m_dimensionTextKeepAligned

wxCheckBox* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionTextKeepAligned
protectedinherited

◆ m_dimensionTextPositionMode

wxChoice* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionTextPositionMode
protectedinherited

◆ m_dimensionUnits

wxChoice* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionUnits
protectedinherited

◆ m_dimensionUnitsFormat

wxChoice* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_dimensionUnitsFormat
protectedinherited

◆ m_extensionOffset

UNIT_BINDER PANEL_SETUP_TEXT_AND_GRAPHICS::m_extensionOffset
private

Definition at line 56 of file panel_setup_text_and_graphics.h.

Referenced by TransferDataFromWindow(), and TransferDataToWindow().

◆ m_Frame

PCB_EDIT_FRAME* PANEL_SETUP_TEXT_AND_GRAPHICS::m_Frame
private

◆ m_grid

◆ m_gridSizer

wxBoxSizer* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_gridSizer
protectedinherited

◆ m_lblArrowLength

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_lblArrowLength
protectedinherited

◆ m_lblDimensionPrecision

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_lblDimensionPrecision
protectedinherited

◆ m_lblDimensionUnits

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_lblDimensionUnits
protectedinherited

◆ m_lblDimensionUnitsFormat

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_lblDimensionUnitsFormat
protectedinherited

◆ m_lblExtensionOffset

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_lblExtensionOffset
protectedinherited

◆ m_lblTextPositionMode

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_lblTextPositionMode
protectedinherited

◆ m_staticline1

wxStaticLine* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_staticline1
protectedinherited

◆ m_staticline11

wxStaticLine* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_staticline11
protectedinherited

◆ m_staticTextDefProp

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_staticTextDefProp
protectedinherited

◆ m_staticTextDefPropDim

wxStaticText* PANEL_SETUP_TEXT_AND_GRAPHICS_BASE::m_staticTextDefPropDim
protectedinherited

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