Added wxFilePickerCtrl::SetInitialDirectory().
This method allows to configure the initial directory to be shown when browsing for files in an initially empty wxFileDirPickerCtrl. It is also available for wxDirPickerCtrl but is less useful there. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -130,6 +130,20 @@ public:
|
||||
*/
|
||||
void SetFileName(const wxFileName& filename);
|
||||
|
||||
/**
|
||||
Set the directory to show when starting to browse for files.
|
||||
|
||||
This function is mostly useful for the file picker controls which have
|
||||
no selection initially to configure the directory that should be shown
|
||||
if the user starts browsing for files as otherwise the directory of
|
||||
initially selected file is used, which is usually the desired
|
||||
behaviour and so the directory specified by this function is ignored in
|
||||
this case.
|
||||
|
||||
@since 2.9.4
|
||||
*/
|
||||
void SetInitialDirectory(const wxString& dir);
|
||||
|
||||
/**
|
||||
Sets the absolute path of the currently selected file.
|
||||
This must be a valid file if the @c wxFLP_FILE_MUST_EXIST style was given.
|
||||
@@ -252,6 +266,20 @@ public:
|
||||
*/
|
||||
void SetDirName(const wxFileName& dirname);
|
||||
|
||||
/**
|
||||
Set the directory to show when starting to browse for directories.
|
||||
|
||||
This function is mostly useful for the directory picker controls which
|
||||
have no selection initially to configure the directory that should be
|
||||
shown if the user starts browsing for directories as otherwise the
|
||||
initially selected directory is used, which is usually the desired
|
||||
behaviour and so the directory specified by this function is ignored in
|
||||
this case.
|
||||
|
||||
@since 2.9.4
|
||||
*/
|
||||
void SetInitialDirectory(const wxString& dir);
|
||||
|
||||
/**
|
||||
Sets the absolute path of (the default converter uses current locale's
|
||||
charset)the currently selected directory.
|
||||
|
Reference in New Issue
Block a user