mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Compare commits
3 commits
0f3760a8d1
...
f8d4197ce7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8d4197ce7 | ||
|
|
728558e51c | ||
|
|
b938daca95 |
12 changed files with 34 additions and 24 deletions
|
|
@ -489,10 +489,15 @@ CueEditor::build_upper_toolbar ()
|
|||
play_button.set_size_request (PX_SCALE(20), PX_SCALE(20));
|
||||
#undef PX_SCALE
|
||||
|
||||
set_tooltip (play_button, _("Play this clip from the top"));
|
||||
set_tooltip (loop_button, _("Loop the range of this clip"));
|
||||
set_tooltip (solo_button, _("Solo the track containing this clip"));
|
||||
|
||||
play_button.signal_button_release_event().connect (sigc::mem_fun (*this, &CueEditor::play_button_press), false);
|
||||
solo_button.signal_button_release_event().connect (sigc::mem_fun (*this, &CueEditor::solo_button_press), false);
|
||||
loop_button.signal_button_release_event().connect (sigc::mem_fun (*this, &CueEditor::loop_button_press), false);
|
||||
} else {
|
||||
set_tooltip (play_button, _("Launch selected clip"));
|
||||
rec_box.pack_start (play_button, false, false);
|
||||
play_button.signal_button_release_event().connect (sigc::mem_fun (*this, &CueEditor::bang_button_press), false);
|
||||
}
|
||||
|
|
@ -502,6 +507,9 @@ CueEditor::build_upper_toolbar ()
|
|||
rec_enable_button.signal_button_release_event().connect (sigc::mem_fun (*this, &CueEditor::rec_button_press), false);
|
||||
rec_enable_button.set_name ("record enable button");
|
||||
|
||||
set_tooltip (rec_enable_button, _("Record clip"));
|
||||
set_tooltip (length_selector, _("Record length"));
|
||||
|
||||
std::string label;
|
||||
std::string noun;
|
||||
|
||||
|
|
|
|||
|
|
@ -2351,8 +2351,11 @@ EditingContext::bind_mouse_mode_buttons ()
|
|||
RefPtr<Action> act;
|
||||
|
||||
act = ActionManager::get_action ((_name + X_("Editing")).c_str(), X_("temporal-zoom-in"));
|
||||
act->set_tooltip (_("Zoom In"));
|
||||
zoom_in_button.set_related_action (act);
|
||||
|
||||
act = ActionManager::get_action ((_name + X_("Editing")).c_str(), X_("temporal-zoom-out"));
|
||||
act->set_tooltip (_("Zoom Out"));
|
||||
zoom_out_button.set_related_action (act);
|
||||
|
||||
follow_playhead_button.set_related_action (follow_playhead_action);
|
||||
|
|
|
|||
|
|
@ -2894,8 +2894,6 @@ Editor::setup_tooltips ()
|
|||
set_tooltip (*_group_tabs, _("Groups: click to (de)activate\nContext-click for other operations"));
|
||||
set_tooltip (nudge_forward_button, _("Nudge Region/Selection Later"));
|
||||
set_tooltip (nudge_backward_button, _("Nudge Region/Selection Earlier"));
|
||||
set_tooltip (zoom_in_button, _("Zoom In"));
|
||||
set_tooltip (zoom_out_button, _("Zoom Out"));
|
||||
set_tooltip (zoom_preset_selector, _("Zoom to Time Scale"));
|
||||
set_tooltip (full_zoom_button, _("Zoom to Session"));
|
||||
set_tooltip (tav_expand_button, _("Expand Tracks"));
|
||||
|
|
|
|||
|
|
@ -846,7 +846,7 @@ JACKAudioBackend::join_process_threads ()
|
|||
bool
|
||||
JACKAudioBackend::in_process_thread ()
|
||||
{
|
||||
#if defined COMPILER_MINGW && (!defined PTW32_VERSION || defined __jack_systemdeps_h__)
|
||||
#if defined COMPILER_MINGW && (!defined __PTW32_VERSION || defined __jack_systemdeps_h__)
|
||||
if (_main_thread == GetCurrentThread()) {
|
||||
return true;
|
||||
}
|
||||
|
|
@ -858,7 +858,7 @@ JACKAudioBackend::in_process_thread ()
|
|||
|
||||
for (auto & thread : _jack_threads) {
|
||||
|
||||
#if defined COMPILER_MINGW && (!defined PTW32_VERSION || defined __jack_systemdeps_h__)
|
||||
#if defined COMPILER_MINGW && (!defined __PTW32_VERSION || defined __jack_systemdeps_h__)
|
||||
if (thread == GetCurrentThread()) {
|
||||
return true;
|
||||
}
|
||||
|
|
@ -909,7 +909,7 @@ JACKAudioBackend::process_thread ()
|
|||
/* JACK doesn't do this for us when we use the wait API
|
||||
*/
|
||||
|
||||
#if defined COMPILER_MINGW && (!defined PTW32_VERSION || defined __jack_systemdeps_h__)
|
||||
#if defined COMPILER_MINGW && (!defined __PTW32_VERSION || defined __jack_systemdeps_h__)
|
||||
_main_thread = GetCurrentThread();
|
||||
#else
|
||||
_main_thread = pthread_self ();
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
|
||||
#include "pbd/cpus.h"
|
||||
|
||||
#if defined(COMPILER_MSVC) && !defined(PTW32_VERSION)
|
||||
#include <ardourext/pthread.h> // Gets us 'PTW32_VERSION'
|
||||
#if defined(COMPILER_MSVC) && !defined(__PTW32_VERSION)
|
||||
#include <ardourext/pthread.h> // Gets us '__PTW32_VERSION'
|
||||
#endif
|
||||
|
||||
int32_t
|
||||
|
|
@ -69,7 +69,7 @@ PBD::hardware_concurrency()
|
|||
return c;
|
||||
}
|
||||
}
|
||||
#if defined(PTW32_VERSION) || defined(__hpux)
|
||||
#if defined(__PTW32_VERSION) || defined(__hpux)
|
||||
return pthread_num_processors_np();
|
||||
#elif defined(__APPLE__)
|
||||
int count;
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ protected:
|
|||
};
|
||||
typedef typename RequestBuffer::rw_vector RequestBufferVector;
|
||||
|
||||
#if defined(COMPILER_MINGW) && defined(PTW32_VERSION)
|
||||
#if defined(COMPILER_MINGW) && defined(__PTW32_VERSION)
|
||||
struct pthread_cmp
|
||||
{
|
||||
bool operator() (const ptw32_handle_t& thread1, const ptw32_handle_t& thread2)
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
#include "pbd/libpbd_visibility.h"
|
||||
#include "pbd/timing.h"
|
||||
|
||||
/* check for PTW32_VERSION */
|
||||
/* check for __PTW32_VERSION */
|
||||
#ifdef COMPILER_MSVC
|
||||
#include <ardourext/pthread.h>
|
||||
#else
|
||||
|
|
@ -83,7 +83,7 @@ namespace PBD {
|
|||
#define DEBUG_STR(id) __debug_str ## id
|
||||
#define DEBUG_STR_APPEND(id,s) __debug_str ## id << s;
|
||||
#define DEBUG_ENABLED(bits) (((bits) & PBD::debug_bits).any())
|
||||
#ifdef PTW32_VERSION
|
||||
#ifdef __PTW32_VERSION
|
||||
#define DEBUG_THREAD_SELF pthread_self().p
|
||||
#define DEBUG_THREAD_PRINT(t) t.p
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@
|
|||
*/
|
||||
#ifndef PTHREAD_MACROS_DEFINED
|
||||
#define PTHREAD_MACROS_DEFINED
|
||||
#ifdef PTW32_VERSION /* pthread_win32 */
|
||||
#ifdef __PTW32_VERSION /* pthread_win32 */
|
||||
#define mark_pthread_inactive(threadID) threadID.p=0
|
||||
#define is_pthread_active(threadID) (threadID.p!=0)
|
||||
#else /* normal pthread */
|
||||
#define mark_pthread_inactive(threadID) threadID=0
|
||||
#define is_pthread_active(threadID) threadID!=0
|
||||
#endif /* PTW32_VERSION */
|
||||
#endif /* __PTW32_VERSION */
|
||||
#endif /* PTHREAD_MACROS_DEFINED */
|
||||
|
||||
#ifdef COMPILER_MSVC
|
||||
|
|
|
|||
|
|
@ -237,7 +237,7 @@ pthread_set_name (const char* str)
|
|||
/* copy string and delete it when exiting */
|
||||
thread_name.set (strdup (str)); // leaks
|
||||
|
||||
#if !defined PTW32_VERSION && defined _GNU_SOURCE
|
||||
#if !defined __PTW32_VERSION && defined _GNU_SOURCE
|
||||
/* set public thread name, up to 16 chars */
|
||||
char ptn[16];
|
||||
memset (ptn, 0, 16);
|
||||
|
|
|
|||
|
|
@ -20,10 +20,11 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <windows.h> // Needed for MSVC 'Sleep()'
|
||||
#include <windows.h> // Needed for MSVC 'Sleep()'
|
||||
#else
|
||||
#include <unistd.h> // for usleep ()
|
||||
#endif
|
||||
|
||||
#include "zita-convolver/zita-convolver.h"
|
||||
|
|
@ -432,7 +433,7 @@ Convlevel::Convlevel (void)
|
|||
, _npar (0)
|
||||
, _parsize (0)
|
||||
, _options (0)
|
||||
#ifndef PTW32_VERSION
|
||||
#ifndef __PTW32_VERSION
|
||||
, _pthr (0)
|
||||
#endif
|
||||
, _inp_list (0)
|
||||
|
|
@ -607,7 +608,7 @@ Convlevel::start (int abspri, int policy)
|
|||
pthread_attr_t attr;
|
||||
struct sched_param parm;
|
||||
|
||||
#ifndef PTW32_VERSION
|
||||
#ifndef __PTW32_VERSION
|
||||
_pthr = 0;
|
||||
#endif
|
||||
min = sched_get_priority_min (policy);
|
||||
|
|
@ -685,7 +686,7 @@ void*
|
|||
Convlevel::static_main (void* arg)
|
||||
{
|
||||
((Convlevel*)arg)->main ();
|
||||
#if !defined PTW32_VERSION && defined _GNU_SOURCE
|
||||
#if !defined __PTW32_VERSION && defined _GNU_SOURCE
|
||||
pthread_setname_np (pthread_self(), "ZConvlevel");
|
||||
#endif
|
||||
return 0;
|
||||
|
|
@ -699,7 +700,7 @@ Convlevel::main (void)
|
|||
_trig.wait ();
|
||||
if (_stat == ST_TERM) {
|
||||
_stat = ST_IDLE;
|
||||
#ifndef PTW32_VERSION
|
||||
#ifndef __PTW32_VERSION
|
||||
_pthr = 0;
|
||||
#endif
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include "zita-convolver/zconvolver_visibility.h"
|
||||
|
||||
#if defined(__linux__) || defined(__GNU__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(PTW32_VERSION) || defined(__WINPTHREADS_VERSION)
|
||||
#if defined(__linux__) || defined(__GNU__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__PTW32_VERSION) || defined(__WINPTHREADS_VERSION)
|
||||
#include <semaphore.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ namespace ArdourZita {
|
|||
#endif
|
||||
|
||||
/* note: mingw and msvc actually use PTW32's implementation of semaphores */
|
||||
#if defined(__linux__) || defined(__GNU__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(PTW32_VERSION) || defined (__WINPTHREADS_VERSION)
|
||||
#if defined(__linux__) || defined(__GNU__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__PTW32_VERSION) || defined (__WINPTHREADS_VERSION)
|
||||
|
||||
class LIBZCONVOLVER_API ZCsema
|
||||
{
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@
|
|||
* See the README file for an explanation of the pthreads-win32 version
|
||||
* numbering scheme and how the DLL is named etc.
|
||||
*/
|
||||
#define PTW32_VERSION 2,9,1,0
|
||||
#define PTW32_VERSION_STRING "2, 9, 1, 0\0"
|
||||
#define __PTW32_VERSION 2,9,1,0
|
||||
#define __PTW32_VERSION_STRING "2, 9, 1, 0\0"
|
||||
|
||||
/* There are three implementations of cancel cleanup.
|
||||
* Note that pthread.h is included in both application
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue