Guitarix
guitarix.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009, 2010 Hermann Meyer, James Warden, Andreas Degert
3  * Copyright (C) 2011 Pete Shorthose
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  * --------------------------------------------------------------------------
19  *
20  *
21  * This is the main guitarix header file. It simply contains the
22  * more specific headers. Note that each header is trying to be
23  * self-contained, i.e. only depends on system declarations. Let's
24  * try to keep it that way.
25  *
26  *
27  * --------------------------------------------------------------------------
28  */
29 
30 #pragma once
31 
32 #ifndef SRC_HEADERS_GUITARIX_H_
33 #define SRC_HEADERS_GUITARIX_H_
34 
35 #ifndef GUITARIX_AS_PLUGIN
36 #include <gtk/gtk.h>
37 #include <gdk/gdkkeysyms.h>
38 
39 #ifndef GDK_KEY_0
40 /*
41 ** compatibility definitions for gdkkeysyms.h before the change in gtk git on 2010-09-08
42 ** can be removed at some point
43 ** list created with:
44 ** tools/search_all GDK_KEY | sed -n 's/\‍(GDK_KEY_[a-zA-Z0-9_]*\‍)/\n\1\n/gp' | sort -u \
45 ** | awk '/GDK_KEY/{v=$0; sub("GDK_KEY_", "GDK_", v); print "#define " $0 " " v}'
46 */
47 #define GDK_KEY_0 GDK_0
48 #define GDK_KEY_1 GDK_1
49 #define GDK_KEY_9 GDK_9
50 #define GDK_KEY_a GDK_a
51 #define GDK_KEY_A GDK_A
52 #define GDK_KEY_B GDK_B
53 #define GDK_KEY_Down GDK_Down
54 #define GDK_KEY_Escape GDK_Escape
55 #define GDK_KEY_KP_0 GDK_KP_0
56 #define GDK_KEY_KP_1 GDK_KP_1
57 #define GDK_KEY_KP_9 GDK_KP_9
58 #define GDK_KEY_Left GDK_Left
59 #define GDK_KEY_M GDK_M
60 #define GDK_KEY_Return GDK_Return
61 #define GDK_KEY_Right GDK_Right
62 #define GDK_KEY_space GDK_space
63 #define GDK_KEY_Up GDK_Up
64 #define GDK_KEY_z GDK_z
65 #define GDK_KEY_Z GDK_Z
66 #endif // GDK_KEY_0
67 
68 #ifdef GDK_DISABLE_DEPRECATED
69 // Some Gdkmm 2.4 header need this defined
70 struct GdkSpanFunc;
71 #endif
72 #include <gtkmm.h>
73 #include <curl/curl.h>
74 
75 #ifdef HAVE_LIBLO
76 #include "nsm.h"
77 #endif
78 #endif // GUITARIX_AS_PLUGIN
79 
80 
81 #include "engine.h"
82 #include "jsonrpc.h"
83 #include "machine.h"
84 
85 #ifndef GUITARIX_AS_PLUGIN
86 #include "gx_gui_helpers.h"
87 #include "gx_ui_builder.h"
88 #include "gx_jack_options.h"
89 #include "gx_portmap.h"
90 #include "gx_main_midi.h"
91 #include "gx_main_boxes.h"
92 #include "gx_child_process.h"
93 #include "gx_main_interface.h"
94 #include "gx_jconv_settings.h"
95 #include "gx_sequencer_settings.h"
96 #include "gx_stackbox_builder.h"
97 #include "gx_preset_window.h"
98 #include "ladspalist.h"
99 #include "gx_main_window.h"
100 #endif // GUITARIX_AS_PLUGIN
101 
102 #endif // SRC_HEADERS_GUITARIX_H_