Commit Graph

117 Commits

Author SHA1 Message Date
Robin Gareus d7c611e025
Guess UI scale for copy-config dialog
This dialog shows before the new user wizard,
where a user would configure HDPI/UI scaling.
2023-09-25 17:07:15 +02:00
Robin Gareus 09e82c1607
Move format_position to utils
This will allow other places to reuse this method.
2023-08-26 14:06:33 +02:00
Robin Gareus c228d05c47
Clarify round-robin color palette API name 2023-04-18 02:18:02 +02:00
Paul Davis b35518e212 switch from boost::{shared,weak}_ptr to std::{shared,weak}_ptr
This is mostly a simple lexical search+replace but the absence of operator< for
std::weak_ptr<T> leads to some complications, particularly with Evoral::Sequence
and ExportPortChannel.
2023-03-24 14:19:15 -06:00
Paul Davis 74f95ff0dd when use stripable palette colors, use them sequentially
Also break this code out into a separate method
2022-12-08 10:52:57 -07:00
Paul Davis cd4b6e85a8 pick route colors from the color palette (with random variation) #9115 2022-12-07 21:27:51 -07:00
Robin Gareus ef6803abd1
Add API to force ArdourSans font (for UTF8 symbols) 2022-11-15 21:34:27 +01:00
Paul Davis 9ea1e5bdee move color utility functions from ARDOUR_UI_UTILS to Gtkmm2ext namespace (GUI) 2022-08-10 21:11:52 -06:00
Ben Loftis 849526b7e7 utils: re-implement used_channels_as_string to use UsedChannels (bitset) 2022-03-01 10:11:14 -06:00
Robin Gareus 9f45e1a1fe
Copy Bank/Patch changes from auditioner to trigger-slot
This will need some refinement, we should only copy the settings
if the file in question was previously auditioned, and perhaps
only if GMsynth.lv2 is used.
2022-02-10 02:22:35 +01:00
Robin Gareus ef8904210e
Add method to format set of MIDI channels
eg. channels 1,2,3,5,6
will be formatted as "1-3, 5, 6"
2022-02-05 00:13:28 +01:00
Robin Gareus 4720a45868
Make convert_drop_to_paths() reusable 2021-12-13 22:50:13 +01:00
Paul Davis 4484b60b13 Revert "extend API of ARDOUR_UI_UTILS::emulate_key_event() to allow it to pass modifiers too"
No need to extend/change this API, since relay_key_press() can already take a window argument.

