Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
midi_function_dialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2023 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __GUI_WIDGETS_DIALOGS_MIDI_FUNCTION_H__
11#define __GUI_WIDGETS_DIALOGS_MIDI_FUNCTION_H__
12
13#include "common/dsp/midi_function.h"
14#include "gui/backend/gtk_widgets/libadwaita_wrapper.h"
15
16#define MIDI_FUNCTION_DIALOG_WIDGET_TYPE \
17 (midi_function_dialog_widget_get_type ())
18G_DECLARE_FINAL_TYPE (
20 midi_function_dialog_widget,
21 Z,
22 MIDI_FUNCTION_DIALOG_WIDGET,
23 AdwWindow)
24
25class ArrangerObject;
26
32
36typedef struct _MidiFunctionDialogWidget
37{
38 AdwWindow parent_instance;
39
41 AdwToolbarView * view;
42
43 AdwHeaderBar * header;
44
46 AdwPreferencesPage * page;
47
48 GtkButton * ok_btn;
49 GtkButton * cancel_btn;
50
51 MidiFunctionType type;
52
53 GSettings * settings;
55
60void
63 MidiFunctionOpts * opts);
64
70midi_function_dialog_widget_new (GtkWindow * parent, MidiFunctionType type);
71
75
76#endif
MidiFunctionDialogWidget * midi_function_dialog_widget_new(GtkWindow *parent, MidiFunctionType type)
Creates a MIDI function dialog for the given type and pre-fills the values from GSettings.
void midi_function_dialog_widget_get_opts(MidiFunctionDialogWidget *self, MidiFunctionOpts *opts)
Fills in opts with the current options in the dialog (fetched from gsettings).
The midi_function dialog.
AdwPreferencesPage * page
Main content.
AdwToolbarView * view
Toolbar View for header/content.