49 m_textSize( parent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits ),
50 m_helpWindow( nullptr )
73 SetMinSize( GetSize() );
95 wxString txt = static_cast<SCH_HIERLABEL*>( item )->GetText();
97 if(
m_comboName->FindString( txt,
true ) == wxNOT_FOUND )
154 auto hierLabelItem = static_cast<SCH_HIERLABEL*>( item );
156 if(
m_comboName->GetValue().CmpNoCase( hierLabelItem->GetText() ) == 0 )
void OnSyntaxHelp(wxHyperlinkEvent &event) override
EE_TYPE OfType(KICAD_T aType) const
void SetShape(PINSHEETLABEL_SHAPE aShape)
SCH_SHEET_PIN * m_sheetPin
SCH_SHEET * GetParent() const
Get the parent sheet object of this sheet pin.
~DIALOG_SHEET_PIN_PROPERTIES()
Schematic editor (Eeschema) main window.
void SetTextSize(const wxSize &aNewSize)
SCH_SCREEN * GetScreen() const
HTML_MESSAGE_BOX * m_helpWindow
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.
bool TransferDataToWindow() override
void onOKButton(wxCommandEvent &event) override
virtual void SetText(const wxString &aText)
DIALOG_SHEET_PIN_PROPERTIES(SCH_EDIT_FRAME *parent, SCH_SHEET_PIN *aPin)
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
wxChoice * m_choiceConnectionType
Definitions of control validators for schematic dialogs.
void UpdateItem(EDA_ITEM *aItem, bool isAddOrDelete=false, bool aUpdateRtree=false)
Mark an item for refresh.
Define a sheet pin (label) used in sheets to create hierarchical schematics.
wxString UnescapeString(const wxString &aSource)
bool TransferDataFromWindow() override
Class DIALOG_SHEET_PIN_PROPERTIES_BASE.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
static HTML_MESSAGE_BOX * ShowSyntaxHelp(wxWindow *aParentWindow)
static wxString sheetPinTypes[]
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.
virtual void SetValue(int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
EE_RTREE & Items()
Gets the full RTree, usually for iterating.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
virtual long long int GetValue()
Return the current value in Internal Units.
void OnModify() override
Must be called after a schematic change in order to set the "modify" flag of the current screen and u...
wxString EscapeString(const wxString &aSource, ESCAPE_CONTEXT aContext)
The Escape/Unescape routines use HTML-entity-reference-style encoding to handle characters which are:...
void onComboBox(wxCommandEvent &event) override
Base class for any item which can be embedded within the SCHEMATIC container class,...
virtual const wxString & GetText() const
Return the string associated with the text object.
PINSHEETLABEL_SHAPE GetShape() const