summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_button.cc
AgeCommit message (Collapse)Author
2017-02-17Fix button sizing for IconRenderCallbackRobin Gareus
2017-02-17Implement icon-render callback in ArdourButtonRobin Gareus
2017-01-27remove debug output/ifdefPaul Davis
2017-01-19fix code for ArdourButton so that an existing translation component to the ↵Paul Davis
cairo transformation matrix is honored correctly
2016-12-20Fix Dropdown w/icon size and alignmentRobin Gareus
2016-12-10Add support for Pango Markup to ArdourButtonRobin Gareus
2016-12-10Consistent ArdourButton sizing for elements with LEDRobin Gareus
2016-08-25Avoid 1px size changes when sizing_text() is usedJulien "_FrnchFrgg_" RIVAUD
When requesting a size for ArdourButton, the width and height of the button could be increased by one to ensure the center of the text would lie exactly at the center of the button. I initially thought that it was a good idea even when the text used for sizing was frozen, but the main (and only?) use-case for that is to actually freeze the size of the button regardless of the actual displayed text, so jittering by one pixel is not welcome. Only do the centering tweak if there is no sizing text.
2016-08-21Silence a GCC initialization order warningJulien "_FrnchFrgg_" RIVAUD
2016-08-20Invalidate char_pixel_* on possible font changeJulien "_FrnchFrgg_" RIVAUD
So that the padding and other elements always correctly depend on the font instead of the default GTK font (which might have a wildly different size from the fixed size fonts of Ardour's custom theme).
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-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-07-04fix background of ArdourButtons with no BodyRobin Gareus
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
2016-05-31hack to ArdourButton to get sizing correct for 90 + 270 degree rotated textPaul Davis
2016-04-08small ArdourButton optimizationRobin Gareus
2016-03-31initialize some uninitialized variablesRobin Gareus
2016-03-15change API for CairoWidget::focus_handlerPaul Davis
This functor/closure is responsible for stealing focus from any existing text entry (or whatever else may have focus) when clicking on a CairoWidget or derived class. The old implementation just gave focus back to the editor canvas. The new version walks up the widget packing heirarchy to find a focusable parent (from the CairoWidget for which it is invoked). If no focusable parent is found, it cancels keyboard focus in the toplevel window containing the CairoWidget
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-10-04globally remove all trailing whitespace from ardour code base.Paul Davis
Paul Davis was responsible for introducing almost all of this.
2015-09-16Use tooltips.h in ArdourButton to remove ardour_ui.h inclusionTim Mayberry
2015-09-16Move UIConfiguration Singleton into UIConfiguration headerTim Mayberry
This removes the direct dependence on ardour_ui.h from 39 files
2015-09-16Move ARDOUR_UI::ui_scale into UIConfiguration classTim Mayberry
2015-09-16Move DPIReset and ColorsChanged signals into UIConfigurationTim Mayberry
2015-05-30vector icons should at least be 6x6 pxRobin Gareus
2015-05-24replace old ArdourButton::Icon API with Gtkmm2ext.Robin Gareus
2015-05-24ArdourButton API: set_icon() implies Icon and No TextRobin Gareus
2015-05-24add vector rendition of nudge icons.Robin Gareus
2015-05-24prepare cleanup of ArdourButton renderingRobin Gareus
2015-05-01tweak Midi/DIN icon (proper notch)Robin Gareus
2015-04-25tweak weight of transport iconsRobin Gareus
2015-04-22clean up GUI scalingRobin Gareus
2015-04-21new attempt at scaling indicator LEDRobin Gareus
2015-04-20towards scaleable meter and mixer UIRobin Gareus
somewhat hacky solution, but there's no good central point to control this and get integer rounding/summing, is there?
2015-04-18HiDPI button tweaksRobin Gareus
2015-04-08renice transport iconsRobin Gareus
2015-04-08NOOP, cleanup & commentsRobin Gareus
2015-04-08construct a metronomRobin Gareus
2015-04-08more transport button caironizing.Robin Gareus
2015-04-07fix de7d6a7 (too narrow bar)Robin Gareus
2015-04-07renice transport buttons (part one)Robin Gareus
2015-04-07update ArdourButton Icon APIRobin Gareus
2015-04-06renice 5-pin DIN/MIDI buttonRobin Gareus
2015-04-06replace two more icons w/vector drawing.Robin Gareus
2015-03-17Abutton: only LMB clicks are “clicks”.Robin Gareus
2015-03-17amend 6aa6c2d, queue redraw for custom-LED changeRobin Gareus
2015-03-17AButton: decouple indicator color and active state.Robin Gareus
If a custom LED color is used, the LED does not reflect the ExplicitActive state. Hence the Body Element (if visible) should be used just like for buttons without LED indicator.