Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
bounce_dialog.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2020 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
12
13#ifndef __GUI_WIDGETS_BOUNCE_DIALOG_H__
14#define __GUI_WIDGETS_BOUNCE_DIALOG_H__
15
16#include "common/dsp/exporter.h"
17#include "common/dsp/position.h"
18#include "common/utils/types.h"
19#include "gui/backend/gtk_widgets/gtk_wrapper.h"
20
21#define BOUNCE_DIALOG_WIDGET_TYPE (bounce_dialog_widget_get_type ())
22G_DECLARE_FINAL_TYPE (
24 bounce_dialog_widget,
25 Z,
26 BOUNCE_DIALOG_WIDGET,
27 GtkDialog)
28
29TYPEDEF_STRUCT_UNDERSCORED (BounceStepSelectorWidget);
30
36
41{
42 BOUNCE_DIALOG_REGIONS,
43 BOUNCE_DIALOG_TRACKS,
44};
45
49using BounceDialogWidget = struct _BounceDialogWidget
50{
51 GtkDialog parent_instance;
52 GtkButton * cancel_btn;
53 GtkButton * bounce_btn;
54 GtkCheckButton * bounce_with_parents;
55 GtkCheckButton * disable_after_bounce;
56 GtkBox * bounce_step_box;
57 BounceStepSelectorWidget * bounce_step_selector;
58 GtkSpinButton * tail_spin;
59
61
64 int bounce_to_file;
65
66 Position start_pos;
67
68 std::string bounce_name;
69 std::shared_ptr<Exporter> exporter;
70};
71
78 const std::string &bounce_name);
79
83
84#endif
BounceDialogWidget * bounce_dialog_widget_new(BounceDialogWidgetType type, const std::string &bounce_name)
Creates a bounce dialog.
struct _BounceDialogWidget { GtkDialog parent_instance; GtkButton * cancel_btn; GtkButton * bounce_btn; GtkCheckButton * bounce_with_parents; GtkCheckButton * disable_after_bounce; GtkBox * bounce_step_box; BounceStepSelectorWidget *bounce_step_selector; GtkSpinButton * tail_spin; BounceDialogWidgetType type; int bounce_to_file; Position start_pos; std::string bounce_name; std::shared_ptr< Exporter > exporter;} BounceDialogWidget
The export dialog.
BounceDialogWidgetType
Type of bounce.