gui.hpp 952 Bytes
Newer Older
1
2
3
4
5
6
7
// Copyright (c) 2020 INRA Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#ifndef ORG_VLEPROJECT_IRRITATOR_APP_GUI_2020
#define ORG_VLEPROJECT_IRRITATOR_APP_GUI_2020

Gauthier Quesnel's avatar
Gauthier Quesnel committed
8
#include <filesystem>
9
#include <optional>
Gauthier Quesnel's avatar
Gauthier Quesnel committed
10

11
12
13
namespace irt {

void
14
application_initialize();
15

16
bool
17
application_show();
18

19
void
20
application_shutdown();
21

22
23
24
25
26
27
28
29
/* Move into internal API */

std::optional<std::filesystem::path>
get_home_directory();

std::optional<std::filesystem::path>
get_executable_directory();

Gauthier Quesnel's avatar
Gauthier Quesnel committed
30
31
32
/* Filesytem dialog box */

bool
33
34
35
load_file_dialog(std::filesystem::path& out,
                 const char* title,
                 const char8_t** filters);
Gauthier Quesnel's avatar
Gauthier Quesnel committed
36
37

bool
38
39
40
save_file_dialog(std::filesystem::path& out,
                 const char* title,
                 const char8_t** filters);
Gauthier Quesnel's avatar
Gauthier Quesnel committed
41

42
43
44
bool
select_directory_dialog(std::filesystem::path& out);

45
46
} // namespace irt

47
#endif