13
0

Use .inc.h for #include files that not are plain headers

Regular .h files *should* be self-contained and independent of previous
includes and guarded to only include once. Make it clear which files
that *doesn't* apply for at all.
This commit is contained in:
Mads Kiilerich 2024-10-20 00:16:01 +02:00
parent 38db12c9ea
commit 140670541f
47 changed files with 105 additions and 102 deletions

View File

@ -1606,7 +1606,7 @@
>
</File>
<File
RelativePath="..\gtk2_ardour\canvas_vars.h"
RelativePath="..\gtk2_ardour\canvas_vars.inc.h"
>
</File>
<File
@ -1682,7 +1682,7 @@
>
</File>
<File
RelativePath="..\gtk2_ardour\editing_syms.h"
RelativePath="..\gtk2_ardour\editing_syms.inc.h"
>
</File>
<File
@ -1942,7 +1942,7 @@
>
</File>
<File
RelativePath="..\gtk2_ardour\luasignal_syms.h"
RelativePath="..\gtk2_ardour\luasignal_syms.inc.h"
>
</File>
<File
@ -2610,7 +2610,7 @@
>
</File>
<File
RelativePath="..\gtk2_ardour\ui_config_vars.h"
RelativePath="..\gtk2_ardour\ui_config_vars.inc.h"
>
</File>
<File

View File

@ -89,7 +89,7 @@ class CueEditor : public EditingContext, public PBD::HistoryOwner, public sigc::
*/
void step_mouse_mode (bool next);
/** @return The current mouse mode (gain, object, range, timefx etc.)
* (defined in editing_syms.h)
* (defined in editing_syms.inc.h)
*/
Editing::MouseMode current_mouse_mode () const;
/** cue editors are *always* used for internal editing */

View File

