This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10159 for ps


Ignore:
Timestamp:
09/01/11 06:47:45 (13 years ago)
Author:
ben
Message:

Sets default wxFileDialog filters in Atlas.

Location:
ps/trunk/source/tools/atlas/AtlasUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.cpp

    r10095 r10159  
    217217
    218218    wxFileDialog dlg (this, _("Select XML file to open"), path, name, _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxFD_OPEN);
     219    // Set default filter
     220    dlg.SetFilterIndex(0);
    219221
    220222    if (dlg.ShowModal() != wxID_OK)
     
    264266            //_T(""), _T(""),
    265267            _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
     268        // Set default filter
     269        dlg.SetFilterIndex(0);
    266270
    267271        if (dlg.ShowModal() != wxID_OK)
  • ps/trunk/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp

    r10131 r10159  
    651651        _T("PMP files (*.pmp)|*.pmp|All files (*.*)|*.*"),
    652652        wxFD_OPEN);
     653    // Set default filter
     654    dlg.SetFilterIndex(0);
    653655
    654656    wxString cwd = wxFileName::GetCwd();
     
    709711        _T("PMP files (*.pmp)|*.pmp|All files (*.*)|*.*"),
    710712        wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
     713    // Set default filter
     714    dlg.SetFilterIndex(0);
    711715
    712716    if (dlg.ShowModal() == wxID_OK)
Note: See TracChangeset for help on using the changeset viewer.