13
0
Commit Graph

7987 Commits

Author SHA1 Message Date
fe0254344f clarify sync-lock and disable it by default. 2015-01-30 10:43:56 +01:00
17b8d9836d don't wipe out SHIFT from event state when processing keyboard events, as done in a recent commit 2015-01-29 12:16:18 -05:00
f603ca174e in mixbus, treat the canvas rulers just like the canvas wrt mouse-wheel-zoom 2015-01-29 11:23:49 -06:00
59bbb8500b consolidate using SECONDARY+number bindings for region properties, such as gain, mute, etc 2015-01-29 11:03:54 -06:00
ff2ebf17b8 switch WINDOW bindings to use SECONDARY instead and displace any bindings that conflicted 2015-01-29 11:03:54 -06:00
dab3346623 use gtk_accel_groups_active() in preference to gtk_window_activate_key() since the latter behaves incorrectly
The window version will not activate bindings like <Mod4><Super>-space, whereas the former one works correctly. We already used
the former one just above, when handling "fakekeys".

Also add a utility function to show modifier state.
2015-01-28 21:03:03 -05:00
6b360950ce guess what?! 2015-01-28 23:50:07 +01:00
de85bfd857 fix #6117 - fader prelight 2015-01-28 02:22:52 +01:00
bc7b5844a9 fix printf format-security warning.
warning: format string is not a string literal (potentially insecure) [-Wformat-security]
2015-01-27 14:04:19 +01:00
0f46d7b107 ignore context menu click events, notably during drag but also for a couple of other purposes
Conflicts:
	gtk2_ardour/editor_canvas_events.cc
2015-01-26 16:39:22 -05:00
b9464fc4db remove unnecessary commented-out line.
Session is marked as in-deletion during deletion itself
2015-01-26 11:58:43 -05:00
47f8125b35 amend e3da18fd 2015-01-26 17:14:24 +01:00
208a2a1926 rename ARDOUR_UI::idle_load() to ARDOUR_UI::load_from_application_api() to correctly indicate function 2015-01-26 10:39:14 -05:00
78ec211733 fix incorrect logic when loading session via NextStep document API 2015-01-25 12:53:48 -05:00
031f68fb9d add a simple status indicator to the Engine Dialog 2015-01-25 10:19:46 +01:00
37b8412aa3 fix latency measurement result display
If measurement is fast (<100ms), the GUI timeout function
never displayed the measured value.
2015-01-25 10:18:33 +01:00
232d67bc53 midi note paste undo fix. 2015-01-25 01:56:19 +01:00
0b5ceaca4e add handler for, and connect to, Session::SaveSessionRequested 2015-01-24 19:17:13 -05:00
ab3ec791ea Add a new signal (not yet used) to initiate session saves; alter signal name for existing signal used to allow other objects to add XML state to session 2015-01-24 19:06:31 -05:00
e3da18fd2f fix copy/drag abort. 2015-01-24 20:40:07 +01:00
22435bb53d make MouseCursors invalid cursor API be static; use to initialize default cursor value in Drag API; use C API to set canvas cursor 2015-01-24 12:26:58 -05:00
90c1e0ffd2 allow use of null pointer as a valid cursor (implies using cursor of parent window) 2015-01-23 15:19:36 -05:00
fe08965d91 fix indentation from prior commit 2015-01-23 13:45:21 -05:00
GZharun
6976a78100 [Summary] Fixed bug 45163: Trim range from right corner of timeline leads Tracks to crash
[Details] Crash was provoked because of an attempt to add commands to the session reversible command, but when autoscroll started and trim began with autoscroll the session reversible command was not created for for Trim Drag.
2015-01-23 13:43:52 -05:00
1473442204 fix crash at exit if location-ui was used
LocationEditRow members are destroyed after ~LocationUI()
destroys the clock_group. -> segfault in ~LocationEditRow()
2015-01-23 02:24:26 +01:00
611073790b move control app button adjacent to sample rate and bufsize settings 2015-01-22 15:00:13 -06:00
dcaf8d89c1 remove channelcount selectors for mixbus 2015-01-22 14:54:56 -06:00
01d99870ff update selection clock 2015-01-21 22:26:14 +01:00
c7c8cc7dc7 set Theme buttons on state reset
cleaner version of last commit, set GUI elements
on state-reset.
2015-01-21 20:24:39 +01:00
0c8947491a initialize theme > gradient sliders. 2015-01-21 19:41:15 +01:00
f282884094 apply Theme > “Show waveform clipping”
fixes http://tracker.ardour.org/view.php?id=5589#c15515
2015-01-21 19:35:04 +01:00
nick_m
ae7b978b0b Fixes for when rubberbanding_snaps_to_grid config setting is off.
The initial point and the ultimately selected items were always following
the snap settings. Also the VCC was displaying incorrectly on button press.
2015-01-20 04:49:44 +11:00
d2fa2450aa use C locale, because POSIX locale is not supported on windows, and operation is undefined. C works on all platforms 2015-01-19 07:29:25 -06:00
49047e4dc9 consistent display of period-size. 2015-01-17 22:42:20 +01:00
03523f6703 fix panner send-strip color 2015-01-17 22:02:36 +01:00
cc221ea3c3 display current buffer size - hopefully w/o breaking ASIO 2015-01-17 21:29:14 +01:00
964c85a061 fix 20ea90a1 for winegcc 2015-01-17 21:11:27 +01:00
d2cbb28f79 Engine Dialog: fix various signal connections
connect/disconnect button was connected multiple times
Also the button allowed to start a backend with
invalid settings (after changing backend).

