add export depth menu

This commit is contained in:
2019-04-24 09:57:27 +02:00
parent a1a2d2ca7b
commit 5a1f6e48ce
6 changed files with 62 additions and 2 deletions

View File

@@ -460,6 +460,29 @@ void App::dialog_export_layers()
}
}
void App::dialog_export_depth()
{
if (!check_license())
{
message_box("License", "This function is disabled in demo mode.");
return;
}
if (canvas)
{
// TODO: use picker
canvas->m_canvas->export_layers(doc_name, [this] {
#if defined(__IOS__)
message_box("Export 3D View + Depth", "Image and depth exported to Files/PanoPainter");
#elif defined(__OSX__)
message_box("Export 3D View + Depth", "Image and depth exported to Pictures/PanoPainter folder");
#elif defined(_WIN32)
message_box("Export 3D View + Depth", "Image and depth exported to " + work_path);
#endif
});
}
}
void App::dialog_resize()
{
auto dialog = std::make_shared<NodeDialogResize>();