Commit Graph

241 Commits

Author SHA1 Message Date
c44b40afd7
Indicate UTF8 literals - fixes glyph rendering with MSVC (2/2) 2023-01-16 21:41:22 +01:00
dc74decdf7 remove luminance changes from ARDOUR_UI_UTILS::unique_palette_color() 2022-12-10 13:45:07 -07:00
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
cd4b6e85a8 pick route colors from the color palette (with random variation) #9115 2022-12-07 21:27:51 -07:00
ef6803abd1
Add API to force ArdourSans font (for UTF8 symbols) 2022-11-15 21:34:27 +01:00
9ea1e5bdee move color utility functions from ARDOUR_UI_UTILS to Gtkmm2ext namespace (GUI) 2022-08-10 21:11:52 -06:00
849526b7e7 utils: re-implement used_channels_as_string to use UsedChannels (bitset) 2022-03-01 10:11:14 -06:00
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
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
76c62139c8
Fix tiny memory leak when pasting multple files 2022-01-20 21:55:04 +01:00
4720a45868
Make convert_drop_to_paths() reusable 2021-12-13 22:50:13 +01:00
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
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
5c579ed52d
Remove unused #include<> (1/2)
PBD::stacktrace() is not used nor needed by default.
It should be used sparingly.
2021-05-05 17:43:28 +02:00
8710a2d943
Dialog default to cancel (#7915)
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-02-27 23:27:42 +01:00
c6493aa81b
Fix samples_as_time_string formatting 2020-01-08 00:41:08 +01:00
2f167e6163
Fix formatting samplecnt_t (aka int64_t aka long long int) 2019-12-30 16:05:25 +01:00
8f31f814b4
Allow using ArdourSans as optional default font 2019-12-04 22:59:51 +01:00
b3a20c7626
Helper function to format sample-count as duration 2019-09-29 02:44:32 +02:00
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
31815b5f26
NO-OP: whitespace
This fixes mostly <tab> after <space> and similar <tab> not used
for indenting as well as some related code alignment issues.
2019-04-13 17:57:46 +02:00
2e5daf2eeb
Reduce #includes - avoid ardour_ui.h 2019-03-08 01:53:55 +01:00
3a215271b5 cast_dynamic<> => get_toggle_action() 2018-12-19 17:19:51 -05:00
fc83d044f8 use ActionManager namespace, rather than ActionMap objects, and remove all per-context action maps 2018-12-10 08:34:01 -05:00
a68766ec53 use new action map API instead of ActionManager::get_action 2018-12-10 08:34:01 -05:00
245d48dbd0
NO-OP: Clarify function name 2018-11-28 15:16:25 +01:00
415721fa5b
Prepare central engine check and user notification 2018-11-27 23:57:53 +01:00
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
eb1e423b75 Remove <gtkmm.h> include from header files. 2017-07-17 21:06:04 +02:00
ae1d4a9346 Fix route color selection dialog 2016-11-29 22:39:20 +01:00
5ec21347a9 Don't include program-name with <Option name="color-file" />
This allows for e.g. mixbus and mixbus32c to share the config, but
use different color-files at runtime.
2016-11-27 21:54:28 +01:00
1a55e83e98 move show_gdk_event_state() utility function from gtk2_ardour to libs/gtkmm2ext 2016-07-18 14:41:25 -04:00
cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
0cd43a553e provide ARDOUR_UI_UTILS::running_from_source_tree() 2016-06-21 19:26:05 -04:00
212afd402c color management and handling for VCAs 2016-06-09 16:03:14 -04:00
7b2f2a1f6a new color utility functions to convert between uint32_t and Gdk::Color 2016-06-05 16:33:01 -04:00
bf84903352 clean up some dangling code from ThemeManager 2016-05-31 15:30:46 -04:00
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
4c60a925c0 the return of the theme selector, plus 3 new themes from cooltehno 2016-05-31 15:30:45 -04:00
33bf858a5f remove stupid, unused function 2016-05-31 15:30:38 -04:00
026f8dd80f group Product/App specific resources
* only install icons relevant to product
 * use program-name (as-is) as prefix
 * keep icons/* for all products
2016-05-17 13:12:05 +02:00
bc487bb4b0 replicate the remove-all-trailing whitespace commit(s) in master 2016-02-22 15:31:24 -05:00
9b9a7beb13 cleanup various merge conflict resolution errors/omissions 2016-02-22 15:31:24 -05:00
ec65e351ac ensure that all callers of ARDOUR_UI_UTILS::relay_key_press() provide a window 2016-02-22 15:31:24 -05:00
98b14ad0e6 get normal GTK accelerators working again 2016-02-22 15:31:21 -05:00
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
4898614f90 Remove explicit positioning of overwrite_file_dialog.
ArdourDialog takes care of this.
2015-11-04 17:52:00 -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
dc36b063bf remove unused fstream includes 2015-10-05 22:15:18 +02:00