summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.cc
AgeCommit message (Collapse)Author
2020-02-27Dialog default to cancel (#7915)Robin Gareus
There are various ways to cancel a dialog. Only checking for RESPONSE_CANCEL is not sufficient. e.g. Esc causes a delete-event. * Gtk::RESPONSE_CLOSE * Gtk::RESPONSE_REJECT * Gtk::RESPONSE_DELETE_EVENT * Gtk::RESPONSE_CANCEL * Gtk::RESPONSE_NO Among others this fixes "Clicking session > open, then hitting ESC opens the currently selected folder and session"
2020-01-08Fix samples_as_time_string formattingRobin Gareus
2019-12-30Fix formatting samplecnt_t (aka int64_t aka long long int)Robin Gareus
2019-12-04Allow using ArdourSans as optional default fontRobin Gareus
2019-09-29Helper function to format sample-count as durationRobin Gareus
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-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.
2019-03-08Reduce #includes - avoid ardour_ui.hRobin Gareus
2018-12-19cast_dynamic<> => get_toggle_action()Paul Davis
2018-12-10use ActionManager namespace, rather than ActionMap objects, and remove all ↵Paul Davis
per-context action maps
2018-12-10use new action map API instead of ActionManager::get_actionPaul Davis
2018-11-28NO-OP: Clarify function nameRobin Gareus
2018-11-27Prepare central engine check and user notificationRobin Gareus
2017-07-17Clean up library inheritance (colors.h, utils.h)Robin Gareus
make libwidget independent of libcanvas. Confine basics to pbd and gtkmm2ext.
2017-07-17Remove <gtkmm.h> include from header files.Robin Gareus
2016-11-29Fix route color selection dialogRobin Gareus
2016-11-27Don't include program-name with <Option name="color-file" />Robin Gareus
This allows for e.g. mixbus and mixbus32c to share the config, but use different color-files at runtime.
2016-07-18move show_gdk_event_state() utility function from gtk2_ardour to libs/gtkmm2extPaul Davis
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-06-21provide ARDOUR_UI_UTILS::running_from_source_tree()Paul Davis
2016-06-09color management and handling for VCAsPaul Davis
2016-06-05new color utility functions to convert between uint32_t and Gdk::ColorPaul Davis
2016-05-31clean up some dangling code from ThemeManagerPaul Davis
2016-05-31rework of color theme file managementPaul Davis
Use program-name + version when saving user color files (and search for them) Preset XML-defined theme name, but use filename in config files (could be wrong).
2016-05-31the return of the theme selector, plus 3 new themes from cooltehnoPaul Davis
2016-05-31remove stupid, unused functionPaul Davis
2016-05-17group Product/App specific resourcesRobin Gareus
* only install icons relevant to product * use program-name (as-is) as prefix * keep icons/* for all products
2016-02-22replicate the remove-all-trailing whitespace commit(s) in masterPaul Davis
2016-02-22cleanup various merge conflict resolution errors/omissionsPaul Davis
2016-02-22ensure that all callers of ARDOUR_UI_UTILS::relay_key_press() provide a windowPaul Davis
2016-02-22get normal GTK accelerators working againPaul Davis
2016-02-22first compilable version of tabbable design.Paul Davis
I would have loved to split this apart, but there are just so many interrelated changes, it makes little sense and would be a huge effort that would break future git bisect use because so many intermediate commits would not compile
2015-11-04Remove explicit positioning of overwrite_file_dialog.André Nusser
ArdourDialog takes care of this.
2015-11-04Improve behavior of overwrite_file_dialog.André Nusser
- Make overwrite file dialogs transient. - Cancelling the overwrite dialog doesn't close initial dialog.
2015-10-21Confirmation on overwrite for track and session templates. -fixes #6587André Nusser
2015-10-05remove unused fstream includesRobin Gareus
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-17fix a tautologically undefined comparisonRobin Gareus
2015-09-16Move UIConfiguration Singleton into UIConfiguration headerTim Mayberry
This removes the direct dependence on ardour_ui.h from 39 files
2015-09-16Remove unused header includeTim Mayberry
2015-09-16Move util functions into UIConfiguration as they depend on it anywayTim Mayberry
2015-06-27consolidate codeRobin Gareus
2015-01-30use Gtkmm2ext::possibly_translate_mod_to_make_legal_accelerator() in all ↵Paul Davis
cases where we use gtk_accel_groups_activate() Because that function needs it, whereas the old gtk_window_activate_key() did not.
2015-01-29don't wipe out SHIFT from event state when processing keyboard events, as ↵Paul Davis
done in a recent commit
2015-01-28use gtk_accel_groups_active() in preference to gtk_window_activate_key() ↵Paul Davis
since the latter behaves incorrectly The window version will not activate bindings like <Mod4><Super>-space, whereas the former one works correctly. We already used the former one just above, when handling "fakekeys". Also add a utility function to show modifier state.
2015-01-14Fix setting command key bindings on OSX.David Robillard
2014-12-22move all (G)UI related configuration parameters into UIConfiguration, not ↵Paul Davis
RCConfiguration
2014-12-08more color work, including removing rgba{_p_}_from_style()Paul Davis
2014-11-19also load hotspot file (if it exists) for default cursorsRobin Gareus