42 #define KEY_ANNOTATE_SORT_OPTION wxT( "AnnotateSortOption" ) 43 #define KEY_ANNOTATE_ALGO_OPTION wxT( "AnnotateAlgoOption" ) 44 #define KEY_ANNOTATE_MESSAGES_FILTER wxT( "AnnotateFilterMsg" ) 47 #define DLG_WINDOW_NAME "DialogAnnotateWindowName" 70 void OnClose( wxCloseEvent& event )
override;
103 if( !message.IsEmpty() )
210 message += _(
"Clear and annotate all of the symbols on the entire schematic?" );
212 message += _(
"Clear and annotate all of the symbols on the current sheet?" );
214 message += _(
"\n\nThis operation will change the current annotation and cannot be undone." );
216 KIDIALOG dlg(
this, message, _(
"Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
217 dlg.SetOKLabel( _(
"Clear and Annotate" ) );
245 event.SetId( wxID_OK );
256 message = _(
"Clear the existing annotation for the entire schematic?" );
258 message = _(
"Clear the existing annotation for the current sheet?" );
260 message += _(
"\n\nThis operation will clear the existing annotation and cannot be undone." );
262 KIDIALOG dlg(
this, message, _(
"Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
263 dlg.SetOKLabel( _(
"Clear Annotation" ) );
338 return dlg.ShowModal();
void SetVisibleSeverities(int aSeverities)
Set the visible severity filter.
void SetLazyUpdate(bool aLazyUpdate)
Sets the lasy update.
virtual bool HasMessage() const =0
Function HasMessage Returns true if the reporter client is non-empty.
void DoNotShowCheckbox(wxString file, int line)
Shows the 'do not show again' checkbox
Helper class to create more flexible dialogs, including 'do not show again' checkbox handling.
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
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)
Forces updating the HTML page, after the report is built in lazy mode If aSort = true,...
wxConfigBase * KifaceSettings() const
void FinishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
#define KEY_ANNOTATE_SORT_OPTION
wxRadioButton * m_rbSheetX1000
Schematic editor (Eeschema) main window.
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...
void InitValues()
Initialises member variables.
SCH_EDIT_FRAME * m_Parent
int ValueFromString(EDA_UNITS_T aUnits, const wxString &aTextValue, bool aUseMils)
Function ValueFromString converts aTextValue in aUnits to internal units used by the application.
Class REPORTER is a pure virtual class used to derive REPORTER objects from.
KIFACE_I & Kiface()
Global KIFACE_I "get" accessor.
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)
void DeleteAnnotation(bool aCurrentSheetOnly)
Clear the current component annotation.
wxRadioButton * m_rbSortBy_Y_Position
REPORTER & Reporter()
returns the reporter object that reports to this panel
SCH_DRAW_PANEL * GetCanvas() const override
WX_HTML_REPORT_PANEL * m_MessageWindow
ANNOTATE_OPTION_T
Schematic annotation type options.
void OnClearAnnotationCmpClick(wxCommandEvent &event) override
bool Show(bool show) override
wxRadioButton * m_rbFirstFree
wxStaticText * m_userMessage
void OnAnnotate(wxCommandEvent &event)
wxRadioButton * m_rbSheetX100
int GetAnnotateAlgo()
Function GetAnnotateAlgo.
int ModalAnnotate(const wxString &aMessage)
Run a modal version of the Annotate dialog for a specific purpose.
void Clear()
clears the report panel
void OnClose(wxCloseEvent &event) override
int GetVisibleSeverities()
wxButton * m_sdbSizer1Cancel
wxTextCtrl * m_textNumberAfter
wxStaticBitmap * annotate_down_right_bitmap
#define KEY_ANNOTATE_ALGO_OPTION
Class DIALOG_ANNOTATE: a dialog to set/clear reference designators, of a schematic hierarchy,...
void MsgPanelSetMinSize(const wxSize &aMinSize)
Set the min size of the area which displays html messages:
int GetSortOrder()
Function GetSortOrder.
wxStdDialogButtonSizer * m_sdbSizer1
void SetLabel(const wxString &aLabel) override
sets the frame label
#define KEY_ANNOTATE_MESSAGES_FILTER