Zrythm
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
10#ifndef __GUI_WIDGETS_DIALOGS_MIDI_FUNCTION_H__
11#define __GUI_WIDGETS_DIALOGS_MIDI_FUNCTION_H__
12
13#include "dsp/midi_function.h"
14
15#include <adwaita.h>
16
17#define MIDI_FUNCTION_DIALOG_WIDGET_TYPE \
18 (midi_function_dialog_widget_get_type ())
19G_DECLARE_FINAL_TYPE (
21 midi_function_dialog_widget,
22 Z,
23 MIDI_FUNCTION_DIALOG_WIDGET,
24 AdwWindow)
25
26typedef struct ArrangerObject ArrangerObject;
27
37typedef struct _MidiFunctionDialogWidget
38{
39 AdwWindow parent_instance;
40
42 AdwToolbarView * view;
43
44 AdwHeaderBar * header;
45
47 AdwPreferencesPage * page;
48
49 GtkButton * ok_btn;
50 GtkButton * cancel_btn;
51
52 MidiFunctionType type;
53
54 GSettings * settings;
56
61void
64 MidiFunctionOpts * opts);
65
71midi_function_dialog_widget_new (GtkWindow * parent, MidiFunctionType type);
72
77#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).
MIDI functions.
Base struct for arranger objects.
The midi_function dialog.
AdwPreferencesPage * page
Main content.
AdwToolbarView * view
Toolbar View for header/content.