Differential D2076 Diff 8988 ps/trunk/source/tools/atlas/AtlasUI/CustomControls/FileHistory/FileHistory.h
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/tools/atlas/AtlasUI/CustomControls/FileHistory/FileHistory.h
/* Copyright (C) 2012 Wildfire Games. | /* Copyright (C) 2019 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 13 Lines | |||||
class FileHistory : public wxFileHistory | class FileHistory : public wxFileHistory | ||||
{ | { | ||||
public: | public: | ||||
FileHistory(const wxString& configSubdir); // treated as relative - use "/AppName" | FileHistory(const wxString& configSubdir); // treated as relative - use "/AppName" | ||||
virtual void LoadFromSubDir(wxConfigBase& config); | virtual void LoadFromSubDir(wxConfigBase& config); | ||||
virtual void SaveToSubDir(wxConfigBase& config); | virtual void SaveToSubDir(wxConfigBase& config); | ||||
private: | private: | ||||
#if wxCHECK_VERSION(2, 9, 0) | |||||
virtual void Load(const wxConfigBase& config) | virtual void Load(const wxConfigBase& config) | ||||
#else | |||||
virtual void Load(wxConfigBase& config) | |||||
#endif | |||||
{ | { | ||||
wxFileHistory::Load(config); | wxFileHistory::Load(config); | ||||
} | } | ||||
virtual void Save(wxConfigBase& config) | virtual void Save(wxConfigBase& config) | ||||
{ | { | ||||
wxFileHistory::Save(config); | wxFileHistory::Save(config); | ||||
} | } | ||||
wxString m_configSubdir; | wxString m_configSubdir; | ||||
}; | }; | ||||
#endif // INCLUDED_FILEHISTORY | #endif // INCLUDED_FILEHISTORY |
Wildfire Games · Phabricator