33 #ifndef __INCLUDE__GESTFICH_H__ 34 #define __INCLUDE__GESTFICH_H__ 1 36 #include <wx/filename.h> 37 #include <wx/process.h> 43 #define UNIX_STRING_DIR_SEP wxT( "/" ) 44 #define WIN_STRING_DIR_SEP wxT( "\\" ) 56 bool OpenPDF(
const wxString& file );
57 void OpenFile(
const wxString& file );
67 void KiCopyFile(
const wxString& aSrcPath,
const wxString& aDestPath, wxString& aErrors );
88 const wxString& aPath,
89 const wxString& aFileName,
90 const wxString& aExtension,
91 const wxString& aWildcard,
94 const bool aKeepWorkingDirectory,
95 const wxPoint& aPosition = wxDefaultPosition,
96 wxString* aMruPath =
nullptr );
102 int ExecuteFile( wxWindow* frame,
const wxString& ExecFile,
103 const wxString& param = wxEmptyString, wxProcess* callback =
nullptr );
134 extern wxString
QuoteFullPath( wxFileName& fn, wxPathFormat format = wxPATH_NATIVE );
int ExecuteFile(wxWindow *frame, const wxString &ExecFile, const wxString ¶m=wxEmptyString, wxProcess *callback=nullptr)
Call the executable file ExecFile with the command line parameters param.
wxString FindKicadFile(const wxString &shortname)
Search the executable file shortname in KiCad binary path and return full file name if found or short...
bool OpenPDF(const wxString &file)
Run the PDF viewer and display a PDF file.
void AddDelimiterString(wxString &string)
Add un " to the start and the end of string (if not already done).
void OpenFile(const wxString &file)
bool CanPrintFile(const wxString &file)
void PrintFile(const wxString &file)
wxString QuoteFullPath(wxFileName &fn, wxPathFormat format=wxPATH_NATIVE)
Quote return value of wxFileName::GetFullPath().
void KiCopyFile(const wxString &aSrcPath, const wxString &aDestPath, wxString &aErrors)
wxString EDA_FILE_SELECTOR(const wxString &aTitle, const wxString &aPath, const wxString &aFileName, const wxString &aExtension, const wxString &aWildcard, wxWindow *aParent, int aStyle, const bool aKeepWorkingDirectory, const wxPoint &aPosition=wxDefaultPosition, wxString *aMruPath=nullptr)
A helper function that wraps a call to wxFileSelector.