Interface preferences page
| 202 | |
| 203 | /// Interface preferences page |
| 204 | void Interface(wxTreebook *book, Preferences *parent) { |
| 205 | auto p = new OptionPage(book, parent, _("Interface")); |
| 206 | |
| 207 | auto edit_box = p->PageSizer(_("Edit Box")); |
| 208 | p->OptionAdd(edit_box, _("Enable call tips"), "App/Call Tips"); |
| 209 | p->OptionAdd(edit_box, _("Overwrite in time boxes"), "Subtitle/Time Edit/Insert Mode"); |
| 210 | p->CellSkip(edit_box); |
| 211 | p->OptionAdd(edit_box, _("Enable syntax highlighting"), "Subtitle/Highlight/Syntax"); |
| 212 | p->OptionBrowse(edit_box, _("Dictionaries path"), "Path/Dictionary"); |
| 213 | p->OptionFont(edit_box, "Subtitle/Edit Box/"); |
| 214 | |
| 215 | auto character_count = p->PageSizer(_("Character Counter")); |
| 216 | p->OptionAdd(character_count, _("Maximum characters per line"), "Subtitle/Character Limit", 0, 1000); |
| 217 | p->OptionAdd(character_count, _("Characters Per Second Warning Threshold"), "Subtitle/Character Counter/CPS Warning Threshold", 0, 1000); |
| 218 | p->OptionAdd(character_count, _("Characters Per Second Error Threshold"), "Subtitle/Character Counter/CPS Error Threshold", 0, 1000); |
| 219 | p->OptionAdd(character_count, _("Ignore whitespace"), "Subtitle/Character Counter/Ignore Whitespace"); |
| 220 | p->OptionAdd(character_count, _("Ignore punctuation"), "Subtitle/Character Counter/Ignore Punctuation"); |
| 221 | |
| 222 | auto grid = p->PageSizer(_("Grid")); |
| 223 | p->OptionAdd(grid, _("Focus grid on click"), "Subtitle/Grid/Focus Allow"); |
| 224 | p->OptionAdd(grid, _("Highlight visible subtitles"), "Subtitle/Grid/Highlight Subtitles in Frame"); |
| 225 | p->OptionAdd(grid, _("Hide overrides symbol"), "Subtitle/Grid/Hide Overrides Char"); |
| 226 | p->OptionFont(grid, "Subtitle/Grid/"); |
| 227 | |
| 228 | auto tl_assistant = p->PageSizer(_("Translation Assistant")); |
| 229 | p->OptionAdd(tl_assistant, _("Skip over whitespace"), "Tool/Translation Assistant/Skip Whitespace"); |
| 230 | |
| 231 | p->SetSizerAndFit(p->sizer); |
| 232 | } |
| 233 | |
| 234 | /// Interface Colours preferences subpage |
| 235 | void Interface_Colours(wxTreebook *book, Preferences *parent) { |
no test coverage detected