KiCad PCB EDA Suite
invoke_sch_dialog.h File Reference
#include <set>
#include <vector>

Go to the source code of this file.

Macros

#define NET_PLUGIN_CHANGE   1
 Function InvokeDialogNetList creates and shows NETLIST_DIALOG and returns whatever NETLIST_DIALOG::ShowModal() returns. More...
 

Functions

int InvokeDialogRescueEach (SCH_EDIT_FRAME *aCaller, RESCUER &aRescuer, bool aAskShowAgain)
 Function InvokeDialogRescueEach This dialog asks the user which rescuable, cached parts he wants to rescue. More...
 
int InvokeDialogAnnotate (SCH_EDIT_FRAME *aCaller, wxString message="")
 Create and show DIALOG_ANNOTATE and return whatever DIALOG_ANNOTATE::ShowModal() returns. More...
 
wxDialog * InvokeDialogERC (SCH_EDIT_FRAME *aCaller)
 Create the modeless DIALOG_ERC and show it, return something to destroy or close it. More...
 
int InvokeDialogPrintUsingPrinter (SCH_EDIT_FRAME *aCaller)
 Create and show DIALOG_PRINT_USING_PRINTER and return whatever DIALOG_PRINT_USING_PRINTER::ShowModal() returns. More...
 
int InvokeDialogCreateBOM (SCH_EDIT_FRAME *aCaller)
 Create and show DIALOG_BOM and return whatever DIALOG_BOM::ShowModal() returns. More...
 
int InvokeDialogNetList (SCH_EDIT_FRAME *aCaller)
 
bool InvokeEeschemaConfig (wxWindow *aParent, wxString *aCallersProjectSpecificLibPaths, wxArrayString *aCallersLibNames)
 

Macro Definition Documentation

#define NET_PLUGIN_CHANGE   1

Function InvokeDialogNetList creates and shows NETLIST_DIALOG and returns whatever NETLIST_DIALOG::ShowModal() returns.

Parameters
int- NET_PLUGIN_CHANGE means user added or deleted a plugin, wxID_OK, or wxID_CANCEL.

Definition at line 90 of file invoke_sch_dialog.h.

Referenced by NETLIST_DIALOG::OnAddPlugin(), SCH_EDIT_FRAME::OnCreateNetlist(), and NETLIST_DIALOG::OnDelPlugin().

Function Documentation

int InvokeDialogAnnotate ( SCH_EDIT_FRAME aCaller,
wxString  message = "" 
)

Create and show DIALOG_ANNOTATE and return whatever DIALOG_ANNOTATE::ShowModal() returns.

Definition at line 316 of file dialog_annotate.cpp.

Referenced by SCH_EDIT_FRAME::OnAnnotate(), and SCH_EDIT_FRAME::prepareForNetlist().

317 {
318  DIALOG_ANNOTATE dlg( aCaller, message );
319 
320  return dlg.ShowModal();
321 }
int InvokeDialogCreateBOM ( SCH_EDIT_FRAME aCaller)

Create and show DIALOG_BOM and return whatever DIALOG_BOM::ShowModal() returns.

Definition at line 223 of file dialog_bom.cpp.

Referenced by SCH_EDIT_FRAME::OnCreateBillOfMaterials().

224 {
225  DIALOG_BOM dlg( aCaller );
226  return dlg.ShowModal();
227 }
wxDialog* InvokeDialogERC ( SCH_EDIT_FRAME aCaller)

Create the modeless DIALOG_ERC and show it, return something to destroy or close it.

The dialog will have ID_DIALOG_ERC from id.h

Definition at line 613 of file dialog_erc.cpp.

References DIALOG_SHIM::Show().

Referenced by SCH_EDIT_FRAME::OnErc().

614 {
615  // This is a modeless dialog, so new it rather than instantiating on stack.
616  DIALOG_ERC* dlg = new DIALOG_ERC( aCaller );
617 
618  dlg->Show( true );
619 
620  return dlg; // wxDialog is information hiding about DIALOG_ERC.
621 }
bool Show(bool show) override
int InvokeDialogNetList ( SCH_EDIT_FRAME aCaller)

Definition at line 859 of file eeschema/dialogs/dialog_netlist.cpp.

Referenced by SCH_EDIT_FRAME::OnCreateNetlist().

860 {
861  NETLIST_DIALOG dlg( aCaller );
862 
863  return dlg.ShowModal();
864 }
int InvokeDialogPrintUsingPrinter ( SCH_EDIT_FRAME aCaller)

Create and show DIALOG_PRINT_USING_PRINTER and return whatever DIALOG_PRINT_USING_PRINTER::ShowModal() returns.

Definition at line 478 of file eeschema/dialogs/dialog_print_using_printer.cpp.

Referenced by SCH_EDIT_FRAME::OnPrint().

479 {
480  DIALOG_PRINT_USING_PRINTER dlg( aCaller );
481 
482  return dlg.ShowModal();
483 }
int InvokeDialogRescueEach ( SCH_EDIT_FRAME aCaller,
RESCUER aRescuer,
bool  aAskShowAgain 
)

Function InvokeDialogRescueEach This dialog asks the user which rescuable, cached parts he wants to rescue.

Any rejects will be pruned from aCandidates.

Parameters
aCaller- the SCH_EDIT_FRAME calling this
aRescuer- the active RESCUER instance
aAskShowAgain- if true, a "Never Show Again" button will be included

Definition at line 308 of file dialog_rescue_each.cpp.

Referenced by RESCUER::InvokeDialog().

309 {
310  DIALOG_RESCUE_EACH dlg( aCaller, aRescuer, aAskShowAgain );
311  return dlg.ShowModal();
312 }
bool InvokeEeschemaConfig ( wxWindow *  aParent,
wxString *  aCallersProjectSpecificLibPaths,
wxArrayString *  aCallersLibNames 
)

Definition at line 481 of file dialog_eeschema_config.cpp.

Referenced by LIB_EDIT_FRAME::InstallConfigFrame(), and SCH_EDIT_FRAME::InstallConfigFrame().

483 {
484  DIALOG_EESCHEMA_CONFIG dlg( aParent,
485  aCallersProjectSpecificLibPaths, aCallersLibNames );
486 
487  int ret = dlg.ShowModal();
488 
489  return wxID_OK == ret;
490 }