MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / Interface

Function Interface

src/preferences.cpp:204–232  ·  view source on GitHub ↗

Interface preferences page

Source from the content-addressed store, hash-verified

202
203/// Interface preferences page
204void 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
235void Interface_Colours(wxTreebook *book, Preferences *parent) {

Callers 1

PreferencesMethod · 0.85

Calls 5

PageSizerMethod · 0.80
OptionAddMethod · 0.80
CellSkipMethod · 0.80
OptionBrowseMethod · 0.80
OptionFontMethod · 0.80

Tested by

no test coverage detected