This reverts commit 2e0fa8943a.
2021-06-06 08:11:26 -06:00
Paul Davis 2e0fa8943a extend API of ARDOUR_UI_UTILS::emulate_key_event() to allow it to pass modifiers too 2021-06-06 08:05:59 -06:00
Robin Gareus b3a20c7626
Helper function to format sample-count as duration 2019-09-29 02:44:32 +02:00
Robin Gareus 4b5d16554b
Simplify screensaver inhibit API and fix OSX compatibility 2019-08-11 20:39:39 +02:00
Robin Gareus 78d7ef15df
Prototype infrastructure to disable screensaver 2019-08-11 02:33:16 +02:00
Robin Gareus 4050ca5633
Update GPL boilerplate and (C)
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-08-03 15:53:15 +02:00
Robin Gareus 245d48dbd0
NO-OP: Clarify function name 2018-11-28 15:16:25 +01:00
Robin Gareus 415721fa5b
Prepare central engine check and user notification 2018-11-27 23:57:53 +01:00
Robin Gareus 601c317d70 Clean up library inheritance (colors.h, utils.h)
make libwidget independent of libcanvas.
Confine basics to pbd and gtkmm2ext.
2017-07-17 21:06:04 +02:00
Thomas Brand 63ea7b6516 NO-OP whitespace (updated GH PR #357) 2017-07-01 19:28:26 +02:00
Paul Davis 1a55e83e98 move show_gdk_event_state() utility function from gtk2_ardour to libs/gtkmm2ext 2016-07-18 14:41:25 -04:00
Paul Davis 0cd43a553e provide ARDOUR_UI_UTILS::running_from_source_tree() 2016-06-21 19:26:05 -04:00
Paul Davis 7b2f2a1f6a new color utility functions to convert between uint32_t and Gdk::Color 2016-06-05 16:33:01 -04:00
Paul Davis 6ec731c5fa rework of color theme file management
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-31 15:30:46 -04:00
Paul Davis 4c60a925c0 the return of the theme selector, plus 3 new themes from cooltehno 2016-05-31 15:30:45 -04:00
Paul Davis 91a95b086a initial sort-of-mostly-working integration of new Pane 2016-05-31 15:30:45 -04:00
Paul Davis 33bf858a5f remove stupid, unused function 2016-05-31 15:30:38 -04:00
Paul Davis ec65e351ac ensure that all callers of ARDOUR_UI_UTILS::relay_key_press() provide a window 2016-02-22 15:31:24 -05:00
Paul Davis 98b14ad0e6 get normal GTK accelerators working again 2016-02-22 15:31:21 -05:00
Paul Davis 9010262bed first compilable version of tabbable design.
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
2016-02-22 15:31:21 -05:00
André Nusser 6ccffbaf09 Improve behavior of overwrite_file_dialog.
- Make overwrite file dialogs transient.
- Cancelling the overwrite dialog doesn't close initial dialog.
2015-11-04 17:52:00 -05:00
André Nusser 5d50abed75 Confirmation on overwrite for track and session templates. -fixes #6587 2015-10-21 23:28:44 -04:00
Tim Mayberry 2d47183dc9 Move util functions into UIConfiguration as they depend on it anyway 2015-09-16 16:55:17 -04:00
Tim Mayberry 2e8af0c917 Remove duplicate extern declaration
DPIReset signal is declared in global_signals.h
2015-09-16 16:55:17 -04:00
Robin Gareus 1bd7199f4f consolidate code 2015-06-27 01:00:03 +02:00
Paul Davis aff8a806a2 more color work, including removing rgba{_p_}_from_style() 2014-12-08 22:02:38 -05:00
Paul Davis 233d2e8530 add extra (default-ed) argument to ::get_icon_path() to allow it to be used to look for icon-related but non-image files 2014-09-10 19:39:15 -04:00
Robin Gareus fb473475c3 remove cruft 2014-09-06 00:42:10 +02:00
Robin Gareus 09479ad19a prepare formatting track-number for mixer (and other places) 2014-06-26 19:19:29 +02:00
Robin Gareus a3c378cf62 move utility functions into a dedicated namespace 2014-06-25 21:47:54 +02:00
Paul Davis 01df705f70 change the way font specifications are used in UI config files
If no font family is specified, enforce use of Sans to match GTK behaviour (which we inadvertently relied on, it appears)
2014-06-19 11:18:44 -04:00
Paul Davis 839a0063f2 add ::get_icon_sets() to utils 2014-06-10 14:39:28 -04:00
Paul Davis d59d26b89a change ::get_icon_path() and ::get_icon() to accept an "icon set" name to provide ability to use different sets of icons; use when creating MouseCursors 2014-06-10 14:39:28 -04:00
Paul Davis ce08ec0de0 substantial changes in color management, involving a reduction in the use of Gdk::Color and more consistent logic for region coloring.
Group tabs now also get the text drawn in an appropriately contrast-y color
2014-06-09 23:29:00 -04:00
Paul Davis e5888d3983 merge with master and fix 2 conflicts 2013-10-16 22:06:56 -04:00
Paul Davis cff174b541 move rate_as_string() from EngineControl to utils.cc 2013-09-23 21:35:17 -04:00
Robin Gareus 7b18260175 get meter color from gtkrc style file 2013-08-08 15:25:40 -04:00
Robin Gareus e469ce0961 get meter color from gtkrc style file 2013-07-24 22:05:24 +02:00