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
76c62139c8
Fix tiny memory leak when pasting multple files
2022-01-20 21:55:04 +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
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
Robin Gareus
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
Robin Gareus
c6493aa81b
Fix samples_as_time_string formatting
2020-01-08 00:41:08 +01:00
Robin Gareus
2f167e6163
Fix formatting samplecnt_t (aka int64_t aka long long int)
2019-12-30 16:05:25 +01:00
Robin Gareus
8f31f814b4
Allow using ArdourSans as optional default font
2019-12-04 22:59:51 +01:00
Robin Gareus
b3a20c7626
Helper function to format sample-count as duration
2019-09-29 02:44:32 +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
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
Robin Gareus
2e5daf2eeb
Reduce #includes - avoid ardour_ui.h
2019-03-08 01:53:55 +01:00
Paul Davis
3a215271b5
cast_dynamic<> => get_toggle_action()
2018-12-19 17:19:51 -05:00
Paul Davis
fc83d044f8
use ActionManager namespace, rather than ActionMap objects, and remove all per-context action maps
2018-12-10 08:34:01 -05:00
Paul Davis
a68766ec53
use new action map API instead of ActionManager::get_action
2018-12-10 08:34:01 -05: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
Robin Gareus
eb1e423b75
Remove <gtkmm.h> include from header files.
2017-07-17 21:06:04 +02:00
Robin Gareus
ae1d4a9346
Fix route color selection dialog
2016-11-29 22:39:20 +01:00
Robin Gareus
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
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
cf52d6e4b4
enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
2016-07-14 14:45:23 -04:00
Paul Davis
0cd43a553e
provide ARDOUR_UI_UTILS::running_from_source_tree()
2016-06-21 19:26:05 -04:00
Paul Davis
212afd402c
color management and handling for VCAs
2016-06-09 16:03:14 -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
bf84903352
clean up some dangling code from ThemeManager
2016-05-31 15:30:46 -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
33bf858a5f
remove stupid, unused function
2016-05-31 15:30:38 -04:00
Robin Gareus
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
Paul Davis
bc487bb4b0
replicate the remove-all-trailing whitespace commit(s) in master
2016-02-22 15:31:24 -05:00
Paul Davis
9b9a7beb13
cleanup various merge conflict resolution errors/omissions
2016-02-22 15:31:24 -05: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
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
Robin Gareus
dc36b063bf
remove unused fstream includes
2015-10-05 22:15:18 +02:00
Robin Gareus
22b07e0233
NOOP, remove trailing tabs/whitespace.
2015-10-05 16:17:49 +02:00
Paul Davis
4dc63966f0
globally remove all trailing whitespace from ardour code base.
...
Paul Davis was responsible for introducing almost all of this.
2015-10-04 14:51:05 -04:00
Robin Gareus
202b9cc82a
fix a tautologically undefined comparison
2015-09-17 00:21:38 +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
0fd1aa3808
Remove unused header include
2015-09-16 16:55:17 -04:00