Added optional parameter to SelectDocumentType() and SelectViewType() to allow the choice lists of documents/views to be alphabetically sorted if desired. Default behavior is FALSE on the sort to maintain backward compatability.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1435,9 +1435,9 @@ wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates,
|
||||
}
|
||||
|
||||
wxDocTemplate *wxDocManager::SelectDocumentType(wxDocTemplate **templates,
|
||||
int noTemplates)
|
||||
int noTemplates, bool sort)
|
||||
{
|
||||
wxArrayString strings;
|
||||
wxArrayString strings(sort);
|
||||
wxDocTemplate **data = new wxDocTemplate *[noTemplates];
|
||||
int i;
|
||||
int n = 0;
|
||||
@@ -1483,9 +1483,9 @@ wxDocTemplate *wxDocManager::SelectDocumentType(wxDocTemplate **templates,
|
||||
}
|
||||
|
||||
wxDocTemplate *wxDocManager::SelectViewType(wxDocTemplate **templates,
|
||||
int noTemplates)
|
||||
int noTemplates, bool sort)
|
||||
{
|
||||
wxArrayString strings;
|
||||
wxArrayString strings(sort);
|
||||
wxDocTemplate **data = new wxDocTemplate *[noTemplates];
|
||||
int i;
|
||||
int n = 0;
|
||||
|
Reference in New Issue
Block a user