Q: does “Connect to” make sense? It’s redundant with 
“Apply”.
2015-01-17 21:03:56 +01:00
f77c923bee engine dialog fix buffersize sensitivity 2015-01-17 21:03:56 +01:00
7d88dc3202 update engine dialog UI state
fixes crash when jack is started externally
and the dialog is displayed later.
The current state e.g. avail buffer sizes is not
are queried from the backend, Apply,OK -> crash
because the dropdown is empty)
2015-01-17 21:03:56 +01:00
nick_m
d312bf1d7a Fix some ignored region selection changes (probably others).
Fix ignored right click track selection change.
2015-01-18 05:25:23 +11:00
20ea90a186 waf: fix concurrency issue with duplicate targets
The same source file cannot safely be used in different wscripts
with concurrency (if they were in the same wscript it works
.c.1.o .c.2.o, etc).


[387/764] c: libs/fst/vstwin.c -> build/libs/fst/vstwin.c.1.o
[731/764] c: libs/fst/vstwin.c -> build/libs/fst/vstwin.c.1.o
[746/764] cxxprogram: build/libs/fst/scanner.cc.1.o build/libs/fst/vstwin.c.1.o -> build/libs/fst/ardour-vst-scanner.exe
[750/764] cxxshlib: [...]  build/libs/fst/vstwin.c.1.o [...] -> build/libs/ardour/ardour-3.dll

and about one every full moon (depending on concurrency) it failed:
missing file: 'build/libs/fst/vstwin.c.1.o'
2015-01-17 18:19:25 +01:00
a58730e8f9 Revert "Kludgey fix for invisible playhead when scrolled."
This reverts commit 8f823388d9.
2015-01-16 22:06:10 -05:00
8f823388d9 Kludgey fix for invisible playhead when scrolled.
The problem this is avoiding makes absolutely no sense.  Either I'm dumb, or
something is more deeply wrong with scroll group bounding boxes, or both, but I
don't care anymore.  This works.  Viva release mode.
2015-01-16 21:04:38 -05:00
14a235ca8a fix 05a612b 2015-01-17 01:26:29 +01:00
b759fd5879 Put playhead on top of everything.
Achieve this by adding a new hscroll group just for cursors.

That requires a slightly smarter window_to_canvas() to deal with overlapping
sensitive scroll groups.  New rule is that scroll groups can overlap, but the
most sensitive one found from the top down will be chosen to translate
coordinates.  This basically means don't overlap scroll groups with different
sensitivities.

