53 #define DEFAULT_STYLE _( "Default" ) 54 #define INDETERMINATE_STYLE _( "Leave unchanged" ) 58 std::deque<SCH_ITEM*>& strokeItems ) :
61 m_strokeItems( strokeItems ),
62 m_width( aParent, m_staticTextWidth, m_lineWidth, m_staticWidthUnits, true )
89 return r->GetPenWidth() == first_stroke_item->GetPenWidth();
102 return r->GetStroke().GetColor() == first_stroke_item->GetStroke().GetColor();
115 return r->GetStroke().GetPlotStyle() == first_stroke_item->GetStroke().GetPlotStyle();
118 int style = static_cast<int>( first_stroke_item->GetStroke().GetPlotStyle() );
125 wxFAIL_MSG(
"Line type not found in the type lookup map" );
160 stroke = strokeItem->GetStroke();
175 strokeItem->SetStroke( stroke );
void SetWidth(int aWidth)
void SetSwatchColor(KIGFX::COLOR4D aColor, bool aSendEvent)
Set the current swatch color directly.
void UpdateItem(EDA_ITEM *aItem, bool isAddOrDelete=false)
Mark an item for refresh.
KIGFX::COLOR4D GetSwatchColor() const
const BITMAP_OPAQUE stroke_dot_xpm[1]
PNG memory record (file in memory).
DIALOG_EDIT_LINE_STYLE(SCH_EDIT_FRAME *aParent, std::deque< SCH_ITEM * > &strokeItems)
#define INDETERMINATE_STYLE
void SetDefaultColor(KIGFX::COLOR4D aColor)
Sets the color that will be chosen with the "Reset to Default" button in the chooser.
const std::map< PLOT_DASH_TYPE, struct lineTypeStruct > lineTypeNames
bool TransferDataFromWindow() override
std::deque< SCH_ITEM * > m_strokeItems
void PushItem(const ITEM_PICKER &aItem)
Push aItem to the top of the list.
Schematic editor (Eeschema) main window.
void SetPlotStyle(PLOT_DASH_TYPE aPlotStyle)
bool IsIndeterminate() const
Return true if the control holds the indeterminate value (for instance, if it represents a multiple s...
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
bool TransferDataToWindow() override
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
void resetDefaults(wxCommandEvent &event) override
const BITMAP_OPAQUE * bitmap
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
const BITMAP_OPAQUE stroke_dash_xpm[1]
COLOR_SWATCH * m_colorSwatch
const BITMAP_OPAQUE stroke_dashdot_xpm[1]
A holder to handle information on schematic or board items.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
void SaveCopyInUndoList(SCH_SCREEN *aScreen, SCH_ITEM *aItemToCopy, UNDO_REDO aTypeCommand, bool aAppend)
Create a copy of the current schematic item, and put it in the undo list.
Simple container to manage line stroke parameters.
virtual void SetValue(int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
wxButton * m_sdbSizerApply
virtual long long int GetValue()
Return the current value in Internal Units.
void SetColor(const COLOR4D &aColor)
wxBitmapComboBox * m_typeCombo
const BITMAP_OPAQUE stroke_solid_xpm[1]
void OnModify() override
Must be called after a schematic change in order to set the "modify" flag of the current screen and u...
Class DIALOG_EDIT_LINE_STYLE_BASE.
#define INDETERMINATE_ACTION
Base class for any item which can be embedded within the SCHEMATIC container class,...