KiCad PCB EDA Suite
|
This file is part of the common library. More...
Go to the source code of this file.
Functions | |
bool | GetAssociatedDocument (wxWindow *aParent, const wxString &aDocName, PROJECT *aProject, SEARCH_STACK *aPaths=nullptr) |
Open a document (file) with the suitable browser. More... | |
bool GetAssociatedDocument | ( | wxWindow * | aParent, |
const wxString & | aDocName, | ||
PROJECT * | aProject, | ||
SEARCH_STACK * | aPaths = 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 begins with http: or ftp: or www. the default internet browser is 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 74 of file eda_doc.cpp.
References _, DisplayError(), EDAfallbacks, 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(), EE_INSPECTION_TOOL::ShowDatasheet(), and COMMON_CONTROL::ShowHelp().