| 
    KiCad PCB EDA Suite
    
   | 
 
#include <string>#include <vector>#include <confirm.h>#include <kidialog.h>#include <core/arraydim.h>#include <thread_pool.h>#include <dialog_HTML_reporter_base.h>#include <gestfich.h>#include <local_history.h>#include <pcb_edit_frame.h>#include <board_design_settings.h>#include <3d_viewer/eda_3d_viewer_frame.h>#include <fp_lib_table.h>#include <kiface_base.h>#include <macros.h>#include <trace_helpers.h>#include <length_delay_calculation/length_delay_calculation.h>#include <lockfile.h>#include <wx/snglinst.h>#include <netlist_reader/pcb_netlist.h>#include <pcbnew_id.h>#include <wildcards_and_files_ext.h>#include <tool/tool_manager.h>#include <board.h>#include <kiplatform/app.h>#include <widgets/appearance_controls.h>#include <widgets/wx_infobar.h>#include <widgets/wx_progress_reporters.h>#include <settings/settings_manager.h>#include <paths.h>#include <pgm_base.h>#include <project/project_file.h>#include <project_pcb.h>#include <project/project_local_settings.h>#include <project/net_settings.h>#include <io/common/plugin_common_choose_project.h>#include <pcb_io/pcb_io_mgr.h>#include <pcb_io/cadstar/pcb_io_cadstar_archive.h>#include <pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>#include <dialogs/dialog_export_2581.h>#include <dialogs/dialog_map_layers.h>#include <dialogs/dialog_export_odbpp.h>#include <jobs/job_export_pcb_odb.h>#include <dialogs/dialog_import_choose_project.h>#include <tools/pcb_actions.h>#include <tools/board_editor_control.h>#include "footprint_info_impl.h"#include <board_commit.h>#include <zone_filler.h>#include <widgets/filedlg_import_non_kicad.h>#include <widgets/wx_html_report_box.h>#include <wx_filename.h>#include <kiplatform/io.h>#include <wx/stdpaths.h>#include <wx/ffile.h>#include <wx/filedlg.h>#include <wx/txtstrm.h>#include <wx/wfstream.h>#include <wx/zipstrm.h>#include <wx/dir.h>#include "widgets/filedlg_hook_save_project.h"Go to the source code of this file.
Macros | |
| #define | USE_INSTRUMENTATION 0 | 
Functions | |
| bool | AskLoadBoardFileName (PCB_EDIT_FRAME *aParent, wxString *aFileName, int aCtl=0) | 
| Show a wxFileDialog asking for a BOARD filename to open.   | |
| bool | AskSaveBoardFileName (PCB_EDIT_FRAME *aParent, wxString *aFileName, bool *aCreateProject) | 
| Put up a wxFileDialog asking for a BOARD filename to save.   | |
| #define USE_INSTRUMENTATION 0 | 
Definition at line 93 of file pcbnew/files.cpp.
| bool AskLoadBoardFileName | ( | PCB_EDIT_FRAME * | aParent, | 
| wxString * | aFileName, | ||
| int | aCtl = 0 ) | 
Show a wxFileDialog asking for a BOARD filename to open.
| aParent | is a wxFrame passed to wxFileDialog. | 
| aCtl | is where to put the OpenProjectFiles() control bits. | 
| aFileName | on entry is a probable choice, on return is the chosen filename. | 
| aKicadFilesOnly | true to list KiCad pcb files plugins only, false to list import plugins. | 
Definition at line 105 of file pcbnew/files.cpp.
References _, AddFileExtListToFilter(), EDA_BASE_FRAME::config(), formatWildcardExt(), PATHS::GetDefaultUserProjectsPath(), EDA_BASE_FRAME::GetMruPath(), FILEDLG_IMPORT_NON_KICAD::GetShowIssues(), PCB_IO_MGR::PLUGIN_REGISTRY::Instance(), PCB_IO_MGR::KICAD_SEXP, KICTL_KICAD_ONLY, KICTL_NONKICAD_ONLY, PCB_IO_MGR::LEGACY, IO_BASE::IO_FILE_DESC::m_CanRead, IO_BASE::IO_FILE_DESC::m_FileExtensions, APP_SETTINGS_BASE::m_System, name, path, EDA_BASE_FRAME::SetMruPath(), and APP_SETTINGS_BASE::SYSTEM::show_import_issues.
Referenced by PCB_CONTROL::AppendBoardFromFile(), PCB_EDIT_FRAME::OnFileHistory(), BOARD_EDITOR_CONTROL::Open(), and BOARD_EDITOR_CONTROL::OpenNonKicadBoard().
| bool AskSaveBoardFileName | ( | PCB_EDIT_FRAME * | aParent, | 
| wxString * | aFileName, | ||
| bool * | aCreateProject ) | 
Put up a wxFileDialog asking for a BOARD filename to save.
| aParent | is a wxFrame passed to wxFileDialog. | 
| aFileName | on entry is a probable choice, on return is the chosen full filename (includes path). | 
| aCreateProject | will be filled with the state of the Create Project? checkbox if relevant. | 
Definition at line 217 of file pcbnew/files.cpp.
References _, EnsureFileExtension(), FILEDLG_HOOK_SAVE_PROJECT::GetCreateNewProject(), FILEDLG_HOOK_SAVE_PROJECT::IsAttachedToDialog(), PROJECT::IsNullProject(), FILEEXT::KiCadPcbFileExtension, Kiface(), FILEEXT::PcbFileWildcard(), and KIWAY_HOLDER::Prj().
Referenced by PCB_EDIT_FRAME::SaveBoard().