![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Wrapper for native file dialog operations. More...
#include <AIEditorFileDialog.h>
Static Public Member Functions | |
| static std::string | OpenFile (const std::string &filterList="json,btree", const std::string &defaultPath="") |
| Open a native file dialog to select an existing file. | |
| static std::string | SaveFile (const std::string &filterList="json,btree", const std::string &defaultPath="", const std::string &defaultName="new_ai_graph.json") |
| Open a native save file dialog. | |
| static std::string | OpenFolder (const std::string &defaultPath="") |
| Open a native folder selection dialog. | |
| static std::string | GetLastError () |
| Get last error message from NFD. | |
Static Private Member Functions | |
| static std::string | ConvertFiltersToNFD (const std::string &filterList) |
| Convert comma-separated filter list to NFD format. | |
| static std::string | ToNFDString (const std::string &str) |
| Convert std::string to native NFD character type. | |
| static std::string | FromNFDString (const char *str) |
Wrapper for native file dialog operations.
Encapsulates NFD (NativeFileDialog-Extended) API calls to provide a simple C++ interface for opening, saving, and folder selection dialogs. All methods are static and thread-safe (NFD handles thread initialization).
Definition at line 33 of file AIEditorFileDialog.h.
|
staticprivate |
Convert comma-separated filter list to NFD format.
| filterList | "json,btree" -> "json;btree" |
Definition at line 90 of file AIEditorFileDialog.cpp.
References GetComponentTypeID_Static().
Referenced by OpenFile(), and SaveFile().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 77 of file AIEditorFileDialog.cpp.
References GetComponentTypeID_Static().
Referenced by OpenFile(), OpenFolder(), and SaveFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get last error message from NFD.
Definition at line 312 of file AIEditorFileDialog.cpp.
References GetComponentTypeID_Static().
Here is the call graph for this function:
|
static |
Open a native file dialog to select an existing file.
| filterList | Comma-separated extensions (e.g., "json,btree") |
| defaultPath | Starting directory (optional) |
Definition at line 107 of file AIEditorFileDialog.cpp.
References ConvertFiltersToNFD(), FromNFDString(), GetComponentTypeID_Static(), SYSTEM_LOG, and ToNFDString().
Referenced by Olympe::AI::AIEditorGUI::MenuAction_Open().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Open a native folder selection dialog.
| defaultPath | Starting directory (optional) |
Definition at line 268 of file AIEditorFileDialog.cpp.
References FromNFDString(), GetComponentTypeID_Static(), SYSTEM_LOG, and ToNFDString().
Here is the call graph for this function:
|
static |
Open a native save file dialog.
| filterList | Comma-separated extensions |
| defaultPath | Starting directory (optional) |
| defaultName | Suggested filename (optional) |
Definition at line 185 of file AIEditorFileDialog.cpp.
References ConvertFiltersToNFD(), FromNFDString(), GetComponentTypeID_Static(), SYSTEM_LOG, and ToNFDString().
Referenced by Olympe::AI::AIEditorGUI::MenuAction_SaveAs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Convert std::string to native NFD character type.
| str | UTF-8 string |
Definition at line 72 of file AIEditorFileDialog.cpp.
References GetComponentTypeID_Static().
Referenced by OpenFile(), OpenFolder(), and SaveFile().
Here is the call graph for this function:
Here is the caller graph for this function: