mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-26 15:20:21 +01:00
Change some magic numbers whose original use was no longer, and get rid of some no-longer-correct comments, for clarity.
This commit is contained in:
@@ -180,6 +180,8 @@ AboutDialog::AboutDialog(wxWindow * parent)
|
||||
this->Centre();
|
||||
}
|
||||
|
||||
#define ABOUT_DIALOG_WIDTH 506
|
||||
|
||||
void AboutDialog::PopulateAudacityPage( ShuttleGui & S )
|
||||
{
|
||||
wxString versionStr = AUDACITY_VERSION_STRING;
|
||||
@@ -297,13 +299,14 @@ void AboutDialog::PopulateAudacityPage( ShuttleGui & S )
|
||||
//vvv theTheme.Bitmap(bmpAudacityLogo), wxPoint(93, 10), wxSize(215, 190));
|
||||
//vvv theTheme.Bitmap(bmpAudacityLogoWithName),
|
||||
RescaledBitmap,
|
||||
wxDefaultPosition, wxSize(int(LOGOWITHNAME_WIDTH*fScale), int(LOGOWITHNAME_HEIGHT*fScale)));
|
||||
wxDefaultPosition,
|
||||
wxSize(int(LOGOWITHNAME_WIDTH*fScale), int(LOGOWITHNAME_HEIGHT*fScale)));
|
||||
delete logo;
|
||||
S.Prop(0).AddWindow( icon );
|
||||
|
||||
HtmlWindow *html = new LinkingHtmlWindow(S.GetParent(), -1,
|
||||
wxDefaultPosition,
|
||||
wxSize(LOGOWITHNAME_WIDTH, 359), // wxSize(480, 240),
|
||||
wxSize(ABOUT_DIALOG_WIDTH, 359),
|
||||
wxHW_SCROLLBAR_AUTO | wxSUNKEN_BORDER);
|
||||
html->SetFocus();
|
||||
html->SetPage(creditStr);
|
||||
@@ -325,7 +328,7 @@ void AboutDialog::PopulateInformationPage( ShuttleGui & S )
|
||||
S.StartNotebookPage( _("Build Information") ); // start the tab
|
||||
S.StartVerticalLay(2); // create the window
|
||||
HtmlWindow *html = new HtmlWindow(S.GetParent(), -1, wxDefaultPosition,
|
||||
wxSize(LOGOWITHNAME_WIDTH, 264),
|
||||
wxSize(ABOUT_DIALOG_WIDTH, 264),
|
||||
wxHW_SCROLLBAR_AUTO | wxSUNKEN_BORDER);
|
||||
// create a html pane in it to put the content in.
|
||||
wxString enabled = _("Enabled");
|
||||
@@ -523,7 +526,7 @@ void AboutDialog::PopulateLicensePage( ShuttleGui & S )
|
||||
S.StartVerticalLay(1);
|
||||
HtmlWindow *html = new HtmlWindow(S.GetParent(), -1,
|
||||
wxDefaultPosition,
|
||||
wxSize(LOGOWITHNAME_WIDTH, 264), // wxSize(480, 240),
|
||||
wxSize(ABOUT_DIALOG_WIDTH, 264),
|
||||
wxHW_SCROLLBAR_AUTO | wxSUNKEN_BORDER);
|
||||
|
||||
// I tried using <pre> here to get a monospaced font,
|
||||
|
||||
@@ -204,20 +204,8 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
|
||||
#define LOGOWITHNAME_WIDTH 506
|
||||
#define LOGOWITHNAME_HEIGHT 200
|
||||
//vvv For now, do the new image the old-fashioned way, not via Theme.
|
||||
// DEFINE_IMAGE(bmpAudacityLogoWithName, wxImage(LOGOWITHNAME_WIDTH, LOGOWITHNAME_HEIGHT), wxT("AudacityLogoWithName"));
|
||||
|
||||
// AWD: no sense in statically building the XPM into every file that includes
|
||||
// this one; the few that need it should include it themselves.
|
||||
//#ifndef HAVE_AUDACITYLOGOWITHNAME
|
||||
// #define HAVE_AUDACITYLOGOWITHNAME
|
||||
// #include "../images/AudacityLogoWithName.xpm"
|
||||
//#ifdef __WXGTK__
|
||||
// #include "../images/AudacityLogoAlpha.xpm"
|
||||
//#endif
|
||||
//#endif
|
||||
|
||||
DEFINE_IMAGE( bmpAudacityLogo, wxImage( 215, 190 ), wxT("AudacityLogo")); //vvv
|
||||
DEFINE_IMAGE( bmpAudacityLogo, wxImage( 215, 190 ), wxT("AudacityLogo"));
|
||||
DEFINE_IMAGE( bmpAudacityLogo48x48, wxImage( 48, 48 ), wxT("AudacityLogo48x48"));
|
||||
|
||||
DEFINE_IMAGE( bmpLinkSelect, wxImage(27, 27), wxT("LinkSelect"));
|
||||
|
||||
Reference in New Issue
Block a user