summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_button.h
AgeCommit message (Collapse)Author
2016-08-20ArdourButton: add text for measuring decoupled from display textJulien "_FrnchFrgg_" RIVAUD
In the normal course of events, an ArdourButton requests just enough space to display its elements. In particular the size will change when the text does. Yet, in several cases it is better to avoid layout jittering; until now ArdourButton users manually set a static size on the button at creation time. Introduce new API to set the text used for measuring the button size separately from the text that will be displayed. In most cases this enables the callers to replace set_size_request_to_display_given_text(button, text, w, h); where w and h were hard-coded to cater for other button elements, by button.set_sizing_text(text); which will make ArdourButton correctly compute the size request in all cases with its real elements and padding. ArdourButton users can call button.set_sizing_text(""); to get the size request depend on displayed text (which is the default).
2016-08-18Make ArdourButton detect when a grab should stop being pressedJulien "_FrnchFrgg_" RIVAUD
If for whatever reason a grab is taken (e.g. a menu popping up) while somebody is pressing a mouse button on an ArdourButton, then the ArdourButton will not get the mouse button release event and will look stuck in pressed position. The leave notify event is fired if the mouse is still on the ArdourButton while the grab is taken, but not if the user was dragging the mouse outside of the button. The only reliable way is to listen for the grab_broken_event signal. Do so.
2016-06-14extend ArdourButton API to provide a new tweak for buttons with occasional textPaul Davis
Buttons with this tweak do not change their size request based on their text (or lack of it)
2016-06-09extend ArdourButton API to allow independently setting fixed active/inactive ↵Paul Davis
colors
2015-10-19Ctrl+shift functionality (toggle all) for plugin leds.André Nusser
The Fader led has special behavior and is only toggled when clicked explicitly.
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-05-24replace old ArdourButton::Icon API with Gtkmm2ext.Robin Gareus
2015-05-24add vector rendition of nudge icons.Robin Gareus
2015-04-08NOOP, cleanup & commentsRobin Gareus
2015-04-07renice transport buttons (part one)Robin Gareus
2015-04-07update ArdourButton Icon APIRobin Gareus
2015-04-06replace two more icons w/vector drawing.Robin Gareus
2015-03-17amend 6aa6c2d, queue redraw for custom-LED changeRobin Gareus
2015-03-16AButton: allow to set custom LED color (for > 2 states)Robin Gareus
2015-03-11NOOP, add a missing ‘p’Robin Gareus
2014-10-21add ::set_layout_font (const Pango::FontDescription&) to ArdourButtonPaul Davis
2014-09-07yet another button tweak..Robin Gareus
2014-09-06remove pixel based Button LED diameter settingRobin Gareus
Diameter is calculated depending on font-scaling. Besides, all explicit calls simply set the default value, anyway. If some API is needed in the future, it should set the diameter in [em].
2014-09-06optimize button pattern cacheRobin Gareus
We really should statically cache patterns as done in PixFader and Meters (Cairo's cache is not nearly large enough)
2014-09-06fundamentally change ArdourButton PangoLayout handlingRobin Gareus
This fixes issues where button text was set during static initialization where the widget style was not yet available, and a lot of related issues where the text was set before style.
2014-09-04ardour button sizes, now [em] based.Robin Gareus
2014-09-03add "close/cross" special buttonRobin Gareus
2014-09-03ask TAV buttons to have square proportionsBen Loftis
2014-09-03robin needs a new keyboard with unstttttuck tt.Robin Gareus
2014-09-03update rec-en circle drawing, add tape-modeRobin Gareus
2014-09-02one off, special case rec-en button for now. (circle may need tweaking)Robin Gareus
In the long run we want a class hierarchy: CairoWidget -> ArdourWidget -> ArdourLabel -> ArdourButton -> SpecialArdourButton(s)
2014-09-02ArdourButton: prepare for [em] based paddingRobin Gareus
2014-08-29explicit Button inactive state.Robin Gareus
Ideally large parts of ArdourButton would become ArdourLabel, which in turn is used by ArdourButton
2014-08-28More fixes to ArdourButton actions.Ben Loftis
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-27refactor flat_buttons into cairowidget, and add a canvas-like convenience ↵Ben Loftis
function for setting cairo color with a Gtk::Color
2014-08-22Rationalize ArdourButton and lots of associated theming issues.Ben Loftis
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-07-18tweaks for the monitor section. refactoring of some buttons, using new ↵Ben Loftis
ArdourKnob instead of VolumeController. New ArdourDisplay shows a controllables user value, and provides support for preset values (hardcoded at present). Further refactoring to come, so that ArdourWidgets are derived from a common class. Controllable now has more responsibility for scaling between internal, user, and interface (knob percent) values. This also needs more refactoring and might have some unintended consequences. tested with audio and nothing seems amiss, yet.
2014-07-06repair ardour-button "fixed color mode"Robin Gareus
2014-06-14allow ardour button to handle focused keyboard eventsRobin Gareus
2014-03-26the FlatFace element is no longer relevant. instead it was being used for an ↵Ben Loftis
inset jeweled look. changed name to match
2014-03-23New theme for editor window using ArdourMenuharrison
2014-03-20change the meters into CairoWidget, add expose_area to CairoWidget::render()Robin Gareus
2014-03-06add ::on_name_changed() to ArdourButton, to use recently added ↵Paul Davis
::on_name_changed() in CairoWidget
2014-03-06Add ArdourButton::set_fixed_colors() (equivalent to ::set_bg_colors() in ↵Paul Davis
Valeriy's original changes)
2014-03-05revert 29b1e706ddaeaec5a330cf6643816ec43024b545 and then redo separation of ↵Paul Davis
ArdourButton::set_colors() from ArdourButton::build_patterns. More to come
2014-02-14some changes to ArdourButton to allow custom colors to be set (e.g. based on ↵Paul Davis
track colors), via Valeriy
2013-10-12revert part of 4091ff175c5204 that caused window/sizing chaos. silly paulPaul Davis
2013-10-121 bug fix plus padding control for ArdourButtonPaul Davis
2013-07-10left/bottom align of labels in meterbridgeRobin Gareus
2013-07-10ardour-button: allow to rotate textRobin Gareus
2012-12-12add a new Tweak to ArdourButton that makes ImplicitActive state use a solid ↵Paul Davis
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-06several theme changes. changed drawing of rounded_rectangle to be more ↵Ben Loftis
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-11-16new button lookBen Loftis
git-svn-id: svn://localhost/ardour2/branches/3.0@13511 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-21introduce flat button option,which right now is on all the time. GUI ↵Paul Davis
nit-pickers, do your best git-svn-id: svn://localhost/ardour2/branches/3.0@12358 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-03-07remove unused mid-mask stuff from ArdourButtonPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@11616 d708f5d6-7413-0410-9779-e7cbd77b26cf