49 m_ercDialog( nullptr )
161 if( selection.GetSize() == 1 && selection.Front()->Type() ==
SCH_MARKER_T )
183 if( selection.GetSize() == 1 && selection.Front()->Type() ==
SCH_MARKER_T )
184 marker =
static_cast<SCH_MARKER*
>( selection.Front() );
193 else if( marker !=
nullptr )
215 std::vector<wxString> messages;
216 const int grid_size =
KiROUND(
getView()->GetGAL()->GetGridSize().x );
220 if( messages.empty() )
228 for(
const wxString& single_msg : messages )
247 blocking_win->Close(
true );
249 simFrame->Show(
true );
252 if( simFrame->IsIconized() )
253 simFrame->Iconize(
false );
287 if( selection.
Empty() )
314 if( selection.GetSize() == 1 )
318 std::vector<MSG_PANEL_ITEM> msgItems;
329 editFrame->UpdateNetHighlightStatus();
330 editFrame->UpdateHierarchySelection();
static TOOL_ACTION excludeMarker
static TOOL_ACTION nextMarker
static TOOL_ACTION prevMarker
void ExcludeMarker(SCH_MARKER *aMarker=nullptr)
Exclude aMarker from the ERC list.
void SelectMarker(const SCH_MARKER *aMarker)
bool Show(bool show) override
virtual void OnModify()
Must be called after a model change in order to set the "modify" flag and do other frame-specific pro...
void ShowInfoBarError(const wxString &aErrorMsg, bool aShowCloseButton=false, WX_INFOBAR::MESSAGE_TYPE aType=WX_INFOBAR::MESSAGE_TYPE::GENERIC)
Show the WX_INFOBAR displayed on the top of the canvas with a message and an error icon on the left o...
bool IsType(FRAME_T aType) const
The base class for create windows for drawing purpose.
virtual void ClearMsgPanel()
Clear all messages from the message panel.
void SetMsgPanel(const std::vector< MSG_PANEL_ITEM > &aList)
Clear the message panel and populates it with the contents of aList.
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...
A base class for most all the KiCad significant classes used in schematics and boards.
virtual void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList)
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
virtual const wxString & GetText() const
Return the string associated with the text object.
static TOOL_ACTION runERC
static TOOL_ACTION showDatasheet
Inspection and Editing.
static TOOL_ACTION checkSymbol
static TOOL_ACTION runSimulation
static SELECTION_CONDITION SingleSymbol
static SELECTION_CONDITION SingleNonExcludedMarker
static const TOOL_EVENT ClearedEvent
static const TOOL_EVENT SelectedEvent
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
static const TOOL_EVENT PointSelectedEvent
static const TOOL_EVENT UnselectedEvent
void AddHTML_Text(const wxString &message)
Add HTML text (without any change) to message list.
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
virtual KIWAY_PLAYER * Player(FRAME_T aFrameType, bool doCreate=true, wxTopLevelWindow *aParent=nullptr)
Return the KIWAY_PLAYER* given a FRAME_T.
wxWindow * GetBlockingDialog()
Gets the window pointer to the blocking dialog (to send it signals)
Define a library symbol object.
LIB_FIELD & GetDatasheetField()
Return reference to the datasheet field.
void SetExcluded(bool aExcluded)
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
KIGFX::SCH_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
Schematic editor (Eeschema) main window.
wxString GetShownText(int aDepth=0, bool aAllowExtraText=true) const override
Return the string actually shown after processing of the base text.
SCH_FIELD * GetField(MANDATORY_FIELD_T aFieldType)
Return a mandatory field in this symbol.
static bool Idle(const SELECTION &aSelection)
Test if there no items selected or being edited.
bool Empty() const
Checks if there is anything selected.
Implementing SIM_PLOT_FRAME_BASE.
The symbol library editor main window.
Symbol library viewer main window.
void DisplayInfoMessage(wxWindow *aParent, const wxString &aMessage, const wxString &aExtraInfo)
Display an informational message box with aMessage.
This file is part of the common library.
bool GetAssociatedDocument(wxWindow *aParent, const wxString &aDocName, PROJECT *aProject, SEARCH_STACK *aPaths)
Open a document (file) with the suitable browser.
This file is part of the common library.
@ FRAME_SCH_SYMBOL_EDITOR
@ DATASHEET_FIELD
name of datasheet
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".