Paul Davis
8fbf2c3f52
add enum and member var for controlling what kind of tempo editing we are doing
...
note: this was much harder than it ought to be
2023-04-08 11:44:21 -06:00
Robin Gareus
380005f50f
Update preference to set macOS render performance
2023-02-04 22:34:12 +01:00
Paul Davis
160ed4d056
tweak generation process for preferences metadata and start adding some
2023-02-01 18:14:33 -07:00
Robin Gareus
b481590268
macOS: use openGL surface by default
2023-02-01 01:32:48 +01:00
Paul Davis
ea4b47f86d
avoid local prefs var map building
2023-01-27 15:13:27 -07:00
Paul Davis
3af3f7d6ee
UIConfiguration now "builds" all metadata
2023-01-27 15:13:27 -07:00
Paul Davis
26c09e6de3
continued work on use of Metadata in various Configuration objects (GUI edition)
2023-01-27 15:13:27 -07:00
Robin Gareus
54c765ad2a
Expose preference to use NSGLView on macOS
2023-01-20 21:54:11 +01:00
Robin Gareus
7fa207d9ee
Add UI config-option for freesound download cache
...
This also invalidates any prior libardour rc-config
(which was not previously exposed as config).
Note: old existing cache is not moved or invalidated
when the path changes.
2022-05-20 22:03:14 +02:00
itmuckel
d7f2c35beb
Cruft removal
2022-05-06 10:12:17 +02:00
Paul Davis
ca22ba77e1
Constification: make Stateful::get_state() const, with all other required const-ness added (GUI)
2022-04-06 21:56:59 -06:00
Paul Davis
d129a64890
when GUI scale changes, drop Canvas::Text font size maps
2021-10-19 10:54:51 -06:00
Robin Gareus
fd0dc917bf
Fix gcc4 builds ('errno' was not declared in this scope)
2021-07-08 22:58:57 +02:00
Robin Gareus
64f814438a
Fix OSX and gcc4 builds (errno, strerror)
2021-07-07 13:49:02 +02:00
Robin Gareus
d01d261f0e
Safe ui-config file saving
...
This prevents corrupt ui-config files in case the disk is full.
This is a safeguard, since Ardour does not start if the
config file is corrupt.
2021-07-06 21:12:30 +02:00
Robin Gareus
1809818c94
Preferences/Config changes for image-surface settings
2019-12-27 19:35:02 +01: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
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
5c92613698
Separate Ardour UI widgets into dedicated library
2017-07-17 21:06:04 +02:00
Robin Gareus
f66b863a2d
Make an info string translatable
2017-07-05 18:54:02 +02:00
Thomas Brand
63ea7b6516
NO-OP whitespace (updated GH PR #357 )
2017-07-01 19:28:26 +02:00
Tim Mayberry
f3d622f6f9
Remove LocaleGuards from UIConfiguration class
...
all float <=> string conversions are done via PBD::to_string/string_to. Either
via XMLNode::get/set_property or directly in HSV and SVAModifier classes
2017-06-22 10:48:38 +10:00
Tim Mayberry
e7a23eaaa8
Use snprintf instead of std::stringstream when converting color values to strings
...
std::ostream/stringstream will use the current locale to determine the numeric
formatting. If the locale uses grouping then thousands separators will be
inserted in the output which produces an invalid color string in
UIConfiguration::reset_gtk_theme() and when converting colors to strings in
UIConfiguration::store_color_theme()
This has not been a problem so far because it appears that LocaleGuard does not
reset the LC_NUMERIC value for the global C++ locale. So if a LocaleGuard is
created at any time before these functions are called(even if it goes out of
scope) the numeric formatting used by std::streams will use the "C" locale
formatting facets.
2017-04-19 09:36:59 +10:00
Tim Mayberry
b00b83f95a
Use XMLNode::set_property API in UIConfiguration class
2017-04-19 09:36:57 +10:00
Tim Mayberry
2b58bbd50a
Use PBD string conversion functions in PBD::ConfigurationVariable
...
No longer need a specialization for bool as PBD::to_string/string_to already
has specializations for bool
Remove template specialization for float as string_to/to_string handles string
representations of infinity
2017-04-19 09:36:47 +10:00
Robin Gareus
3dbdc4d837
Leave some notes about memory-leaks
2017-01-20 13:54:12 +01:00
Robin Gareus
1d2a76f239
Free some one time alloc of the UI (cleaner valgrind output)
...
No incremental leaks here..
* downcase (const char*) uses strdup, caller needs to free
* free allocated cursors when the editor is destroyed
* drop static editor lua-instance & bindings
* delete allocated gtk image/icons
2017-01-20 13:53:37 +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
Julien "_FrnchFrgg_" RIVAUD
01ac1b5362
Merge set_pango_fontsize() into reset_dpi()
...
… since reset_dpi() is the only caller.
2016-08-21 15:04:06 +02:00
Paul Davis
56c4b3c9b0
turn back towards color theme files ALWAYS including the program name. also load both default and user colors (if present)
2016-07-18 11:50:38 -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
9da43c5ceb
UIConfig needs C numeric locale while setting GTK color theme
2016-07-14 11:37:48 -04:00
Paul Davis
68b6d0d796
fix some more thinkos related to user color file management
2016-06-21 19:39:13 -04:00
Paul Davis
d3a0355b55
tweaks to how UIConfiguration::color_file_name() operates
2016-06-21 19:26:05 -04:00
Robin Gareus
b708439307
fix user color file name
2016-06-08 15:51:33 +02:00
Paul Davis
9c69d6f0c3
show color theme file search path when a file is not found
2016-05-31 15:59:14 -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
cb4b6bf8a3
remove debug output
2016-05-31 15:30:45 -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
Robin Gareus
2f9d5077dc
GUI part of LocaleGuard optimization.
2016-05-07 17:17:41 +02:00
Robin Gareus
6d343ba3c6
fix LocaleGuard contstructor ( 3dc77280
)
2016-05-07 12:19:41 +02:00
Robin Gareus
3dc7728038
we always only use the "C" locale when saving.
2016-05-05 21:49:56 +02:00
Paul Davis
17ace643e4
OMNIBUS COMMIT: prefer const XMLNode::property method (and provide a real one)
2016-05-04 23:09:45 -04:00
Robin Gareus
2397429e99
use quotes for in-tree pbd/glib wrapper include
2015-10-05 22:15:18 +02:00
Robin Gareus
22b07e0233
NOOP, remove trailing tabs/whitespace.
2015-10-05 16:17:49 +02:00
Robin Gareus
f27800ea41
use pbd's gstdio compatibility wrapper (GUI)
2015-09-17 14:38:09 +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
45d487f16e
Move ARDOUR_UI::ui_scale into UIConfiguration class
2015-09-16 16:55:17 -04:00
Tim Mayberry
c99bf353a5
Remove inclusion of ardour_ui.h from ui_config.cc
2015-09-16 16:55:17 -04:00
Tim Mayberry
fc1e7dbb55
Move DPIReset and ColorsChanged signals into UIConfiguration
2015-09-16 16:55:17 -04:00