44 m_textSize( parent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits ),
45 m_helpWindow( nullptr )
79 SetMinSize( GetSize() );
101 wxString txt =
static_cast<SCH_HIERLABEL*
>( item )->GetText();
103 if(
m_comboName->FindString( txt,
true ) == wxNOT_FOUND )
122 case LABEL_FLAG_SHAPE::L_INPUT:
m_input->SetValue(
true );
break;
123 case LABEL_FLAG_SHAPE::L_OUTPUT:
m_output->SetValue(
true );
break;
124 case LABEL_FLAG_SHAPE::L_BIDI:
m_bidirectional->SetValue(
true );
break;
125 case LABEL_FLAG_SHAPE::L_TRISTATE:
m_triState->SetValue(
true );
break;
126 case LABEL_FLAG_SHAPE::L_UNSPECIFIED:
m_passive->SetValue(
true );
break;
127 default: wxFAIL_MSG( wxT(
"Unknown sheet pin shape" ) );
break;
215 case LABEL_FLAG_SHAPE::L_INPUT:
m_input->SetValue(
true );
break;
216 case LABEL_FLAG_SHAPE::L_OUTPUT:
m_output->SetValue(
true );
break;
217 case LABEL_FLAG_SHAPE::L_BIDI:
m_bidirectional->SetValue(
true );
break;
218 case LABEL_FLAG_SHAPE::L_TRISTATE:
m_triState->SetValue(
true );
break;
219 case LABEL_FLAG_SHAPE::L_UNSPECIFIED:
m_passive->SetValue(
true );
break;
220 default: wxFAIL_MSG( wxT(
"Unknown sheet pin shape" ) );
break;
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
Color settings are a bit different than most of the settings objects in that there can be more than o...
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_SHEET_PIN_PROPERTIES_BASE.
wxRadioButton * m_passive
BITMAP_BUTTON * m_separator1
COLOR_SWATCH * m_textColorSwatch
BITMAP_BUTTON * m_separator2
wxRadioButton * m_triState
wxRadioButton * m_bidirectional
bool TransferDataFromWindow() override
DIALOG_SHEET_PIN_PROPERTIES(SCH_EDIT_FRAME *parent, SCH_SHEET_PIN *aPin)
bool TransferDataToWindow() override
HTML_MESSAGE_BOX * m_helpWindow
void onComboBox(wxCommandEvent &event) override
void onOKButton(wxCommandEvent &event) override
SCH_SHEET_PIN * m_sheetPin
~DIALOG_SHEET_PIN_PROPERTIES()
void OnSyntaxHelp(wxHyperlinkEvent &event) 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...
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
void SetTextColor(const COLOR4D &aColor)
COLOR4D GetTextColor() const
virtual const wxString & GetText() const
Return the string associated with the text object.
KIFONT::FONT * GetFont() const
void SetTextThickness(int aWidth)
The TextThickness is that set by the user.
void SetTextSize(const VECTOR2I &aNewSize)
virtual void SetText(const wxString &aText)
void SetItalic(bool aItalic)
void SetFont(KIFONT::FONT *aFont)
EE_TYPE OfType(KICAD_T aType) const
bool HaveFontSelection() const
void SetFontSelection(KIFONT::FONT *aFont)
KIFONT::FONT * GetFontSelection(bool aBold, bool aItalic) const
A color representation with 4 components: red, green, blue, alpha.
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
COLOR_SETTINGS * GetColorSettings(bool aForceRefresh=false) const override
Returns a pointer to the active color theme settings.
Schematic editor (Eeschema) main window.
void OnModify() override
Must be called after a schematic change in order to set the "modify" flag and update other data struc...
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 UpdateItem(EDA_ITEM *aItem, bool isAddOrDelete=false, bool aUpdateRtree=false) override
Mark an item for refresh.
Base class for any item which can be embedded within the SCHEMATIC container class,...
void SetShape(LABEL_FLAG_SHAPE aShape) override
LABEL_FLAG_SHAPE GetShape() const override
EE_RTREE & Items()
Gets the full RTree, usually for iterating.
Define a sheet pin (label) used in sheets to create hierarchical schematics.
SCH_SHEET * GetParent() const
Get the parent sheet object of this sheet pin.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
SCH_SCREEN * GetScreen() const
static HTML_MESSAGE_BOX * ShowSyntaxHelp(wxWindow *aParentWindow)
virtual long long int GetValue()
Return the current value in Internal Units.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
int GetPenSizeForBold(int aTextSize)
@ LAYER_SCHEMATIC_BACKGROUND
Definitions of control validators for schematic dialogs.
wxString UnescapeString(const wxString &aSource)
wxString EscapeString(const wxString &aSource, ESCAPE_CONTEXT aContext)
The Escape/Unescape routines use HTML-entity-reference-style encoding to handle characters which are:...