17#include <wx/sstream.h>
18#include <wx/txtstrm.h>
32 wxDefaultPosition, wxDefaultSize,
34 mVersionPatch(versionPatch)
38 S.StartVerticalLay (wxEXPAND, 1);
40 S.AddWindow (AddHtmlContent (
S.GetParent()));
42 S.StartHorizontalLay (wxEXPAND, 0);
46 if (configurableNotification)
49 XO(
"Don't show this again at start up"),
53 S.Prop(1).AddSpace(1, 0, 1);
55 S.Id (wxID_NO).AddButton (
XC (
"&Skip",
"update dialog"));
56 S.Id (wxID_YES).AddButton (
XC(
"&Install update",
"update dialog"));
91 wxStringOutputStream o;
92 wxTextOutputStream informationStr (o);
95 <<
wxT(
"<html><body><h3>")
99 <<
XC(
"Changelog",
"update dialog")
102 informationStr <<
wxT(
"<ul>");
105 informationStr <<
wxT(
"<li>");
107 informationStr << logLine;
108 informationStr <<
wxT(
"</li>");
110 informationStr <<
wxT(
"</ul></p>");
112 informationStr <<
wxT(
"<p>");
113 informationStr <<
wxT(
"<a href = \"https://github.com/audacity/audacity/releases\">");
114 informationStr <<
XC(
"Read more on GitHub",
"update dialog");
115 informationStr <<
wxT(
"</a>");
116 informationStr <<
wxT(
"</p>");
118 informationStr <<
wxT(
"</body></html>");
123 wxHW_SCROLLBAR_AUTO | wxSUNKEN_BORDER);
125 html->SetBorders (20);
126 html->SetPage (o.GetString());
128 wxHtmlContainerCell* cell = html->GetInternalRepresentation();
132 const wxSize
size = wxSize (500, cell->GetHeight());
134 html->SetMinSize (
size);
135 html->SetMaxSize (
size);
136 html->SetSize (
size);
EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES
BoolSetting DefaultUpdatesCheckingFlag
Declare a class that handles managing of updates.
An HtmlWindow that handles linked clicked - usually the link will go to our own local copy of the man...
bool Write(const T &value)
Write value to config and return true if successful.
bool Read(T *pVar) const
overload of Read returning a boolean that is true if the value was previously defined */
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
wxString GetString() const
Make string with version by MakeString() from instance values.
A structure that describes patch fields.