35 m_borderWidth( aParent, m_borderWidthLabel, m_borderWidthCtrl, m_borderWidthUnits, true )
37 SetTitle( wxString::Format( GetTitle(), aShape->
ShowShape() ) );
46 for(
const std::pair<const PLOT_DASH_TYPE, lineTypeStruct>& typeEntry :
lineTypeNames )
72 if( !wxDialog::TransferDataToWindow() )
100 wxFAIL_MSG(
"Line type not found in the type lookup map" );
135 if( !wxDialog::TransferDataFromWindow() )
constexpr EDA_IU_SCALE schIUScale
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
bool GetOverrideSchItemColors() const
COLOR4D GetColor(int aLayer) const
void SetSwatchColor(const KIGFX::COLOR4D &aColor, bool aSendEvent)
Set the current swatch color directly.
KIGFX::COLOR4D GetSwatchColor() const
void SetDefaultColor(const KIGFX::COLOR4D &aColor)
Sets the color that will be chosen with the "Reset to Default" button in the chooser.
void SetSwatchBackground(const KIGFX::COLOR4D &aBackground)
Set the swatch background color.
Class DIALOG_SHAPE_PROPERTIES_BASE.
wxStaticText * m_borderStyleLabel
wxCheckBox * m_borderCheckbox
wxTextCtrl * m_borderWidthCtrl
COLOR_SWATCH * m_fillColorSwatch
wxBitmapComboBox * m_borderStyleCombo
wxStaticText * m_fillColorLabel
COLOR_SWATCH * m_borderColorSwatch
wxStaticText * m_helpLabel1
wxCheckBox * m_filledCtrl
wxStaticText * m_helpLabel2
wxStaticText * m_borderColorLabel
UNIT_BINDER m_borderWidth
void onFillChecked(wxCommandEvent &aEvent) override
bool TransferDataToWindow() override
DIALOG_SHAPE_PROPERTIES(SCH_EDIT_FRAME *aParent, SCH_SHAPE *aShape)
void onBorderChecked(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...
wxString ShowShape() const
void SetFillColor(const COLOR4D &aColor)
COLOR4D GetFillColor() const
void SetFillMode(FILL_T aFill)
A color representation with 4 components: red, green, blue, alpha.
wxColour ToColour() const
EESCHEMA_SETTINGS * eeconfig() const
COLOR_SETTINGS * GetColorSettings(bool aForceRefresh=false) const override
Returns a pointer to the active color theme settings.
Schematic editor (Eeschema) main window.
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
void SaveCopyInUndoList(SCH_SCREEN *aScreen, SCH_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, bool aAppend, bool aDirtyConnectivity=true)
Create a copy of the current schematic item, and put it in the undo list.
void SetStroke(const STROKE_PARAMS &aStroke) override
STROKE_PARAMS GetStroke() const override
Simple container to manage line stroke parameters.
void SetWidth(int aWidth)
void SetColor(const KIGFX::COLOR4D &aColor)
KIGFX::COLOR4D GetColor() const
PLOT_DASH_TYPE GetPlotStyle() const
void SetPlotStyle(PLOT_DASH_TYPE aPlotStyle)
virtual long long int GetValue()
Return the current value in Internal Units.
void Enable(bool aEnable)
Enable/disable the label, widget and units label.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void ShowMessage(const wxString &aMessage, int aFlags=wxICON_INFORMATION) override
Show the info bar with the provided message and icon.
@ LAYER_SCHEMATIC_BACKGROUND
wxFont GetInfoFont(wxWindow *aWindow)
const std::map< PLOT_DASH_TYPE, struct lineTypeStruct > lineTypeNames
constexpr int MilsToIU(int mils) const
int default_line_thickness