X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68a8473f93becdc157ec6b47ab33a2a3acaa594a..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/filedlg.h?ds=sidebyside diff --git a/interface/wx/filedlg.h b/interface/wx/filedlg.h index 83648a7fa6..92ac23c70c 100644 --- a/interface/wx/filedlg.h +++ b/interface/wx/filedlg.h @@ -2,7 +2,6 @@ // Name: filedlg.h // Purpose: interface of wxFileDialog // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -183,6 +182,26 @@ public: */ virtual ~wxFileDialog(); + /** + Returns the path of the file currently selected in dialog. + + Notice that this file is not necessarily going to be accepted by the + user, so calling this function mostly makes sense from an update UI + event handler of a custom file dialog extra control to update its state + depending on the currently selected file. + + Currently this function is fully implemented under GTK and MSW and + always returns an empty string elsewhere. + + @since 2.9.5 + + @return The path of the currently selected file or an empty string if + nothing is selected. + + @see SetExtraControlCreator() + */ + virtual wxString GetCurrentlySelectedFilename() const; + /** Returns the default directory. */