Exemplo n.º 1
0
void CPluginItemDialog::OnButtonBrowse(wxCommandEvent& event)
{
#ifdef WIN32
	wxString ext_str(_T("*.dll"));
#else
	wxString ext_str(_T("*.so*"));
#endif
	wxString wildcard_string = wxString(_("shared library files")) + _T(" |") + ext_str;

    wxFileDialog dialog(this, _("Choose shared library file"), wxEmptyString, wxEmptyString, wildcard_string);
    dialog.CentreOnParent();

    if (dialog.ShowModal() == wxID_OK)
    {
		m_path_text_ctrl->SetValue(dialog.GetPath());
    }
}
Exemplo n.º 2
0
void CFilter::addExt  (const TCHAR *ext)
{
	CString ext_str (ext);
	ext_str.TrimLeft ();
	ext_str.TrimRight ();
	if (!ext_str.IsEmpty ())
	{
		m_Ext.push_back (ext_str);
		removeDups ();
	}	
}