Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
export_progress_dialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2022, 2024 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __GUI_WIDGETS_EXPORT_PROGRESS_DIALOG_H__
11#define __GUI_WIDGETS_EXPORT_PROGRESS_DIALOG_H__
12
13#include "common/dsp/exporter.h"
14#include "gui/backend/gtk_widgets/dialogs/generic_progress_dialog.h"
15#include "gui/backend/gtk_widgets/gtk_wrapper.h"
16
17#define EXPORT_PROGRESS_DIALOG_WIDGET_TYPE \
18 (export_progress_dialog_widget_get_type ())
19G_DECLARE_FINAL_TYPE (
20 ExportProgressDialogWidget,
21 export_progress_dialog_widget,
22 Z,
23 EXPORT_PROGRESS_DIALOG_WIDGET,
24 GenericProgressDialogWidget)
25
26
31
32
35using ExportProgressDialogWidget = struct _ExportProgressDialogWidget
36{
37 GenericProgressDialogWidget parent_instance;
38
40 bool show_open_dir_btn;
41
42 std::shared_ptr<Exporter> exporter;
43};
44
45using ExportProgressDialogCloseCallback =
46 std::function<void (std::shared_ptr<Exporter>)>;
47
53ExportProgressDialogWidget *
55 std::shared_ptr<Exporter> exporter,
56 bool autoclose,
57 std::optional<ExportProgressDialogCloseCallback> close_callback,
58 bool show_open_dir_btn,
59 bool cancelable);
60
64
65#endif
ExportProgressDialogWidget * export_progress_dialog_widget_new(std::shared_ptr< Exporter > exporter, bool autoclose, std::optional< ExportProgressDialogCloseCallback > close_callback, bool show_open_dir_btn, bool cancelable)
Creates an export dialog widget and displays it.