forked from mia/Aegisub
Small fixes to paste over.
Originally committed to SVN as r947.
This commit is contained in:
parent
fab3dd81a1
commit
55f7f0ea15
1 changed files with 6 additions and 6 deletions
|
@ -73,7 +73,7 @@ DialogPasteOver::DialogPasteOver (wxWindow *parent)
|
||||||
for (unsigned int i=0;i<choices.Count();i++) ListBox->Check(i,Options.AsBool(wxString::Format(_T("Paste Over #%i"),i)));
|
for (unsigned int i=0;i<choices.Count();i++) ListBox->Check(i,Options.AsBool(wxString::Format(_T("Paste Over #%i"),i)));
|
||||||
|
|
||||||
// Label and list sizer
|
// Label and list sizer
|
||||||
wxStaticText *label = new wxStaticText(this,-1,_("Please select the fields that you want to paste over::"),wxDefaultPosition,wxDefaultSize);
|
wxStaticText *label = new wxStaticText(this,-1,_("Please select the fields that you want to paste over:"),wxDefaultPosition,wxDefaultSize);
|
||||||
wxSizer *ListSizer = new wxStaticBoxSizer(wxVERTICAL,this,_("Fields"));
|
wxSizer *ListSizer = new wxStaticBoxSizer(wxVERTICAL,this,_("Fields"));
|
||||||
ListSizer->Add(label,0,wxEXPAND,0);
|
ListSizer->Add(label,0,wxEXPAND,0);
|
||||||
ListSizer->Add(ListBox,0,wxEXPAND|wxTOP,5);
|
ListSizer->Add(ListBox,0,wxEXPAND|wxTOP,5);
|
||||||
|
@ -146,15 +146,15 @@ void DialogPasteOver::OnCancel(wxCommandEvent &event) {
|
||||||
///////////////
|
///////////////
|
||||||
// Select Text
|
// Select Text
|
||||||
void DialogPasteOver::OnText(wxCommandEvent &event) {
|
void DialogPasteOver::OnText(wxCommandEvent &event) {
|
||||||
for (int i=0;i<10;i++) ListBox->Check(i,false);
|
for (int i=0;i<9;i++) ListBox->Check(i,false);
|
||||||
ListBox->Check(10,true);
|
ListBox->Check(9,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////
|
////////////////
|
||||||
// Select Times
|
// Select Times
|
||||||
void DialogPasteOver::OnTimes(wxCommandEvent &event) {
|
void DialogPasteOver::OnTimes(wxCommandEvent &event) {
|
||||||
for (int i=0;i<11;i++) ListBox->Check(i,false);
|
for (int i=0;i<10;i++) ListBox->Check(i,false);
|
||||||
ListBox->Check(1,true);
|
ListBox->Check(1,true);
|
||||||
ListBox->Check(2,true);
|
ListBox->Check(2,true);
|
||||||
}
|
}
|
||||||
|
@ -163,14 +163,14 @@ void DialogPasteOver::OnTimes(wxCommandEvent &event) {
|
||||||
//////////////
|
//////////////
|
||||||
// Select All
|
// Select All
|
||||||
void DialogPasteOver::OnAll(wxCommandEvent &event) {
|
void DialogPasteOver::OnAll(wxCommandEvent &event) {
|
||||||
for (int i=0;i<11;i++) ListBox->Check(i,true);
|
for (int i=0;i<10;i++) ListBox->Check(i,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
///////////////
|
///////////////
|
||||||
// Select None
|
// Select None
|
||||||
void DialogPasteOver::OnNone(wxCommandEvent &event) {
|
void DialogPasteOver::OnNone(wxCommandEvent &event) {
|
||||||
for (int i=0;i<11;i++) ListBox->Check(i,false);
|
for (int i=0;i<10;i++) ListBox->Check(i,false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue