Commit graph

369 commits

Author SHA1 Message Date
nick_m
63269b3063 Automation selection fixes.
- display selected comtrol points in region gain lines
	- display selected points in internal edit mode
	- allow dragging of region gain lines in MouseContent mode
2015-06-21 05:27:45 +10:00
Robin Gareus
8dbd55236a amend 3f5d17d, clear changes to MIDI as well. 2015-05-28 14:41:17 +02:00
Robin Gareus
3f5d17dd24 Fix region paste (ctrl+v) undo. 2015-05-28 13:19:50 +02:00
Robin Gareus
af884b4174 meter-change: don’t update track-headers if not needed 2015-04-30 17:30:10 +02:00
Robin Gareus
abcc51d089 remove not-an-error error message. 2015-04-26 01:21:08 +02:00
Robin Gareus
52d67203a1 Trim Automation UI 2015-04-25 21:25:19 +02:00
Paul Davis
15fc481776 make wording consistent 2015-04-06 20:14:24 -04:00
Paul Davis
803853b4a4 rationalize incorrect design for removing tracks.
Still requires a way to make this work correctly from the mixer window
2015-04-06 17:56:23 -04:00
Robin Gareus
6d531b82e0 add context to single-letter translatable 2015-04-05 00:17:53 +02:00
Paul Davis
d6574c9c40 remove duplicated calls to update solo/mute state from RouteUI descendants.
RouteUI::set_route() already does the right thing. Also remove RouteUI::mute_changed() since its
only role was to handle the mute change signal from a route, which boost::bind() makes unnecessary
since we can connect update_mute_display() directly.
2015-03-31 12:31:06 -04:00
Paul Davis
75e0f5a023 remove GUI object state when tracks/busses are removed.
Not doing this results in accumulation of useless GUI object state which is never cleaned up.
Taken from work by Grygorii Zharun.
2015-03-30 15:27:23 -04:00
Robin Gareus
f1ce87a699 add API to select TAV height mode.
preparation for further Summary and Number of visible
track count fixes.

* “Only Self”: don’t resize child-views (old default)
* “Total Height”: distribute height equally among 
   all visible child [automation] lanes
* “Height per Lane”: given height should be applied
   to all sub-views.
2015-03-19 21:47:34 +01:00
Ben Loftis
99054ea415 fix previous commit 2015-02-10 14:54:43 -06:00
Paul Davis
b2e93b8fba fix color and alpha of timestretch rect 2015-02-09 14:46:20 -05:00
nick_m
7a3662bc14 Fix missing selection undo for track header click and route list select. 2015-01-13 21:41:30 +11:00
Ben Loftis
9e0cd98ad4 fix select-all-regions-within (it used to select everything overlapped) 2015-01-09 12:21:10 -06:00
Robin Gareus
21ffb956e6 properly catch RTAV deletion.
fixes issue with editor-mixer retaining
a shared-pointer to the deleted route.
2015-01-08 00:41:59 +01:00
Paul Davis
64fa63212f move all (G)UI related configuration parameters into UIConfiguration, not RCConfiguration 2014-12-22 13:39:46 -05:00
Paul Davis
56ca52651e fix up requested color names everywhere.
Thank <deity> for emacs ... space-uncamelcase-word-at-point FTW
2014-12-14 16:15:38 -05:00
Paul Davis
48a7a11974 initial pass to replace all UIConfiguration::get_XXXXXX() calls with UIConfiguration::color(name).
IMPORTANT: names have not been downcased and spaced yet, so many colors are not found
2014-12-14 12:27:07 -05:00
David Robillard
89be7ae58c Fix crash on quit when in a non-route time axis. 2014-12-06 22:43:06 -05:00
David Robillard
63082821d8 Support paste between automation lanes.
Also push the increasingly unwieldly paste parameters into a context object.

As with othe things, currently it is only possible to do "cross-type paste" by
explicitly selecting the target track.  We will need to get automation region
view selection working to do better here, but at least for now it's possible to
get the data over.
2014-12-06 12:20:52 -05:00
David Robillard
0f72ea4a34 Factor out duplicated track automation code.
Mute automation for MIDI tracks.
2014-11-30 23:56:19 -05:00
David Robillard
2fa6caad95 Support cut/copy/paste of several regions and lines at once.
The idea here is to do the reasonable thing, and copy objects of some
type (e.g. MIDI region, gain line) to tracks with a matching type.  The user
can override this with a track selection, which will be used straight-up.

