![]() |
DDNet documentation
|
#include <file_browser.h>
Classes | |
| class | CFilelistItem |
| class | CPopupNewFolder |
| class | CPopupConfirmDelete |
| class | CPopupConfirmOverwrite |
Public Types | |
| enum class | EFileType { MAP , IMAGE , SOUND } |
| typedef bool(*) | FFileDialogOpenCallback(const char *pFilename, int StorageType, void *pUser) |
Public Member Functions | |
| void | ShowFileDialog (int StorageType, EFileType FileType, const char *pTitle, const char *pButtonText, const char *pInitialPath, const char *pInitialFilename, FFileDialogOpenCallback pfnOpenCallback, void *pOpenCallbackUser) |
| void | Render () |
| bool | IsValidSaveFilename () const |
| void | OnEditorClose () |
| void | OnDialogClose () |
| Public Member Functions inherited from CEditorComponent | |
| void | OnInit (CEditor *pEditor) override |
| virtual void | OnReset () |
| virtual void | OnMapLoad () |
| virtual bool | OnInput (const IInput::CEvent &Event) |
| virtual void | OnUpdate () |
| void | InitSubComponents () |
| void | RegisterSubComponent (CEditorComponent &Component) |
| Public Member Functions inherited from CEditorObject | |
| virtual | ~CEditorObject ()=default |
| CEditor * | Editor () |
| const CEditor * | Editor () const |
| CEditorMap * | Map () |
| const CEditorMap * | Map () const |
| IInput * | Input () |
| const IInput * | Input () const |
| IClient * | Client () |
| const IClient * | Client () const |
| CConfig * | Config () |
| const CConfig * | Config () const |
| IEngine * | Engine () |
| const IEngine * | Engine () const |
| IGraphics * | Graphics () |
| const IGraphics * | Graphics () const |
| ISound * | Sound () |
| const ISound * | Sound () const |
| ITextRender * | TextRender () |
| const ITextRender * | TextRender () const |
| IStorage * | Storage () |
| const IStorage * | Storage () const |
| CUi * | Ui () |
| const CUi * | Ui () const |
| CRenderMap * | RenderMap () |
| const CRenderMap * | RenderMap () const |
Private Types | |
| enum class | ESortDirection { NEUTRAL , ASCENDING , DESCENDING } |
| enum class | EPreviewState { UNLOADED , LOADED , ERROR } |
Private Member Functions | |
| bool | CanPreviewFile () const |
| void | UpdateFilePreview () |
| void | RenderFilePreview (CUIRect Preview) |
| const char * | DetermineFileFontIcon (const CFilelistItem *pItem) const |
| void | UpdateFilenameInput () |
| void | UpdateSelectedIndex (const char *pDisplayName) |
| void | SortFilteredFileList () |
| void | RefreshFilteredFileList () |
| void | FilelistPopulate (int StorageType, bool KeepSelection) |
Static Private Member Functions | |
| static int | DirectoryListingCallback (const CFsFileInfo *pInfo, int IsDir, int StorageType, void *pUser) |
| static std::optional< bool > | CompareCommon (const CFilelistItem *pLhs, const CFilelistItem *pRhs) |
| static bool | CompareFilenameAscending (const CFilelistItem *pLhs, const CFilelistItem *pRhs) |
| static bool | CompareFilenameDescending (const CFilelistItem *pLhs, const CFilelistItem *pRhs) |
| static bool | CompareTimeModifiedAscending (const CFilelistItem *pLhs, const CFilelistItem *pRhs) |
| static bool | CompareTimeModifiedDescending (const CFilelistItem *pLhs, const CFilelistItem *pRhs) |
| typedef bool(*) CFileBrowser::FFileDialogOpenCallback(const char *pFilename, int StorageType, void *pUser) |
|
strong |
|
strongprivate |
|
strongprivate |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
staticprivate |
|
private |
| bool CFileBrowser::IsValidSaveFilename | ( | ) | const |
| void CFileBrowser::OnDialogClose | ( | ) |
| void CFileBrowser::OnEditorClose | ( | ) |
|
private |
| void CFileBrowser::Render | ( | ) |
|
private |
| void CFileBrowser::ShowFileDialog | ( | int | StorageType, |
| EFileType | FileType, | ||
| const char * | pTitle, | ||
| const char * | pButtonText, | ||
| const char * | pInitialPath, | ||
| const char * | pInitialFilename, | ||
| FFileDialogOpenCallback | pfnOpenCallback, | ||
| void * | pOpenCallbackUser ) |
|
private |
|
private |
|
private |
|
private |
|
private |
Text of the confirmation button that opens/saves the file.
|
private |
Path of the current folder being shown in the file browser.
|
private |
Path of the current link being shown in the file browser.
|
private |
Path of the initial folder that the file browser was opened with.
|
private |
Display name of the selected file list entry in m_vpFilteredFileList and m_vCompleteFileList.
|
private |
Title text of the file dialog.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Input for the filename when saving files and also buffer for the selected file's name in general.
|
private |
File type for which the file browser is currently showing entries.
|
private |
Input for the file search when opening files for reading.
|
private |
|
private |
Whether multiple storage locations with the initial folder are available.
|
private |
Current path being shown in the file browser, which either points to m_aCurrentFolder or m_aCurrentLink.
|
private |
Callback function that will be called when the confirmation button is pressed.
|
private |
User data for m_pfnOpenCallback.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
true if file browser was opened with the intent to save a file. false if file browser was opened with the intent to open an existing file for reading.
|
private |
|
private |
Index of the selected file list entry in m_vpFilteredFileList.
|
private |
Whether the list of storages is currently being shown, if m_MultipleStorages is true.
|
private |
|
private |
|
private |
Storage type for which the file browser is currently showing entries.
|
private |
|
private |