summaryrefslogtreecommitdiff
path: root/gtk2_ardour/gain_meter.cc
AgeCommit message (Collapse)Author
2020-04-10Synchronize meter-reset #7465Robin Gareus
Queue reset to be handled when the meter is updated. Also only call set_name(), set_active_state() when the state changes.
2020-03-30Follow backend API changeRobin Gareus
2020-03-12Fix setting automation state for Aux-sendsRobin Gareus
When switching the Mixer to show sends, using _amp as intermediate for automation is not correct. The control is not owned by the amp. The same is true for VCAs, prefer the control (see 8400ebd175e0)
2019-11-12Indicate the numeric peak-hold is always digital-peakRobin Gareus
2019-10-31Fix copy/paste mess in ab298f035aeRobin Gareus
2019-10-31Remove unused string translationRobin Gareus
2019-10-31Consolidate automation and meter-point stringsRobin Gareus
This also properly selects texts in dropdown-menus on the mixer-strip, panner and plugin-controls, gain-meters.
2019-08-04Fix meter metric visibility on narrow strips - #7781Robin Gareus
After session load, the meter numerics were always visible, regardless of strip width. MixerStrip::set_stuff_from_route() and MixerStrip::set_width_enum() are called before Mixer UI is realized and calls show_all().
2019-08-03Update GPL boilerplate and (C)Robin Gareus
Copyright-holder and year information is extracted from git log. git history begins in 2005. So (C) from 1998..2005 is lost. Also some (C) assignment of commits where the committer didn't use --author.
2019-07-13Implement a derived function for 'GainMeter::redraw_metrics()'John Emmas
I'm not sure why exactly but at this line in 'GainMeter::set_controls ()' :- model_connections, invalidator (*this), boost::bind (&GainMeter::redraw_metrics, this), gui_context() MSVC will not allow us to pass a base class function to boost::bind(). I tried explicitly specifying the base class and I also tried making the function public / making it virtual etc but the only thing which works is to implement a derived function. It's somehow related to changing the signal from 'TypeChanged' to 'MeterTypeChanged' but I don't entirely understand why... :-(
2019-06-09Update GUI: meter-type API and meter-type state changesRobin Gareus
This removes all additional GUI side meter-type state. The route's meter-processors is now responsible for providing the type. meter-type is now implicit for GainMeter, LevelMeter used by meter-strips and mixer-strips.
2019-04-13NO-OP: whitespaceRobin Gareus
This fixes mostly <tab> after <space> and similar <tab> not used for indenting as well as some related code alignment issues.
2017-11-03Fix scroll-wheel on mixer-slidersRobin Gareus
74c986534b changes the semantics of fader-flags: NoVerticalScroll was "ignore vertical scroll for horizontal faders". Now the flag ignores all vertical scrolling.
2017-09-18globally change all use of "frame" to refer to audio into "sample".Paul Davis
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
2017-09-18GUI support for LatchRobin Gareus
2017-07-24Remove unused "mark" parameter from stop_touch() APIRobin Gareus
2017-07-21Amend c242cbc31806 (VCA automation button)Robin Gareus
2017-07-17Remove <gtkmm.h> include from header files.Robin Gareus
2017-07-17Move Gtkmm2ext widgets into libwidgetRobin Gareus
2017-07-17Separate Ardour UI widgets into dedicated libraryRobin Gareus
2017-07-16Remove Timers to watch Controllable valuesRobin Gareus
Depend on Changed() signals alone, which are usually much less frequent than rapid-timer events. As side-effect we now need to make the widgets insensitive when playing automation. Previously the user could not change the value because the Timer periodically reset it.
2017-06-21Switch to PBD control-math and prefer Controllable APIRobin Gareus
Note: Control-surfaces should always use interface_to_internal() and internal_to_interface().
2017-06-21Remove Cruft -- AutomationStyle never did anything.Robin Gareus
Trim automation is planned via SlavableAC as normal AutomationMode. Some of this code have a revival (a special "Trim+Preview" state before merging Automation but that has to be more general than Pan & Gain.
2017-03-24Revert "consistent use of context-menu popups"Robin Gareus
This reverts commit b3722f7063699fafd0421d504e05a7300c70e0ec. In some cases ardour shows context-menu on right-mouse-button release. In this case selecting a menu-entry should happen with the left-mouse button (or any button?!) Using ev->button is only correct if the menu is temporary and only visible while the button is held, button release then activates the menu-item. This needs further work, in some cases allowing any button (0) to work makes sense and overall consistency needs to be improved. Different places use different strategies for context-menus which don't always match the button used in the event-handler. This is a hotfix (to make TAV context menus work again with left-click)
2017-03-23Disallow Selection, context-menu & drag-start on peak-display ButtonRobin Gareus
2017-03-16consistent use of context-menu popupsRobin Gareus
2017-03-11Fader Group override (allow to enable on disabled groups/predicates)Robin Gareus
2017-02-24Snap-back fader on release (follow-up to e8cebac6a36a)Robin Gareus
When dragging a fader out-of-bounds (VCA slave constraint), move it back on release.
2017-02-24Group-override for fadersRobin Gareus
Tentative solution. Eventually the gain_adjustment should be moved into the PixFader or SliderController and a dedicated API should replace gain_adjustment.signal_value_changed()
2017-02-24NO-OP resolve an ambiguity, just because.Robin Gareus
Due to LevelMeterVBox : public LevelMeterBase, public Gtk::VBox; LevelMeterBase::get_type() overloads Gtk::Widget::get_type(), Glib::Object::get_type(), Atk::Implementor::get_type() etc.. Besides Ardour-style prefers not to use get_...()
2017-01-24styleguide #6Robin Gareus
2017-01-24Meter point toggle button now uses a popup menu instead of togglingDaniel Sheeler
2016-12-21Fix crash when resetting all peak-meters with VCAs.Robin Gareus
2016-09-27move "logmeter.h" from gtk2_ardour into libs/ardourPaul Davis
2016-08-24Fix string to float conversion when typing gain values in Gain MeterTim Mayberry
Remove the LocaleGuard so that the value of LC_NUMERIC is that of the users locale and sscanf will parse the string correctly. For instance, with a locale like nl_NL or fr_FR where the decimal point is different than the "C" locale, only the number up to the decimal point will be parsed by sscanf and input values will be rounded down.
2016-08-19Remove unused space in gain_meter's automation menuJulien "_FrnchFrgg_" RIVAUD
2016-08-17Make MixerStrip's automation menu behave like a dropdownJulien "_FrnchFrgg_" RIVAUD
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-07-02partially revert incorrect changes to gain meter text entries/displaysPaul Davis
2016-07-01minor no-op hacks (unneeded or suboptimal code)Paul Davis
2016-06-28quick prototype to allow changing *all* gain automationRobin Gareus
2016-05-31universal change in the design of the way Route/Track controls are designed ↵Paul Davis
and used. The controls now own their own state, rather than proxy for state in their owners. Massive changes all over the code to accomodate this. Many things are not finished. Consider this a backup safety commit
2016-05-31trivially change API of GainMeter but more importantly don't show meter if ↵Paul Davis
no Route is set
2016-05-31revert GainMeter back to simpler code now that VCA model appears correctPaul Davis
2016-05-31adjust logic for slaved faders, not necessarily correctly.Paul Davis
More info in the code comments.
2016-05-31rename GainMeter::gain_adjusted() to GainMeter::fader_moved() to be more clearPaul Davis
2016-05-31make GUI fader positions reflect VCA master valuesPaul Davis
2016-05-31change packing of GainMeter so that the fader+meter will expand to fill ↵Paul Davis
available space
2016-05-31correctly set up members of GainMeterBase in ::set_controls()Paul Davis
2016-05-07fix LocaleGuard contstructor (3dc77280)Robin Gareus