backport wxDocManager::MakeNewDocumentName() from the trunk for forward-compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -408,8 +408,22 @@ public:
|
||||
wxList& GetTemplates() { return m_templates; }
|
||||
|
||||
// Make a default document name
|
||||
//
|
||||
// NB: this method is renamed to MakeNewDocumentName() in wx 3.0, you still
|
||||
// need to override it if your code needs to customize the default name
|
||||
// generation but if you just use it from your code, prefer the version
|
||||
// below which is forward-compatible with wx 3.0
|
||||
virtual bool MakeDefaultName(wxString& buf);
|
||||
|
||||
#if wxABI_VERSION >= 20808
|
||||
wxString MakeNewDocumentName() const
|
||||
{
|
||||
wxString s;
|
||||
MakeDefaultName(s);
|
||||
return s;
|
||||
}
|
||||
#endif // wx ABI >= 2.8.8
|
||||
|
||||
// Make a frame title (override this to do something different)
|
||||
virtual wxString MakeFrameTitle(wxDocument* doc);
|
||||
|
||||
|
Reference in New Issue
Block a user