Lost: ability to copy/paste lines across types, e.g. gain to pan.  This is
often questionable, but sometimes useful, so we will need to implement some
sort of "greedy mode" to make it possible.  Implementation simple, but not sure
what to do.  Perhaps this should only be possible if one automation track is
explicitly (i.e. via track selection) involved, and the types are at least
compatible-ish?
2014-11-16 22:35:45 -05:00
David Robillard
31acd96384 Implement "multi-paste" for notes, regions, and automation.
The idea here is that pasting several times to the same location doesn't make
sense.  Instead, the paste is appended past the last paste, snapped to the
grid.  This make it simple to replicate a given section a number of times,
simply by copying once and pasting several times.

This behaviour only appears when successive pastes are done to the same
location (whatever the edit point is).  When the paste point changes, the
"multi-paste" state is reset.

Boots 'n cats 'n boots 'n cats.
2014-11-14 20:04:19 -05:00
Robin Gareus
6b3a8915f3 add abort() to non-reached code
This cleans up a lot of false-positives in static analysis
and also helps compilers to optimize code paths in general.
(tagging the fatal stingstream operator as ‘noreturn’ is
far less trivial)
2014-11-14 11:30:08 +01:00
David Robillard
8a128b33d3 Automation of LV2 plugin properties.
Work towards ParameterDescriptor being used more universally to describe control characteristics.
2014-11-02 02:10:24 -05:00
Paul Davis
ba4d1cd1c1 remove "canvasvar_" from all functions related to obtaining values from ARDOUR_UI::config() 2014-10-21 22:58:58 -04:00
Robin Gareus
6bb573d81c vertical pixel alignment of all TAV elements 2014-09-08 18:42:41 +02:00
Robin Gareus
1bb6fd752c special case track-header buttons 2014-09-07 20:23:49 +02:00
Robin Gareus
4912409a8d gtk style related fixes:
* remove some old/unused styles
* fix plugin-ui button (hover color when active)
* consistent style for route buttons
  (and related ArdourButton updates)
2014-09-06 12:49:57 +02:00
Robin Gareus
ae1200716f fix track-header vertical scrolling
Ignore vertical scroll events on horizontal
Automation Track Sliders. see also 70be12afaa
2014-09-06 12:46:28 +02:00
Robin Gareus
8fc6205e4e set proper name (font) for number labels 2014-09-05 23:44:39 +02:00
Robin Gareus
dc02625b56 further tweaks pertaining the track-number height 2014-09-04 20:11:44 +02:00
Robin Gareus
dea4b27ca6 update number label geometry
the number label can be significantly wider than other
ctrl buttons and does not lend itself or be 'square'.
2014-09-04 03:09:38 +02:00
Ben Loftis
0ea1238479 ask TAV buttons to have square proportions 2014-09-03 11:56:31 -05:00
Robin Gareus
c4212fb10b use tape-track rec-enable icon throughout. 2014-09-03 02:40:01 +02:00
Robin Gareus
599af96971 use new tape rec-en 2014-09-03 02:39:55 +02:00
Robin Gareus
5d5d859c2a use new 'special' rec-en button 2014-09-02 20:43:27 +02:00
Robin Gareus
5d0e4f7380 number-label: use pixel-width for given font 2014-09-02 19:27:40 +02:00
Robin Gareus
b184df3286 static global definition for track-header width
the track-header minimum width is defined by
the name-label (IFF the 2nd row fader is not visible,
but the fader is rather small by default and and grows)

track-header width in almost all cases is:
   name-label width
 + width of three button (1 char each)
 + max size of all meters (if visible)
 + width of MIDI scroomer (if visible)
 + 2px table cellspacing (per column)
2014-09-02 18:12:39 +02:00
Robin Gareus
b012f2cd18 retain track-header width regardless of number-label. 2014-09-01 00:00:20 +02:00
Robin Gareus
154621978a track-header fader tweaks:
* align height to button-height.
* align width to label text-entry
* increase min width
2014-08-31 21:32:22 +02:00
Robin Gareus
098a698052 right side track-header control buttons (for non mixbus profile) 2014-08-31 16:12:43 +02:00
Robin Gareus
c993e2d37b update track-header width when track-number visibility is toggled 2014-08-31 07:12:21 +02:00
Robin Gareus
9c59b21bb6 simplify time-axis packing: consistent table layout 2014-08-31 07:11:24 +02:00
Ben Loftis
bf13bf6385 red-border selection for tracks, regions, and processors. requesting comments 2014-08-29 17:16:32 -05:00
Robin Gareus
65287a6f09 mark "Label Buttons" as inactive 2014-08-29 21:10:20 +02:00
Robin Gareus
d6454dfb36 amend 7be3c88a, update rec-en color 2014-08-29 19:55:25 +02:00
Robin Gareus
7be3c88a3e experiment with unicode circle for rec-en
fixes button-area width mismatch on track-headers
except for tape-tracks (which till use old fixed size icon)
2014-08-29 01:13:49 +02:00