29#include <wx/html/htmlwin.h>
30#include <wx/statbmp.h>
43#include "../images/AudacityLogoWithName.xpm"
52# include "../images/WhatsNewBtn.jpeg.h"
57 : mMemoryFSHandler(
std::make_unique<wxMemoryFSHandler>())
59 wxFileSystem::AddHandler(mMemoryFSHandler.get());
61 wxMemoryFSHandler::AddFile(
62 "whats_new_btn.jpeg", bin2c_whats_new_btn_jpeg,
63 sizeof(bin2c_whats_new_btn_jpeg));
68 wxMemoryFSHandler::RemoveFile(
"whats_new_btn.jpeg");
69 wxFileSystem::RemoveHandler(mMemoryFSHandler.get());
73 std::unique_ptr<wxMemoryFSHandler> mMemoryFSHandler;
105 wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
114 GetPosition( &x, &y );
120 if ( event.ShiftDown() && event.ControlDown() )
121 wxLaunchDefaultBrowser(
"https://www.audacityteam.org");
127 gPrefs->Read(
wxT(
"/GUI/ShowSplashScreen"), &bShow,
true );
128 S.StartVerticalLay(1);
131 m_pLogo = std::make_unique<wxBitmap>((
const char **) AudacityLogoWithName_xpm);
137 const float fScale=0.5f;
140 RescaledImage.GetRed(1,1),
141 RescaledImage.GetGreen(1,1),
142 RescaledImage.GetBlue(1,1));
143 this->SetBackgroundColour(MainColour);
147 wxBitmap RescaledBitmap( RescaledImage );
148 wxStaticBitmap *
const icon =
149 safenew wxStaticBitmap(
S.GetParent(), -1,
163 wxHW_SCROLLBAR_AUTO | wxSUNKEN_BORDER );
166 .Position( wxEXPAND )
168 S.Prop(0).StartMultiColumn(2, wxEXPAND);
169 S.SetStretchyCol( 1 );
172 S.Id(
DontShowID).AddCheckBox(
XXO(
"Don't show this again at start up"), !bShow );
177 .AddButton(
XXO(
"OK"), wxALIGN_RIGHT| wxALL,
true);
188 bool bShow = !Evt.IsChecked();
189 gPrefs->Write(
wxT(
"/GUI/ShowSplashScreen"), bShow );
#define LOGOWITHNAME_WIDTH
#define LOGOWITHNAME_HEIGHT
EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES
XXO("&Cut/Copy/Paste Toolbar")
wxString HelpText(const wxString &Key)
AUDACITY_DLL_API wxFrame & GetProjectFrame(AudacityProject &project)
Get the top-level window associated with the project (as a wxFrame only, when you do not need to use ...
accessors for certain important windows associated with each project
constexpr int HTMLWindowHeight
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
virtual bool Flush(bool bCurrentOnly=false) wxOVERRIDE
An HtmlWindow that handles linked clicked - usually the link will go to our own local copy of the man...
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
The SplashDialog shows help information for Audacity when Audacity starts up.
void Populate(ShuttleGui &S)
SplashDialog(wxWindow *parent)
void OnOK(wxCommandEvent &event)
static void Show2(wxWindow *pParent)
void OnDontShow(wxCommandEvent &Evt)
void OnChar(wxMouseEvent &event)
static SplashDialog * pSelf
std::unique_ptr< wxBitmap > m_pLogo