KiCad PCB EDA Suite
Loading...
Searching...
No Matches
files.cpp File Reference
#include <string>
#include <vector>
#include <advanced_config.h>
#include <confirm.h>
#include <kidialog.h>
#include <core/arraydim.h>
#include <core/profile.h>
#include <thread_pool.h>
#include <gestfich.h>
#include <local_history.h>
#include <pcb_edit_frame.h>
#include <board_design_settings.h>
#include <board_loader.h>
#include <3d_viewer/eda_3d_viewer_frame.h>
#include <footprint_import_reconciler.h>
#include <footprint_library_adapter.h>
#include <import_proj_properties.h>
#include <import_net_names.h>
#include <kiface_base.h>
#include <macros.h>
#include <trace_helpers.h>
#include <length_delay_calculation/length_delay_calculation.h>
#include <lockfile.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 <footprint.h>
#include <collectors.h>
#include <component_classes/component_class_manager.h>
#include <kiplatform/app.h>
#include <kiplatform/ui.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 <pcb_io/odbpp/odb_export_job.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 <tools/zone_filler_tool.h>
#include <board_commit.h>
#include <reporter.h>
#include <zone_filler.h>
#include <widgets/filedlg_import_non_kicad.h>
#include <widgets/kistatusbar.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.
 

Variables

static const wxChar *const traceAllegroPerf = wxT( "KICAD_ALLEGRO_PERF" )
 

Macro Definition Documentation

◆ USE_INSTRUMENTATION

#define USE_INSTRUMENTATION   0

Definition at line 100 of file pcbnew/files.cpp.

Function Documentation

◆ AskLoadBoardFileName()

bool AskLoadBoardFileName ( PCB_EDIT_FRAME * aParent,
wxString * aFileName,
int aCtl = 0 )

◆ AskSaveBoardFileName()

bool AskSaveBoardFileName ( PCB_EDIT_FRAME * aParent,
wxString * aFileName,
bool * aCreateProject )

Put up a wxFileDialog asking for a BOARD filename to save.

Parameters
aParentis a wxFrame passed to wxFileDialog.
aFileNameon entry is a probable choice, on return is the chosen full filename (includes path).
aCreateProjectwill be filled with the state of the Create Project? checkbox if relevant.
Returns
true if chosen, else false if user aborted.

Definition at line 227 of file pcbnew/files.cpp.

References _, KIPLATFORM::UI::AllowNetworkFileSystems(), 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().

Variable Documentation

◆ traceAllegroPerf