Commit graph

33 commits

Author SHA1 Message Date
Robin Gareus
d06de26a4f Towards a consistent render() API.
This fixes an -Woverloaded-virtual ambiguity introduced in b5e613d45

  void render (cairo_t*, cairo_rectagle*)
  void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*)

ArdourCanvas prefers cairomm and CairoWidget itself uses Cairo::Context,
this improves overall API consistency.
2017-03-20 17:12:08 +01:00
Paul Davis
cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
Robin Gareus
d43d220f1f extend ArdourKnob ToolTips
allow to set/change tooltip-prefix and set a "printer" in preparation
for properly using the Knob in Plugin UIs
2016-07-11 03:45:13 +02:00
Paul Davis
9e3299f97d change Controllable::set_value() API to include grouped control consideration.
This also removes Route::group_gain_control() and associated machinery.
Not yet tested with Mackie or other surfaces. More work to done to
start using the group capabilities, and also potentially to add
or derive more controls as RouteAutomationControls
2016-01-02 04:58:30 -05:00
Robin Gareus
22b07e0233 NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
Tim Mayberry
6b019a4953 Move UIConfiguration Singleton into UIConfiguration header
This removes the direct dependence on ardour_ui.h from 39 files
2015-09-16 16:55:17 -04:00
Tim Mayberry
45d487f16e Move ARDOUR_UI::ui_scale into UIConfiguration class 2015-09-16 16:55:17 -04:00
Tim Mayberry
fc1e7dbb55 Move DPIReset and ColorsChanged signals into UIConfiguration 2015-09-16 16:55:17 -04:00
Robin Gareus
e32bf13016 set [new] draggable flag for draggable items with tooltips. 2015-06-30 13:08:55 +02:00
Paul Davis
827fa16239 restore use of vertical margin on ardour knob popup tooltip/window 2015-06-29 14:18:13 -04:00
Paul Davis
e2574020b2 fix logic/declaration issue with modified PersistentTooltip API 2015-06-29 14:18:10 -04:00
Robin Gareus
7c09182d75 remove a dead assignment 2015-04-27 17:45:25 +02:00
Robin Gareus
9d3e32be2d ardour knob: watch automation 2015-04-25 21:25:29 +02:00
Robin Gareus
9a4f205b6e knob: use double precision normal on dent.
Fixes -0dB vs +0dB rounding issue.
2015-04-25 17:35:05 +02:00
Robin Gareus
ff563d293e separate detent & zero-arc flags for knob 2015-04-25 16:59:33 +02:00
Robin Gareus
a7523c4e6d magic knob 2015-04-25 05:33:51 +02:00
Robin Gareus
2609e8f5bd immediately show tooltip on knob drag. 2015-04-25 03:02:37 +02:00
Robin Gareus
c809e528c0 make knob respond to X & Y axis drags 2015-04-25 02:44:47 +02:00
Robin Gareus
a3dc192fb3 allow to offset knob-arc 2015-04-25 02:19:13 +02:00
Robin Gareus
50a0748c2b trim typo and details 2015-04-25 01:17:25 +02:00
Robin Gareus
848864f8c9 persistent tooltip for [trim] knob 2015-04-25 01:04:19 +02:00
Robin Gareus
01f8985617 don’t knob show tooltips if no prefix is set
ie the monitor section has explicit labels.
2015-04-24 23:22:15 +02:00
Robin Gareus
eea297dc3e knob proposal.
feel free to revert.
2015-04-24 22:37:18 +02:00
Robin Gareus
57e80c2c8f allow to set toolip on knob 2015-04-24 22:37:03 +02: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
318a9edab9 massive reworking of color selection implementation 2014-11-26 18:22:22 +02:00
Paul Davis
4260d0ca0e use new canvas colors header as necessary 2014-11-07 14:24:27 -05:00
Ben Loftis
b4386a6e00 more flat_button refactoring 2014-08-27 11:53:30 -05:00
Ben Loftis
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
Ben Loftis
a7226133a9 refactor _grabbed into cairo_widget 2014-08-22 11:49:59 -05:00
Ben Loftis
fdaa6a151a 3 monitor tweaks for the_CLA. shift+click to default, and new preset vals 2014-07-22 16:05:51 -05:00
Ben Loftis
25024e550a Remove troublesome cairo antialiasing hint.
Tweak knob gfx slightly.
2014-07-22 10:17:09 -05:00
Ben Loftis
b2b736d596 tweaks for the monitor section. refactoring of some buttons, using new 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-18 08:47:45 -05:00