36 #define DLG_WINDOW_NAME "DialogAnnotateWindowName" 57 void OnClose( wxCloseEvent& event )
override;
90 if( !message.IsEmpty() )
119 auto cfg = static_cast<EESCHEMA_SETTINGS*>(
Kiface().KifaceSettings() );
203 event.SetId( wxID_OK );
211 bool appendUndo =
false;
289 return dlg.ShowModal();
void SetVisibleSeverities(int aSeverities)
void OnOptionChanged(wxCommandEvent &event) override
void ShowMessage(const wxString &aMessage, int aFlags=wxICON_INFORMATION) override
Show the info bar with the provided message and icon.
void SetLazyUpdate(bool aLazyUpdate)
Forces updating the HTML page, after the report is built in lazy mode If aSort = true,...
virtual bool HasMessage() const =0
Returns true if the reporter client is non-empty.
This file is part of the common library.
wxRadioButton * m_rbSortBy_X_Position
ANNOTATE_ORDER_T
Schematic annotation order options.
void OnCloseClick(wxCommandEvent &event) override
const BITMAP_OPAQUE annotate_right_down_xpm[1]
Class DIALOG_ANNOTATE_BASE.
void OnApplyClick(wxCommandEvent &event) override
void AnnotateComponents(bool aAnnotateSchematic, ANNOTATE_ORDER_T aSortOption, ANNOTATE_OPTION_T aAlgoOption, int aStartNumber, bool aResetAnnotation, bool aRepairTimestamps, bool aLockUnits, REPORTER &aReporter)
Annotate the components in the schematic that are not currently annotated.
void Flush(bool aSort=false)
Set the visible severity filter.
PANEL_ANNOTATE m_AnnotatePanel
wxRadioButton * m_rbSheetX1000
Schematic editor (Eeschema) main window.
void InitValues()
Initialises member variables.
SCH_EDIT_FRAME * m_Parent
A pure virtual class used to derive REPORTER objects from.
void DeleteAnnotation(bool aCurrentSheetOnly, bool *appendUndo)
Clear the current component annotation.
const BITMAP_OPAQUE annotate_down_right_xpm[1]
wxBitmap KiBitmap(BITMAP_DEF aBitmap)
Construct a wxBitmap from a memory record, held in a BITMAP_DEF.
wxStaticBitmap * annotate_right_down_bitmap
DIALOG_ANNOTATE(SCH_EDIT_FRAME *parent, const wxString &message)
long long int ValueFromString(EDA_UNITS aUnits, const wxString &aTextValue, EDA_DATA_TYPE aType)
Function ValueFromString converts aTextValue in aUnits to internal units used by the application.
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
wxRadioButton * m_rbSortBy_Y_Position
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
WX_HTML_REPORT_PANEL * m_MessageWindow
ANNOTATE_OPTION_T
Schematic annotation type options.
void RemoveAllButtons()
Remove all the buttons that have been added by the user.
int GetVisibleSeverities() const
bool Show(bool show) override
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
wxRadioButton * m_rbFirstFree
void OnAnnotate(wxCommandEvent &event)
wxRadioButton * m_rbSheetX100
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
int GetAnnotateAlgo()
Function GetAnnotateAlgo.
int ModalAnnotate(const wxString &aMessage)
Run a modal version of the Annotate dialog for a specific purpose.
void Clear()
return the number of messages matching the given severity mask.
void OnClose(wxCloseEvent &event) override
wxButton * m_sdbSizer1Cancel
wxTextCtrl * m_textNumberAfter
wxStaticBitmap * annotate_down_right_bitmap
void OnClearAnnotationClick(wxCommandEvent &event) override
DIALOG_ANNOTATE: a dialog to set/clear reference designators, of a schematic hierarchy,...
void MsgPanelSetMinSize(const wxSize &aMinSize)
returns the reporter object that reports to this panel
void SetFileName(const wxString &aReportFileName)
int GetSortOrder()
Function GetSortOrder.
wxStdDialogButtonSizer * m_sdbSizer1
void SetLabel(const wxString &aLabel) override
Sets the lasy update.