triggerbox: add a useful property
This commit is contained in:
parent
b76744d28d
commit
7ac80607ea
@ -38,6 +38,12 @@
|
||||
|
||||
class XMLNode;
|
||||
|
||||
namespace ARDOUR {
|
||||
namespace Properties {
|
||||
LIBARDOUR_API extern PBD::PropertyDescriptor<bool> running;
|
||||
}
|
||||
}
|
||||
|
||||
namespace ARDOUR {
|
||||
|
||||
class Session;
|
||||
@ -49,6 +55,8 @@ class LIBARDOUR_API Trigger : public PBD::Stateful {
|
||||
Trigger (size_t index, TriggerBox&);
|
||||
virtual ~Trigger() {}
|
||||
|
||||
static void make_property_quarks ();
|
||||
|
||||
virtual void bang (TriggerBox&) = 0;
|
||||
virtual void unbang (TriggerBox&, Temporal::Beats const &, samplepos_t) = 0;
|
||||
|
||||
|
@ -126,6 +126,7 @@
|
||||
#include "ardour/source_factory.h"
|
||||
#include "ardour/transport_fsm.h"
|
||||
#include "ardour/transport_master_manager.h"
|
||||
#include "ardour/triggerbox.h"
|
||||
#include "ardour/uri_map.h"
|
||||
|
||||
#include "audiographer/routines.h"
|
||||
@ -560,6 +561,7 @@ ARDOUR::init (bool try_optimization, const char* localedir, bool with_gui)
|
||||
AudioPlaylist::make_property_quarks ();
|
||||
PresentationInfo::make_property_quarks ();
|
||||
TransportMaster::make_property_quarks ();
|
||||
Trigger::make_property_quarks ();
|
||||
|
||||
/* this is a useful ready to use PropertyChange that many
|
||||
things need to check. This avoids having to compose
|
||||
|
@ -24,6 +24,19 @@ using std::string;
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
namespace ARDOUR {
|
||||
namespace Properties {
|
||||
PBD::PropertyDescriptor<bool> running;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Trigger::make_property_quarks ()
|
||||
{
|
||||
Properties::muted.property_id = g_quark_from_static_string (X_("running"));
|
||||
DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for running = %1\n", Properties::running.property_id));
|
||||
}
|
||||
|
||||
TriggerBox::TriggerBox (Session& s, DataType dt)
|
||||
: Processor (s, _("TriggerBox"), Temporal::BeatTime)
|
||||
, _bang_queue (1024)
|
||||
|
Loading…
Reference in New Issue
Block a user