Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
file_browser_filters.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __GUI_WIDGETS_FILE_BROWSER_FILTERS_H__
11#define __GUI_WIDGETS_FILE_BROWSER_FILTERS_H__
12
13#include "zrythm-config.h"
14
15#include "dsp/supported_file.h"
16#include "utils/types.h"
17
18#include "gtk_wrapper.h"
19
20#define FILE_BROWSER_FILTERS_WIDGET_TYPE \
21 (file_browser_filters_widget_get_type ())
22G_DECLARE_FINAL_TYPE (
24 file_browser_filters_widget,
25 Z,
26 FILE_BROWSER_FILTERS_WIDGET,
27 GtkBox)
28
29
35enum class FileBrowserFilterType
36{
37 FILE_BROWSER_FILTER_NONE,
38 FILE_BROWSER_FILTER_AUDIO,
39 FILE_BROWSER_FILTER_MIDI,
40 FILE_BROWSER_FILTER_PRESET,
41};
42
46typedef struct _FileBrowserFiltersWidget
47{
48 GtkBox parent_instance;
49
50 GtkToggleButton * toggle_audio;
51 GtkToggleButton * toggle_midi;
52 GtkToggleButton * toggle_presets;
53
55 GtkWidget * owner;
56 GenericCallback refilter_files;
58
62void
65 GtkWidget * owner,
66 GenericCallback refilter_files_cb);
67
72#endif
void(* GenericCallback)(void *object)
Generic callback.
Definition types.h:103
void file_browser_filters_widget_setup(FileBrowserFiltersWidget *self, GtkWidget *owner, GenericCallback refilter_files_cb)
Sets up a FileBrowserFiltersWidget.
File auditioner controls used in file browsers.
GtkWidget * owner
Callbacks.
Supported file info.
Custom types.