32#ifndef INCLUDE__COMMON_H_
33#define INCLUDE__COMMON_H_
38#include <wx/fileconf.h>
40#include <wx/process.h>
70 const wxString& aBaseFilename,
90 const std::function<
bool( wxString* )>* aResolver );
101long long TimestampDir(
const wxString& aDirPath,
const wxString& aFilespec );
Container for project specific data.
A pure virtual class used to derive REPORTER objects from.
Look for files in a number of paths.
const wxString ExpandEnvVarSubstitutions(const wxString &aString, const PROJECT *aProject)
Replace any environment variable & text variable references with their values.
wxString EnsureFileExtension(const wxString &aFilename, const wxString &aExtension)
It's annoying to throw up nag dialogs when the extension isn't right.
bool WarnUserIfOperatingSystemUnsupported()
Checks if the operating system is explicitly unsupported and displays a disclaimer message box.
wxString SearchHelpFileFullPath(const wxString &aBaseName)
Return the help file's full path.
bool EnsureFileDirectoryExists(wxFileName *aTargetFullFileName, const wxString &aBaseFilename, REPORTER *aReporter=nullptr)
Make aTargetFullFileName absolute and create the path of this file if it doesn't yet exist.
const wxString ResolveUriByEnvVars(const wxString &aUri, PROJECT *aProject)
Replace any environment and/or text variables in file-path uris (leaving network-path URIs alone).
wxString ExpandTextVars(const wxString &aSource, const std::function< bool(wxString *)> *aResolver)
Expand '${var-name}' templates in text.
long long TimestampDir(const wxString &aDirPath, const wxString &aFilespec)
A copy of ConvertFileTimeToWx() because wxWidgets left it as a static function private to src/common/...