KiCad PCB EDA Suite
|
#include <pgm_base.h>
#include <common.h>
#include <confirm.h>
#include <embedded_files.h>
#include <gestfich.h>
#include <settings/common_settings.h>
#include <wx/filedlg.h>
#include <wx/filename.h>
#include <wx/log.h>
#include <wx/mimetype.h>
#include <wx/uri.h>
Go to the source code of this file.
Functions | |
bool | GetAssociatedDocument (wxWindow *aParent, const wxString &aDocName, PROJECT *aProject, SEARCH_STACK *aPaths, EMBEDDED_FILES *aFiles) |
Open a document (file) with the suitable browser. | |
Variables | |
static wxMimeTypesManager * | mimeDatabase |
static const wxFileTypeInfo | EDAfallbacks [] |
bool GetAssociatedDocument | ( | wxWindow * | aParent, |
const wxString & | aDocName, | ||
PROJECT * | aProject, | ||
SEARCH_STACK * | aPaths = nullptr , |
||
EMBEDDED_FILES * | aFiles = nullptr |
||
) |
Open a document (file) with the suitable browser.
Environmental variables are substituted before the document name is resolved for either browser or file. If aDocName has an associated URI handler on the system, the default handler will be launched.
aParent | main frame. |
aDocName | filename of file to open (Full filename or short filename). |
aPaths | Additional paths to search for local disk datasheet files |
Definition at line 62 of file eda_doc.cpp.
References _, DisplayError(), EDAfallbacks, EMBEDDED_FILES::GetTemporaryFileName(), FILEEXT::KiCadUriPrefix, mimeDatabase, OpenPDF(), ResolveUriByEnvVars(), UNIX_STRING_DIR_SEP, and WIN_STRING_DIR_SEP.
Referenced by FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), FIELDS_GRID_TRICKS::doPopupSelection(), SCH_NAVIGATE_TOOL::HypertextCommand(), TEXT_BUTTON_URL::OnButtonClick(), LIB_TREE::onDetailsLink(), EE_INSPECTION_TOOL::ShowDatasheet(), FOOTPRINT_EDITOR_CONTROL::ShowDatasheet(), and COMMON_CONTROL::ShowHelp().
|
static |
Definition at line 41 of file eda_doc.cpp.
Referenced by GetAssociatedDocument().
|
static |
Definition at line 40 of file eda_doc.cpp.
Referenced by GetAssociatedDocument().