Opened 6 years ago

Closed 6 years ago

#15126 closed enhancement (fixed)

wxDocManager::FindDocumentByFileName() convenience method

Reported by: troelsk Owned by: vadz
Priority: normal Milestone:
Component: GUI-generic Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: yes


I don't know if the name is good, maybe FindOpenDocument() or FindDocument() is better.

Attachments (1)

finddoc.patch download (2.8 KB) - added by troelsk 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by troelsk


comment:1 Changed 6 years ago by vadz

  • Owner set to vadz
  • Status changed from new to accepted

We already have FindTemplateForPath() so while this wouldn't be my personal preference, I'm going to call this one FindDocumentByPath().

comment:2 Changed 6 years ago by VZ

  • Resolution set to fixed
  • Status changed from accepted to closed

(In [73730]) Add wxDocManager::FindDocumentByPath() helper.

Simply refactor the code which already existed inside wxDocManager in a new
public method.

Closes #15126.

Note: See TracTickets for help on using tickets.