Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
quantize_dialog.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __GUI_WIDGETS_QUANTIZE_DIALOG_H__
14#define __GUI_WIDGETS_QUANTIZE_DIALOG_H__
15
16#include <gtk/gtk.h>
17
18#define QUANTIZE_DIALOG_WIDGET_TYPE (quantize_dialog_widget_get_type ())
19G_DECLARE_FINAL_TYPE (
21 quantize_dialog_widget,
22 Z,
23 QUANTIZE_DIALOG_WIDGET,
24 GtkDialog)
25
26typedef struct QuantizeOptions QuantizeOptions;
27typedef struct _DigitalMeterWidget DigitalMeterWidget;
28typedef struct _BarSliderWidget BarSliderWidget;
29
36typedef struct _QuantizeDialogWidget
37{
38 GtkDialog parent_instance;
39 GtkButton * cancel_btn;
40 GtkButton * quantize_btn;
41 GtkBox * note_length_box;
42 GtkBox * note_type_box;
43 DigitalMeterWidget * note_length;
44 DigitalMeterWidget * note_type;
45 GtkToggleButton * adjust_start;
46 GtkToggleButton * adjust_end;
47 GtkBox * amount_box;
48 GtkBox * swing_box;
49 GtkBox * randomization_box;
50 BarSliderWidget * amount;
51 BarSliderWidget * swing;
52 BarSliderWidget * randomization;
53
54 QuantizeOptions * opts;
56
62
67#endif
QuantizeDialogWidget * quantize_dialog_widget_new(QuantizeOptions *opts)
Creates an quantize dialog widget and displays it.
Draggable slider to adjust an amount (such as a percentage).
Definition bar_slider.h:55