Audacity 3.2.0
|
Class which contains static methods and data needed for implementing help buttons. More...
#include <HelpSystem.h>
Static Public Member Functions | |
static void | ShowInfoDialog (wxWindow *parent, const TranslatableString &dlogTitle, const TranslatableString &shortMsg, const wxString &message, const int xSize, const int ySize) |
Displays cuttable information in a text ctrl, with an OK button. More... | |
static void | ShowHtmlText (wxWindow *pParent, const TranslatableString &Title, const wxString &HtmlText, bool bIsFile=false, bool bModal=false) |
static void | ShowHelp (wxWindow *parent, const FilePath &localFileName, const URLString &remoteURL, bool bModal=false, bool alwaysDefaultBrowser=false) |
static void | ShowHelp (wxWindow *parent, const ManualPageID &PageName, bool bModal=false) |
Static Public Attributes | |
static const wxString | HelpHostname = wxT("manual.audacityteam.org") |
static const wxString | HelpServerHomeDir = wxT("/") |
static const wxString | HelpServerManDir = wxT("/man/") |
static const wxString | LocalHelpManDir = wxT("/man/") |
Class which contains static methods and data needed for implementing help buttons.
This class should be the only place in the codebase where the location of the online copy of the Audacity manual is stored, so that it can be changed if required
Definition at line 39 of file HelpSystem.h.
|
static |
Displays a file in your browser, if it's available locally, OR else links to the internet. Generally using this outside this class is depreciated in favour of the "smarter" overload below, unless there is a good reason for using this form.
parent | Parent window for the dialog |
localFileName | Name and path of the file on the local machine file system to be opened. file.name::anchor syntax is allowed, and therefore file names containing a '#' are not (on any platform). |
remoteURL | use instead of file if nonempty, and user preferences specify remote, or localFileName is invalid |
bModal | Whether the resulting dialogue should be modal or not. Default is modeless dialogue |
alwaysDefaultBrowser | Force use of default web browser. Default allows built in browser for local files. |
Definition at line 231 of file HelpSystem.cpp.
References ChoiceSetting::Default(), Identifier::empty(), audacity::BasicSettings::Flush(), Identifier::GET(), gPrefs, GUIManualLocation, HelpText(), ComponentInterfaceSymbol::Internal(), OpenInDefaultBrowser(), audacity::BasicSettings::Read(), ShowHtmlText(), ChoiceSetting::Write(), wxT(), and XO().
Referenced by anonymous_namespace{FFmpegPrefs.cpp}::AddControls(), FindFFmpegDialog::OnDownload(), FindDialog::OnDownload(), UnwritableLocationErrorDialog::OnError(), ExportFFmpegOptions::OnGetURL(), ContrastDialog::OnGetURL(), FrequencyPlotDialog::OnGetURL(), HistoryDialog::OnGetURL(), anonymous_namespace{ProjectFileManager.cpp}::CompactDialog::OnGetURL(), anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::OnHelp(), PrefsDialog::OnHelp(), ErrorDialog::OnHelp(), ErrorReportDialog::OnHelp(), MultiDialog::OnHelp(), MacroCommandDialog::OnHelp(), ApplyMacroDialog::OnHelp(), EffectNoiseReduction::Dialog::OnHelp(), ExportAudioDialog::OnHelp(), LabelDialog::OnHelp(), AudacityCommandDialog::OnHelp(), TagsEditorDialog::OnHelp(), TimerRecordDialog::OnHelpButtonClick(), LinkingHtmlWindow::OnLinkClicked(), anonymous_namespace{HelpMenus.cpp}::OnManual(), ExportMixerDialog::OnMixerPanelHelp(), anonymous_namespace{HelpMenus.cpp}::OnQuickHelp(), and ShowHelp().
|
static |
Displays a page from the Audacity manual in your browser, if it's available locally, OR else links to the internet.
parent | Parent window for the dialog |
PageName | The name of the manual page to display as it is in development version of the manual (i.e. in MediaWiki), not the converted file name used for offline and released manuals. |
bModal | Whether the resulting dialogue should be modal or not. Default is modeless dialogue |
The string which is appended to the development manual page name in order obtain the file name in the local and release web copies of the manual
Definition at line 306 of file HelpSystem.cpp.
References Identifier::GET(), HelpHostname, HelpServerHomeDir, HelpServerManDir, FileNames::HtmlHelpDir(), LocalHelpManDir, ShowHelp(), and wxT().
|
static |
Displays a NEW window with wxHTML help.
HtmlText | Either the literal HTML code to go into the window, or the name of the file to read said HTML code from (see below). |
bIsFile | If true, treat HtmlText argument as a file name, if false (default), then it is the HTML code to display. |
bModal | Whether the resulting window should be modal or not. Default is modeless dialogue |
Definition at line 119 of file HelpSystem.cpp.
References ThemeBase::Bitmap(), eIsCreating, BrowserDialog::mpHtml, S, safenew, wxDialogWrapper::SetName(), theTheme, wxT(), XO(), and XXO().
Referenced by ErrorDialog::OnHelp(), ErrorReportDialog::OnHelp(), and ShowHelp().
|
static |
Displays cuttable information in a text ctrl, with an OK button.
Mostly we use this so that we have the code for resizability in one place. Other considerations like screen readers are also handled by having the code in one place.
Definition at line 81 of file HelpSystem.cpp.
References eIsCreating, eOkButton, S, and wxDialogWrapper::SetName().
Referenced by ExportAudioDialog::OnExport().
|
static |
Hostname (domain name including subdomain) of the server on which the online help is available
Definition at line 96 of file HelpSystem.h.
Referenced by ShowHelp(), and AudacityFileConfig::Warn().
|
static |
URL path on the help server to the root directory of the manual. index and quick_help are here in the on-line release manual. Must both start and end with '/' characters.
Definition at line 101 of file HelpSystem.h.
Referenced by ShowHelp(), and AudacityFileConfig::Warn().
|
static |
Path to sub-directory where the manual pages are located. index and quick_help are here only in the alpha manual. Must both start and end with '/' characters.
Definition at line 106 of file HelpSystem.h.
Referenced by ShowHelp().
|
static |
Sub-directory for local help pages (but not index.html or quick_help.html) Must both start and end with '/' characters.
Definition at line 111 of file HelpSystem.h.
Referenced by ShowHelp().