Add access keys for nearly all things which support them and were missing them. Closes #1070.
Originally committed to SVN as r5877.
This commit is contained in:
parent
2c2bb54e11
commit
262d5195c5
20 changed files with 94 additions and 94 deletions
|
@ -152,7 +152,7 @@ DialogDummyVideo::DialogDummyVideo(wxWindow *parent)
|
||||||
width = new wxTextCtrl(this, -1);
|
width = new wxTextCtrl(this, -1);
|
||||||
height = new wxTextCtrl(this, -1);
|
height = new wxTextCtrl(this, -1);
|
||||||
colour = new ColourButton(this, -1, wxSize(30, 17), lagi_wxColour(OPT_GET("Colour/Video Dummy/Last Colour")->GetColour()));
|
colour = new ColourButton(this, -1, wxSize(30, 17), lagi_wxColour(OPT_GET("Colour/Video Dummy/Last Colour")->GetColour()));
|
||||||
pattern = new wxCheckBox(this, -1, _("Checkerboard pattern"));
|
pattern = new wxCheckBox(this, -1, _("&Checkerboard pattern"));
|
||||||
fps = new wxTextCtrl(this, Dummy_Video_FPS, wxString::Format("%f", OPT_GET("Video/Dummy/FPS")->GetDouble()));
|
fps = new wxTextCtrl(this, Dummy_Video_FPS, wxString::Format("%f", OPT_GET("Video/Dummy/FPS")->GetDouble()));
|
||||||
length = new wxSpinCtrl(this, Dummy_Video_Length, "", wxDefaultPosition, wxDefaultSize, 4096|wxALIGN_LEFT);
|
length = new wxSpinCtrl(this, Dummy_Video_Length, "", wxDefaultPosition, wxDefaultSize, 4096|wxALIGN_LEFT);
|
||||||
length_display = new wxStaticText(this, -1, "");
|
length_display = new wxStaticText(this, -1, "");
|
||||||
|
|
|
@ -74,10 +74,10 @@ DialogExport::DialogExport(agi::Context *c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxButton *btn_up = new wxButton(this, -1, _("Move up"), wxDefaultPosition, wxSize(90, -1));
|
wxButton *btn_up = new wxButton(this, -1, _("Move &up"), wxDefaultPosition, wxSize(90, -1));
|
||||||
wxButton *btn_down = new wxButton(this, -1, _("Move down"), wxDefaultPosition, wxSize(90, -1));
|
wxButton *btn_down = new wxButton(this, -1, _("Move &down"), wxDefaultPosition, wxSize(90, -1));
|
||||||
wxButton *btn_all = new wxButton(this, -1, _("Select all"), wxDefaultPosition, wxSize(80, -1));
|
wxButton *btn_all = new wxButton(this, -1, _("Select &all"), wxDefaultPosition, wxSize(80, -1));
|
||||||
wxButton *btn_none = new wxButton(this, -1, _("Select none"), wxDefaultPosition, wxSize(80, -1));
|
wxButton *btn_none = new wxButton(this, -1, _("Select &none"), wxDefaultPosition, wxSize(80, -1));
|
||||||
|
|
||||||
btn_up->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogExport::OnMoveUp, this);
|
btn_up->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogExport::OnMoveUp, this);
|
||||||
btn_down->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogExport::OnMoveDown, this);
|
btn_down->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogExport::OnMoveDown, this);
|
||||||
|
|
|
@ -653,7 +653,7 @@ DialogKanjiTimer::DialogKanjiTimer(agi::Context *c)
|
||||||
display = new KaraokeLineMatchDisplay(this);
|
display = new KaraokeLineMatchDisplay(this);
|
||||||
|
|
||||||
//Checkbox
|
//Checkbox
|
||||||
Interpolate = new wxCheckBox(this,-1,_("Attempt to interpolate kanji."),wxDefaultPosition,wxDefaultSize,wxALIGN_LEFT);
|
Interpolate = new wxCheckBox(this,-1,_("Attempt to &interpolate kanji."),wxDefaultPosition,wxDefaultSize,wxALIGN_LEFT);
|
||||||
Interpolate->SetValue(OPT_GET("Tool/Kanji Timer/Interpolation")->GetBool());
|
Interpolate->SetValue(OPT_GET("Tool/Kanji Timer/Interpolation")->GetBool());
|
||||||
|
|
||||||
wxArrayString styles = subs->GetStyles();
|
wxArrayString styles = subs->GetStyles();
|
||||||
|
@ -665,14 +665,14 @@ DialogKanjiTimer::DialogKanjiTimer(agi::Context *c)
|
||||||
wxStaticText *ShortcutKeys = new wxStaticText(this,-1,_("When the destination textbox has focus, use the following keys:\n\nRight Arrow: Increase dest. selection length\nLeft Arrow: Decrease dest. selection length\nUp Arrow: Increase source selection length\nDown Arrow: Decrease source selection length\nEnter: Link, accept line when done\nBackspace: Unlink last"));
|
wxStaticText *ShortcutKeys = new wxStaticText(this,-1,_("When the destination textbox has focus, use the following keys:\n\nRight Arrow: Increase dest. selection length\nLeft Arrow: Decrease dest. selection length\nUp Arrow: Increase source selection length\nDown Arrow: Decrease source selection length\nEnter: Link, accept line when done\nBackspace: Unlink last"));
|
||||||
|
|
||||||
//Buttons
|
//Buttons
|
||||||
wxButton *Start = new wxButton(this,BUTTON_KTSTART,_("Start!"));
|
wxButton *Start = new wxButton(this,BUTTON_KTSTART,_("S&tart!"));
|
||||||
wxButton *Link = new wxButton(this,BUTTON_KTLINK,_("Link"));
|
wxButton *Link = new wxButton(this,BUTTON_KTLINK,_("&Link"));
|
||||||
wxButton *Unlink = new wxButton(this,BUTTON_KTUNLINK,_("Unlink"));
|
wxButton *Unlink = new wxButton(this,BUTTON_KTUNLINK,_("&Unlink"));
|
||||||
wxButton *SkipSourceLine = new wxButton(this,BUTTON_KTSKIPSOURCE,_("Skip Source Line"));
|
wxButton *SkipSourceLine = new wxButton(this,BUTTON_KTSKIPSOURCE,_("Skip &Source Line"));
|
||||||
wxButton *SkipDestLine = new wxButton(this,BUTTON_KTSKIPDEST,_("Skip Dest Line"));
|
wxButton *SkipDestLine = new wxButton(this,BUTTON_KTSKIPDEST,_("Skip &Dest Line"));
|
||||||
wxButton *GoBackLine = new wxButton(this,BUTTON_KTGOBACK,_("Go Back a Line"));
|
wxButton *GoBackLine = new wxButton(this,BUTTON_KTGOBACK,_("&Go Back a Line"));
|
||||||
wxButton *AcceptLine = new wxButton(this,BUTTON_KTACCEPT,_("Accept Line"));
|
wxButton *AcceptLine = new wxButton(this,BUTTON_KTACCEPT,_("&Accept Line"));
|
||||||
wxButton *CloseKT = new wxButton(this,wxID_CLOSE,_("Close"));
|
wxButton *CloseKT = new wxButton(this,wxID_CLOSE,_("&Close"));
|
||||||
|
|
||||||
//Frame: Text
|
//Frame: Text
|
||||||
DisplayBoxSizer->Add(display, 0, wxEXPAND|wxALL, 6);
|
DisplayBoxSizer->Add(display, 0, wxEXPAND|wxALL, 6);
|
||||||
|
|
|
@ -99,10 +99,10 @@ DialogPasteOver::DialogPasteOver (wxWindow *parent, std::vector<bool>& options)
|
||||||
|
|
||||||
// Top buttons
|
// Top buttons
|
||||||
wxSizer *TopButtonSizer = new wxBoxSizer(wxHORIZONTAL);
|
wxSizer *TopButtonSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
TopButtonSizer->Add(new wxButton(this, Paste_Over_All, _("All")),1,0,0);
|
TopButtonSizer->Add(new wxButton(this, Paste_Over_All, _("&All")),1,0,0);
|
||||||
TopButtonSizer->Add(new wxButton(this, Paste_Over_None, _("None")),1,0,0);
|
TopButtonSizer->Add(new wxButton(this, Paste_Over_None, _("&None")),1,0,0);
|
||||||
TopButtonSizer->Add(new wxButton(this, Paste_Over_Times, _("Times")),1,0,0);
|
TopButtonSizer->Add(new wxButton(this, Paste_Over_Times, _("&Times")),1,0,0);
|
||||||
TopButtonSizer->Add(new wxButton(this, Paste_Over_Text, _("Text")),1,0,0);
|
TopButtonSizer->Add(new wxButton(this, Paste_Over_Text, _("T&ext")),1,0,0);
|
||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
wxStdDialogButtonSizer *ButtonSizer = new wxStdDialogButtonSizer();
|
wxStdDialogButtonSizer *ButtonSizer = new wxStdDialogButtonSizer();
|
||||||
|
|
|
@ -103,7 +103,7 @@ DialogProperties::DialogProperties(agi::Context *c)
|
||||||
ResX = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(50,20),0,NumValidator(c->ass->GetScriptInfo("PlayResX")));
|
ResX = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(50,20),0,NumValidator(c->ass->GetScriptInfo("PlayResX")));
|
||||||
ResY = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(50,20),0,NumValidator(c->ass->GetScriptInfo("PlayResY")));
|
ResY = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(50,20),0,NumValidator(c->ass->GetScriptInfo("PlayResY")));
|
||||||
wxStaticText *ResText = new wxStaticText(this,-1,"x");
|
wxStaticText *ResText = new wxStaticText(this,-1,"x");
|
||||||
wxButton *FromVideo = new wxButton(this,-1,_("From video"));
|
wxButton *FromVideo = new wxButton(this,-1,_("From &video"));
|
||||||
if (!c->videoController->IsLoaded()) {
|
if (!c->videoController->IsLoaded()) {
|
||||||
FromVideo->Enable(false);
|
FromVideo->Enable(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ DialogResample::DialogResample(agi::Context *c)
|
||||||
wxSizer *MarginSizer = new wxGridSizer(3,3,5,5);
|
wxSizer *MarginSizer = new wxGridSizer(3,3,5,5);
|
||||||
MarginTop = new wxTextCtrl(this,TEXT_MARGIN_T,"0",wxDefaultPosition,wxSize(50,-1),0);
|
MarginTop = new wxTextCtrl(this,TEXT_MARGIN_T,"0",wxDefaultPosition,wxSize(50,-1),0);
|
||||||
MarginLeft = new wxTextCtrl(this,TEXT_MARGIN_L,"0",wxDefaultPosition,wxSize(50,-1),0);
|
MarginLeft = new wxTextCtrl(this,TEXT_MARGIN_L,"0",wxDefaultPosition,wxSize(50,-1),0);
|
||||||
MarginSymmetrical = new wxCheckBox(this,CHECK_SYMMETRICAL,_("Symmetrical"));
|
MarginSymmetrical = new wxCheckBox(this,CHECK_SYMMETRICAL,_("&Symmetrical"));
|
||||||
MarginRight = new wxTextCtrl(this,TEXT_MARGIN_R,"0",wxDefaultPosition,wxSize(50,-1),0);
|
MarginRight = new wxTextCtrl(this,TEXT_MARGIN_R,"0",wxDefaultPosition,wxSize(50,-1),0);
|
||||||
MarginBottom = new wxTextCtrl(this,TEXT_MARGIN_B,"0",wxDefaultPosition,wxSize(50,-1),0);
|
MarginBottom = new wxTextCtrl(this,TEXT_MARGIN_B,"0",wxDefaultPosition,wxSize(50,-1),0);
|
||||||
MarginSizer->AddSpacer(1);
|
MarginSizer->AddSpacer(1);
|
||||||
|
@ -103,13 +103,13 @@ DialogResample::DialogResample(agi::Context *c)
|
||||||
ResX = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(50,-1),0,NumValidator(wxString::Format("%i",sw)));
|
ResX = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(50,-1),0,NumValidator(wxString::Format("%i",sw)));
|
||||||
ResY = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(50,-1),0,NumValidator(wxString::Format("%i",sh)));
|
ResY = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(50,-1),0,NumValidator(wxString::Format("%i",sh)));
|
||||||
wxStaticText *ResText = new wxStaticText(this,-1,_("x"));
|
wxStaticText *ResText = new wxStaticText(this,-1,_("x"));
|
||||||
wxButton *FromVideo = new wxButton(this,BUTTON_DEST_FROM_VIDEO,_("From video"));
|
wxButton *FromVideo = new wxButton(this,BUTTON_DEST_FROM_VIDEO,_("From &video"));
|
||||||
if (!c->videoController->IsLoaded()) FromVideo->Enable(false);
|
if (!c->videoController->IsLoaded()) FromVideo->Enable(false);
|
||||||
ResSizer->Add(ResX,1,wxRIGHT,5);
|
ResSizer->Add(ResX,1,wxRIGHT,5);
|
||||||
ResSizer->Add(ResText,0,wxALIGN_CENTER | wxRIGHT,5);
|
ResSizer->Add(ResText,0,wxALIGN_CENTER | wxRIGHT,5);
|
||||||
ResSizer->Add(ResY,1,wxRIGHT,5);
|
ResSizer->Add(ResY,1,wxRIGHT,5);
|
||||||
ResSizer->Add(FromVideo,1,0,0);
|
ResSizer->Add(FromVideo,1,0,0);
|
||||||
Anamorphic = new wxCheckBox(this,CHECK_ANAMORPHIC,_("Change aspect ratio"));
|
Anamorphic = new wxCheckBox(this,CHECK_ANAMORPHIC,_("&Change aspect ratio"));
|
||||||
ResBoxSizer->Add(ResSizer,1,wxEXPAND|wxBOTTOM,5);
|
ResBoxSizer->Add(ResSizer,1,wxEXPAND|wxBOTTOM,5);
|
||||||
ResBoxSizer->Add(Anamorphic,0,0,0);
|
ResBoxSizer->Add(Anamorphic,0,0,0);
|
||||||
|
|
||||||
|
|
|
@ -92,9 +92,9 @@ DialogSearchReplace::DialogSearchReplace (wxWindow *parent,bool _hasReplace,wxSt
|
||||||
|
|
||||||
// Options sizer
|
// Options sizer
|
||||||
wxSizer *OptionsSizer = new wxBoxSizer(wxVERTICAL);
|
wxSizer *OptionsSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
CheckMatchCase = new wxCheckBox(this,CHECK_MATCH_CASE,_("Match case"));
|
CheckMatchCase = new wxCheckBox(this,CHECK_MATCH_CASE,_("&Match case"));
|
||||||
CheckRegExp = new wxCheckBox(this,CHECK_MATCH_CASE,_("Use regular expressions"));
|
CheckRegExp = new wxCheckBox(this,CHECK_MATCH_CASE,_("&Use regular expressions"));
|
||||||
CheckUpdateVideo = new wxCheckBox(this,CHECK_UPDATE_VIDEO,_("Update Video (slow)"));
|
CheckUpdateVideo = new wxCheckBox(this,CHECK_UPDATE_VIDEO,_("Update &Video"));
|
||||||
CheckMatchCase->SetValue(OPT_GET("Tool/Search Replace/Match Case")->GetBool());
|
CheckMatchCase->SetValue(OPT_GET("Tool/Search Replace/Match Case")->GetBool());
|
||||||
CheckRegExp->SetValue(OPT_GET("Tool/Search Replace/RegExp")->GetBool());
|
CheckRegExp->SetValue(OPT_GET("Tool/Search Replace/RegExp")->GetBool());
|
||||||
//CheckRegExp->Enable(false);
|
//CheckRegExp->Enable(false);
|
||||||
|
@ -129,12 +129,12 @@ DialogSearchReplace::DialogSearchReplace (wxWindow *parent,bool _hasReplace,wxSt
|
||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
wxSizer *ButtonSizer = new wxBoxSizer(wxVERTICAL);
|
wxSizer *ButtonSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
wxButton *FindNext = new wxButton(this,BUTTON_FIND_NEXT,_("Find next"));
|
wxButton *FindNext = new wxButton(this,BUTTON_FIND_NEXT,_("&Find next"));
|
||||||
FindNext->SetDefault();
|
FindNext->SetDefault();
|
||||||
ButtonSizer->Add(FindNext,0,wxEXPAND | wxBOTTOM,3);
|
ButtonSizer->Add(FindNext,0,wxEXPAND | wxBOTTOM,3);
|
||||||
if (hasReplace) {
|
if (hasReplace) {
|
||||||
ButtonSizer->Add(new wxButton(this,BUTTON_REPLACE_NEXT,_("Replace next")),0,wxEXPAND | wxBOTTOM,3);
|
ButtonSizer->Add(new wxButton(this,BUTTON_REPLACE_NEXT,_("Replace &next")),0,wxEXPAND | wxBOTTOM,3);
|
||||||
ButtonSizer->Add(new wxButton(this,BUTTON_REPLACE_ALL,_("Replace all")),0,wxEXPAND | wxBOTTOM,3);
|
ButtonSizer->Add(new wxButton(this,BUTTON_REPLACE_ALL,_("Replace &all")),0,wxEXPAND | wxBOTTOM,3);
|
||||||
}
|
}
|
||||||
ButtonSizer->Add(new wxButton(this,wxID_CANCEL),0,wxEXPAND | wxBOTTOM,20);
|
ButtonSizer->Add(new wxButton(this,wxID_CANCEL),0,wxEXPAND | wxBOTTOM,20);
|
||||||
//ButtonSizer->Add(new wxButton(this,wxID_HELP),0,wxEXPAND | wxBOTTOM,0);
|
//ButtonSizer->Add(new wxButton(this,wxID_HELP),0,wxEXPAND | wxBOTTOM,0);
|
||||||
|
|
|
@ -44,10 +44,10 @@
|
||||||
SelectedChoicesDialog::SelectedChoicesDialog(wxWindow *parent, wxString const& message, wxString const& caption, wxArrayString const& choices) {
|
SelectedChoicesDialog::SelectedChoicesDialog(wxWindow *parent, wxString const& message, wxString const& caption, wxArrayString const& choices) {
|
||||||
Create(parent, message, caption, choices);
|
Create(parent, message, caption, choices);
|
||||||
|
|
||||||
wxButton *selAll = new wxButton(this, -1, _("Select All"));
|
wxButton *selAll = new wxButton(this, -1, _("Select &All"));
|
||||||
wxButton *selNone = new wxButton(this, -1, _("Select None"));
|
wxButton *selNone = new wxButton(this, -1, _("Select &None"));
|
||||||
Bind(wxEVT_COMMAND_BUTTON_CLICKED, &SelectedChoicesDialog::SelectAll, this, selAll->GetId());
|
selAll->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &SelectedChoicesDialog::SelectAll, this);
|
||||||
Bind(wxEVT_COMMAND_BUTTON_CLICKED, &SelectedChoicesDialog::SelectNone, this, selNone->GetId());
|
selNone->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &SelectedChoicesDialog::SelectNone, this);
|
||||||
|
|
||||||
wxBoxSizer *buttonSizer = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer *buttonSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
buttonSizer->Add(selAll, wxSizerFlags(0).Left());
|
buttonSizer->Add(selAll, wxSizerFlags(0).Left());
|
||||||
|
|
|
@ -138,9 +138,9 @@ wxDialog (c->parent, -1, _("Select"), wxDefaultPosition, wxDefaultSize, wxCAPTIO
|
||||||
{
|
{
|
||||||
wxSizerFlags radio_flags = wxSizerFlags().Border(wxLEFT | wxRIGHT);
|
wxSizerFlags radio_flags = wxSizerFlags().Border(wxLEFT | wxRIGHT);
|
||||||
wxSizer *match_radio_line = new wxBoxSizer(wxHORIZONTAL);
|
wxSizer *match_radio_line = new wxBoxSizer(wxHORIZONTAL);
|
||||||
match_radio_line->Add(new wxRadioButton(this, -1, _("Matches"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP), radio_flags);
|
match_radio_line->Add(new wxRadioButton(this, -1, _("&Matches"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP), radio_flags);
|
||||||
match_radio_line->Add(select_unmatching_lines = new wxRadioButton(this, -1, _("Doesn't Match")), radio_flags);
|
match_radio_line->Add(select_unmatching_lines = new wxRadioButton(this, -1, _("&Doesn't Match")), radio_flags);
|
||||||
match_radio_line->Add(case_sensitive = new wxCheckBox(this, -1, _("Match case")), radio_flags);
|
match_radio_line->Add(case_sensitive = new wxCheckBox(this, -1, _("Match c&ase")), radio_flags);
|
||||||
match_sizer->Add(match_radio_line);
|
match_sizer->Add(match_radio_line);
|
||||||
}
|
}
|
||||||
match_sizer->Add(match_text = new wxTextCtrl(this, -1, lagi_wxString(OPT_GET("Tool/Select Lines/Text")->GetString())), main_flags);
|
match_sizer->Add(match_text = new wxTextCtrl(this, -1, lagi_wxString(OPT_GET("Tool/Select Lines/Text")->GetString())), main_flags);
|
||||||
|
@ -149,24 +149,24 @@ wxDialog (c->parent, -1, _("Select"), wxDefaultPosition, wxDefaultSize, wxCAPTIO
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
wxString modes[] = { _("Exact match"), _("Contains"), _("Regular Expression match") };
|
wxString modes[] = { _("&Exact match"), _("&Contains"), _("&Regular Expression match") };
|
||||||
main_sizer->Add(match_mode = new wxRadioBox(this, -1, _("Mode"), wxDefaultPosition, wxDefaultSize, 3, modes, 1), main_flags);
|
main_sizer->Add(match_mode = new wxRadioBox(this, -1, _("Mode"), wxDefaultPosition, wxDefaultSize, 3, modes, 1), main_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
wxString fields[] = { _("Text"), _("Style"), _("Actor"), _("Effect") };
|
wxString fields[] = { _("&Text"), _("&Style"), _("Act&or"), _("E&ffect") };
|
||||||
main_sizer->Add(dialogue_field = new wxRadioBox(this, -1, _("In Field"), wxDefaultPosition, wxDefaultSize, 4, fields), main_flags);
|
main_sizer->Add(dialogue_field = new wxRadioBox(this, -1, _("In Field"), wxDefaultPosition, wxDefaultSize, 4, fields), main_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
wxSizer *comment_sizer = new wxStaticBoxSizer(wxHORIZONTAL, this, _("Match dialogues/comments"));
|
wxSizer *comment_sizer = new wxStaticBoxSizer(wxHORIZONTAL, this, _("Match dialogues/comments"));
|
||||||
comment_sizer->Add(apply_to_dialogue = new wxCheckBox(this, -1, _("Dialogues")), wxSizerFlags().Border());
|
comment_sizer->Add(apply_to_dialogue = new wxCheckBox(this, -1, _("D&ialogues")), wxSizerFlags().Border());
|
||||||
comment_sizer->Add(apply_to_comments = new wxCheckBox(this, -1, _("Comments")), wxSizerFlags().Border());
|
comment_sizer->Add(apply_to_comments = new wxCheckBox(this, -1, _("Comme&nts")), wxSizerFlags().Border());
|
||||||
main_sizer->Add(comment_sizer, main_flags);
|
main_sizer->Add(comment_sizer, main_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
wxString actions[] = { _("Set selection"), _("Add to selection"), _("Subtract from selection"), _("Intersect with selection") };
|
wxString actions[] = { _("Set se&lection"), _("&Add to selection"), _("S&ubtract from selection"), _("Intersect &with selection") };
|
||||||
main_sizer->Add(selection_change_type = new wxRadioBox(this, -1, _("Action"), wxDefaultPosition, wxDefaultSize, 4, actions, 1), main_flags);
|
main_sizer->Add(selection_change_type = new wxRadioBox(this, -1, _("Action"), wxDefaultPosition, wxDefaultSize, 4, actions, 1), main_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,11 +65,11 @@ DialogShiftTimes::DialogShiftTimes(agi::Context *context)
|
||||||
SetIcon(BitmapToIcon(GETIMAGE(shift_times_toolbutton_24)));
|
SetIcon(BitmapToIcon(GETIMAGE(shift_times_toolbutton_24)));
|
||||||
|
|
||||||
// Create controls
|
// Create controls
|
||||||
shift_by_time = new wxRadioButton(this, -1, _("Time: "), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
|
shift_by_time = new wxRadioButton(this, -1, _("&Time: "), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
|
||||||
shift_by_time->SetToolTip(_("Shift by time"));
|
shift_by_time->SetToolTip(_("Shift by time"));
|
||||||
shift_by_time->Bind(wxEVT_COMMAND_RADIOBUTTON_SELECTED, &DialogShiftTimes::OnByTime, this);
|
shift_by_time->Bind(wxEVT_COMMAND_RADIOBUTTON_SELECTED, &DialogShiftTimes::OnByTime, this);
|
||||||
|
|
||||||
shift_by_frames = new wxRadioButton(this, -1 , _("Frames: "));
|
shift_by_frames = new wxRadioButton(this, -1 , _("&Frames: "));
|
||||||
shift_by_frames->SetToolTip(_("Shift by frames"));
|
shift_by_frames->SetToolTip(_("Shift by frames"));
|
||||||
shift_by_frames->Bind(wxEVT_COMMAND_RADIOBUTTON_SELECTED, &DialogShiftTimes::OnByFrames, this);
|
shift_by_frames->Bind(wxEVT_COMMAND_RADIOBUTTON_SELECTED, &DialogShiftTimes::OnByFrames, this);
|
||||||
|
|
||||||
|
@ -79,21 +79,21 @@ DialogShiftTimes::DialogShiftTimes(agi::Context *context)
|
||||||
shift_frames = new wxTextCtrl(this, -1);
|
shift_frames = new wxTextCtrl(this, -1);
|
||||||
shift_frames->SetToolTip(_("Enter number of frames to shift by"));
|
shift_frames->SetToolTip(_("Enter number of frames to shift by"));
|
||||||
|
|
||||||
shift_forward = new wxRadioButton(this, -1, _("Forward"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
|
shift_forward = new wxRadioButton(this, -1, _("For&ward"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
|
||||||
shift_forward->SetToolTip(_("Shifts subs forward, making them appear later. Use if they are appearing too soon."));
|
shift_forward->SetToolTip(_("Shifts subs forward, making them appear later. Use if they are appearing too soon."));
|
||||||
|
|
||||||
shift_backward = new wxRadioButton(this, -1, _("Backward"));
|
shift_backward = new wxRadioButton(this, -1, _("&Backward"));
|
||||||
shift_backward->SetToolTip(_("Shifts subs backward, making them appear earlier. Use if they are appearing too late."));
|
shift_backward->SetToolTip(_("Shifts subs backward, making them appear earlier. Use if they are appearing too late."));
|
||||||
|
|
||||||
wxString selection_mode_vals[] = { _("All rows"), _("Selected rows"), _("Selection onward") };
|
wxString selection_mode_vals[] = { _("&All rows"), _("Selected &rows"), _("Selection &onward") };
|
||||||
selection_mode = new wxRadioBox(this, -1, _("Affect"), wxDefaultPosition, wxDefaultSize, 3, selection_mode_vals, 1);
|
selection_mode = new wxRadioBox(this, -1, _("Affect"), wxDefaultPosition, wxDefaultSize, 3, selection_mode_vals, 1);
|
||||||
|
|
||||||
wxString time_field_vals[] = { _("Start and End times"), _("Start times only"), _("End times only") };
|
wxString time_field_vals[] = { _("Start a&nd End times"), _("&Start times only"), _("&End times only") };
|
||||||
time_fields = new wxRadioBox(this, -1, _("Times"), wxDefaultPosition, wxDefaultSize, 3, time_field_vals, 1);
|
time_fields = new wxRadioBox(this, -1, _("Times"), wxDefaultPosition, wxDefaultSize, 3, time_field_vals, 1);
|
||||||
|
|
||||||
history = new wxListBox(this, -1, wxDefaultPosition, wxSize(350, 100), 0, NULL, wxLB_HSCROLL);
|
history = new wxListBox(this, -1, wxDefaultPosition, wxSize(350, 100), 0, NULL, wxLB_HSCROLL);
|
||||||
|
|
||||||
wxButton *clear_button = new wxButton(this, -1, _("Clear"));
|
wxButton *clear_button = new wxButton(this, -1, _("&Clear"));
|
||||||
clear_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogShiftTimes::OnClear, this);
|
clear_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogShiftTimes::OnClear, this);
|
||||||
|
|
||||||
// Set initial control states
|
// Set initial control states
|
||||||
|
|
|
@ -118,19 +118,19 @@ DialogSpellChecker::DialogSpellChecker(agi::Context *context)
|
||||||
wxButton *button;
|
wxButton *button;
|
||||||
wxSizerFlags button_flags = wxSizerFlags().Expand().Bottom().Border(wxBOTTOM, 5);
|
wxSizerFlags button_flags = wxSizerFlags().Expand().Bottom().Border(wxBOTTOM, 5);
|
||||||
|
|
||||||
actions_sizer->Add(button = new wxButton(this, -1, _("Replace")), button_flags);
|
actions_sizer->Add(button = new wxButton(this, -1, _("&Replace")), button_flags);
|
||||||
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnReplace, this);
|
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnReplace, this);
|
||||||
|
|
||||||
actions_sizer->Add(button = new wxButton(this, -1, _("Replace all")), button_flags);
|
actions_sizer->Add(button = new wxButton(this, -1, _("Replace &all")), button_flags);
|
||||||
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnReplaceAll, this);
|
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnReplaceAll, this);
|
||||||
|
|
||||||
actions_sizer->Add(button = new wxButton(this, -1, _("Ignore")), button_flags);
|
actions_sizer->Add(button = new wxButton(this, -1, _("&Ignore")), button_flags);
|
||||||
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnIgnore, this);
|
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnIgnore, this);
|
||||||
|
|
||||||
actions_sizer->Add(button = new wxButton(this, -1, _("Ignore all")), button_flags);
|
actions_sizer->Add(button = new wxButton(this, -1, _("Ignore a&ll")), button_flags);
|
||||||
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnIgnoreAll, this);
|
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnIgnoreAll, this);
|
||||||
|
|
||||||
actions_sizer->Add(add_button = new wxButton(this, -1, _("Add to dictionary")), button_flags);
|
actions_sizer->Add(add_button = new wxButton(this, -1, _("Add to &dictionary")), button_flags);
|
||||||
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnAdd, this);
|
button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogSpellChecker::OnAdd, this);
|
||||||
|
|
||||||
actions_sizer->Add(new HelpButton(this, "Spell Checker"), button_flags);
|
actions_sizer->Add(new HelpButton(this, "Spell Checker"), button_flags);
|
||||||
|
|
|
@ -122,10 +122,10 @@ DialogStyleEditor::DialogStyleEditor(wxWindow *parent, AssStyle *style, agi::Con
|
||||||
StyleName = new wxTextCtrl(this, -1, style->name);
|
StyleName = new wxTextCtrl(this, -1, style->name);
|
||||||
FontName = new wxComboBox(this, -1, style->font, wxDefaultPosition, wxSize(150, -1), 0, 0, wxCB_DROPDOWN);
|
FontName = new wxComboBox(this, -1, style->font, wxDefaultPosition, wxSize(150, -1), 0, 0, wxCB_DROPDOWN);
|
||||||
FontSize = num_text_ctrl(this, style->fontsize, wxSize(50, -1));
|
FontSize = num_text_ctrl(this, style->fontsize, wxSize(50, -1));
|
||||||
BoxBold = new wxCheckBox(this, -1, _("Bold"));
|
BoxBold = new wxCheckBox(this, -1, _("&Bold"));
|
||||||
BoxItalic = new wxCheckBox(this, -1, _("Italic"));
|
BoxItalic = new wxCheckBox(this, -1, _("&Italic"));
|
||||||
BoxUnderline = new wxCheckBox(this, -1, _("Underline"));
|
BoxUnderline = new wxCheckBox(this, -1, _("&Underline"));
|
||||||
BoxStrikeout = new wxCheckBox(this, -1, _("Strikeout"));
|
BoxStrikeout = new wxCheckBox(this, -1, _("&Strikeout"));
|
||||||
colorButton[0] = new ColourButton(this, -1, wxSize(55, 16), style->primary.GetWXColor());
|
colorButton[0] = new ColourButton(this, -1, wxSize(55, 16), style->primary.GetWXColor());
|
||||||
colorButton[1] = new ColourButton(this, -1, wxSize(55, 16), style->secondary.GetWXColor());
|
colorButton[1] = new ColourButton(this, -1, wxSize(55, 16), style->secondary.GetWXColor());
|
||||||
colorButton[2] = new ColourButton(this, -1, wxSize(55, 16), style->outline.GetWXColor());
|
colorButton[2] = new ColourButton(this, -1, wxSize(55, 16), style->outline.GetWXColor());
|
||||||
|
@ -140,7 +140,7 @@ DialogStyleEditor::DialogStyleEditor(wxWindow *parent, AssStyle *style, agi::Con
|
||||||
Alignment = new wxRadioBox(this, -1, _("Alignment"), wxDefaultPosition, wxDefaultSize, 9, alignValues, 3, wxRA_SPECIFY_COLS);
|
Alignment = new wxRadioBox(this, -1, _("Alignment"), wxDefaultPosition, wxDefaultSize, 9, alignValues, 3, wxRA_SPECIFY_COLS);
|
||||||
Outline = num_text_ctrl(this, style->outline_w, wxSize(50, -1));
|
Outline = num_text_ctrl(this, style->outline_w, wxSize(50, -1));
|
||||||
Shadow = num_text_ctrl(this, style->shadow_w, wxSize(50, -1));
|
Shadow = num_text_ctrl(this, style->shadow_w, wxSize(50, -1));
|
||||||
OutlineType = new wxCheckBox(this, -1, _("Opaque box"));
|
OutlineType = new wxCheckBox(this, -1, _("&Opaque box"));
|
||||||
ScaleX = num_text_ctrl(this, style->scalex);
|
ScaleX = num_text_ctrl(this, style->scalex);
|
||||||
ScaleY = num_text_ctrl(this, style->scaley);
|
ScaleY = num_text_ctrl(this, style->scaley);
|
||||||
Angle = num_text_ctrl(this, style->angle);
|
Angle = num_text_ctrl(this, style->angle);
|
||||||
|
|
|
@ -114,11 +114,11 @@ DialogStyleManager::DialogStyleManager (agi::Context *context)
|
||||||
wxSizer *StorageButtons = new wxBoxSizer(wxHORIZONTAL);
|
wxSizer *StorageButtons = new wxBoxSizer(wxHORIZONTAL);
|
||||||
wxSizer *StorageButtonsLow = new wxBoxSizer(wxVERTICAL);
|
wxSizer *StorageButtonsLow = new wxBoxSizer(wxVERTICAL);
|
||||||
wxSizer *StorageListSizer = new wxBoxSizer(wxHORIZONTAL);
|
wxSizer *StorageListSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
MoveToLocal = new wxButton(this, BUTTON_STORAGE_COPYTO, _("Copy to current script ->"));
|
MoveToLocal = new wxButton(this, BUTTON_STORAGE_COPYTO, _("Copy to ¤t script ->"));
|
||||||
StorageNew = new wxButton(this, BUTTON_STORAGE_NEW, _("New"));
|
StorageNew = new wxButton(this, BUTTON_STORAGE_NEW, _("Ne&w"));
|
||||||
StorageEdit = new wxButton(this, BUTTON_STORAGE_EDIT, _("Edit"));
|
StorageEdit = new wxButton(this, BUTTON_STORAGE_EDIT, _("Ed&it"));
|
||||||
StorageCopy = new wxButton(this, BUTTON_STORAGE_COPY, _("Copy"));
|
StorageCopy = new wxButton(this, BUTTON_STORAGE_COPY, _("C&opy"));
|
||||||
StorageDelete = new wxButton(this, BUTTON_STORAGE_DELETE, _("Delete"));
|
StorageDelete = new wxButton(this, BUTTON_STORAGE_DELETE, _("De&lete"));
|
||||||
StorageButtons->Add(StorageNew,1,wxEXPAND | wxRIGHT,5);
|
StorageButtons->Add(StorageNew,1,wxEXPAND | wxRIGHT,5);
|
||||||
StorageButtons->Add(StorageEdit,1,wxEXPAND | wxRIGHT,5);
|
StorageButtons->Add(StorageEdit,1,wxEXPAND | wxRIGHT,5);
|
||||||
StorageButtons->Add(StorageCopy,1,wxEXPAND | wxRIGHT,5);
|
StorageButtons->Add(StorageCopy,1,wxEXPAND | wxRIGHT,5);
|
||||||
|
@ -157,13 +157,13 @@ DialogStyleManager::DialogStyleManager (agi::Context *context)
|
||||||
wxSizer *CurrentButtonsLow = new wxBoxSizer(wxVERTICAL);
|
wxSizer *CurrentButtonsLow = new wxBoxSizer(wxVERTICAL);
|
||||||
wxSizer *CurrentListSizer = new wxBoxSizer(wxHORIZONTAL);
|
wxSizer *CurrentListSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
wxSizer *MoveImportSizer = new wxBoxSizer(wxHORIZONTAL);
|
wxSizer *MoveImportSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
MoveToStorage = new wxButton(this, BUTTON_CURRENT_COPYTO, _("<- Copy to storage"));
|
MoveToStorage = new wxButton(this, BUTTON_CURRENT_COPYTO, _("<- Copy to &storage"));
|
||||||
MoveImportSizer->Add(MoveToStorage,1,wxEXPAND | wxRIGHT,5);
|
MoveImportSizer->Add(MoveToStorage,1,wxEXPAND | wxRIGHT,5);
|
||||||
MoveImportSizer->Add(new wxButton(this, BUTTON_CURRENT_IMPORT, _("Import from script...")),1,wxEXPAND,0);
|
MoveImportSizer->Add(new wxButton(this, BUTTON_CURRENT_IMPORT, _("&Import from script...")),1,wxEXPAND,0);
|
||||||
CurrentNew = new wxButton(this, BUTTON_CURRENT_NEW, _("New"));
|
CurrentNew = new wxButton(this, BUTTON_CURRENT_NEW, _("&New"));
|
||||||
CurrentEdit = new wxButton(this, BUTTON_CURRENT_EDIT, _("Edit"));
|
CurrentEdit = new wxButton(this, BUTTON_CURRENT_EDIT, _("&Edit"));
|
||||||
CurrentCopy = new wxButton(this, BUTTON_CURRENT_COPY, _("Copy"));
|
CurrentCopy = new wxButton(this, BUTTON_CURRENT_COPY, _("&Copy"));
|
||||||
CurrentDelete = new wxButton(this, BUTTON_CURRENT_DELETE, _("Delete"));
|
CurrentDelete = new wxButton(this, BUTTON_CURRENT_DELETE, _("&Delete"));
|
||||||
CurrentButtons->Add(CurrentNew,1,wxEXPAND | wxRIGHT,5);
|
CurrentButtons->Add(CurrentNew,1,wxEXPAND | wxRIGHT,5);
|
||||||
CurrentButtons->Add(CurrentEdit,1,wxEXPAND | wxRIGHT,5);
|
CurrentButtons->Add(CurrentEdit,1,wxEXPAND | wxRIGHT,5);
|
||||||
CurrentButtons->Add(CurrentCopy,1,wxEXPAND | wxRIGHT,5);
|
CurrentButtons->Add(CurrentCopy,1,wxEXPAND | wxRIGHT,5);
|
||||||
|
|
|
@ -102,7 +102,7 @@ DialogStyling::DialogStyling(agi::Context *context)
|
||||||
|
|
||||||
hotkey_box->Add(hotkey_grid, 0, wxEXPAND | wxBOTTOM, 5);
|
hotkey_box->Add(hotkey_grid, 0, wxEXPAND | wxBOTTOM, 5);
|
||||||
|
|
||||||
auto_seek = new wxCheckBox(this, -1, _("Seek video to line start time"));
|
auto_seek = new wxCheckBox(this, -1, _("&Seek video to line start time"));
|
||||||
auto_seek->SetValue(true);
|
auto_seek->SetValue(true);
|
||||||
hotkey_box->Add(auto_seek, 0, 0, 0);
|
hotkey_box->Add(auto_seek, 0, 0, 0);
|
||||||
hotkey_box->AddStretchSpacer(1);
|
hotkey_box->AddStretchSpacer(1);
|
||||||
|
@ -114,11 +114,11 @@ DialogStyling::DialogStyling(agi::Context *context)
|
||||||
wxSizer *actions_box = new wxStaticBoxSizer(wxHORIZONTAL, this, _("Actions"));
|
wxSizer *actions_box = new wxStaticBoxSizer(wxHORIZONTAL, this, _("Actions"));
|
||||||
actions_box->AddStretchSpacer(1);
|
actions_box->AddStretchSpacer(1);
|
||||||
|
|
||||||
play_audio = new wxButton(this, -1, _("Play Audio"));
|
play_audio = new wxButton(this, -1, _("Play &Audio"));
|
||||||
play_audio->Enable(c->audioController->IsAudioOpen());
|
play_audio->Enable(c->audioController->IsAudioOpen());
|
||||||
actions_box->Add(play_audio, 0, wxLEFT | wxRIGHT | wxBOTTOM, 5);
|
actions_box->Add(play_audio, 0, wxLEFT | wxRIGHT | wxBOTTOM, 5);
|
||||||
|
|
||||||
play_video = new wxButton(this, -1, _("Play Video"));
|
play_video = new wxButton(this, -1, _("Play &Video"));
|
||||||
play_video->Enable(c->videoController->IsLoaded());
|
play_video->Enable(c->videoController->IsLoaded());
|
||||||
actions_box->Add(play_video, 0, wxBOTTOM | wxRIGHT, 5);
|
actions_box->Add(play_video, 0, wxBOTTOM | wxRIGHT, 5);
|
||||||
|
|
||||||
|
|
|
@ -88,25 +88,25 @@ DialogTimingProcessor::DialogTimingProcessor(agi::Context *c)
|
||||||
wxArrayString styles = c->ass->GetStyles();
|
wxArrayString styles = c->ass->GetStyles();
|
||||||
StyleList = new wxCheckListBox(this,TIMING_STYLE_LIST,wxDefaultPosition,wxSize(150,150),styles);
|
StyleList = new wxCheckListBox(this,TIMING_STYLE_LIST,wxDefaultPosition,wxSize(150,150),styles);
|
||||||
StyleList->SetToolTip(_("Select styles to process. Unchecked ones will be ignored."));
|
StyleList->SetToolTip(_("Select styles to process. Unchecked ones will be ignored."));
|
||||||
wxButton *all = new wxButton(this,BUTTON_SELECT_ALL,_("All"));
|
wxButton *all = new wxButton(this,BUTTON_SELECT_ALL,_("&All"));
|
||||||
all->SetToolTip(_("Select all styles."));
|
all->SetToolTip(_("Select all styles."));
|
||||||
wxButton *none = new wxButton(this,BUTTON_SELECT_NONE,_("None"));
|
wxButton *none = new wxButton(this,BUTTON_SELECT_NONE,_("&None"));
|
||||||
none->SetToolTip(_("Deselect all styles."));
|
none->SetToolTip(_("Deselect all styles."));
|
||||||
|
|
||||||
// Options box
|
// Options box
|
||||||
wxSizer *optionsSizer = new wxStaticBoxSizer(wxHORIZONTAL,this,_("Options"));
|
wxSizer *optionsSizer = new wxStaticBoxSizer(wxHORIZONTAL,this,_("Options"));
|
||||||
onlySelection = new wxCheckBox(this,-1,_("Affect selection only"));
|
onlySelection = new wxCheckBox(this,-1,_("Affect &selection only"));
|
||||||
onlySelection->SetValue(OPT_GET("Tool/Timing Post Processor/Only Selection")->GetBool());
|
onlySelection->SetValue(OPT_GET("Tool/Timing Post Processor/Only Selection")->GetBool());
|
||||||
optionsSizer->Add(onlySelection,1,wxALL,0);
|
optionsSizer->Add(onlySelection,1,wxALL,0);
|
||||||
|
|
||||||
// Lead-in/out box
|
// Lead-in/out box
|
||||||
wxSizer *LeadSizer = new wxStaticBoxSizer(wxHORIZONTAL,this,_("Lead-in/Lead-out"));
|
wxSizer *LeadSizer = new wxStaticBoxSizer(wxHORIZONTAL,this,_("Lead-in/Lead-out"));
|
||||||
hasLeadIn = new wxCheckBox(this,CHECK_ENABLE_LEADIN,_("Add lead in:"));
|
hasLeadIn = new wxCheckBox(this,CHECK_ENABLE_LEADIN,_("Add lead &in:"));
|
||||||
hasLeadIn->SetToolTip(_("Enable adding of lead-ins to lines."));
|
hasLeadIn->SetToolTip(_("Enable adding of lead-ins to lines."));
|
||||||
hasLeadIn->SetValue(OPT_GET("Tool/Timing Post Processor/Enable/Lead/IN")->GetBool());
|
hasLeadIn->SetValue(OPT_GET("Tool/Timing Post Processor/Enable/Lead/IN")->GetBool());
|
||||||
leadIn = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(80,-1),0,NumValidator(leadInTime));
|
leadIn = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(80,-1),0,NumValidator(leadInTime));
|
||||||
leadIn->SetToolTip(_("Lead in to be added, in milliseconds."));
|
leadIn->SetToolTip(_("Lead in to be added, in milliseconds."));
|
||||||
hasLeadOut = new wxCheckBox(this,CHECK_ENABLE_LEADOUT,_("Add lead out:"));
|
hasLeadOut = new wxCheckBox(this,CHECK_ENABLE_LEADOUT,_("Add lead &out:"));
|
||||||
hasLeadOut->SetToolTip(_("Enable adding of lead-outs to lines."));
|
hasLeadOut->SetToolTip(_("Enable adding of lead-outs to lines."));
|
||||||
hasLeadOut->SetValue(OPT_GET("Tool/Timing Post Processor/Enable/Lead/OUT")->GetBool());
|
hasLeadOut->SetValue(OPT_GET("Tool/Timing Post Processor/Enable/Lead/OUT")->GetBool());
|
||||||
leadOut = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(80,-1),0,NumValidator(leadOutTime));
|
leadOut = new wxTextCtrl(this,-1,"",wxDefaultPosition,wxSize(80,-1),0,NumValidator(leadOutTime));
|
||||||
|
@ -119,7 +119,7 @@ DialogTimingProcessor::DialogTimingProcessor(agi::Context *c)
|
||||||
|
|
||||||
// Adjacent subs sizer
|
// Adjacent subs sizer
|
||||||
wxSizer *AdjacentSizer = new wxStaticBoxSizer(wxHORIZONTAL,this,_("Make adjacent subtitles continuous"));
|
wxSizer *AdjacentSizer = new wxStaticBoxSizer(wxHORIZONTAL,this,_("Make adjacent subtitles continuous"));
|
||||||
adjsEnable = new wxCheckBox(this,CHECK_ENABLE_ADJASCENT,_("Enable"));
|
adjsEnable = new wxCheckBox(this,CHECK_ENABLE_ADJASCENT,_("&Enable"));
|
||||||
adjsEnable->SetToolTip(_("Enable snapping of subtitles together if they are within a certain distance of each other."));
|
adjsEnable->SetToolTip(_("Enable snapping of subtitles together if they are within a certain distance of each other."));
|
||||||
adjsEnable->SetValue(OPT_GET("Tool/Timing Post Processor/Enable/Adjacent")->GetBool());
|
adjsEnable->SetValue(OPT_GET("Tool/Timing Post Processor/Enable/Adjacent")->GetBool());
|
||||||
wxStaticText *adjsThresText = new wxStaticText(this,-1,_("Threshold:"),wxDefaultPosition,wxDefaultSize,wxALIGN_CENTRE);
|
wxStaticText *adjsThresText = new wxStaticText(this,-1,_("Threshold:"),wxDefaultPosition,wxDefaultSize,wxALIGN_CENTRE);
|
||||||
|
@ -137,7 +137,7 @@ DialogTimingProcessor::DialogTimingProcessor(agi::Context *c)
|
||||||
// Keyframes sizer
|
// Keyframes sizer
|
||||||
KeyframesSizer = new wxStaticBoxSizer(wxHORIZONTAL,this,_("Keyframe snapping"));
|
KeyframesSizer = new wxStaticBoxSizer(wxHORIZONTAL,this,_("Keyframe snapping"));
|
||||||
wxSizer *KeyframesFlexSizer = new wxFlexGridSizer(2,5,5,0);
|
wxSizer *KeyframesFlexSizer = new wxFlexGridSizer(2,5,5,0);
|
||||||
keysEnable = new wxCheckBox(this,CHECK_ENABLE_KEYFRAME,_("Enable"));
|
keysEnable = new wxCheckBox(this,CHECK_ENABLE_KEYFRAME,_("E&nable"));
|
||||||
keysEnable->SetToolTip(_("Enable snapping of subtitles to nearest keyframe, if distance is within threshold."));
|
keysEnable->SetToolTip(_("Enable snapping of subtitles to nearest keyframe, if distance is within threshold."));
|
||||||
keysEnable->SetValue(OPT_GET("Tool/Timing Post Processor/Enable/Keyframe")->GetBool());
|
keysEnable->SetValue(OPT_GET("Tool/Timing Post Processor/Enable/Keyframe")->GetBool());
|
||||||
wxStaticText *textStartBefore = new wxStaticText(this,-1,_("Starts before thres.:"),wxDefaultPosition,wxDefaultSize,wxALIGN_CENTRE);
|
wxStaticText *textStartBefore = new wxStaticText(this,-1,_("Starts before thres.:"),wxDefaultPosition,wxDefaultSize,wxALIGN_CENTRE);
|
||||||
|
|
|
@ -109,7 +109,7 @@ DialogTranslation::DialogTranslation(agi::Context *c)
|
||||||
add_hotkey(hotkey_grid, this, "audio/play/selection", "Play Audio");
|
add_hotkey(hotkey_grid, this, "audio/play/selection", "Play Audio");
|
||||||
hotkey_box->Add(hotkey_grid, 0, wxEXPAND, 0);
|
hotkey_box->Add(hotkey_grid, 0, wxEXPAND, 0);
|
||||||
|
|
||||||
seek_video = new wxCheckBox(this, -1, _("Enable preview"));
|
seek_video = new wxCheckBox(this, -1, _("Enable &preview"));
|
||||||
seek_video->SetValue(true);
|
seek_video->SetValue(true);
|
||||||
hotkey_box->Add(seek_video, 0, wxTOP, 5);
|
hotkey_box->Add(seek_video, 0, wxTOP, 5);
|
||||||
|
|
||||||
|
@ -119,12 +119,12 @@ DialogTranslation::DialogTranslation(agi::Context *c)
|
||||||
{
|
{
|
||||||
wxStaticBoxSizer *actions_box = new wxStaticBoxSizer(wxVERTICAL, this, _("Actions"));
|
wxStaticBoxSizer *actions_box = new wxStaticBoxSizer(wxVERTICAL, this, _("Actions"));
|
||||||
|
|
||||||
wxButton *play_audio = new wxButton(this, -1, _("Play Audio"));
|
wxButton *play_audio = new wxButton(this, -1, _("Play &Audio"));
|
||||||
play_audio->Enable(c->audioController->IsAudioOpen());
|
play_audio->Enable(c->audioController->IsAudioOpen());
|
||||||
play_audio->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogTranslation::OnPlayAudioButton, this);
|
play_audio->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogTranslation::OnPlayAudioButton, this);
|
||||||
actions_box->Add(play_audio, 0, wxALL, 5);
|
actions_box->Add(play_audio, 0, wxALL, 5);
|
||||||
|
|
||||||
wxButton *play_video = new wxButton(this, -1, _("Play Video"));
|
wxButton *play_video = new wxButton(this, -1, _("Play &Video"));
|
||||||
play_video->Enable(c->videoController->IsLoaded());
|
play_video->Enable(c->videoController->IsLoaded());
|
||||||
play_video->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogTranslation::OnPlayVideoButton, this);
|
play_video->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogTranslation::OnPlayVideoButton, this);
|
||||||
actions_box->Add(play_video, 0, wxLEFT | wxRIGHT | wxBOTTOM, 5);
|
actions_box->Add(play_video, 0, wxLEFT | wxRIGHT | wxBOTTOM, 5);
|
||||||
|
|
|
@ -503,7 +503,7 @@ VersionCheckerResultDialog::VersionCheckerResultDialog(const wxString &main_text
|
||||||
main_sizer->Add(new wxHyperlinkCtrl(this, -1, upd_iterator->url, upd_iterator->url), 0, wxALIGN_LEFT|wxBOTTOM, 6);
|
main_sizer->Add(new wxHyperlinkCtrl(this, -1, upd_iterator->url, upd_iterator->url), 0, wxALIGN_LEFT|wxBOTTOM, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
automatic_check_checkbox = new wxCheckBox(this, -1, _("Auto Check for Updates"));
|
automatic_check_checkbox = new wxCheckBox(this, -1, _("&Auto Check for Updates"));
|
||||||
automatic_check_checkbox->SetValue(OPT_GET("App/Auto/Check For Updates")->GetBool());
|
automatic_check_checkbox->SetValue(OPT_GET("App/Auto/Check For Updates")->GetBool());
|
||||||
|
|
||||||
wxButton *remind_later_button = 0;
|
wxButton *remind_later_button = 0;
|
||||||
|
|
|
@ -76,7 +76,7 @@ wxWindow *AssTransformFramerateFilter::GetConfigDialogWindow(wxWindow *parent, a
|
||||||
// Input sizer
|
// Input sizer
|
||||||
wxSizer *InputSizer = new wxBoxSizer(wxHORIZONTAL);
|
wxSizer *InputSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
wxString initialInput;
|
wxString initialInput;
|
||||||
wxButton *FromVideo = new wxButton(base,-1,_("From video"));
|
wxButton *FromVideo = new wxButton(base,-1,_("From &video"));
|
||||||
if (Input->IsLoaded()) {
|
if (Input->IsLoaded()) {
|
||||||
initialInput = wxString::Format("%2.3f",Input->FPS());
|
initialInput = wxString::Format("%2.3f",Input->FPS());
|
||||||
FromVideo->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &AssTransformFramerateFilter::OnFpsFromVideo, this);
|
FromVideo->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &AssTransformFramerateFilter::OnFpsFromVideo, this);
|
||||||
|
@ -96,11 +96,11 @@ wxWindow *AssTransformFramerateFilter::GetConfigDialogWindow(wxWindow *parent, a
|
||||||
wxSizer *OutputSizer = new wxBoxSizer(wxVERTICAL);
|
wxSizer *OutputSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
// Output top line
|
// Output top line
|
||||||
RadioOutputVFR = new wxRadioButton(base,-1,_("Variable"),wxDefaultPosition,wxDefaultSize,wxRB_GROUP);
|
RadioOutputVFR = new wxRadioButton(base,-1,_("V&ariable"),wxDefaultPosition,wxDefaultSize,wxRB_GROUP);
|
||||||
OutputSizerTop->Add(RadioOutputVFR,0,wxEXPAND,0);
|
OutputSizerTop->Add(RadioOutputVFR,0,wxEXPAND,0);
|
||||||
|
|
||||||
// Output bottom line
|
// Output bottom line
|
||||||
RadioOutputCFR = new wxRadioButton(base,-1,_("Constant: "));
|
RadioOutputCFR = new wxRadioButton(base,-1,_("&Constant: "));
|
||||||
wxString initialOutput = initialInput;
|
wxString initialOutput = initialInput;
|
||||||
if (!Output->IsVFR()) {
|
if (!Output->IsVFR()) {
|
||||||
RadioOutputVFR->Enable(false);
|
RadioOutputVFR->Enable(false);
|
||||||
|
@ -112,7 +112,7 @@ wxWindow *AssTransformFramerateFilter::GetConfigDialogWindow(wxWindow *parent, a
|
||||||
OutputSizerBottom->AddStretchSpacer(1);
|
OutputSizerBottom->AddStretchSpacer(1);
|
||||||
|
|
||||||
// Reverse checkbox
|
// Reverse checkbox
|
||||||
Reverse = new wxCheckBox(base,-1,_("Reverse transformation"));
|
Reverse = new wxCheckBox(base,-1,_("&Reverse transformation"));
|
||||||
|
|
||||||
// Output final
|
// Output final
|
||||||
OutputSizer->Add(OutputSizerTop,0,wxLEFT,5);
|
OutputSizer->Add(OutputSizerTop,0,wxLEFT,5);
|
||||||
|
|
|
@ -297,9 +297,9 @@ Interface_Hotkeys::Interface_Hotkeys(wxTreebook *book, Preferences *parent)
|
||||||
, model(new HotkeyDataViewModel(parent))
|
, model(new HotkeyDataViewModel(parent))
|
||||||
{
|
{
|
||||||
quick_search = new wxSearchCtrl(this, -1);
|
quick_search = new wxSearchCtrl(this, -1);
|
||||||
wxButton *new_button = new wxButton(this, -1, _("New"));
|
wxButton *new_button = new wxButton(this, -1, _("&New"));
|
||||||
wxButton *edit_button = new wxButton(this, -1, _("Edit"));
|
wxButton *edit_button = new wxButton(this, -1, _("&Edit"));
|
||||||
wxButton *delete_button = new wxButton(this, -1, _("Delete"));
|
wxButton *delete_button = new wxButton(this, -1, _("&Delete"));
|
||||||
|
|
||||||
new_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &Interface_Hotkeys::OnNewButton, this);
|
new_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &Interface_Hotkeys::OnNewButton, this);
|
||||||
edit_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &Interface_Hotkeys::OnEditButton, this);
|
edit_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &Interface_Hotkeys::OnEditButton, this);
|
||||||
|
@ -584,7 +584,7 @@ Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences"
|
||||||
wxStdDialogButtonSizer *stdButtonSizer = CreateStdDialogButtonSizer(wxOK | wxCANCEL | wxAPPLY);
|
wxStdDialogButtonSizer *stdButtonSizer = CreateStdDialogButtonSizer(wxOK | wxCANCEL | wxAPPLY);
|
||||||
applyButton = stdButtonSizer->GetApplyButton();
|
applyButton = stdButtonSizer->GetApplyButton();
|
||||||
wxSizer *buttonSizer = new wxBoxSizer(wxHORIZONTAL);
|
wxSizer *buttonSizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
wxButton *defaultButton = new wxButton(this, -1, _("Restore Defaults"));
|
wxButton *defaultButton = new wxButton(this, -1, _("&Restore Defaults"));
|
||||||
buttonSizer->Add(defaultButton, wxSizerFlags(0).Expand());
|
buttonSizer->Add(defaultButton, wxSizerFlags(0).Expand());
|
||||||
buttonSizer->AddStretchSpacer(1);
|
buttonSizer->AddStretchSpacer(1);
|
||||||
buttonSizer->Add(stdButtonSizer, wxSizerFlags(0).Expand());
|
buttonSizer->Add(stdButtonSizer, wxSizerFlags(0).Expand());
|
||||||
|
|
|
@ -170,7 +170,7 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context)
|
||||||
// Top controls
|
// Top controls
|
||||||
wxArrayString styles;
|
wxArrayString styles;
|
||||||
styles.Add("Default");
|
styles.Add("Default");
|
||||||
CommentBox = new wxCheckBox(this,wxID_ANY,_("Comment"));
|
CommentBox = new wxCheckBox(this,wxID_ANY,_("&Comment"));
|
||||||
StyleBox = new wxComboBox(this,wxID_ANY,"Default",wxDefaultPosition,wxSize(110,-1),styles,wxCB_READONLY | wxTE_PROCESS_ENTER);
|
StyleBox = new wxComboBox(this,wxID_ANY,"Default",wxDefaultPosition,wxSize(110,-1),styles,wxCB_READONLY | wxTE_PROCESS_ENTER);
|
||||||
ActorBox = new wxComboBox(this,wxID_ANY,"Actor",wxDefaultPosition,wxSize(110,-1),styles,wxCB_DROPDOWN | wxTE_PROCESS_ENTER);
|
ActorBox = new wxComboBox(this,wxID_ANY,"Actor",wxDefaultPosition,wxSize(110,-1),styles,wxCB_DROPDOWN | wxTE_PROCESS_ENTER);
|
||||||
Effect = new wxTextCtrl(this,wxID_ANY,"",wxDefaultPosition,wxSize(80,-1),wxTE_PROCESS_ENTER);
|
Effect = new wxTextCtrl(this,wxID_ANY,"",wxDefaultPosition,wxSize(80,-1),wxTE_PROCESS_ENTER);
|
||||||
|
@ -204,11 +204,11 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context)
|
||||||
MAKE_BUTTON(button_color_two_16, _("Secondary color"));
|
MAKE_BUTTON(button_color_two_16, _("Secondary color"));
|
||||||
MAKE_BUTTON(button_color_three_16, _("Outline color"));
|
MAKE_BUTTON(button_color_three_16, _("Outline color"));
|
||||||
MAKE_BUTTON(button_color_four_16, _("Shadow color"));
|
MAKE_BUTTON(button_color_four_16, _("Shadow color"));
|
||||||
MAKE_BUTTON(button_audio_commit_16, _("Commits the text (Enter). Hold Ctrl to stay in line (%KEY%)."));
|
MAKE_BUTTON(button_audio_commit_16, _("Commits the text (Enter)"));
|
||||||
#undef MAKE_BUTTON
|
#undef MAKE_BUTTON
|
||||||
|
|
||||||
ByTime = new wxRadioButton(this,wxID_ANY,_("Time"),wxDefaultPosition,wxDefaultSize,wxRB_GROUP);
|
ByTime = new wxRadioButton(this,wxID_ANY,_("&Time"),wxDefaultPosition,wxDefaultSize,wxRB_GROUP);
|
||||||
ByFrame = new wxRadioButton(this,wxID_ANY,_("Frame"));
|
ByFrame = new wxRadioButton(this,wxID_ANY,_("F&rame"));
|
||||||
ByFrame->Enable(false);
|
ByFrame->Enable(false);
|
||||||
|
|
||||||
// Tooltips
|
// Tooltips
|
||||||
|
|
Loading…
Reference in a new issue