Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
port_selector_dialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __GUI_WIDGETS_PORT_SELECTOR_DIALOG_H__
11#define __GUI_WIDGETS_PORT_SELECTOR_DIALOG_H__
12
13#include "gtk_wrapper.h"
14
15#define PORT_SELECTOR_DIALOG_WIDGET_TYPE \
16 (port_selector_dialog_widget_get_type ())
17G_DECLARE_FINAL_TYPE (
19 port_selector_dialog_widget,
20 Z,
21 PORT_SELECTOR_DIALOG_WIDGET,
22 GtkDialog)
23
24
30typedef struct Port Port;
31typedef struct _PortConnectionsPopoverWidget PortConnectionsPopoverWidget;
32
36typedef struct _PortSelectorDialogWidget
37{
38 GtkDialog parent_instance;
39
42
43 GtkScrolledWindow * track_scroll;
44 GtkTreeView * track_treeview;
45 GtkTreeModel * track_model;
46 GtkScrolledWindow * plugin_scroll;
47 GtkTreeView * plugin_treeview;
48 GtkTreeModel * plugin_model;
49 GtkSeparator * plugin_separator;
50 GtkScrolledWindow * port_scroll;
51 GtkTreeView * port_treeview;
52 GtkTreeModel * port_model;
53
56
63
72
73 Port * selected_port;
74
75 GtkButton * ok_btn;
76 GtkButton * cancel_btn;
77
80 bool setup;
81
84
85void
86port_selector_dialog_widget_refresh (
88 Port * port);
89
95
100#endif
PortSelectorDialogWidget * port_selector_dialog_widget_new(PortConnectionsPopoverWidget *owner)
Creates the popover.
The base plugin Inheriting plugins must have this as a child.
Definition plugin.h:74
A GtkPopover to select Port's.
int track_ports_selected
Used if selected_plugin is NULL.
bool setup
Whether already set up (to avoid re-adding existing widgets).
Plugin * selected_plugin
Plugin selected in the Plugin treeview.
Track * selected_track
Track selected in the Track treeview.
Port * port
The owner Port.
Must ONLY be created via port_new()
Definition port.h:136
Track to be inserted into the Project's Tracklist.
Definition track.h:177