Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_pad_panel.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __GUI_WIDGETS_CHORD_PAD_PANEL_H__
14#define __GUI_WIDGETS_CHORD_PAD_PANEL_H__
15
16#include "gtk_wrapper.h"
17
18typedef struct _ChordPadWidget ChordPadWidget;
19
26#define CHORD_PAD_PANEL_WIDGET_TYPE (chord_pad_panel_widget_get_type ())
28 ChordPadPanelWidget,
29 chord_pad_panel_widget,
30 Z,
31 CHORD_PAD_PANEL_WIDGET,
32 GtkGrid)
33
34#define MW_CHORD_PAD_PANEL MW_BOT_DOCK_EDGE->chord_pad_panel
35
39#define SHOW_CHORD_PAD_PANEL \
40 gtk_notebook_set_current_page (MW_CHORD_PAD_PANEL->bot_notebook, 3)
41
45typedef struct _ChordPadPanelWidget
46{
47 GtkGrid parent_instance;
48
49 GtkGrid * chords_grid;
50
51 GtkButton * save_preset_btn;
52 GtkMenuButton * load_preset_btn;
53 GtkButton * transpose_up_btn;
54 GtkButton * transpose_down_btn;
55
57 ChordPadWidget * chords[12];
58} ChordPadPanelWidget;
59
60void
61chord_pad_panel_widget_setup (ChordPadPanelWidget * self);
62
63void
64chord_pad_panel_widget_refresh_load_preset_menu (ChordPadPanelWidget * self);
65
66void
67chord_pad_panel_widget_refresh (ChordPadPanelWidget * self);
68
69ChordPadPanelWidget *
70chord_pad_panel_widget_new (void);
71
76#endif
G_DECLARE_FINAL_TYPE(ChordPadPanelWidget, chord_pad_panel_widget, Z, CHORD_PAD_PANEL_WIDGET, GtkGrid) typedef struct _ChordPadPanelWidget
Brings up the ChordPadPanelWidget in the notebook.