#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

Description

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 16 months ago.
Trunk

Download all attachments as: .zip

Change History (3)

Changed 16 months ago by troelsk

Trunk

comment:1 Changed 16 months 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 16 months 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.