KiCad PCB EDA Suite
|
#include <pgm_base.h>
#include <kiway.h>
#include <design_block.h>
#include <design_block_lib_table.h>
#include <design_block_pane.h>
#include <sch_edit_frame.h>
#include <wx/choicdlg.h>
#include <wx/msgdlg.h>
#include <wx/textdlg.h>
#include <wildcards_and_files_ext.h>
#include <paths.h>
#include <env_paths.h>
#include <common.h>
#include <kidialog.h>
#include <confirm.h>
#include <tool/tool_manager.h>
#include <ee_selection_tool.h>
#include <dialogs/dialog_design_block_properties.h>
#include <nlohmann/json.hpp>
Go to the source code of this file.
Functions | |
bool | checkOverwrite (SCH_EDIT_FRAME *aFrame, wxString &libname, wxString &newName) |
DESIGN_BLOCK * | SchGetDesignBlock (const LIB_ID &aLibId, DESIGN_BLOCK_LIB_TABLE *aLibTable, wxWindow *aParent, bool aShowErrorMsg) |
bool checkOverwrite | ( | SCH_EDIT_FRAME * | aFrame, |
wxString & | libname, | ||
wxString & | newName | ||
) |
Definition at line 45 of file design_block_utils.cpp.
References _, and OKOrCancelDialog().
Referenced by SCH_EDIT_FRAME::EditDesignBlockProperties(), SCH_EDIT_FRAME::SaveSelectionAsDesignBlock(), and SCH_EDIT_FRAME::SaveSheetAsDesignBlock().
DESIGN_BLOCK * SchGetDesignBlock | ( | const LIB_ID & | aLibId, |
DESIGN_BLOCK_LIB_TABLE * | aLibTable, | ||
wxWindow * | aParent, | ||
bool | aShowErrorMsg | ||
) |
Definition at line 600 of file design_block_utils.cpp.
References _, DESIGN_BLOCK_LIB_TABLE::DesignBlockLoadWithOptionalNickname(), DisplayErrorMessage(), LIB_ID::GetLibItemName(), LIB_ID::GetLibNickname(), IO_ERROR::What(), and UTF8::wx_str().
Referenced by SCH_EDIT_FRAME::GetDesignBlock().