gui.hpp 796 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
14
namespace irt {

void
node_editor_initialize();
15

16
bool
17
node_editor_show();
18

19
20
21
void
node_editor_shutdown();

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
Gauthier Quesnel's avatar
Gauthier Quesnel committed
33
load_file_dialog(std::filesystem::path& out);
Gauthier Quesnel's avatar
Gauthier Quesnel committed
34
35

bool
Gauthier Quesnel's avatar
Gauthier Quesnel committed
36
save_file_dialog(std::filesystem::path& out);
Gauthier Quesnel's avatar
Gauthier Quesnel committed
37

38
39
40
bool
select_directory_dialog(std::filesystem::path& out);

41
42
} // namespace irt

43
#endif