59    for( 
const auto& [ lineStyle, lineStyleDesc ] : 
lineTypeNames )
 
   69    if( 
m_frame->GetColorSettings()->GetOverrideSchItemColors() )
 
   70        m_infoBar->ShowMessage( 
_( 
"Note: individual item colors overridden in Preferences." ) );
 
   85        if( !symbolEditor->IsSymbolEditable() || symbolEditor->IsSymbolAlias() )
 
 
  115    if( !wxDialog::TransferDataToWindow() )
 
  123        m_cbDNP->SetValue( ruleArea->GetDNP() );
 
  144    int style = 
static_cast<int>( 
m_shape->GetStroke().GetLineStyle() );
 
  151        wxFAIL_MSG( wxT( 
"Line type not found in the type lookup map" ) );
 
 
  220            defaultInMils = symbolEditor->libeditconfig()->m_Defaults.line_width;
 
  222            defaultInMils = 
m_frame->eeconfig()->m_Drawing.default_line_thickness;
 
 
  303    if( !wxDialog::TransferDataFromWindow() )
 
  316        ruleArea->SetDNP( 
m_cbDNP->GetValue() );
 
  361            m_shape->SetBodyStyle( symbolEditor->GetBodyStyle() );
 
  366            m_shape->SetUnit( symbolEditor->GetUnit() );
 
  374    if( !commit.
Empty() )
 
  375        commit.
Push( wxString::Format( 
_( 
"Edit %s" ), 
m_shape->GetFriendlyName() ) );
 
 
constexpr EDA_IU_SCALE schIUScale
 
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
 
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
 
Color settings are a bit different than most of the settings objects in that there can be more than o...
 
COLOR4D GetColor(int aLayer) const
 
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE)
Modify a given item in the model.
 
wxStaticText * m_borderStyleLabel
 
wxButton * m_sdbSizerCancel
 
wxCheckBox * m_borderCheckbox
 
wxCheckBox * m_checkApplyToAllUnits
 
wxRadioButton * m_rbFillOutline
 
wxSimplebook * m_fillBook
 
wxTextCtrl * m_borderWidthCtrl
 
COLOR_SWATCH * m_fillColorSwatch
 
wxBitmapComboBox * m_borderStyleCombo
 
wxStaticText * m_borderWidthUnits
 
@ FILLED_WITH_BG_BODYCOLOR
 
wxStaticText * m_fillColorLabel
 
wxRadioButton * m_rbFillBackground
 
COLOR_SWATCH * m_borderColorSwatch
 
wxBoxSizer * m_symbolEditorSizer
 
wxCheckBox * m_cbExcludeFromBoard
 
wxStaticText * m_helpLabel1
 
wxCheckBox * m_cbExcludeFromSim
 
wxStaticText * m_borderWidthLabel
 
wxStaticText * m_helpLabel2
 
wxCheckBox * m_privateCheckbox
 
wxStaticText * m_borderColorLabel
 
wxBoxSizer * m_ruleAreaSizer
 
COLOR_SWATCH * m_customColorSwatch
 
wxCheckBox * m_cbExcludeFromBom
 
wxRadioButton * m_rbFillNone
 
wxRadioButton * m_rbFillCustom
 
wxCheckBox * m_checkApplyToAllBodyStyles
 
DIALOG_SHAPE_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("%s Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 
void onCustomColorSwatch(wxCommandEvent &aEvent)
 
UNIT_BINDER m_borderWidth
 
DIALOG_SHAPE_PROPERTIES(SCH_BASE_FRAME *aParent, SCH_SHAPE *aShape)
 
bool TransferDataToWindow() override
 
~DIALOG_SHAPE_PROPERTIES() override
 
void onBorderChecked(wxCommandEvent &aEvent) override
 
void onBorderSwatch(wxCommandEvent &aEvent)
 
void onFillChoice(wxCommandEvent &event) override
 
void onFillRadioButton(wxCommandEvent &aEvent) override
 
bool TransferDataFromWindow() override
 
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
 
void SetupStandardButtons(std::map< int, wxString > aLabels={})
 
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
 
virtual wxString GetFriendlyName() const
 
A color representation with 4 components: red, green, blue, alpha.
 
wxColour ToColour() const
 
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
 
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Execute the changes.
 
Simple container to manage line stroke parameters.
 
void SetLineStyle(LINE_STYLE aLineStyle)
 
void SetWidth(int aWidth)
 
void SetColor(const KIGFX::COLOR4D &aColor)
 
The symbol library editor main window.
 
A base class for LIB_SYMBOL and SCH_SYMBOL.
 
virtual bool IsMultiUnit() const =0
 
virtual bool IsMultiBodyStyle() const =0
 
@ FILLED_WITH_BG_BODYCOLOR
 
@ FILLED_SHAPE
Fill with object color.
 
@ LAYER_DEVICE_BACKGROUND
 
@ LAYER_SCHEMATIC_BACKGROUND
 
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
 
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.
 
const std::map< LINE_STYLE, struct LINE_STYLE_DESC > lineTypeNames
Conversion map between LINE_STYLE values and style names displayed.
 
#define DEFAULT_LINE_STYLE_LABEL