mirror of https://github.com/odrling/Aegisub
Added standard button sizer to timing processor dialog
Originally committed to SVN as r1333.
This commit is contained in:
parent
56ea22b0ff
commit
c70919ff42
|
@ -136,16 +136,12 @@ DialogTimingProcessor::DialogTimingProcessor(wxWindow *parent,SubtitlesGrid *_gr
|
||||||
KeyframesSizer->AddStretchSpacer(1);
|
KeyframesSizer->AddStretchSpacer(1);
|
||||||
|
|
||||||
// Button sizer
|
// Button sizer
|
||||||
wxSizer *ButtonSizer = new wxBoxSizer(wxHORIZONTAL);
|
wxStdDialogButtonSizer *ButtonSizer = new wxStdDialogButtonSizer();
|
||||||
ButtonSizer->AddStretchSpacer(1);
|
ApplyButton = new wxButton(this,wxID_OK);
|
||||||
ApplyButton = new wxButton(this,wxID_APPLY);
|
ButtonSizer->AddButton(ApplyButton);
|
||||||
#ifndef __WXMAC__
|
ButtonSizer->AddButton(new wxButton(this,wxID_CANCEL));
|
||||||
ButtonSizer->Add(ApplyButton,0,wxRIGHT,5);
|
ButtonSizer->AddButton(new wxButton(this,wxID_HELP));
|
||||||
ButtonSizer->Add(new wxButton(this,wxID_CANCEL),0,0,0);
|
ButtonSizer->Realize();
|
||||||
#else
|
|
||||||
ButtonSizer->Add(new wxButton(this,wxID_CANCEL),0,wxRIGHT,5);
|
|
||||||
ButtonSizer->Add(ApplyButton,0,0,0);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Right Sizer
|
// Right Sizer
|
||||||
wxSizer *RightSizer = new wxBoxSizer(wxVERTICAL);
|
wxSizer *RightSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
@ -234,7 +230,7 @@ BEGIN_EVENT_TABLE(DialogTimingProcessor,wxDialog)
|
||||||
EVT_CHECKBOX(CHECK_ENABLE_KEYFRAME,DialogTimingProcessor::OnCheckBox)
|
EVT_CHECKBOX(CHECK_ENABLE_KEYFRAME,DialogTimingProcessor::OnCheckBox)
|
||||||
EVT_CHECKBOX(CHECK_ENABLE_ADJASCENT,DialogTimingProcessor::OnCheckBox)
|
EVT_CHECKBOX(CHECK_ENABLE_ADJASCENT,DialogTimingProcessor::OnCheckBox)
|
||||||
EVT_CHECKLISTBOX(TIMING_STYLE_LIST,DialogTimingProcessor::OnCheckBox)
|
EVT_CHECKLISTBOX(TIMING_STYLE_LIST,DialogTimingProcessor::OnCheckBox)
|
||||||
EVT_BUTTON(wxID_APPLY,DialogTimingProcessor::OnApply)
|
EVT_BUTTON(wxID_OK,DialogTimingProcessor::OnApply)
|
||||||
EVT_BUTTON(BUTTON_SELECT_ALL,DialogTimingProcessor::OnSelectAll)
|
EVT_BUTTON(BUTTON_SELECT_ALL,DialogTimingProcessor::OnSelectAll)
|
||||||
EVT_BUTTON(BUTTON_SELECT_NONE,DialogTimingProcessor::OnSelectNone)
|
EVT_BUTTON(BUTTON_SELECT_NONE,DialogTimingProcessor::OnSelectNone)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
Loading…
Reference in New Issue