In the presence of scroll groups, having a canvas-wide window_to_canvas()
and/or canvas_to_window() fundamentally makes no sense.  At some point in the
glorious future we should kill those and use only item-relative coordinate
translation.
2015-01-16 19:13:56 -05:00
8565470797 Fix hidden notes at trimmed region start. 2015-01-16 14:52:40 -05:00
nick_m
ade1c4923c Fix note resize double undo bug.
Newly drawn notes are selected.
Clear midi note selection on Selection::set_state().
2015-01-17 04:55:05 +11:00
4166b05bda Fix setting command key bindings on OSX. 2015-01-14 20:31:38 -05:00
af1a064ebf don’t show “-all-“ group with currently does nothing. 2015-01-14 20:10:34 +01:00
nick_m
18c502f646 Reduce selection loss when changing mouse modes.
Never change selection when smart mode toggled.
2015-01-15 01:39:00 +11:00
nick_m
44f2f53cde A test for less brutall deselection on mouse mode change.
Mostly stops toggling smart mode from doing anything to the selection.
2015-01-15 00:06:16 +11:00
e1f8112f81 toggling smart mode is just an option.
it should not force mouse-mode to Object
it should not clear the current object selection
2015-01-14 06:30:16 -06:00
59bb3fbe65 Remove drag code from automation region view.
Let the editor handle it like (almost) everything else.
2015-01-13 23:53:28 -05:00
d39d4c1c11 Fix automation range drag and implement for MIDI.
Range select rect sticks around now after switching to the draw tool, but
disappears if a note selection is made.  Not sure if draw is really the most
appropriate tool here (particularly if we ever implement actual pencil-like
drawing); edit contents seems more appropriate but that would probably cause
more selection issues, so here we are.
2015-01-13 23:30:37 -05:00
88e6995b14 when the mouse tool changes, smart mode should have no effect on clearing selections 2015-01-13 13:33:57 -06:00
nick_m
5ef868e767 Don't reuse _optimization_iterator - fixes crash on multiple note delete undo. 2015-01-13 22:52:02 +11:00
nick_m
7a3662bc14 Fix missing selection undo for track header click and route list select. 2015-01-13 21:41:30 +11:00
877492ef8a Give tempo dialog initial focus to BPM spinner. 2015-01-13 01:00:53 -05:00
45aa1e50b7 show title bar for big clock window
fixes #6116
(on OSX and [most] Linux WMs the title-bar was implicitly present)
2015-01-12 22:55:09 +01:00
c5252599bc Don't default to grab mode when undoing selection.
I'm not sure how/why this ever happens, but it does, switching the tool when it
shouldn't, which is annoying.  I'm also not sure if this fallback is necessary
for some reason, but it seems to work fine without for me.
2015-01-12 02:31:27 -05:00
305af7a5ce Fix whitespace. 2015-01-12 02:06:40 -05:00
ba9a90b927 Merge duplicated code. 2015-01-12 02:06:40 -05:00
8b47241596 Trim include tree. 2015-01-12 02:06:35 -05:00
4438263d4d Fix crash when undoing note delete. 2015-01-12 02:03:49 -05:00
1df6931e77 Fix broken whitespace (noop). 2015-01-12 01:05:01 -05:00
cd15d27033 Put tempo lines below tracks. 2015-01-12 01:05:01 -05:00
43e58911a4 Remove unused vertical scroll group. 2015-01-12 01:05:01 -05:00
e79af77a18 Revert "hotfix z-stacking"
This reverts commit 03f0229bcf.

Mitigate the fallout from said overly aggressive revert: preserve the alpha
values to not break the color configuration for when the lines are fixed.
2015-01-12 01:03:17 -05:00
c7affd79c2 remove track-selection requirement so fit_selected_tracks works as coded. change name to fit-selection. remove action to zoom (both axes) because this can trivially be accomplished by clicking (f)it and (z)oom sequentially, and it frees a keybinding. remaining bug: Fitting a selection of MIDI regions doesnt work right 2015-01-11 11:46:36 -06:00
03f0229bcf hotfix z-stacking
This reverts commit 780c1762 and e70c9a3
Both combined introduced various bugs:

* rubberband-selection has a scroll-offset
* region drag/drop has wrong y-offset
* ranges (loop etc) are above the playhead
* possible scroll performance hit (long unclipped
  lines in h_scroll_group)

