mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
NO-OP: Clarify function name
This commit is contained in:
parent
76f9764a44
commit
245d48dbd0
10 changed files with 19 additions and 22 deletions
|
|
@ -4362,7 +4362,7 @@ ARDOUR_UI::add_route_dialog_response (int r)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
add_route_dialog->ArdourDialog::on_response (r);
|
add_route_dialog->ArdourDialog::on_response (r);
|
||||||
ARDOUR_UI_UTILS::no_engine_notify ();
|
ARDOUR_UI_UTILS::engine_is_running ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -373,7 +373,7 @@ Editor::track_canvas_drag_data_received (const RefPtr<Gdk::DragContext>& context
|
||||||
const SelectionData& data,
|
const SelectionData& data,
|
||||||
guint info, guint time)
|
guint info, guint time)
|
||||||
{
|
{
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (data.get_target() == "regions") {
|
if (data.get_target() == "regions") {
|
||||||
|
|
|
||||||
|
|
@ -1428,7 +1428,7 @@ RegionMoveDrag::finished (GdkEvent* ev, bool movement_occurred)
|
||||||
RouteTimeAxisView*
|
RouteTimeAxisView*
|
||||||
RegionMoveDrag::create_destination_time_axis (boost::shared_ptr<Region> region, TimeAxisView* original)
|
RegionMoveDrag::create_destination_time_axis (boost::shared_ptr<Region> region, TimeAxisView* original)
|
||||||
{
|
{
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7421,7 +7421,7 @@ Editor::_remove_tracks ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -873,7 +873,7 @@ gint
|
||||||
MixerStrip::output_press (GdkEventButton *ev)
|
MixerStrip::output_press (GdkEventButton *ev)
|
||||||
{
|
{
|
||||||
using namespace Menu_Helpers;
|
using namespace Menu_Helpers;
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -987,7 +987,7 @@ MixerStrip::input_press (GdkEventButton *ev)
|
||||||
input_menu.set_name ("ArdourContextMenu");
|
input_menu.set_name ("ArdourContextMenu");
|
||||||
citems.clear();
|
citems.clear();
|
||||||
|
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2427,7 +2427,7 @@ ProcessorBox::processor_button_press_event (GdkEventButton *ev, ProcessorEntry*
|
||||||
if (!one_processor_can_be_edited ()) {
|
if (!one_processor_can_be_edited ()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2534,7 +2534,7 @@ ProcessorBox::use_plugins (const SelectedPlugins& plugins)
|
||||||
; /* only show inline display */
|
; /* only show inline display */
|
||||||
}
|
}
|
||||||
else if (processor_can_be_edited (processor)) {
|
else if (processor_can_be_edited (processor)) {
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running()) {
|
||||||
return true;
|
return true;
|
||||||
} else if ((*p)->has_editor ()) {
|
} else if ((*p)->has_editor ()) {
|
||||||
edit_processor (processor);
|
edit_processor (processor);
|
||||||
|
|
@ -3663,7 +3663,7 @@ ProcessorBox::get_editor_window (boost::shared_ptr<Processor> processor, bool us
|
||||||
|
|
||||||
} else if ((send = boost::dynamic_pointer_cast<Send> (processor)) != 0) {
|
} else if ((send = boost::dynamic_pointer_cast<Send> (processor)) != 0) {
|
||||||
|
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3679,7 +3679,7 @@ ProcessorBox::get_editor_window (boost::shared_ptr<Processor> processor, bool us
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3721,7 +3721,7 @@ ProcessorBox::get_editor_window (boost::shared_ptr<Processor> processor, bool us
|
||||||
|
|
||||||
} else if ((port_insert = boost::dynamic_pointer_cast<PortInsert> (processor)) != 0) {
|
} else if ((port_insert = boost::dynamic_pointer_cast<PortInsert> (processor)) != 0) {
|
||||||
|
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4089,7 +4089,7 @@ ProcessorBox::edit_processor (boost::shared_ptr<Processor> processor)
|
||||||
if (edit_aux_send (processor)) {
|
if (edit_aux_send (processor)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4110,7 +4110,7 @@ ProcessorBox::generic_edit_processor (boost::shared_ptr<Processor> processor)
|
||||||
if (edit_aux_send (processor)) {
|
if (edit_aux_send (processor)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2323,7 +2323,7 @@ RouteUI::manage_pins ()
|
||||||
void
|
void
|
||||||
RouteUI::fan_out (bool to_busses, bool group)
|
RouteUI::fan_out (bool to_busses, bool group)
|
||||||
{
|
{
|
||||||
if (ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (!ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2057,7 +2057,7 @@ SoundFileOmega::do_something (int action)
|
||||||
{
|
{
|
||||||
SoundFileBrowser::do_something (action);
|
SoundFileBrowser::do_something (action);
|
||||||
|
|
||||||
if (action == RESPONSE_CLOSE || ARDOUR_UI_UTILS::no_engine_notify ()) {
|
if (action == RESPONSE_CLOSE || !ARDOUR_UI_UTILS::engine_is_running ()) {
|
||||||
hide ();
|
hide ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -124,13 +124,13 @@ idle_notify_engine_stopped ()
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ARDOUR_UI_UTILS::no_engine_notify ()
|
ARDOUR_UI_UTILS::engine_is_running ()
|
||||||
{
|
{
|
||||||
if (ARDOUR::AudioEngine::instance()->running ()) {
|
if (ARDOUR::AudioEngine::instance()->running ()) {
|
||||||
return false; // 0 == OK
|
return true;
|
||||||
}
|
}
|
||||||
Glib::signal_idle().connect (sigc::ptr_fun (&idle_notify_engine_stopped));
|
Glib::signal_idle().connect (sigc::ptr_fun (&idle_notify_engine_stopped));
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,10 +52,7 @@ namespace ARDOUR_UI_UTILS {
|
||||||
gint just_hide_it (GdkEventAny*, Gtk::Window*);
|
gint just_hide_it (GdkEventAny*, Gtk::Window*);
|
||||||
void add_item_with_sensitivity (Gtk::Menu_Helpers::MenuList &, Gtk::Menu_Helpers::MenuElem, bool);
|
void add_item_with_sensitivity (Gtk::Menu_Helpers::MenuList &, Gtk::Menu_Helpers::MenuElem, bool);
|
||||||
|
|
||||||
/* return 0 (false) if there is no error (engine runs).
|
bool engine_is_running ();
|
||||||
* otherwise queue an idle user-notificaion and return true.
|
|
||||||
*/
|
|
||||||
bool no_engine_notify ();
|
|
||||||
|
|
||||||
unsigned char* xpm2rgb (const char** xpm, uint32_t& w, uint32_t& h);
|
unsigned char* xpm2rgb (const char** xpm, uint32_t& w, uint32_t& h);
|
||||||
unsigned char* xpm2rgba (const char** xpm, uint32_t& w, uint32_t& h);
|
unsigned char* xpm2rgba (const char** xpm, uint32_t& w, uint32_t& h);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue