mirror of https://github.com/odrling/Aegisub
Added help button to dummy video dialog
Originally committed to SVN as r1705.
This commit is contained in:
parent
2127d100ac
commit
cd3dbd87f3
|
@ -39,6 +39,7 @@
|
|||
#include <wx/sizer.h>
|
||||
#include <wx/log.h>
|
||||
#include "options.h"
|
||||
#include "help_button.h"
|
||||
|
||||
|
||||
struct ResolutionShortcut {
|
||||
|
@ -152,9 +153,19 @@ DialogDummyVideo::DialogDummyVideo(wxWindow *parent)
|
|||
fg->Add(length_display, 0, wxEXPAND|wxALIGN_CENTRE_VERTICAL|wxALIGN_LEFT);
|
||||
wxBoxSizer *main_sizer = new wxBoxSizer(wxVERTICAL);
|
||||
main_sizer->Add(fg, 1, wxALL|wxEXPAND, 5);
|
||||
main_sizer->Add(CreateSeparatedButtonSizer(wxOK|wxCANCEL), 0, wxALL|wxEXPAND, 5);
|
||||
ok_button = static_cast<wxButton*>(FindWindow(wxID_OK));
|
||||
cancel_button = static_cast<wxButton*>(FindWindow(wxID_CANCEL));
|
||||
|
||||
ok_button = new wxButton(this,wxID_OK);
|
||||
cancel_button = new wxButton(this,wxID_CANCEL);
|
||||
wxStdDialogButtonSizer *btnSizer = new wxStdDialogButtonSizer();
|
||||
btnSizer->AddButton(ok_button);
|
||||
btnSizer->AddButton(cancel_button);
|
||||
btnSizer->AddButton(new HelpButton(this,_T("Dummy Video")));
|
||||
btnSizer->Realize();
|
||||
main_sizer->Add(new wxStaticLine(this,wxHORIZONTAL),0,wxALL|wxEXPAND,5);
|
||||
main_sizer->Add(btnSizer,0,wxLEFT|wxRIGHT|wxBOTTOM|wxEXPAND,5);
|
||||
// main_sizer->Add(CreateSeparatedButtonSizer(wxOK|wxCANCEL), 0, wxALL|wxEXPAND, 5);
|
||||
// ok_button = static_cast<wxButton*>(FindWindow(wxID_OK));
|
||||
// cancel_button = static_cast<wxButton*>(FindWindow(wxID_CANCEL));
|
||||
|
||||
// Initialise controls
|
||||
int lastwidth, lastheight, lastres = 0;
|
||||
|
|
|
@ -96,6 +96,7 @@ void HelpButton::InitStatic() {
|
|||
pages = new std::map<wxString,wxString>;
|
||||
std::map<wxString,wxString> &page = *pages;
|
||||
page[_T("Colour Picker")] = _T("Colour_Picker");
|
||||
page[_T("Dummy Video")] = _T("Video#Dummy_video");
|
||||
page[_T("Fonts Collector")] = _T("Fonts_Collector");
|
||||
page[_T("Kanji Timer")] = _T("Kanji_Timer");
|
||||
page[_T("Main")] = _T("");
|
||||
|
|
Loading…
Reference in New Issue