0.2.0
Loading...
Searching...
No Matches
FileDialog.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
13
14#pragma once
15
16#include <vector>
17#include <string>
18#include <filesystem>
19
20namespace NAV::gui::widgets
21{
32bool FileDialogSave(std::string& path, const char* vName,
33 const char* vFilters, const std::vector<std::string>& extensions,
34 const std::filesystem::path& startPath,
35 size_t id, const std::string& nameId,
36 const char* buttonText = "Choose");
37
48bool FileDialogLoad(std::string& path, const char* vName,
49 const char* vFilters, const std::vector<std::string>& extensions,
50 const std::filesystem::path& startPath,
51 size_t id, const std::string& nameId,
52 const char* buttonText = "Choose");
53
54} // namespace NAV::gui::widgets
bool 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.
bool 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.