1 /*
2  * Copyright (C) 2019-2021 Alexandros Theodotou <alex at zrythm dot org>
3  *
4  * This file is part of Zrythm
5  *
6  * Zrythm is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Affero General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Zrythm is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU Affero General Public License for more details.
15  *
16  * You should have received a copy of the GNU Affero General Public License
17  * along with Zrythm.  If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 /**
21  * \file
22  *
23  * Right panel.
24  */
25 
26 #ifndef __GUI_WIDGETS_RIGHT_DOCK_EDGE_H__
27 #define __GUI_WIDGETS_RIGHT_DOCK_EDGE_H__
28 
29 #include <gtk/gtk.h>
30 
31 #define RIGHT_DOCK_EDGE_WIDGET_TYPE \
32   (right_dock_edge_widget_get_type ())
33 G_DECLARE_FINAL_TYPE (
34   RightDockEdgeWidget,
35   right_dock_edge_widget,
36   Z, RIGHT_DOCK_EDGE_WIDGET,
37   GtkBox)
38 
39 /**
40  * @addtogroup widgets
41  *
42  * @{
43  */
44 
45 #define MW_RIGHT_DOCK_EDGE \
46   MW_CENTER_DOCK->right_dock_edge
47 
48 typedef struct _PluginBrowserWidget
49   PluginBrowserWidget;
50 typedef struct _FileBrowserWidget FileBrowserWidget;
51 typedef struct _MonitorSectionWidget MonitorSectionWidget;
52 typedef struct _FoldableNotebookWidget FoldableNotebookWidget;
53 typedef struct _PanelFileBrowserWidget PanelFileBrowserWidget;
54 
55 typedef struct _RightDockEdgeWidget
56 {
57   GtkBox                   parent_instance;
58   FoldableNotebookWidget * right_notebook;
59 
60   GtkBox *                 plugin_browser_box;
61   PluginBrowserWidget *    plugin_browser;
62 
63   GtkBox *                 file_browser_box;
64   PanelFileBrowserWidget * file_browser;
65 
66   GtkBox *                 monitor_section_box;
67   MonitorSectionWidget *   monitor_section;
68 } RightDockEdgeWidget;
69 
70 /**
71  * Sets up the widget.
72  */
73 void
74 right_dock_edge_widget_setup (
75   RightDockEdgeWidget * self);
76 
77 /**
78  * @}
79  */
80 
81 #endif
82