@ -44,14 +44,14 @@ namespace Editing {
GridType
str2gridtype (const string & str) {
const char* type = str.c_str();
#include "editing_syms.h"
#include "editing_syms.inc.h"
return GridTypeBar;
}
#undef GRIDTYPE
#define GRIDTYPE(s) N_(#s),
const char *gridtypestrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef GRIDTYPE
@ -63,14 +63,14 @@ const char *gridtypestrs[] = {
SnapMode
str2snapmode (const string & str) {
const char* type = str.c_str();
#include "editing_syms.h"
#include "editing_syms.inc.h"
return SnapMagnetic;
}
#undef SNAPMODE
#define SNAPMODE(s) N_(#s),
const char *snapmodestrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef SNAPMODE
@ -83,14 +83,14 @@ const char *snapmodestrs[] = {
RegionListSortType
str2regionlistsorttype (const string & str) {
const char* type = str.c_str();
#include "editing_syms.h"
#include "editing_syms.inc.h"
return ByName;
}
#undef REGIONLISTSORTTYPE
#define REGIONLISTSORTTYPE(s) N_(#s),
const char *regionlistsorttypestrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef REGIONLISTSORTTYPE
@ -102,14 +102,14 @@ const char *regionlistsorttypestrs[] = {
MouseMode
str2mousemode (const string & str) {
const char* type = str.c_str();
#include "editing_syms.h"
#include "editing_syms.inc.h"
return MouseObject;
}
#undef MOUSEMODE
#define MOUSEMODE(s) N_(#s),
const char *mousemodestrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef MOUSEMODE
@ -121,14 +121,14 @@ const char *mousemodestrs[] = {
ZoomFocus
str2zoomfocus (const string & str) {
const char* type = str.c_str();
#include "editing_syms.h"
#include "editing_syms.inc.h"
return ZoomFocusPlayhead;
}
#undef ZOOMFOCUS
#define ZOOMFOCUS(s) N_(#s),
const char *zoomfocusstrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef ZOOMFOCUS
@ -140,14 +140,14 @@ const char *zoomfocusstrs[] = {
DisplayControl
str2displaycontrol (const string & str) {
const char* type = str.c_str();
#include "editing_syms.h"
#include "editing_syms.inc.h"
return FollowPlayhead;
}
#undef DISPLAYCONTROL
#define DISPLAYCONTROL(s) N_(#s),
const char *displaycontrolstrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef DISPLAYCONTROL
@ -157,7 +157,7 @@ const char *displaycontrolstrs[] = {
#undef IMPORTMODE
#define IMPORTMODE(s) N_(#s),
const char *importmodestrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef IMPORTMODE
@ -167,7 +167,7 @@ const char *importmodestrs[] = {
#undef TEMPOEDITBEHAVIOR
#define TEMPOEDITBEHAVIOR(s) N_(#s),
const char *tempoeditbehaviorstrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef TEMPOEDITBEHAVIOR
@ -176,7 +176,7 @@ const char *tempoeditbehaviorstrs[] = {
#undef NOTENAMEDISPLAY
#define NOTENAMEDISPLAY(s) N_(#s),
const char *notenamedisplaystrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef NOTENAMEDISPLAY
@ -185,7 +185,7 @@ const char *notenamedisplaystrs[] = {
#undef MARKERCLICKBEHAVIOR
#define MARKERCLICKBEHAVIOR(s) N_(#s),
const char *markerclickbehaviorstrs[] = {
#include "editing_syms.h"
#include "editing_syms.inc.h"
0
};
#undef MARKERCLICKBEHAVIOR

View File

@ -50,7 +50,7 @@ namespace Editing {
#undef GRIDTYPE
#define GRIDTYPE(a) a,
enum GridType {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
static const int DRAW_VEL_AUTO = -1;
@ -68,7 +68,7 @@ GridType str2gridtype(const std::string &);
#undef SNAPMODE
#define SNAPMODE(a) a,
enum SnapMode {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
extern const char *snapmodestrs[];
@ -82,7 +82,7 @@ SnapMode str2snapmode(const std::string &);
#undef REGIONLISTSORTTYPE
#define REGIONLISTSORTTYPE(a) a,
enum RegionListSortType {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
extern const char *regionlistsorttypestrs[];
@ -96,7 +96,7 @@ RegionListSortType str2regionlistsorttype(const std::string &);
#undef MOUSEMODE
#define MOUSEMODE(a) a,
enum MouseMode {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
extern const char *mousemodestrs[];
@ -110,7 +110,7 @@ MouseMode str2mousemode(const std::string &);
#undef MIDIEDITMODE
#define MIDIEDITMODE(a) a,
enum MidiEditMode {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
extern const char *midieditmodestrs[];
@ -124,7 +124,7 @@ MidiEditMode str2midieditmode(const std::string &);
#undef ZOOMFOCUS
#define ZOOMFOCUS(a) a,
enum ZoomFocus {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
extern const char *zoomfocusstrs[];
@ -138,7 +138,7 @@ ZoomFocus str2zoomfocus(const std::string &);
#undef DISPLAYCONTROL
#define DISPLAYCONTROL(a) a,
enum DisplayControl {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
extern const char *displaycontrolstrs[];
@ -153,7 +153,7 @@ DisplayControl str2displaycontrol (const std::string &);
#undef IMPORTMODE
#define IMPORTMODE(a) a,
enum ImportMode {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
#undef IMPORTMODE
@ -163,7 +163,7 @@ enum ImportMode {
#undef IMPORTPOSITION
#define IMPORTPOSITION(a) a,
enum ImportPosition {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
#undef IMPORTPOSITION
@ -173,7 +173,7 @@ enum ImportPosition {
#undef IMPORTDISPOSITION
#define IMPORTDISPOSITION(a) a,
enum ImportDisposition {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
#undef IMPORTDISPOSITION
@ -183,7 +183,7 @@ enum ImportDisposition {
#undef EDITPOINT
#define EDITPOINT(a) a,
enum EditPoint {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
#undef EDITPOINT
@ -193,7 +193,7 @@ enum EditPoint {
#undef INSERTTIMEOPT
#define INSERTTIMEOPT(a) a,
enum InsertTimeOption {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
#undef INSERTTIMEOPT
@ -202,7 +202,7 @@ enum InsertTimeOption {
#undef NOTENAMEDISPLAY
#define NOTENAMEDISPLAY(a) a,
enum NoteNameDisplay {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
extern const char *notenamedisplaystrs[];
@ -214,7 +214,7 @@ inline const char* enum2str(NoteNameDisplay m) {return notenamedisplaystrs[m];}
#undef MARKERCLICKBEHAVIOR
#define MARKERCLICKBEHAVIOR(a) a,
enum MarkerClickBehavior {
#include "editing_syms.h"
#include "editing_syms.inc.h"
};
#undef MARKERCLICKBEHAVIOR
#define MARKERCLICKBEHAVIOR(a) /*empty*/

View File

@ -315,7 +315,7 @@ class EditingContext : public ARDOUR::SessionHandlePtr, public AxisViewProvider
void reset_point_selection ();
/** Set the mouse mode (gain, object, range, timefx etc.)
* @param m Mouse mode (defined in editing_syms.h)
* @param m Mouse mode (defined in editing_syms.inc.h)
* @param force Perform the effects of the change even if no change is required
* (ie even if the current mouse mode is equal to @p m)
*/
@ -325,7 +325,7 @@ class EditingContext : public ARDOUR::SessionHandlePtr, public AxisViewProvider
*/
virtual void step_mouse_mode (bool next) = 0;
/** @return The current mouse mode (gain, object, range, timefx etc.)
* (defined in editing_syms.h)
* (defined in editing_syms.inc.h)
*/
Editing::MouseMode current_mouse_mode () const { return mouse_mode; }
virtual Editing::MouseMode effective_mouse_mode () const { return mouse_mode; }

View File

@ -365,7 +365,7 @@ LuaSignal
str2luasignal (const std::string &str) {
const char* type = str.c_str();
if (0) { }
# include "luasignal_syms.h"
# include "luasignal_syms.inc.h"
else {
PBD::fatal << string_compose (_("programming error: %1: %2"), "Impossible LuaSignal type", str) << endmsg;
abort(); /*NOTREACHED*/
@ -379,7 +379,7 @@ str2luasignal (const std::string &str) {
#define SESSION(name,c) N_(#name),
#define ENGINE(name,c) N_(#name),
const char *luasignalstr[] = {
# include "luasignal_syms.h"
# include "luasignal_syms.inc.h"
0
};
@ -551,7 +551,7 @@ LuaInstance::register_hooks (lua_State* L)
#define SESSION(name,c) .addConst (stringify(name), (LuaSignal::LuaSignal)LuaSignal::name)
luabridge::getGlobalNamespace (L)
.beginNamespace ("LuaSignal")
# include "luasignal_syms.h"
# include "luasignal_syms.inc.h"
.endNamespace ();
#undef ENGINE
#undef SESSION
@ -1114,7 +1114,7 @@ LuaInstance::register_classes (lua_State* L, bool sandbox)
.addFunction ("set_" # var, &UIConfiguration::set_##var) \
.addProperty (#var, &UIConfiguration::get_##var, &UIConfiguration::set_##var)
#include "ui_config_vars.h"
#include "ui_config_vars.inc.h"
#undef UI_CONFIG_VARIABLE
.endClass()
@ -1146,7 +1146,7 @@ LuaInstance::register_classes (lua_State* L, bool sandbox)
#define NOTENAMEDISPLAY(NAME) .addConst (stringify(NAME), (Editing::NoteNameDisplay)Editing::NAME)
luabridge::getGlobalNamespace (L)
.beginNamespace ("Editing")
# include "editing_syms.h"
# include "editing_syms.inc.h"
.endNamespace ();
if (!sandbox) {
@ -2379,7 +2379,7 @@ LuaCallback::reconnect_object (T obj)
#define SESSION(n,c) else if (i == LuaSignal::n) { if (_session) { connect (LuaSignal::n, _session, &(_session->c)); } }
#define STATIC(n,c) else if (i == LuaSignal::n) { connect (LuaSignal::n, obj, c); }
if (0) {}
# include "luasignal_syms.h"
# include "luasignal_syms.inc.h"
else {
PBD::fatal << string_compose (_("programming error: %1: %2"), "Impossible LuaSignal type", i) << endmsg;
abort(); /*NOTREACHED*/

View File

@ -24,7 +24,7 @@ namespace LuaSignal {
#define SESSION(name,c) name,
enum LuaSignal {
# include "luasignal_syms.h"
# include "luasignal_syms.inc.h"
LAST_SIGNAL
};

View File

@ -29,13 +29,13 @@
#include "note_base.h"
#include "editing_context.h"
#include "editing_syms.h"
#include "editing_syms.inc.h"
#include "keyboard.h"
#include "midi_view.h"
/* clang-format off */
// Include last, when GRIDTYPE has been defined by editing.h via midi_region_view.h
#include "editing_syms.h"
#include "editing_syms.inc.h"
/* clang-format on */
using namespace std;

View File

@ -10,9 +10,6 @@
# [never-do-that-thing]
# thing that action prevent never stop otherthing
#
# The file is processed via tools/process-metadata to create build/gtk2_ardour/configuration_metadata.h which is then incorporated via an #include directive
# within gtk2_ardour/ui_config.cc
#
# Whenever a new preference variable is added to the source code, its name should also be added here.
#
# GUIDANCE:
@ -20,6 +17,12 @@
# use "synchronization" rather than sync, because that will match both "sync" and "synchronization". For languages that create plurals with a suffix,
# prefer plural forms for the same reason.
#
# This file is processed automatically when invoking a custom tool manually:
#
# tools/process-metadata gtk2_ardour/preference-metadata > gtk2_ardour/configuration_metadata.inc.h
#
# The generated file is incorporated via an #include directive within gtk2_ardour/ui_config.cc .
[SECTION:UI]
[action-table-columns]

View File

@ -84,8 +84,8 @@ UIConfiguration::UIConfiguration ()
#undef UI_CONFIG_VARIABLE
#define UI_CONFIG_VARIABLE(Type,var,name,val) var (name,val),
#define CANVAS_FONT_VARIABLE(var,name) var (name),
#include "ui_config_vars.h"
#include "canvas_vars.h"
#include "ui_config_vars.inc.h"
#include "canvas_vars.inc.h"
#undef UI_CONFIG_VARIABLE
#undef CANVAS_FONT_VARIABLE
@ -101,7 +101,7 @@ UIConfiguration::UIConfiguration ()
#undef UI_CONFIG_VARIABLE
#define UI_CONFIG_VARIABLE(Type,var,name,value) _my_variables.insert (std::make_pair ((name), &(var)));
#define CANVAS_FONT_VARIABLE(var,name) /* no need for metadata for these */
#include "ui_config_vars.h"
#include "ui_config_vars.inc.h"
#undef UI_CONFIG_VARIABLE
#undef CANVAS_FONT_VARIABLE
@ -222,7 +222,7 @@ UIConfiguration::map_parameters (std::function<void (std::string)>& functor)
{
#undef UI_CONFIG_VARIABLE
#define UI_CONFIG_VARIABLE(Type,var,Name,value) functor (Name);
#include "ui_config_vars.h"
#include "ui_config_vars.inc.h"
#undef UI_CONFIG_VARIABLE
}
@ -572,8 +572,8 @@ UIConfiguration::get_variables (std::string const & node_name) const
#undef CANVAS_FONT_VARIABLE
#define UI_CONFIG_VARIABLE(Type,var,Name,value) if (node->name() == "UI") { var.add_to_node (*node); }
#define CANVAS_FONT_VARIABLE(var,Name) if (node->name() == "Canvas") { var.add_to_node (*node); }
#include "ui_config_vars.h"
#include "canvas_vars.h"
#include "ui_config_vars.inc.h"
#include "canvas_vars.inc.h"
#undef UI_CONFIG_VARIABLE
#undef CANVAS_FONT_VARIABLE
@ -707,8 +707,8 @@ UIConfiguration::set_variables (const XMLNode& node)
#undef UI_CONFIG_VARIABLE
#define UI_CONFIG_VARIABLE(Type,var,name,val) if (var.set_from_node (node)) { ParameterChanged (name); }
#define CANVAS_FONT_VARIABLE(var,name) if (var.set_from_node (node)) { ParameterChanged (name); }
#include "ui_config_vars.h"
#include "canvas_vars.h"
#include "ui_config_vars.inc.h"
#include "canvas_vars.inc.h"
#undef UI_CONFIG_VARIABLE
#undef CANVAS_FONT_VARIABLE
}
@ -867,4 +867,4 @@ UIConfiguration::color_to_hex_string_no_alpha (Gtkmm2ext::Color c)
return buf;
}
#include "configuration_metadata.h"
#include "configuration_metadata.inc.h"

View File

@ -114,13 +114,13 @@ public:
#define UI_CONFIG_VARIABLE(Type,var,name,value) \
Type get_##var () const { return var.get(); } \
bool set_##var (Type val) { bool ret = var.set (val); if (ret) { ParameterChanged (name); } return ret; }
#include "ui_config_vars.h"
#include "ui_config_vars.inc.h"
#undef UI_CONFIG_VARIABLE
#define CANVAS_FONT_VARIABLE(var,name) \
Pango::FontDescription get_##var () const { return ARDOUR_UI_UTILS::sanitized_font (var.get()); } \
Pango::FontDescription get_Ardour##var () const { return ARDOUR_UI_UTILS::ardour_font (var.get()); } \
bool set_##var (const std::string& val) { bool ret = var.set (val); if (ret) { ParameterChanged (name); } return ret; }
#include "canvas_vars.h"
#include "canvas_vars.inc.h"
#undef CANVAS_FONT_VARIABLE
private:
@ -128,11 +128,11 @@ private:
#undef UI_CONFIG_VARIABLE
#define UI_CONFIG_VARIABLE(Type,var,name,value) PBD::ConfigVariable<Type> var;
#include "ui_config_vars.h"
#include "ui_config_vars.inc.h"
#undef UI_CONFIG_VARIABLE
#define CANVAS_FONT_VARIABLE(var,name) PBD::ConfigVariable<std::string> var;
#include "canvas_vars.h"
#include "canvas_vars.inc.h"
#undef CANVAS_FONT_VARIABLE
XMLNode& state () const;

View File

@ -2350,7 +2350,7 @@
>
</File>
<File
RelativePath="..\ardour\rc_configuration_vars.h"
RelativePath="..\ardour\rc_configuration_vars.inc.h"
>
</File>
<File
@ -2458,7 +2458,7 @@
>
</File>
<File
RelativePath="..\ardour\session_configuration_vars.h"
RelativePath="..\ardour\session_configuration_vars.inc.h"
>
</File>
<File

View File

@ -71,7 +71,7 @@ class LIBARDOUR_API RCConfiguration : public PBD::Configuration
#define CONFIG_VARIABLE_SPECIAL(Type,var,name,value,mutator) \
Type get_##var () const { return var.get(); } \
bool set_##var (Type val) { bool ret = var.set (val); if (ret) { ParameterChanged (name); } return ret; }
#include "ardour/rc_configuration_vars.h"
#include "ardour/rc_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
@ -83,7 +83,7 @@ class LIBARDOUR_API RCConfiguration : public PBD::Configuration
#undef CONFIG_VARIABLE_SPECIAL
#define CONFIG_VARIABLE(Type,var,name,value) PBD::ConfigVariable<Type> var;
#define CONFIG_VARIABLE_SPECIAL(Type,var,name,value,mutator) PBD::ConfigVariableWithMutation<Type> var;
#include "ardour/rc_configuration_vars.h"
#include "ardour/rc_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL

View File

@ -53,7 +53,7 @@ public:
#define CONFIG_VARIABLE_SPECIAL(Type,var,name,value,mutator) \
Type get_##var () const { return var.get(); } \
bool set_##var (Type val) { bool ret = var.set (val); if (ret) { ParameterChanged (name); } return ret; }
#include "ardour/session_configuration_vars.h"
#include "ardour/session_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
/* clang-format on */
@ -67,7 +67,7 @@ public:
#undef CONFIG_VARIABLE_SPECIAL
#define CONFIG_VARIABLE(Type,var,name,value) PBD::ConfigVariable<Type> var;
#define CONFIG_VARIABLE_SPECIAL(Type,var,name,value,mutator) PBD::ConfigVariableWithMutation<Type> var;
#include "ardour/session_configuration_vars.h"
#include "ardour/session_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
/* clang-format on */

View File

@ -3006,7 +3006,7 @@ LuaBindings::common (lua_State* L)
.addFunction ("set_" # var, &RCConfiguration::set_##var) \
.addProperty (#var, &RCConfiguration::get_##var, &RCConfiguration::set_##var)
#include "ardour/rc_configuration_vars.h"
#include "ardour/rc_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
@ -3025,7 +3025,7 @@ LuaBindings::common (lua_State* L)
.addFunction ("set_" # var, &SessionConfiguration::set_##var) \
.addProperty (#var, &SessionConfiguration::get_##var, &SessionConfiguration::set_##var)
#include "ardour/session_configuration_vars.h"
#include "ardour/session_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL

View File

@ -43,7 +43,7 @@ using namespace Glib;
MidiControlUI* MidiControlUI::_instance = 0;
#include "pbd/abstract_ui.cc" /* instantiate the template */
#include "pbd/abstract_ui.inc.cc" /* instantiate the template */
MidiControlUI::MidiControlUI (Session& s)
: AbstractUI<MidiUIRequest> (X_("midiUI"))

View File

@ -70,7 +70,7 @@ RCConfiguration::RCConfiguration ()
#undef CONFIG_VARIABLE_SPECIAL
#define CONFIG_VARIABLE(Type,var,name,value) var (name,value),
#define CONFIG_VARIABLE_SPECIAL(Type,var,name,value,mutator) var (name,value,mutator),
#include "ardour/rc_configuration_vars.h"
#include "ardour/rc_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
_control_protocol_state (0)
@ -84,7 +84,7 @@ RCConfiguration::RCConfiguration ()
#undef CONFIG_VARIABLE_SPECIAL
#define CONFIG_VARIABLE(Type,var,name,value) _my_variables.insert (std::make_pair ((name), &(var)));
#define CONFIG_VARIABLE_SPECIAL(Type,var,name,value,mutator) _my_variables.insert (std::make_pair ((name), &(var)));
#include "ardour/rc_configuration_vars.h"
#include "ardour/rc_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
@ -243,7 +243,7 @@ RCConfiguration::get_variables (std::string const & node_name) const
var.add_to_node (*node);
#define CONFIG_VARIABLE_SPECIAL(type,var,Name,value,mutator) \
var.add_to_node (*node);
#include "ardour/rc_configuration_vars.h"
#include "ardour/rc_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
@ -299,7 +299,7 @@ RCConfiguration::set_variables (const XMLNode& node)
ParameterChanged (name); \
}
#include "ardour/rc_configuration_vars.h"
#include "ardour/rc_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
@ -311,7 +311,7 @@ RCConfiguration::map_parameters (std::function<void (std::string)>& functor)
#undef CONFIG_VARIABLE_SPECIAL
#define CONFIG_VARIABLE(type,var,name,value) functor (name);
#define CONFIG_VARIABLE_SPECIAL(type,var,name,value,mutator) functor (name);
#include "ardour/rc_configuration_vars.h"
#include "ardour/rc_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
}

View File

@ -50,7 +50,7 @@ SessionConfiguration::SessionConfiguration ()
#undef CONFIG_VARIABLE_SPECIAL
#define CONFIG_VARIABLE(Type,var,name,value) var (name,value),
#define CONFIG_VARIABLE_SPECIAL(Type,var,name,value,mutator) var (name,value,mutator),
#include "ardour/session_configuration_vars.h"
#include "ardour/session_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
foo (0) // needed because above macros end in a comma
@ -62,7 +62,7 @@ SessionConfiguration::SessionConfiguration ()
#undef CONFIG_VARIABLE_SPECIAL
#define CONFIG_VARIABLE(Type,var,name,value) _my_variables.insert (std::make_pair ((name), &(var)));
#define CONFIG_VARIABLE_SPECIAL(Type,var,name,value,mutator) _my_variables.insert (std::make_pair ((name), &(var)));
#include "ardour/session_configuration_vars.h"
#include "ardour/session_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
@ -97,7 +97,7 @@ SessionConfiguration::get_variables (std::string const & node_name) const
var.add_to_node (*node);
#define CONFIG_VARIABLE_SPECIAL(type,var,Name,value,mutator) \
var.add_to_node (*node);
#include "ardour/session_configuration_vars.h"
#include "ardour/session_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
@ -136,7 +136,7 @@ SessionConfiguration::set_variables (const XMLNode& node)
ParameterChanged (name); \
}
#include "ardour/session_configuration_vars.h"
#include "ardour/session_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
@ -148,7 +148,7 @@ SessionConfiguration::map_parameters (std::function<void (std::string)>& functor
#undef CONFIG_VARIABLE_SPECIAL
#define CONFIG_VARIABLE(type,var,name,value) functor (name);
#define CONFIG_VARIABLE_SPECIAL(type,var,name,value,mutator) functor (name);
#include "ardour/session_configuration_vars.h"
#include "ardour/session_configuration_vars.inc.h"
#undef CONFIG_VARIABLE
#undef CONFIG_VARIABLE_SPECIAL
}

View File

@ -25,7 +25,7 @@
#include "ardour/session_event.h"
#include "ardour/rc_configuration.h"
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
using namespace ARDOUR;

View File

@ -35,7 +35,7 @@ using namespace ARDOUR;
using namespace Glib;
using namespace PBD;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
MIDISurface::MIDISurface (ARDOUR::Session& s, std::string const & namestr, std::string const & port_prefix, bool use_pad_filter)
: ControlProtocol (s, namestr)

View File

@ -69,7 +69,7 @@ BaseUI::RequestType Gtkmm2ext::SetTip = BaseUI::new_request_type();
BaseUI::RequestType Gtkmm2ext::AddIdle = BaseUI::new_request_type();
BaseUI::RequestType Gtkmm2ext::AddTimeout = BaseUI::new_request_type();
#include "pbd/abstract_ui.cc" /* instantiate the template */
#include "pbd/abstract_ui.inc.cc" /* instantiate the template */
template class AbstractUI<Gtkmm2ext::UIRequest>;

View File

@ -69,7 +69,7 @@ using namespace std;
#include "pbd/i18n.h"
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
CC121::CC121 (Session& s)
: ControlProtocol (s, _("Steinberg CC121"))

View File

@ -18,7 +18,7 @@
#include <optional>
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
#include "pbd/controllable.h"
#include "pbd/i18n.h"

View File

@ -38,7 +38,7 @@ using namespace Glib;
using namespace std;
using namespace ArdourSurface;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
static const uint16_t ContourDesign = 0x0b33;
static const uint16_t ShuttlePRO_id = 0x0010;

View File

@ -63,7 +63,7 @@ using namespace std;
#include "pbd/i18n.h"
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
FaderPort::FaderPort (Session& s)
: MIDISurface (s, X_("PreSonus FaderPort"), X_("FaderPort"), false)

View File

@ -62,7 +62,7 @@ using namespace ArdourSurface::FP_NAMESPACE::FP8Types;
#include "pbd/i18n.h"
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
#ifndef NDEBUG
//#define VERBOSE_DEBUG

View File

@ -66,7 +66,7 @@
#include "midifunction.h"
#include "midiaction.h"
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
#include "pbd/i18n.h"

View File

@ -65,7 +65,7 @@ using namespace std;
using namespace PBD;
using namespace Glib;
using namespace ArdourSurface;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
/* init global object */
LaunchControlXL* lcxl = 0;

View File

@ -78,7 +78,7 @@ using namespace ArdourSurface;
using namespace ArdourSurface::LAUNCHPAD_NAMESPACE;
using namespace Gtkmm2ext;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
/* USB IDs */

View File

@ -73,7 +73,7 @@ using namespace Glib;
using namespace ArdourSurface;
using namespace Gtkmm2ext;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
#define NOVATION 0x1235
#define LAUNCHPADPROMK3 0x0123

View File

@ -80,7 +80,7 @@ using namespace ArdourSurface;
using namespace ArdourSurface::LAUNCHPAD_NAMESPACE;
using namespace Gtkmm2ext;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
#define NOVATION 0x1235

View File

@ -98,7 +98,7 @@ using namespace ArdourSurface::MACKIE_NAMESPACE;
#include "pbd/i18n.h"
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
const int MACKIE_NAMESPACE::MackieControlProtocol::MODIFIER_OPTION = 0x1;
const int MACKIE_NAMESPACE::MackieControlProtocol::MODIFIER_CONTROL = 0x2;

View File

@ -42,7 +42,7 @@
#include "canvas.h"
#include "pbd/abstract_ui.cc" // instantiate template, includes i18n
#include "pbd/abstract_ui.inc.cc" // instantiate template, includes i18n
using namespace ARDOUR;
using namespace PBD;

View File

@ -84,7 +84,7 @@ using namespace std;
using namespace Glib;
using namespace ArdourSurface;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
OSC* OSC::_instance = 0;

View File

@ -74,7 +74,7 @@ using namespace Glib;
using namespace ArdourSurface;
using namespace Gtkmm2ext;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
#define ABLETON 0x2982
#define PUSH2 0x1967

View File

@ -83,7 +83,7 @@ using namespace US2400;
#include "pbd/i18n.h"
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
const int US2400Protocol::MODIFIER_OPTION = 0x1;
const int US2400Protocol::MODIFIER_CONTROL = 0x2;

View File

@ -32,7 +32,7 @@
using namespace ARDOUR;
using namespace ArdourSurface;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
ArdourWebsockets::ArdourWebsockets (Session& s)
: ControlProtocol (s, X_ (surface_name))

View File

@ -20,7 +20,7 @@
#include "ardour/session.h"
#include "ardour/tempo.h"
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
#include "feedback.h"
#include "transport.h"

View File

@ -31,7 +31,7 @@ using namespace ARDOUR;
using namespace PBD;
using namespace std;
#include "pbd/abstract_ui.cc" // instantiate template
#include "pbd/abstract_ui.inc.cc" // instantiate template
void wiimote_control_protocol_mesg_callback (cwiid_wiimote_t *wiimote, int mesg_count, union cwiid_mesg mesg[], timespec *t);