on the downside: time-grid is now no longer visible behind
the rulers. Doing that will require a different approach…
2015-01-11 14:17:47 +01:00
764aad9efe clean up whitespace & debug output in 44203ce 2015-01-11 02:56:53 +01:00
0a5d5f91c9 Raise threshold for showing ticks for a bit.
This fixes two zoom levels (the closest that shows bars, and the next closest)
that had the same tick resolution despite enough space.
2015-01-10 19:38:37 -05:00
780c17620e Raise regions about tempo lines. 2015-01-10 19:38:21 -05:00
38c2bdc856 gracefully handle missing .midnam
Fixes bug: Add a .midnam to local preferences.
use it in a session. delete the .midnam,
reload session -> crash
2015-01-10 19:31:50 +01:00
nick_m
44203ce955 Fix AutomationTrackItem rubberband click thinking it was unhandled.
Fix several other cases where a single mouse click could cause several
(not nested) selection ops.
Fix missing selection memento for midi notes and midi commands.
Rename some variables.
Fix random style issues.
2015-01-11 04:07:31 +11:00
ca7965d7aa Fix initial display of grouped MIDI region colors. 2015-01-09 17:49:16 -05:00
0d66a38e75 Use quotes to include local library headers. 2015-01-09 17:48:58 -05:00
9e0cd98ad4 fix select-all-regions-within (it used to select everything overlapped) 2015-01-09 12:21:10 -06:00
a6e45a471a make set_selection_from_region do something visible 2015-01-09 12:21:10 -06:00
5b5e105680 stash Bring Into Session inside the Cleanup submenu 2015-01-09 12:21:10 -06:00
6c2c40a698 add .m2t video extension 2015-01-09 18:05:27 +01:00
0367aa5825 remove cruft (old unused pre-git version files) 2015-01-09 06:11:57 +01:00
7235ece898 Revert "don't unpack and repack meters unnecessarily during LevelMeterBase::setup_meters()"
This reverts commit d00e035fe0.

..which introduced a bug.

Meter count and type may change when switching the meter point or simply
when selecting a different track in the editor-mixer. Additional meters
were not unpacked and remained on canvas.

Ideally we'd just remove the excess meters or meters where the type
changed, but that's far more complex than just repacking them all.
2015-01-09 06:08:15 +01:00
ccde95757d More contrast between different division lines. 2015-01-08 21:10:54 -05:00
12bf085a34 Stop showing bar lines sooner.
Not sure if this is a DPI dependent thing, but when zooming out some of the
steps had way too dense bar lines for me.
2015-01-08 21:10:13 -05:00
8d98102573 Fix show MIDI regions using track color. 2015-01-08 19:59:40 -05:00
1256a70340 Fix inactive track header color. 2015-01-08 19:22:09 -05:00
57947ff5a8 Prevent note trim to zero length (shown as stuck).
The reasonable value 1 tick doesn't seem to work here, presumably it gets lost
in rounding conversion somewhere.  Instead use a really small power of two
reciprocal.  Once we use actual beats and ticks we can fix this to be a minimum
of one tick (the actual minimum length for a note).
2015-01-08 19:13:00 -05:00
3f34f0a0a4 Fix value ramps to reach specified upper value. 2015-01-08 18:47:08 -05:00
0aeba98cb6 Clamp value spinner when valid range changes. 2015-01-08 18:46:16 -05:00
7fac335f77 Meter-like note colours, but still mostly green.
The previous colours made low velocity notes almost invisible.  This fixes that
and attempts meter-like colours where yellowish is high, but without going all
the way into red for a generally consistent range of colors.
2015-01-08 18:36:10 -05:00
1b2377e425 Use the subtlest red we have for selected tracks.
The purple doesn't match anything anymore, red is our "selected" color.
2015-01-08 18:36:10 -05:00
b3c7578b69 Use selected fill color for selected notes. 2015-01-08 18:36:10 -05:00
f7e3d1be2c change Split menu entry to say Split/Separate (it was already doing that anyway). also fix a bug so you can drag the playhead and split at the playhead location 2015-01-08 16:00:49 -06:00
5ab70b6822 missing parenthesis 2015-01-08 16:00:49 -06:00
76cd6236e1 temporary fix: tell the user that region name-display requires a restart of ardour 2015-01-08 16:00:49 -06:00
e0964ea69a temporarily hide the tooltip preference, until CairoWidget and CanvasItem can see the config setting. it doesnt seem to be a priority since clearly nobody is using this button 2015-01-08 16:00:48 -06:00
e70c9a3da1 Show tempo lines under marker bars. 2015-01-08 15:24:14 -05:00
fe71dd3d81 More consistent canvas base colours.
General ideas: audio is blueish, MIDI is greenish, automation track colour is a
slightly darker version of its parent track colour, canvas base is the same as
the Gtk base.
2015-01-08 14:56:47 -05:00