mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
triggerbox: UI part of size_t => uint64_t change
This commit is contained in:
parent
df1780f09d
commit
f07885ea13
2 changed files with 21 additions and 21 deletions
|
|
@ -173,7 +173,7 @@ void
|
||||||
TriggerBoxUI::build ()
|
TriggerBoxUI::build ()
|
||||||
{
|
{
|
||||||
Trigger* t;
|
Trigger* t;
|
||||||
size_t n = 0;
|
uint64_t n = 0;
|
||||||
|
|
||||||
// clear_items (true);
|
// clear_items (true);
|
||||||
|
|
||||||
|
|
@ -199,13 +199,13 @@ TriggerBoxUI::build ()
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
TriggerBoxUI::text_event (GdkEvent *ev, size_t n)
|
TriggerBoxUI::text_event (GdkEvent *ev, uint64_t n)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
TriggerBoxUI::event (GdkEvent* ev, size_t n)
|
TriggerBoxUI::event (GdkEvent* ev, uint64_t n)
|
||||||
{
|
{
|
||||||
switch (ev->type) {
|
switch (ev->type) {
|
||||||
case GDK_2BUTTON_PRESS:
|
case GDK_2BUTTON_PRESS:
|
||||||
|
|
@ -229,7 +229,7 @@ TriggerBoxUI::event (GdkEvent* ev, size_t n)
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
TriggerBoxUI::bang (GdkEvent *ev, size_t n)
|
TriggerBoxUI::bang (GdkEvent *ev, uint64_t n)
|
||||||
{
|
{
|
||||||
if (!_triggerbox.trigger (n)->region()) {
|
if (!_triggerbox.trigger (n)->region()) {
|
||||||
/* this is a stop button */
|
/* this is a stop button */
|
||||||
|
|
@ -274,7 +274,7 @@ TriggerBoxUI::bang (GdkEvent *ev, size_t n)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
TriggerBoxUI::context_menu (size_t n)
|
TriggerBoxUI::context_menu (uint64_t n)
|
||||||
{
|
{
|
||||||
using namespace Gtk;
|
using namespace Gtk;
|
||||||
using namespace Gtk::Menu_Helpers;
|
using namespace Gtk::Menu_Helpers;
|
||||||
|
|
@ -402,7 +402,7 @@ TriggerBoxUI::context_menu (size_t n)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
TriggerBoxUI::edit_trigger (size_t n)
|
TriggerBoxUI::edit_trigger (uint64_t n)
|
||||||
{
|
{
|
||||||
Trigger* trigger = _triggerbox.trigger (n);
|
Trigger* trigger = _triggerbox.trigger (n);
|
||||||
TriggerWindow* tw = static_cast<TriggerWindow*> (trigger->ui());
|
TriggerWindow* tw = static_cast<TriggerWindow*> (trigger->ui());
|
||||||
|
|
@ -416,25 +416,25 @@ TriggerBoxUI::edit_trigger (size_t n)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
TriggerBoxUI::set_follow_action (size_t n, Trigger::FollowAction fa)
|
TriggerBoxUI::set_follow_action (uint64_t n, Trigger::FollowAction fa)
|
||||||
{
|
{
|
||||||
_triggerbox.trigger (n)->set_follow_action (fa, 0);
|
_triggerbox.trigger (n)->set_follow_action (fa, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
TriggerBoxUI::set_launch_style (size_t n, Trigger::LaunchStyle ls)
|
TriggerBoxUI::set_launch_style (uint64_t n, Trigger::LaunchStyle ls)
|
||||||
{
|
{
|
||||||
_triggerbox.trigger (n)->set_launch_style (ls);
|
_triggerbox.trigger (n)->set_launch_style (ls);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
TriggerBoxUI::set_quantization (size_t n, Temporal::BBT_Offset const & q)
|
TriggerBoxUI::set_quantization (uint64_t n, Temporal::BBT_Offset const & q)
|
||||||
{
|
{
|
||||||
_triggerbox.trigger (n)->set_quantization (q);
|
_triggerbox.trigger (n)->set_quantization (q);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
TriggerBoxUI::choose_sample (size_t n)
|
TriggerBoxUI::choose_sample (uint64_t n)
|
||||||
{
|
{
|
||||||
if (!file_chooser) {
|
if (!file_chooser) {
|
||||||
file_chooser = new Gtk::FileChooserDialog (_("Select sample"), Gtk::FILE_CHOOSER_ACTION_OPEN);
|
file_chooser = new Gtk::FileChooserDialog (_("Select sample"), Gtk::FILE_CHOOSER_ACTION_OPEN);
|
||||||
|
|
@ -449,7 +449,7 @@ TriggerBoxUI::choose_sample (size_t n)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
TriggerBoxUI::sample_chosen (int response, size_t n)
|
TriggerBoxUI::sample_chosen (int response, uint64_t n)
|
||||||
{
|
{
|
||||||
file_chooser->hide ();
|
file_chooser->hide ();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ class TriggerBoxUI : public ArdourCanvas::Box
|
||||||
TriggerBoxUI (ArdourCanvas::Item* parent, ARDOUR::TriggerBox&);
|
TriggerBoxUI (ArdourCanvas::Item* parent, ARDOUR::TriggerBox&);
|
||||||
~TriggerBoxUI ();
|
~TriggerBoxUI ();
|
||||||
|
|
||||||
void edit_trigger (size_t n);
|
void edit_trigger (uint64_t n);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ARDOUR::TriggerBox& _triggerbox;
|
ARDOUR::TriggerBox& _triggerbox;
|
||||||
|
|
@ -83,16 +83,16 @@ class TriggerBoxUI : public ArdourCanvas::Box
|
||||||
sigc::connection file_chooser_connection;
|
sigc::connection file_chooser_connection;
|
||||||
Gtk::Menu* _context_menu;
|
Gtk::Menu* _context_menu;
|
||||||
|
|
||||||
bool bang (GdkEvent*, size_t);
|
bool bang (GdkEvent*, uint64_t);
|
||||||
bool text_event (GdkEvent*, size_t);
|
bool text_event (GdkEvent*, uint64_t);
|
||||||
bool event (GdkEvent*, size_t);
|
bool event (GdkEvent*, uint64_t);
|
||||||
|
|
||||||
void choose_sample (size_t n);
|
void choose_sample (uint64_t n);
|
||||||
void sample_chosen (int r, size_t n);
|
void sample_chosen (int r, uint64_t n);
|
||||||
void context_menu (size_t n);
|
void context_menu (uint64_t n);
|
||||||
void set_follow_action (size_t slot, ARDOUR::Trigger::FollowAction);
|
void set_follow_action (uint64_t slot, ARDOUR::Trigger::FollowAction);
|
||||||
void set_launch_style (size_t slot, ARDOUR::Trigger::LaunchStyle);
|
void set_launch_style (uint64_t slot, ARDOUR::Trigger::LaunchStyle);
|
||||||
void set_quantization (size_t slot, Temporal::BBT_Offset const &);
|
void set_quantization (uint64_t slot, Temporal::BBT_Offset const &);
|
||||||
|
|
||||||
void build ();
|
void build ();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue