46 {
47 auto rootSizer = std::make_unique<wxBoxSizer>(wxVERTICAL);
48 auto topSizer = std::make_unique<wxBoxSizer>(wxHORIZONTAL);
51 this,
52 wxID_ANY,
53 wxEmptyString,
54 wxDefaultPosition,
55 wxDefaultSize,
56 wxST_ELLIPSIZE_START | wxST_NO_AUTORESIZE),
57 1, wxEXPAND);
58 topSizer->AddSpacer(5);
59 topSizer->Add(
safenew wxButton(
this, wxID_IGNORE,
_(
"&Skip")), 0);
60
61 auto timerSizer = std::make_unique<wxBoxSizer>(wxHORIZONTAL);
62 timerSizer->Add(
64 this,
65 wxID_ANY,
67 wxDefaultPosition,
68 wxDefaultSize,
69 wxALIGN_RIGHT | wxALIGN_CENTRE_VERTICAL), 1, wxEXPAND);
70 timerSizer->AddSpacer(5);
73 this,
74 wxID_ANY,
75 wxEmptyString,
76 wxDefaultPosition,
77 wxDefaultSize,
78 wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL), 1, wxEXPAND);
79
80 rootSizer->Add(topSizer.release(), 0, wxEXPAND | wxALL, 10);
82 safenew wxGauge(
this, wxID_ANY, 1000),
83 0, wxEXPAND | wxLEFT | wxRIGHT, 10);
84 rootSizer->AddSpacer(10);
85 rootSizer->Add(timerSizer.release(), 0, wxEXPAND);
86#ifdef __WXMAC__
87 rootSizer->Add(CreateButtonSizer(wxCANCEL), 0, wxEXPAND);
88#else
89 rootSizer->Add(CreateButtonSizer(wxCANCEL), 0, wxEXPAND | wxALL, 10);
90#endif
91 SetSizer(rootSizer.release());
92
95
96 SetInitialSize({500, -1});
97 }
void OnIdle(wxIdleEvent &evt)
void OnShow(wxShowEvent &evt)