12DIALOG_UPDATE_NOTICE_BASE::DIALOG_UPDATE_NOTICE_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxFlexGridSizer* fgSizer4;
20 fgSizer4 =
new wxFlexGridSizer( 0, 2, 10, 0 );
21 fgSizer4->SetFlexibleDirection( wxBOTH );
22 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
24 m_icon =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
25 fgSizer4->Add(
m_icon, 0, wxALL|wxALIGN_CENTER_VERTICAL, 10 );
28 bSizer4 =
new wxBoxSizer( wxVERTICAL );
30 m_messageLine1 =
new wxStaticText(
this, wxID_ANY,
_(
"A new version of KiCad is available!"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_messageLine1->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
36 m_messageLine2 =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41 fgSizer4->Add( bSizer4, 1, wxEXPAND|wxRIGHT, 5 );
44 fgSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
47 bSizerMain->Add( fgSizer4, 1, wxEXPAND|wxALL, 5 );
49 wxBoxSizer* bButtonSizer;
50 bButtonSizer =
new wxBoxSizer( wxHORIZONTAL );
52 m_skipBtn =
new wxButton(
this, wxID_ANY,
_(
"&Skip this version"), wxDefaultPosition, wxDefaultSize, 0 );
53 m_skipBtn->SetToolTip(
_(
"Ignores the update notice for the announced new version. Additional update notes will be displayed for newer versions.") );
55 bButtonSizer->Add(
m_skipBtn, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
58 bButtonSizer->Add( 0, 0, 1, wxEXPAND, 5 );
60 m_btnRemind =
new wxButton(
this, wxID_ANY,
_(
"&Remind me later"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_btnRemind->SetToolTip(
_(
"Close this update notice. The update notice will be shown again when you relaunch KiCad.") );
63 bButtonSizer->Add(
m_btnRemind, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
65 m_btnDetailsPage =
new wxButton(
this, wxID_ANY,
_(
"&View Details"), wxDefaultPosition, wxDefaultSize, 0 );
66 m_btnDetailsPage->SetToolTip(
_(
"Launch a web browser to the release announcements page.") );
68 bButtonSizer->Add(
m_btnDetailsPage, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 5 );
70 m_btnDownloadPage =
new wxButton(
this, wxID_ANY,
_(
"Open &Downloads Page"), wxDefaultPosition, wxDefaultSize, 0 );
73 bButtonSizer->Add(
m_btnDownloadPage, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 5 );
76 bSizerMain->Add( bButtonSizer, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
79 this->SetSizer( bSizerMain );
81 bSizerMain->Fit(
this );
83 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxButton * m_btnDetailsPage
virtual void OnBtnRemindMeClicked(wxCommandEvent &event)
~DIALOG_UPDATE_NOTICE_BASE()
virtual void OnSkipThisVersionClicked(wxCommandEvent &event)
wxButton * m_btnDownloadPage
wxStaticText * m_messageLine1
DIALOG_UPDATE_NOTICE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Update Available"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnBtnDownloadsPageClicked(wxCommandEvent &event)
virtual void OnBtnDetailsPageClicked(wxCommandEvent &event)
wxStaticText * m_messageLine2