0.2.0
|
File Chooser. More...
Go to the source code of this file.
Functions | |
bool | NAV::gui::widgets::FileDialogLoad (std::string &path, const char *vName, const char *vFilters, const std::vector< std::string > &extensions, const std::filesystem::path &startPath, size_t id, const std::string &nameId, const char *buttonText="Choose") |
Shows an InputText and a button which opens a file dialog to select a path to load a file to. | |
bool | NAV::gui::widgets::FileDialogSave (std::string &path, const char *vName, const char *vFilters, const std::vector< std::string > &extensions, const std::filesystem::path &startPath, size_t id, const std::string &nameId, const char *buttonText="Choose") |
Shows an InputText and a button which opens a file dialog to select a path to save a file to. | |
File Chooser.
bool NAV::gui::widgets::FileDialogLoad | ( | std::string & | path, |
const char * | vName, | ||
const char * | vFilters, | ||
const std::vector< std::string > & | extensions, | ||
const std::filesystem::path & | startPath, | ||
size_t | id, | ||
const std::string & | nameId, | ||
const char * | buttonText = "Choose" ) |
Shows an InputText and a button which opens a file dialog to select a path to load a file to.
[in,out] | path | String to store the path in |
[in] | vName | Window title |
[in] | vFilters | Filter to apply for file names |
[in] | extensions | Extensions to filter |
[in] | startPath | Path to the directory to display initially |
[in] | id | Unique id for creating the dialog uid |
[in] | nameId | Name of the node triggering the window used for logging |
[in] | buttonText | Text to display on the button |
bool NAV::gui::widgets::FileDialogSave | ( | std::string & | path, |
const char * | vName, | ||
const char * | vFilters, | ||
const std::vector< std::string > & | extensions, | ||
const std::filesystem::path & | startPath, | ||
size_t | id, | ||
const std::string & | nameId, | ||
const char * | buttonText = "Choose" ) |
Shows an InputText and a button which opens a file dialog to select a path to save a file to.
[in,out] | path | String to store the path in |
[in] | vName | Window title |
[in] | vFilters | Filter to apply for file names |
[in] | extensions | Extensions to filter |
[in] | startPath | Path to the directory to display initially |
[in] | id | Unique id for creating the dialog uid |
[in] | nameId | Name of the node triggering the window used for logging |
[in] | buttonText | Text to display on the button |