Audacity  2.2.2
Macros | Functions
AboutDialog.cpp File Reference
#include "Audacity.h"
#include <wx/dialog.h>
#include <wx/html/htmlwin.h>
#include <wx/button.h>
#include <wx/dcclient.h>
#include <wx/sizer.h>
#include <wx/statbmp.h>
#include <wx/intl.h>
#include "AboutDialog.h"
#include "FileNames.h"
#include "Internat.h"
#include "ShuttleGui.h"
#include "widgets/LinkingHtmlWindow.h"
#include "Theme.h"
#include "AllThemeResources.h"
#include "../images/AudacityLogoWithName.xpm"
#include "RevisionIdent.h"

Go to the source code of this file.

Macros

#define REV_TIME   "unknown date and time"
 
#define REV_IDENT   wxT("No revision identifier was provided")
 
#define VER_CHECK_URL   "https://www.audacityteam.org/download/?"
 
#define ABOUT_DIALOG_WIDTH   506
 

Functions

wxString FormatHtmlText (const wxString &Text)
 
const wxString VerCheckArgs ()
 
const wxString VerCheckUrl ()
 
const wxString VerCheckHtml ()
 

Macro Definition Documentation

#define ABOUT_DIALOG_WIDTH   506
#define REV_IDENT   wxT("No revision identifier was provided")

Definition at line 67 of file AboutDialog.cpp.

Referenced by AboutDialog::PopulateInformationPage().

#define REV_TIME   "unknown date and time"

Definition at line 61 of file AboutDialog.cpp.

#define VER_CHECK_URL   "https://www.audacityteam.org/download/?"

Referenced by VerCheckUrl().

Function Documentation

wxString FormatHtmlText ( const wxString &  Text)

Definition at line 318 of file HelpText.cpp.

References LinkExpand(), and WrapText().

Referenced by AboutDialog::PopulateAudacityPage(), AboutDialog::PopulateInformationPage(), and AboutDialog::PopulateLicensePage().

318  {
319 
320  wxString localeStr = wxLocale::GetSystemEncodingName();
321 
322  return
323  wxT("<html><head><META http-equiv=\"Content-Type\" content=\"text/html; charset=") +
324  localeStr +
325  wxT("\"></head>") +
326  WrapText( LinkExpand( Text ))+
327  wxT("</html>");
328 }
static wxString WrapText(const wxString &Text)
Definition: HelpText.cpp:32
static wxString LinkExpand(const wxString &Text)
Definition: HelpText.cpp:85
const wxString VerCheckArgs ( )

Definition at line 73 of file AboutDialog.cpp.

References AUDACITY_VERSION_STRING.

Referenced by VerCheckUrl().

73  {
74  wxString result = wxString("from_ver=") + AUDACITY_VERSION_STRING;
75 #ifdef REV_LONG
76  result += wxString("&CommitId=")+wxString(REV_LONG).Left(6);
77 #endif
78  result += wxString("&Time=") + wxString( __DATE__ ) + wxString( __TIME__ );
79  result.Replace(" ","");
80  return result;
81 }
#define AUDACITY_VERSION_STRING
Definition: Audacity.h:81
const wxString VerCheckHtml ( )

Definition at line 96 of file AboutDialog.cpp.

References _(), and VerCheckUrl().

Referenced by HelpTextBuiltIn(), and AboutDialog::PopulateInformationPage().

96  {
97 
98  wxString result = "<center>[[";
99  result += VerCheckUrl() + "|" + _("Check Online");
100  result += "]]</center>\n";
101  return result;
102 }
const wxString VerCheckUrl()
Definition: AboutDialog.cpp:84
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
const wxString VerCheckUrl ( )

Definition at line 84 of file AboutDialog.cpp.

References VER_CHECK_URL, and VerCheckArgs().

Referenced by AudacityProject::OnCheckForUpdates(), and VerCheckHtml().

84  {
85  //The version we intend to use for live Audacity.
86 #define VER_CHECK_URL "https://www.audacityteam.org/download/?"
87 //For testing of our scriptlet.
88 //#define VER_CHECK_URL "http://www.audacityteam.org/slug/?"
89 //For testing locally
90 //#define VER_CHECK_URL "http://localhost:63342/WorkingDocs/demos/download.html?"
91 
92  return wxString( wxT(VER_CHECK_URL)) +VerCheckArgs();
93 }
#define VER_CHECK_URL
const wxString VerCheckArgs()
Definition: AboutDialog.cpp:73