28#include <wx/filename.h>
29#include <wx/process.h>
35#define UNIX_STRING_DIR_SEP wxT( "/" )
36#define WIN_STRING_DIR_SEP wxT( "\\" )
48bool OpenPDF(
const wxString& file );
49void OpenFile(
const wxString& file );
56void KiCopyFile(
const wxString& aSrcPath,
const wxString& aDestPath, wxString& aErrors );
61int ExecuteFile(
const wxString& aEditorName,
const wxString& aFileName = wxEmptyString,
62 wxProcess* aCallback =
nullptr );
93extern wxString
QuoteFullPath( wxFileName& fn, wxPathFormat format = wxPATH_NATIVE );
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 KiCopyFile(const wxString &aSrcPath, const wxString &aDestPath, wxString &aErrors)
void OpenFile(const wxString &file)
void QuoteString(wxString &string)
Add un " to the start and the end of string (if not already done).
wxString QuoteFullPath(wxFileName &fn, wxPathFormat format=wxPATH_NATIVE)
Quote return value of wxFileName::GetFullPath().
int ExecuteFile(const wxString &aEditorName, const wxString &aFileName=wxEmptyString, wxProcess *aCallback=nullptr)
Call the executable file aEditorName with the parameter aFileName.