Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
export_progress_dialog.h
Go to the documentation of this file.
1// clang-format off
2// SPDX-FileCopyrightText: © 2019-2022, 2024 Alexandros Theodotou <alex@zrythm.org>
3// SPDX-License-Identifier: LicenseRef-ZrythmLicense
4// clang-format on
5
12#ifndef __GUI_WIDGETS_EXPORT_PROGRESS_DIALOG_H__
13#define __GUI_WIDGETS_EXPORT_PROGRESS_DIALOG_H__
14
16
17#include <gtk/gtk.h>
18
19#define EXPORT_PROGRESS_DIALOG_WIDGET_TYPE \
20 (export_progress_dialog_widget_get_type ())
21G_DECLARE_FINAL_TYPE (
23 export_progress_dialog_widget,
24 Z,
25 EXPORT_PROGRESS_DIALOG_WIDGET,
26 GenericProgressDialogWidget)
27
28TYPEDEF_STRUCT (ExportSettings);
29TYPEDEF_STRUCT (EngineState);
30
34typedef struct ExportData
35{
36 bool export_stems;
37
39 GThread * thread;
40
42 GPtrArray * tracks;
43 size_t cur_track;
44
47
50
52 GPtrArray * conns;
53
55 GtkWidget * parent_owner;
57
62export_data_new (GtkWidget * parent_owner, ExportSettings * info);
63
73typedef struct _ExportProgressDialogWidget
74{
75 GenericProgressDialogWidget parent_instance;
76
79
80 ExportData * data;
82
83typedef void (*ExportProgressDialogCloseCallback) (ExportData * data);
84
92 ExportData * data,
93 bool autoclose,
94 ExportProgressDialogCloseCallback close_callback,
95 bool show_open_dir_btn,
96 bool cancelable);
97
102#endif
ExportData * export_data_new(GtkWidget *parent_owner, ExportSettings *info)
Generic progress dialog.
ExportProgressDialogWidget * export_progress_dialog_widget_new(ExportData *data, bool autoclose, ExportProgressDialogCloseCallback close_callback, bool show_open_dir_btn, bool cancelable)
Creates an export dialog widget and displays it.
Passed around when exporting asynchronously.
ExportSettings * info
Owned by this instance.
GPtrArray * conns
Not owned by this instance.
EngineState * state
Owned by this instance.
GPtrArray * tracks
Owned by this instance.
GThread * thread
Not owned by this instance.
GtkWidget * parent_owner
Not owned by this instance.
bool show_open_dir_btn
Whether to show the open directory button or not.
Export settings to be passed to the exporter to use.
Definition exporter.h:142