Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
file_auditioner_controls.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: © 2021-2022 Alexandros Theodotou <alex@zrythm.org>
3 *
4 * SPDX-License-Identifier: LicenseRef-ZrythmLicense
5 */
6
13#ifndef __GUI_WIDGETS_FILE_AUDITIONER_CONTROLS_H__
14#define __GUI_WIDGETS_FILE_AUDITIONER_CONTROLS_H__
15
16#include "zrythm-config.h"
17
18#include "dsp/supported_file.h"
19
20#include "gtk_wrapper.h"
21
22#define FILE_AUDITIONER_CONTROLS_WIDGET_TYPE \
23 (file_auditioner_controls_widget_get_type ())
24G_DECLARE_FINAL_TYPE (
26 file_auditioner_controls_widget,
27 Z,
28 FILE_AUDITIONER_CONTROLS_WIDGET,
29 GtkBox)
30
31typedef struct _VolumeWidget VolumeWidget;
32typedef struct _WrappedObjectWithChangeSignal WrappedObjectWithChangeSignal;
33
40typedef WrappedObjectWithChangeSignal * (*SelectedFileGetter) (
41 GtkWidget * widget);
42
46typedef struct _FileAuditionerControlsWidget
47{
48 GtkBox parent_instance;
49
57
58 GtkButton * play_btn;
59 GtkButton * stop_btn;
60 GtkMenuButton * file_settings_btn;
61 VolumeWidget * volume;
62
63 GtkDropDown * instrument_dropdown;
64
66 GtkWidget * owner;
67 SelectedFileGetter selected_file_getter;
68 GenericCallback refilter_files;
70
74void
77 GtkWidget * owner,
78 bool for_files,
79 SelectedFileGetter selected_file_getter,
80 GenericCallback refilter_files_cb);
81
86#endif
void(* GenericCallback)(void *object)
Generic callback.
Definition types.h:103
void file_auditioner_controls_widget_setup(FileAuditionerControlsWidget *self, GtkWidget *owner, bool for_files, SelectedFileGetter selected_file_getter, GenericCallback refilter_files_cb)
Sets up a FileAuditionerControlsWidget.
File auditioner controls used in file browsers.
bool for_files
True if these controls are for files.
A GObject-ified normal C object with a signal that interested parties can listen to for changes.
Supported file info.