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 10095 for ps


Ignore:
Timestamp:
08/26/11 03:56:14 (13 years ago)
Author:
ben
Message:

Fixes use of deprecated wxWidgets constants as they don't work on all platforms (only when the library was built with WXWIN_COMPATIBILITY_2_6).

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

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/tools/atlas/AtlasUI/ActorEditor/ActorEditor.cpp

    r6910 r10095  
    1 /* Copyright (C) 2009 Wildfire Games.
     1/* Copyright (C) 2011 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
     
    385385    wxString parentEntityFilename
    386386        (wxFileSelector(_("Choose a parent entity"), entityPath.GetPath(), _T(""),
    387         _T("xml"), _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxOPEN, this));
     387        _T("xml"), _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxFD_OPEN, this));
    388388
    389389    if (! parentEntityFilename.Length())
     
    395395    wxString outputEntityFilename
    396396        (wxFileSelector(_("Choose a filename to save as"), entityPath.GetPath(), entityName,
    397         _T("xml"), _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxSAVE|wxOVERWRITE_PROMPT, this));
     397        _T("xml"), _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxFD_SAVE|wxFD_OVERWRITE_PROMPT, this));
    398398
    399399    if (! outputEntityFilename.Length())
  • ps/trunk/source/tools/atlas/AtlasUI/CustomControls/EditableListCtrl/QuickFileCtrl.cpp

    r6910 r10095  
    1 /* Copyright (C) 2009 Wildfire Games.
     1/* Copyright (C) 2011 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
     
    139139        }
    140140
    141         wxFileDialog dlg(this, _("Choose a file"), defaultDir, defaultFile, m_FileMask, wxOPEN);
     141        wxFileDialog dlg(this, _("Choose a file"), defaultDir, defaultFile, m_FileMask, wxFD_OPEN);
    142142
    143143        parent->m_DisableKillFocus = true;
  • ps/trunk/source/tools/atlas/AtlasUI/CustomControls/Windows/AtlasWindow.cpp

    r9911 r10095  
    216216    }
    217217
    218     wxFileDialog dlg (this, _("Select XML file to open"), path, name, _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxOPEN);
     218    wxFileDialog dlg (this, _("Select XML file to open"), path, name, _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxFD_OPEN);
    219219
    220220    if (dlg.ShowModal() != wxID_OK)
     
    263263            GetCurrentFilename().GetPath(), GetCurrentFilename().GetFullName(),
    264264            //_T(""), _T(""),
    265             _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxSAVE | wxOVERWRITE_PROMPT);
     265            _("XML files (*.xml)|*.xml|All files (*.*)|*.*"), wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
    266266
    267267        if (dlg.ShowModal() != wxID_OK)
  • ps/trunk/source/tools/atlas/AtlasUI/General/VideoRecorder/VideoRecorder.cpp

    r10037 r10095  
    1 /* Copyright (C) 2009 Wildfire Games.
     1/* Copyright (C) 2011 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
     
    160160        wxCHECK(filenameWin, );
    161161
    162         wxFileDialog dlg (this, wxFileSelectorPromptStr, filenameWin->GetValue(), filenameWin->GetValue(), _("MP4 files (*.mp4)|*.mp4"), wxSAVE);
     162        wxFileDialog dlg (this, wxFileSelectorPromptStr, filenameWin->GetValue(), filenameWin->GetValue(), _("MP4 files (*.mp4)|*.mp4"), wxFD_SAVE);
    163163        if (dlg.ShowModal() != wxID_OK)
    164164            return;
  • ps/trunk/source/tools/atlas/AtlasUI/ScenarioEditor/ScenarioEditor.cpp

    r10064 r10095  
    638638        Datafile::GetDataDirectory() + _T("/mods/public/maps/scenarios"), m_OpenFilename,
    639639        _T("PMP files (*.pmp)|*.pmp|All files (*.*)|*.*"),
    640         wxOPEN);
     640        wxFD_OPEN);
    641641
    642642    wxString cwd = wxFileName::GetCwd();
     
    696696        Datafile::GetDataDirectory() + _T("/mods/public/maps/scenarios"), m_OpenFilename,
    697697        _T("PMP files (*.pmp)|*.pmp|All files (*.*)|*.*"),
    698         wxSAVE | wxOVERWRITE_PROMPT);
     698        wxFD_SAVE | wxFD_OVERWRITE_PROMPT);
    699699
    700700    if (dlg.ShowModal() == wxID_OK)
  • ps/trunk/source/tools/atlas/AtlasUI/ScenarioEditor/Tools/PlaceObject.cpp

    r10037 r10095  
    1 /* Copyright (C) 2009 Wildfire Games.
     1/* Copyright (C) 2011 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
     
    116116    {
    117117        int dir = 0;
    118         if (wxGetKeyState(WXK_NEXT))  ++dir; // page-down key
    119         if (wxGetKeyState(WXK_PRIOR)) --dir; // page-up key
     118        if (wxGetKeyState(WXK_PAGEDOWN))  ++dir; // page-down key
     119        if (wxGetKeyState(WXK_PAGEUP)) --dir; // page-up key
    120120        if (dir)
    121121        {
Note: See TracChangeset for help on using the changeset viewer.