30 std::deque<SCH_JUNCTION*>& aJunctions ) :
61 return r->GetDiameter() == firstJunction->GetDiameter();
64 m_diameter.SetValue( firstJunction->GetDiameter() );
74 return r->GetColor() == firstJunction->GetColor();
77 m_colorSwatch->SetSwatchColor( firstJunction->GetColor(),
false );
106 junction->SetDiameter(
m_diameter.GetValue() );
110 m_frame->GetCanvas()->GetView()->Update( junction );
113 commit.
Push(
m_junctions.size() == 1 ?
_(
"Edit Junction" ) :
_(
"Edit Junctions" ) );
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
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_helpLabel2
DIALOG_JUNCTION_PROPS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Junction Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_helpLabel1
wxStaticText * m_staticTextDiameter
wxTextCtrl * m_textCtrlDiameter
wxStaticText * m_staticTextDiameterUnits
COLOR_SWATCH * m_colorSwatch
void resetDefaults(wxCommandEvent &event) override
std::deque< SCH_JUNCTION * > m_junctions
DIALOG_JUNCTION_PROPS(SCH_EDIT_FRAME *aParent, std::deque< SCH_JUNCTION * > &aJunctions)
bool TransferDataFromWindow() override
bool TransferDataToWindow() 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
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Execute the changes.
Schematic editor (Eeschema) main window.
@ 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...
#define INDETERMINATE_ACTION