45 m_textSize( parent, m_textSizeLabel, m_textSizeCtrl, m_textSizeUnits ),
46 m_helpWindow( nullptr )
80 SetMinSize( GetSize() );
102 wxString txt =
static_cast<SCH_HIERLABEL*
>( item )->GetText();
104 if(
m_comboName->FindString( txt,
true ) == wxNOT_FOUND )
123 case LABEL_FLAG_SHAPE::L_INPUT:
m_input->SetValue(
true );
break;
124 case LABEL_FLAG_SHAPE::L_OUTPUT:
m_output->SetValue(
true );
break;
125 case LABEL_FLAG_SHAPE::L_BIDI:
m_bidirectional->SetValue(
true );
break;
126 case LABEL_FLAG_SHAPE::L_TRISTATE:
m_triState->SetValue(
true );
break;
127 case LABEL_FLAG_SHAPE::L_UNSPECIFIED:
m_passive->SetValue(
true );
break;
128 default: wxFAIL_MSG( wxT(
"Unknown sheet pin shape" ) );
break;
166 if( !commit.
Empty() )
167 commit.
Push(
_(
"Edit Sheet Pin Properties" ) );
197 case LABEL_FLAG_SHAPE::L_INPUT:
m_input->SetValue(
true );
break;
198 case LABEL_FLAG_SHAPE::L_OUTPUT:
m_output->SetValue(
true );
break;
199 case LABEL_FLAG_SHAPE::L_BIDI:
m_bidirectional->SetValue(
true );
break;
200 case LABEL_FLAG_SHAPE::L_TRISTATE:
m_triState->SetValue(
true );
break;
201 case LABEL_FLAG_SHAPE::L_UNSPECIFIED:
m_passive->SetValue(
true );
break;
202 default: wxFAIL_MSG( wxT(
"Unknown sheet pin shape" ) );
break;
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
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.
COMMIT & Modify(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Create an undo entry for an item that has been already modified.
bool Empty() const
Returns status of an item.
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...
void SetTextColor(const COLOR4D &aColor)
COLOR4D GetTextColor() const
void SetTextSize(VECTOR2I aNewSize, bool aEnforceMinTextSize=true)
virtual const wxString & GetText() const
Return the string associated with the text object.
KIFONT::FONT * GetFont() const
void SetBold(bool aBold)
Set the text to be bold - this will also update the font if needed.
virtual void SetText(const wxString &aText)
void SetItalic(bool aItalic)
Set the text to be italic - this will also update the font if needed.
void SetFont(KIFONT::FONT *aFont)
EE_TYPE OfType(KICAD_T aType) const
KIFONT::FONT * GetFontSelection(bool aBold, bool aItalic, bool aForDrawingSheet=false) const
bool HaveFontSelection() const
void SetFontSelection(KIFONT::FONT *aFont)
A color representation with 4 components: red, green, blue, alpha.
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.
Base class for any item which can be embedded within the SCHEMATIC container class,...
void SetShape(LABEL_FLAG_SHAPE aShape)
LABEL_FLAG_SHAPE GetShape() const
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.
SCH_SCREEN * GetScreen() const
static HTML_MESSAGE_BOX * ShowSyntaxHelp(wxWindow *aParentWindow)
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
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:...
VECTOR2< int32_t > VECTOR2I