36 std::deque<SCH_LINE*>& aLines ) :
40 m_width( aParent, m_staticTextWidth, m_lineWidth, m_staticWidthUnits, true )
52 for(
const auto& [ lineStyle, lineStyleDesc ] :
lineTypeNames )
71 return r->GetPenWidth() == first_stroke_item->GetPenWidth();
84 return r->GetStroke().GetColor() == first_stroke_item->GetStroke().GetColor();
97 return r->GetStroke().GetLineStyle() == first_stroke_item->GetStroke().GetLineStyle();
107 wxFAIL_MSG( wxT(
"Line type not found in the type lookup map" ) );
145 line->SetLineStyle( LINE_STYLE::DEFAULT );
147 line->SetLineStyle( it->first );
152 commit.
Push(
m_lines.size() == 1 ?
_(
"Edit Line" ) :
_(
"Edit Lines" ) );
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
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.
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Create an undo entry for an item that has been already modified.
Class DIALOG_LINE_PROPERTIES_BASE.
wxStaticText * m_helpLabel2
wxBitmapComboBox * m_typeCombo
COLOR_SWATCH * m_colorSwatch
wxStaticText * m_helpLabel1
std::deque< SCH_LINE * > m_lines
DIALOG_LINE_PROPERTIES(SCH_EDIT_FRAME *aParent, std::deque< SCH_LINE * > &aLines)
bool TransferDataToWindow() override
void resetDefaults(wxCommandEvent &event) 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...
A color representation with 4 components: red, green, blue, alpha.
wxColour ToColour() const
COLOR_SETTINGS * GetColorSettings(bool aForceRefresh=false) const override
Returns a pointer to the active color theme settings.
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Revert the commit by restoring the modified items state.
Schematic editor (Eeschema) main window.
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
Segment description base class to describe items which have 2 end points (track, wire,...
virtual STROKE_PARAMS GetStroke() const override
LINE_STYLE GetLineStyle() const
KIGFX::COLOR4D GetColor() const
bool IsIndeterminate() const
Return true if the control holds the indeterminate value (for instance, if it represents a multiple s...
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
@ LAYER_SCHEMATIC_BACKGROUND
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
const std::map< LINE_STYLE, struct LINE_STYLE_DESC > lineTypeNames
#define INDETERMINATE_STYLE
#define INDETERMINATE_ACTION