13
0
Commit Graph

179 Commits

Author SHA1 Message Date
65e1760446 Ardour button, proper cairo fill+stroke px alignments
rounded rectangles are cairo_arc() path,
for line strokes, offset by .5.

This patch also includes two small related style tweaks:
* Gtkmm2ext::Selected line color & thickness
* 'grabbed' line color & thickness
2014-08-29 23:02:35 +02:00
78b9f65632 explicit Button inactive state.
Ideally large parts of ArdourButton would become ArdourLabel,
which in turn is used by ArdourButton
2014-08-29 21:08:49 +02:00
083620beb8 ArdourButton: suppress visible response if no action is defined.
This fixes issues where the button is used as Label
(currently track-numbers and meterbridge track-name)
2014-08-29 20:20:37 +02:00
39e2223fee yet another ArdourButton action tweak 2014-08-28 15:29:18 -05:00
a4bda23bba remove offset from icons when button is pushed 2014-08-28 14:29:49 -05:00
7306568634 More fixes to ArdourButton actions.
Optionally allow events to fallthrough to parents, in particular for the DnDVBox case.
Also allow the number_label to operate as a track selector.
2014-08-28 14:25:19 -05:00
3f297f7dab Fix ArdourButton event sequence.
Always give ArdourButton a chance to handle Press or Release events if you override them.
This allows ArdourButtons to do the "Pressed" animation
And it now correctly eats the event so button clicks don't select the channelstrip.
2014-08-28 10:31:57 -05:00
3cc19c2cce brighten post-fader redirects, and change redirect leds to blue 2014-08-28 08:58:26 -05:00
e7a15027e8 refactor flat_buttons into cairowidget, and add a canvas-like convenience function for setting cairo color with a Gtk::Color 2014-08-27 10:55:01 -05:00
74f313dd6b Rationalize ArdourButton and lots of associated theming issues.
ArdourButtons now have a "pushed" animation.
The gradient is now implemented in the button, rather than providing 2 colors in the theme, which was burdensome.
Lots of code cleanup in ArdourButton.  Removed several unnecessary flags.
Refactor more stuff into route_ui.
2014-08-22 11:51:20 -05:00
f3d524deb7 Yet another attempt to standardize button heights.
Use the same string for all ArdourButtons to define the height.
Height can still vary if you use a different font, though.
2014-08-13 10:57:04 -05:00
61c66afd4c Revert previous select-strips-under-mouse behavior
However, keep the path for deletions in the editor-mixer via _entered_mixer_strip
TODO:  if nothing was deleted, assume the user was trying to delete something in the editor instead
Show selected plugins by a red border
TODO:  more work on the selection model for plugins and mixer strips
2014-07-24 11:28:31 -05:00
fc305cb217 if a button has an icon, dont draw text as well 2014-07-14 10:28:50 -05:00
492c933a69 fix the visible_tracks_selector to show * when user tweaks a track height. various experimental tweaks to visible_tracks_selector and a new zoom_preset_selector for Mixbus. 2014-07-14 10:08:55 -05:00
381b6848fc repair ardour-button "fixed color mode" 2014-07-06 19:56:53 +02:00
a3c378cf62 move utility functions into a dedicated namespace 2014-06-25 21:47:54 +02:00
b17ec0c43d tweak ArdourButton focus outline 2014-06-15 13:24:40 +02:00
bb2970e5e9 allow ardour button to handle focused keyboard events 2014-06-14 00:22:32 +02:00
4c2e846126 the FlatFace element is no longer relevant. instead it was being used for an inset jeweled look. changed name to match 2014-03-26 11:37:28 -05:00
cc93a9f3dd add needed separator 2014-03-23 21:22:33 -05:00
harrison
b9708d5f6b New theme for editor window using ArdourMenu 2014-03-23 18:11:42 -05:00
ab44e41dfd change the meters into CairoWidget, add expose_area to CairoWidget::render() 2014-03-20 23:50:40 +01:00
7bb305b8ae separate ArdourButton::set_colors() and ArdourButton::build_patterns() 2014-03-06 09:53:38 -05:00
f9dbc28086 add ::on_name_changed() to ArdourButton, to use recently added ::on_name_changed() in CairoWidget 2014-03-06 09:49:00 -05:00
4a915ee541 Add ArdourButton::set_fixed_colors() (equivalent to ::set_bg_colors() in Valeriy's original changes) 2014-03-06 08:05:33 -05:00
b360274e34 revert 29b1e706dd and then redo separation of ArdourButton::set_colors() from ArdourButton::build_patterns.
More to come
2014-03-05 17:51:51 -05:00
895084a806 fix semantics of button press -> leave button -> button release, to match typical GUI toolkits 2014-02-28 17:17:23 -05:00
29b1e706dd some changes to ArdourButton to allow custom colors to be set (e.g. based on track colors), via Valeriy 2014-02-14 15:32:30 -05:00
2a734a2d85 fix ardour-button text bleed 2014-01-04 15:05:45 +01:00
37522a2f5e revert part of 4091ff175c that caused window/sizing chaos. silly paul 2013-10-12 15:37:55 -04:00
4091ff175c 1 bug fix plus padding control for ArdourButton 2013-10-12 14:56:57 -04:00
2b53ac2e31 amend cb7bcb6d - locked-solo button style 2013-07-11 02:31:30 +02:00
03fa5fcd3a ardour-button - fix test+LED margin 2013-07-10 22:34:39 +02:00
94fbfb9658 left/bottom align of labels in meterbridge 2013-07-10 15:27:08 +02:00
0276b1f69a ardour-button: allow to rotate text 2013-07-10 15:27:06 +02:00
faa729afb8 improve button drawing when "implicit active uses solid color" tweak is on, and improve on the so-called "pepto-bismol" colors used for rec-enable buttons
git-svn-id: svn://localhost/ardour2/branches/3.0@13656 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-13 14:54:29 +00:00
6e337459a9 add a new Tweak to ArdourButton that makes ImplicitActive state use a solid color (the "led active" color), and adjst rec-enable buttons to use pink (like ardour2) when in this state (which means rec-enabled but not recording). and yes, this means that you can't use ImplicitUsesSolidColor with a button that also uses an LED - acceptable limitation
git-svn-id: svn://localhost/ardour2/branches/3.0@13645 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-12 02:22:12 +00:00
Ben Loftis
b3ab885061 fix flat button colors
git-svn-id: svn://localhost/ardour2/branches/3.0@13614 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-07 17:00:49 +00:00
Ben Loftis
92e5a13fd4 several theme changes. changed drawing of rounded_rectangle to be more correct. operation and feel should be more consistent. rec-mute-solo buttons are now dull until enabled. this might be debatable. otherwise if it looks weird, try loading Window->Theme Manager and clicking Restore Defaults
git-svn-id: svn://localhost/ardour2/branches/3.0@13611 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-06 20:48:44 +00:00
14f11a9e63 some tweaks to make narrow mixer strips actually narrow
git-svn-id: svn://localhost/ardour2/branches/3.0@13547 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-26 22:05:45 +00:00
Ben Loftis
6b6ef35f3e new button look
git-svn-id: svn://localhost/ardour2/branches/3.0@13511 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-16 19:27:39 +00:00
930f9a34c1 use the theme manager dialog to provide control over flat button option, and turn it off by default
git-svn-id: svn://localhost/ardour2/branches/3.0@12382 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-22 16:36:59 +00:00
a796853f99 introduce flat button option,which right now is on all the time. GUI nit-pickers, do your best
git-svn-id: svn://localhost/ardour2/branches/3.0@12358 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-21 12:31:05 +00:00
Carl Hetherington
8d94cc6d13 Fix uninitialised variables.
git-svn-id: svn://localhost/ardour2/branches/3.0@12058 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-22 23:41:08 +00:00
ab87cad1ec tweak ardour button radius down to 5 pixels from 9
git-svn-id: svn://localhost/ardour2/branches/3.0@11715 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-03-16 18:27:48 +00:00
42e0c0e9a3 remove unused mid-mask stuff from ArdourButton
git-svn-id: svn://localhost/ardour2/branches/3.0@11616 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-03-07 14:03:49 +00:00
b08d13706f remove additional "mid" color from ArdourButton; replace Active/Mid widget state with ExplicitActive/ImplicitActive; represent implicit-active state with colored border around ArdourButton; tune button colors; new rounded_foo() functions, some in use, some not in use right now
git-svn-id: svn://localhost/ardour2/branches/3.0@11466 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-02-07 17:43:55 +00:00
aeb4617b1d tweak "joined" buttons to have no border color
git-svn-id: svn://localhost/ardour2/branches/3.0@11460 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-02-06 18:38:02 +00:00
bd3af3454b allow specification (partially) of which corners of an ArdourButton are rounded
git-svn-id: svn://localhost/ardour2/branches/3.0@11435 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-02-03 04:17:25 +00:00
508c5eb5bd make monitor section an optional feature than can be added/removed as needed. this is a big commit, and breakage is possible. it has been moderately tested. this commit also locks the remote control ID of the master bus to 318 and the monitor section (if any) to 319. the numbers are based on MIDI Machine Control limits
git-svn-id: svn://localhost/ardour2/branches/3.0@11256 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-18 01:30:44 +00:00
Carl Hetherington
1b3b9633b0 Set up ArdourButton state to match the action when the
action is attached.  Fixes #4523.


git-svn-id: svn://localhost/ardour2/branches/3.0@10979 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-11 17:08:47 +00:00
0a71d52448 Fix key bindings in tooltips for ArdourButton buttons.
Sinced gtkmm2ext needs to get at the actions of widgets, I moved the
action to Gtkmm2ext::Activatable.  Not sure if the wisest thing to
do here would be to use Gtkmm::Activatable, but figured there's
a reason Paul didn't do so (the name set_related_action is from there
so presumably it's known about), so this is the simplest change
that allows access to the action in Gtkmm2ext.  The vfunc calling
stuff should probably move there as well...


git-svn-id: svn://localhost/ardour2/branches/3.0@10818 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-24 05:36:31 +00:00
8ad4133d26 don't cache width & height for CairoWidget; provide option for all CairoWidgets to not draw their backgrounds; provide a static method to allow any (Container, probably) widget to provide background color to a CairoWidget without the requirement that it have its own window; remove existing cursor from clocks; clock text no longer has background attribute set, to correct a mistake in my understanding of pango attributes
git-svn-id: svn://localhost/ardour2/branches/3.0@10673 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-18 15:35:58 +00:00
b25fbc8a95 all new implementation of audio clocks, with entirely new editing model. not entirely finished, but lookable, and usable
git-svn-id: svn://localhost/ardour2/branches/3.0@10662 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-17 22:49:13 +00:00
f12701fda2 remove debugging output
git-svn-id: svn://localhost/ardour2/branches/3.0@10637 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-16 00:14:58 +00:00
dcbed9317f some button color debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@10633 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-15 22:42:17 +00:00
578eba247a fix missing initializer
git-svn-id: svn://localhost/ardour2/branches/3.0@10553 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-11 17:40:13 +00:00
702cca1c93 extra track header buttons are now ArdourButtons
git-svn-id: svn://localhost/ardour2/branches/3.0@10550 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-11 17:24:05 +00:00
f96ccb1958 ardour-button-ize zoom buttons; move MIDI panic button to transport bar
git-svn-id: svn://localhost/ardour2/branches/3.0@10528 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-10 18:04:34 +00:00
6449c2e5c8 more ardour-button-ization; fix transparency of selection rects; use "correct" cursors when entering and leaving selection rect handles; color tweaks for a few buttons
git-svn-id: svn://localhost/ardour2/branches/3.0@10527 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-10 15:25:01 +00:00
244eaa55fb provide global prelight option (its in Edit -> Preferences->Interface)
git-svn-id: svn://localhost/ardour2/branches/3.0@10514 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-09 20:10:05 +00:00
32869e2c31 repack transport hbox a bit
git-svn-id: svn://localhost/ardour2/branches/3.0@10511 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-09 18:11:34 +00:00
cccc71e011 add hovering/show click functionality to ArdourButton
git-svn-id: svn://localhost/ardour2/branches/3.0@10478 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-07 19:14:31 +00:00
708fb03e87 use ArdourButton for the (radio) buttons in the monitor section; fix ArdourButton, MonitorSection and CairoWidget to work with radio semantics
git-svn-id: svn://localhost/ardour2/branches/3.0@10430 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-03 21:35:20 +00:00
1262e9ef58 fix crash when ArdourButton has its text set to empty
git-svn-id: svn://localhost/ardour2/branches/3.0@10414 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-03 14:51:23 +00:00
0cc9daed28 allow addition of images to ArdourButtons (always centered)
git-svn-id: svn://localhost/ardour2/branches/3.0@10399 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-02 18:47:14 +00:00
cc4f13193c make LED in ArdourButton use "mid" color when active state = mid
git-svn-id: svn://localhost/ardour2/branches/3.0@10392 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-02 13:19:38 +00:00
521937a9d1 catchup on previous commit relating to who owns ActiveState and VisualState
git-svn-id: svn://localhost/ardour2/branches/3.0@10372 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-01 01:22:08 +00:00
f54b3e5e0a more led-area button event handling tweaks
git-svn-id: svn://localhost/ardour2/branches/3.0@10368 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-31 23:14:23 +00:00
531ebc35bd compile fixes for OS X
git-svn-id: svn://localhost/ardour2/branches/3.0@10353 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-31 21:06:57 +00:00
6ba2f3b15f osx build fix (?)
git-svn-id: svn://localhost/ardour2/branches/3.0@10351 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-31 18:36:02 +00:00
e04c7608c1 mo better handling of distinct led clicks in ArdourButton, and correctly layout text (name of processor)
git-svn-id: svn://localhost/ardour2/branches/3.0@10350 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-31 18:32:19 +00:00
25949e9d83 various tweaks to get clicks on processor "buttons" to work right and to keep track of processor state and position, hopefully
git-svn-id: svn://localhost/ardour2/branches/3.0@10349 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-31 15:28:21 +00:00
2f45acc0c2 tweak text layout on wide buttons
git-svn-id: svn://localhost/ardour2/branches/3.0@10344 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-29 20:33:17 +00:00
bde8437387 make ArdourButtons be MIDI-learnable; tweaks to ArdourButton design and implementation; use ArdourButtons (all gray for now) in the Monitor section.
git-svn-id: svn://localhost/ardour2/branches/3.0@10338 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-29 15:54:30 +00:00
743f0ea0ec Ever so slightly less memory and better field alignment per CairoWidget.
Fix indentation.


git-svn-id: svn://localhost/ardour2/branches/3.0@10316 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-27 20:10:49 +00:00
5005ba060e provide control over precisely what aspects of an ArdourButton are rendered, and other button-related miscellany
git-svn-id: svn://localhost/ardour2/branches/3.0@10315 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-27 11:53:16 +00:00
892f3c361e change CairoWidget API to be a more logical/intuitive for setting widget state, to differentiate between active state and visual state (prelight, insensitive etc)
git-svn-id: svn://localhost/ardour2/branches/3.0@10314 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-27 11:24:43 +00:00
51ab5ccabf new ArdourButton class, to start to provide more control over how our buttons work and appear; use ArdourButtons for monitor, solo isolate and solo safe buttons, and in the processor box; don't save UI config file (canvas colors) to the user's home dir unless one or more parameters were modified by the user
git-svn-id: svn://localhost/ardour2/branches/3.0@10311 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-26 21:01:14 +00:00