Home
last modified time | relevance | path

Searched refs:to_wx (Results 1 – 25 of 69) sorted by relevance

123

/dports/multimedia/aegisub/aegisub-3.2.2/src/
H A Dgrid_column.cpp34 int width = dc.GetTextExtent(to_wx(str)).GetWidth(); in operator ()()
40 return dc.GetTextExtent(to_wx(str)).GetWidth(); in operator ()()
134 return to_wx(d->Start.GetAssFormatted()); in Value()
152 return to_wx(d->End.GetAssFormatted()); in Value()
182 return to_wx(d->Style); in Value()
196 return to_wx(d->Effect); in Value()
210 return to_wx(d->Actor); in Value()
330 [&](agi::OptionValue const& v) { replace_char = to_wx(v.GetString()); })) in GridColumnText()
346 str = to_wx(d->Text); in Value()
353 str += to_wx(text.substr(start, pos - start)); in Value()
[all …]
H A Dauto4_lua_dialog.cpp145 return new wxStaticText(parent, -1, to_wx(label)); in Create()
178 cw = new wxTextCtrl(parent, -1, to_wx(text)); in Create()
181 cw->SetToolTip(to_wx(hint)); in Create()
209 cw->SetToolTip(to_wx(hint)); in Create()
227 cw->SetToolTip(to_wx(hint)); in Create()
258 cw->SetToolTip(to_wx(hint)); in Create()
297 scd->SetToolTip(to_wx(hint)); in Create()
303 cw->SetToolTip(to_wx(hint)); in Create()
333 cw->SetToolTip(to_wx(hint)); in Create()
360 cw = new wxCheckBox(parent, -1, to_wx(label)); in Create()
[all …]
H A Dcompat.h12 inline wxColour to_wx(agi::Color color) { return wxColour(color.r, color.g, color.b, 255 - color.a)… in to_wx() function
13 inline wxString to_wx(std::string const& str) { return wxString(str.c_str(), wxConvUTF8); } in to_wx() function
14 wxArrayString to_wx(std::vector<std::string> const& vec);
H A Dpen.cpp23 impl.SetColour(to_wx(opt.GetColor())); in OnColourChanged()
31 : impl(to_wx(OPT_GET(colour_opt)->GetColor()), OPT_GET(width_opt)->GetInt(), style) in Pen()
38 : impl(to_wx(OPT_GET(colour_opt)->GetColor()), width, style) in Pen()
H A Dsubs_edit_ctrl.cpp215 StyleSetBackground(id, to_wx(background->GetColor())); in SetSyntaxStyle()
227 auto default_background = to_wx(OPT_GET("Colour/Subtitle/Background")->GetColor()); in SetStyles()
364 to_wx(OPT_GET("Tool/Spell Checker/Language")->GetString()), in OnContextMenu()
365 to_wx(spellchecker->GetLanguageList()))); in OnContextMenu()
417 subMenu->Append(EDIT_MENU_SUGGESTIONS+i, to_wx(sugs[i])); in AddSpellCheckerEntries()
427 menu.Append(EDIT_MENU_SUGGESTIONS+i, to_wx(sugs[i])); in AddSpellCheckerEntries()
448 thesMenu->Append(EDIT_MENU_THESAURUS_SUGS+curThesEntry, to_wx(result.first)); in AddThesaurusEntries()
456 subMenu->Append(EDIT_MENU_THESAURUS_SUGS+curThesEntry, to_wx(sug)); in AddThesaurusEntries()
461 thesMenu->Append(-1, to_wx(result.first), subMenu); in AddThesaurusEntries()
473 to_wx(OPT_GET("Tool/Thesaurus/Language")->GetString()), in AddThesaurusEntries()
[all …]
H A Dutils.cpp143 cb->SetData(new wxTextDataObject(to_wx(new_data))); in SetClipboard()
246 return to_wx(value); in FontFace()
252 path = to_wx(OPT_GET(option_name)->GetString()); in FileSelector()
253 …agi::fs::path filename = wxFileSelector(message, path, to_wx(default_filename), to_wx(default_exte… in FileSelector()
277 return to_wx(utf8); in LocalizedLanguageName()
H A Ddialog_styling_assistant.cpp51 …sizer->Add(new wxStaticText(parent, -1, to_wx(hotkey::get_hotkey_str_first("Styling Assistant", co… in add_hotkey()
73 …style_list = new wxListBox(this, -1, wxDefaultPosition, wxSize(150, 180), to_wx(context->ass->GetS… in DialogStyling()
160 current_line_text->SetValue(to_wx(active_line->Text)); in OnActiveLineChanged()
161 style_name->SetValue(to_wx(active_line->Style)); in OnActiveLineChanged()
165 style_list->SetStringSelection(to_wx(active_line->Style)); in OnActiveLineChanged()
186 style_list->Set(to_wx(c->ass->GetStyles())); in OnActivate()
H A Dbase_grid.cpp180 …row_colors.Default.SetColour(to_wx(OPT_GET("Colour/Subtitle Grid/Background/Background")->GetColor… in UpdateStyle()
181 row_colors.Header.SetColour(to_wx(OPT_GET("Colour/Subtitle Grid/Header")->GetColor())); in UpdateStyle()
182 …row_colors.Selection.SetColour(to_wx(OPT_GET("Colour/Subtitle Grid/Background/Selection")->GetColo… in UpdateStyle()
183 …row_colors.Comment.SetColour(to_wx(OPT_GET("Colour/Subtitle Grid/Background/Comment")->GetColor())… in UpdateStyle()
184 …row_colors.Visible.SetColour(to_wx(OPT_GET("Colour/Subtitle Grid/Background/Inframe")->GetColor())… in UpdateStyle()
186 row_colors.LeftCol.SetColour(to_wx(OPT_GET("Colour/Subtitle Grid/Left Column")->GetColor())); in UpdateStyle()
301 wxColour text_standard(to_wx(OPT_GET("Colour/Subtitle Grid/Standard")->GetColor())); in OnPaint()
302 wxColour text_selection(to_wx(OPT_GET("Colour/Subtitle Grid/Selection")->GetColor())); in OnPaint()
303 wxColour text_collision(to_wx(OPT_GET("Colour/Subtitle Grid/Collision")->GetColor())); in OnPaint()
306 wxPen grid_pen(to_wx(OPT_GET("Colour/Subtitle Grid/Lines")->GetColor())); in OnPaint()
[all …]
H A Ddialog_export.cpp110 filter_list = new wxCheckListBox(&d, -1, wxDefaultPosition, wxSize(200, 100), to_wx(filters)); in DialogExport()
147 if (!charset_list->SetStringSelection(to_wx(c->ass->Properties.export_encoding))) in DialogExport()
189 …auto filename = SaveFileSelector(_("Export subtitles file"), "", "", "", to_wx(SubtitleFormat::Get… in OnProcess()
204 …wxMessageBox(to_wx(err.GetMessage()), "Error exporting subtitles", wxOK | wxICON_ERROR | wxCENTER,… in OnProcess()
207 wxMessageBox(to_wx(err.what()), "Error exporting subtitles", wxOK | wxICON_ERROR | wxCENTER, &d); in OnProcess()
219 filter_description->SetValue(to_wx(exporter.GetDescription(from_wx(sel)))); in OnChange()
H A Dtimeedit_ctrl.cpp57 : wxTextCtrl(parent, id, to_wx(value), wxDefaultPosition, size, wxTE_CENTRE | wxTE_PROCESS_ENTER) in TimeEdit()
70 if (value.empty()) SetValue(to_wx(time.GetAssFormatted())); in TimeEdit()
118 ChangeValue(to_wx(time.GetAssFormatted())); in UpdateText()
193 SetValue(to_wx(time.GetAssFormatted())); in OnChar()
H A Ddialog_attachments.cpp116 listView->InsertItem(row, to_wx(attach.GetFileName(true))); in UpdateList()
118 listView->SetItem(row, 2, to_wx(attach.GroupHeader())); in UpdateList()
139 to_wx(OPT_GET("Path/Fonts Collector Destination")->GetString()), "", "Font Files (*.ttf)|*.ttf", in OnAttachFont()
164 …path = wxDirSelector(_("Select the path to save the files to:"), to_wx(OPT_GET("Path/Fonts Collect… in OnExtract()
H A Dcompat.cpp16 wxArrayString to_wx(std::vector<std::string> const& vec) { in to_wx() function
19 …transform(vec.begin(), vec.end(), std::back_inserter(ret), (wxString (*)(std::string const&))to_wx in to_wx()
H A Ddialog_spellchecker.cpp147 dictionary_lang_codes = to_wx(spellchecker->GetLanguageList()); in DialogSpellChecker()
160 wxString cur_lang = to_wx(OPT_GET("Tool/Spell Checker/Language")->GetString()); in DialogSpellChecker()
339 if (to_wx(active_line->Text.get().substr(word_start, word_len)) == orig_word->GetValue()) { in Replace()
349 orig_word->SetValue(to_wx(word)); in SetWord()
351 wxArrayString suggestions = to_wx(spellchecker->GetSuggestions(word)); in SetWord()
352 replace_word->SetValue(suggestions.size() ? suggestions[0] : to_wx(word)); in SetWord()
H A Dmain.cpp210 …wxMessageBox("Configuration file is invalid. Error reported:\n" + to_wx(err.GetMessage()), "Error"… in OnInit()
308 wxMessageBox(to_wx(e.GetMessage()), "Error saving config file", wxOK | wxICON_ERROR | wxCENTER); in OnInit()
326 wxMessageBox(to_wx(e.GetMessage()), "Fatal error while initializing"); in OnInit()
330 wxMessageBox(to_wx(e.what()), "Fatal error while initializing"); in OnInit()
422 SHOW_EXCEPTION(to_wx(e.GetMessage())); in OnExceptionInMainLoop()
425 SHOW_EXCEPTION(to_wx(e.what())); in OnExceptionInMainLoop()
H A Dsubs_edit_box.cpp321 style_box->Append(to_wx(c->ass->GetStyles())); in OnCommit()
332 style_box->Select(style_box->FindString(to_wx(line->Style))); in OnCommit()
359 style_box->Select(style_box->FindString(to_wx(line->Style))); in UpdateFields()
364 effect_box->ChangeValue(to_wx(line->Effect)); in UpdateFields()
365 effect_box->SetStringSelection(to_wx(line->Effect)); in UpdateFields()
368 actor_box->ChangeValue(to_wx(line->Actor)); in UpdateFields()
369 actor_box->SetStringSelection(to_wx(line->Actor)); in UpdateFields()
386 (wxString (*)(std::string const&))to_wx); in PopulateList()
415 secondary_editor->SetValue(to_wx(new_text)); in OnLineInitialTextChanged()
586 secondary_editor->SetValue(to_wx(c->initialLineState->GetInitialText())); in OnSplit()
[all …]
H A Ddialog_version_check.cpp107 text = new wxStaticText(this, -1, to_wx(update.friendly_name)); in VersionCheckerResultDialog()
113 …wxTextCtrl *descbox = new wxTextCtrl(this, -1, to_wx(update.description), wxDefaultPosition, wxSiz… in VersionCheckerResultDialog()
116 …main_sizer->Add(new wxHyperlinkCtrl(this, -1, to_wx(update.url), to_wx(update.url)), 0, wxALIGN_LE… in VersionCheckerResultDialog()
281 return to_wx(OPT_GET("App/Language")->GetString()); in GetAegisubLanguage()
H A Dproject.cpp91 ShowError(to_wx(message)); in ShowError()
256 return ShowError(_("The audio file was not found: ") + to_wx(e.GetMessage())); in DoLoadAudio()
264 …file as containing audio data.\n\nThe following providers were tried:\n") + to_wx(e.GetMessage())); in DoLoadAudio()
267 …e to handle the selected file.\n\nThe following providers were tried:\n") + to_wx(e.GetMessage())); in DoLoadAudio()
298 ShowError(to_wx(err.GetMessage())); in DoLoadVideo()
302 ShowError(to_wx(err.GetMessage())); in DoLoadVideo()
320 wxMessageBox(to_wx(warning), "Warning", wxICON_WARNING | wxOK); in DoLoadVideo()
H A Dmenu.cpp162 …item.second->SetItemLabel(text + to_wx("\t" + hotkey::get_hotkey_str_first("Default", c->name()))); in UpdateItemName()
173 return AddCommand(co, parent, text.empty() ? co->StrMenu(context) : _(to_wx(text))); in AddCommand()
189 menu_text += to_wx("\t" + hotkey::get_hotkey_str_first("Default", co->name())); in AddCommand()
339 wxString tl_text = _(to_wx(text)); in process_menu_item()
375 parent->Append(-1, to_wx(e.GetMessage()))->Enable(false); in process_menu_item()
461 menu->Append(build_menu(submenu, c, &menu->cm), _(to_wx(disp))); in GetMenuBar()
466 menu->Append(new AutomationMenu(c, &menu->cm), _(to_wx(disp))); in GetMenuBar()
H A Dauto4_base.cpp138 to_wx(style->font), in CalculateTextExtents()
142 wxString wtext(to_wx(text)); in CalculateTextExtents()
214 w.Create(bsr->GetParentWindow(), -1, to_wx(bsr->GetTitle())); in ShowDialog()
232 : impl(new DialogProgress(parent, to_wx(title))) in BackgroundScriptRunner()
389 first_char, to_wx(trimmed)); in Reload()
397 first_char, to_wx(trimmed), basepath.wstring(), sfname.wstring()); in Reload()
H A Daegisublocale.cpp64 translations->SetLanguage(to_wx(language)); in Init()
75 return std::find(langs.begin(), langs.end(), to_wx(language)) != langs.end(); in HasLanguage()
H A Ddialog_automation.cpp182 list->SetItem(i, 1, to_wx(script->GetName())); in SetScriptInfo()
184 list->SetItem(i, 3, to_wx(script->GetDescription())); in SetScriptInfo()
223 to_wx(OPT_GET("Path/Last/Automation")->GetString()), in OnAdd()
225 to_wx(Automation4::ScriptFactory::GetWildcardStr()), in OnAdd()
H A Ddialog_style_manager.cpp386 CurrentList->Append(to_wx(style.name)); in LoadCurrentStyles()
395 CurrentList->SetStringSelection(to_wx(dia->Style)); in LoadCurrentStyles()
406 CurrentList->SetStringSelection(to_wx(new_line->Style)); in OnActiveLineChanged()
415 StorageList->Append(to_wx(Store.GetNames())); in UpdateStorage()
448 int opt = CatalogList->FindString(to_wx(pickStyle), false); in LoadCatalog()
586 StorageList->SetStringSelection(to_wx(Store.back()->name)); in PasteToStorage()
594 StorageList->SetStringSelection(to_wx(editor.GetStyleName())); in ShowStorageEditor()
632 CurrentList->SetStringSelection(to_wx(editor.GetStyleName())); in ShowCurrentEditor()
689 wxMessageBox(to_wx(err.GetMessage()), "Error", wxOK | wxICON_ERROR | wxCENTER, this); in OnCurrentImport()
705 …electedChoices(this, selections, _("Choose styles to import:"), _("Import Styles"), to_wx(styles)); in OnCurrentImport()
H A Dpreferences_base.cpp141 auto text = new wxTextCtrl(this, -1 , to_wx(opt->GetString())); in OptionAdd()
174 wxString val(to_wx(opt->GetString())); in OptionChoice()
205 auto text = new wxTextCtrl(this, -1 , to_wx(opt->GetString())); in OptionBrowse()
237 auto font_name = new wxTextCtrl(this, -1, to_wx(face_opt->GetString())); in OptionFont()
H A Dhotkey_data_view_model.cpp86 variant = to_wx(combo.Str()); in GetValue()
97 variant << wxDataViewIconText(to_wx(combo.CmdName()), icon); in GetValue()
104 variant = to_wx(e.GetMessage()); in GetValue()
223 categories.emplace_back(model, to_wx(cat_name)); in HotkeyModelRoot()
/dports/editors/poedit/poedit-1.8.4/src/
H A Dstr_helpers.h121 inline wxString to_wx(NSString *str) in to_wx() function
192 inline wxString to_wx(const icu::UnicodeString& str) in to_wx() function
204 return to_wx(str).ToStdWstring(); in to_wstring()

123