Commit Graph

267 Commits

Author SHA1 Message Date
Robin Gareus d6106b22cb Breathe at exit: allow event-loops to clean up 2017-01-20 13:53:53 +01:00
John Emmas 1e03ad7336 setlocale(LC_MESSAGES) isn't valid when building with MSVC
In fact AFAICT it isn't supported by MinGW either (I've a feeling it probably isn't valid on Windows at all).
2017-01-16 13:44:23 +00:00
Robin Gareus 4c0ce20941 Allow fine grained control over locale 2016-12-28 13:38:49 +01:00
Robin Gareus 93ffece465 hotfix C++ locale (OSX, windows) 2016-07-15 16:10:42 +02: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 521fe586d7 correctly initialize C++ locale as well as C locale 2016-07-14 11:37:48 -04:00
Paul Davis 69f67b6198 use setlocale() in preference to gtk_set_locale() 2016-05-31 15:30:41 -04:00
Robin Gareus 6d343ba3c6 fix LocaleGuard contstructor (3dc77280) 2016-05-07 12:19:41 +02:00
Robin Gareus 6972db0d55 add luadoc binary (developer tool) to dump lua bindings
output is either JSON or lua-tables.
enable via  ./waf configure --luadoc ... , needs C++11
2016-03-20 20:54:36 +01:00
Robin Gareus dd8dfb47ec four f* f's. 2015-10-17 20:30:24 +02:00
Robin Gareus 9ae577fb07 thread-safe fftw (needs fftw-3.3.5)
see https://github.com/FFTW/fftw3/issues/16
2015-10-17 19:23:39 +02: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
Tim Mayberry 553c3ef557 Remove ui_config.h inclusion from ardour_ui.h 2015-09-16 16:55:17 -04: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
Robin Gareus b2817bfac5 make it easier to get errors out of GTK + Glib 2015-07-30 19:05:12 +02:00
Paul Davis 173b007779 rearrange and redesign UIConfiguration/ARDOUR_UI APIs to allow correct initialization.
We need to be able to set an environment variable *before* gtk_init() is called, but also to
load the color theme right after gtk_init() and before the rest of the GUI is created.
2015-05-28 12:46:43 -04:00
Paul Davis 76b28e7ff2 fix novice-level mistake that causes localedir to point to random, reusable (typically stack) memory 2015-04-17 11:00:33 -04:00
Paul Davis a4ec7c9e60 bump copyright duration 2015-04-09 21:16:55 -04:00
John Emmas 36b57a1c17 Replace a closing bracket which managed to get lost somehow 2015-03-29 09:43:57 +01:00
Paul Davis d67d4d129f remove Ardour from MSVC message dialog and use PROGRAM_NAME 2015-03-24 10:55:40 -05:00
Robin Gareus 53ac99a26a rework check for old configuration files
check early on (before announcement-check, bundle-
env and ARDOUR_UI ctor have a chance to create the
new config dir)
2015-03-23 18:31:55 +01:00
John Emmas 247d0493bf Change the way we call 'Gtk::Main' when building with MSVC
This is just to accommodate the fact that 'command_line_parse_error()' uses pointers to argc & argv
2015-03-17 14:54:39 +00:00
Paul Davis b58c1df07d check for old configuration files and copy if user requests it.
A restart is required. There is a circular dependency between the config files and the GUI, and this restart breaks it
2015-03-12 17:45:42 -05:00
Robin Gareus 7a730c2295 NOOP whitespace fixes. 2015-03-12 20:31:06 +01:00
Robin Gareus 3bd3dc04b1 fix 0096aa5 (at least for mingw) 2015-03-12 17:57:10 +01:00
Paul Davis 0096aa5391 try to clean MSVC/Windows mess in main(), hopefully without breaking anything 2015-03-12 10:06:15 -05:00
Robin Gareus 63c4f8ad3f Revert "explicitly shutdown engine at exit"
This reverts commit c12b7bc9d8.

ARDOUR_UI::finish() already does this.
2015-03-09 18:32:14 +01:00
Robin Gareus c12b7bc9d8 explicitly shutdown engine at exit
Callbacks like EngineHalted or DeviceListChanged 
can be deadly while the UI is being torn down.
2015-03-09 01:41:34 +01:00
Robin Gareus 0367aa5825 remove cruft (old unused pre-git version files) 2015-01-09 06:11:57 +01:00
Robin Gareus 946e63a276 never show windows console.
If ardour is launched from a terminal, stdout/stderr works since
9988f661f. Further, the debug-version comes packaged with gdb and
a has a start-menu shortcut for it. There is no need to implicitly
always show a console even for debug builds.
2015-01-06 02:07:58 +01:00
Robin Gareus 9988f661fa windows: re-attach to the console with -mwindows 2015-01-06 02:04:12 +01:00
Paul Davis 8f4ab08e20 revert UIConfiguration back to a normal member of ARDOUR_UI 2014-12-07 13:12:48 -05:00
Tim Mayberry 4b751f9e87 Move setting _fmode flag on windows into PBD::init
This moves setting of _fmode slightly later in the initialization
of the application via Ardour::init.
2014-12-03 17:31:05 +07:00
Paul Davis e9768e934f move creation of UIConfiguration object to precede creation of ArdourUI.
This is pretty kludgy but we need the UIConfiguration object (or any color management object) to be the first to connect to
the ColorsChanged signal.

Might be better to make the UIConfiguration object a delegate for the ThemeManager.
2014-11-26 18:22:22 +02:00
Robin Gareus 5aba4df252 fix/silence various compiler warnings.
* ifdef unused static functions
* brackets around assignment and comparision
* no return statement in function returning non-void
* boost concept_checks.hpp unused-local-typedefs
2014-11-23 23:57:55 +01:00
Robin Gareus ec92524fe9 file binary compat is for windows in general (not msvc)
Fixes crash with MIDI file save/load.
2014-10-26 03:10:53 +01:00
Robin Gareus eb8ae5053f minimize rebuild after reconfigure:
Don't add VERSIONSTRING to the c-flags of
gtk2_ardour, use a dedicated file instead.
2014-09-06 21:18:08 +02:00
Robin Gareus a3c378cf62 move utility functions into a dedicated namespace 2014-06-25 21:47:54 +02:00
John Emmas 70755c9950 Add some stuff that's needed for an MSVC built target:-
1) Make sure we create or open any files in binary mode
2) Make sure the user can see an error message of we fail to parse the command line
3) Make sure that the call to 'windows_vst_gui_init()' matches its declaration (i.e. only applicable when NOT on PLATFORM_WINDOWS)
2014-04-15 11:01:48 +01:00
Robin Gareus 7cc5f8b321 fix prev commit (MSVC release builds) 2014-04-14 17:59:28 +02:00
Robin Gareus 18d4fd9f37 fun with the c-preprocessor. platform dependent VST support. 2014-04-14 17:54:21 +02:00
John Emmas 4336f75d3b Make sure that when building with MSVC, a Release build will launch without an annoying, floating console window 2014-04-14 16:14:06 +01:00
unknown 6cc2812f2e interim vst fixes 2014-04-11 14:23:29 -05:00
Paul Davis 3b5cc5a9fd move fixup_bundle_environment() code into per-platform files 2014-03-02 11:30:51 -05:00
Paul Davis 658bb3ccd4 finished merge of cairocanvas with windows and windows+cc branches 2014-01-10 17:11:10 -05:00
Paul Davis 3020b224fa Merge windows+cc branch into cairocanvas branch. Not finished, need to now merge windows branch to get changes from there 2014-01-10 16:07:57 -05:00
Paul Davis d135c4dc3a fix merge conflicts with master 2013-10-23 08:47:57 -04:00
Paul Davis 17cd6b4044 fix locale path in OS X bundles 2013-10-22 11:08:31 -04:00
Robin Gareus f191bdf6a0 replace rather than append to SUIL_MODULE_DIR
should fix http://tracker.ardour.org/view.php?id=5679
2013-10-19 18:16:34 +02:00
John Emmas 5568026387 'gtk2_ardour' - Harmonize '__WIN32__', 'OS_WIN32' etc, etc. Use 'PLATFORM_WINDOWS' instead 2013-10-14 17:00:28 +01:00
Paul Davis 2a6a16f980 merge with master, fixing conflicts in 3 wscript files 2013-10-09 14:00:42 -04:00
Paul Davis c727d18b80 delete the UI from main() to get full cleanup 2013-10-07 20:28:20 -04:00
Paul Davis 20fa19e69e more excision of "JACK" from labels, menu items, etc.
NOTE: users will lose the sample rate/latency display in the status bar display. Not yet sure what to do about this
2013-09-17 22:25:21 -04:00
Paul Davis bb826f4bee incomplete merge of master into windows (requires upcoming changes to master to be complete) 2013-09-12 11:28:50 -04:00
Paul Davis ee1b49f87e fix merge conflicts from master 2013-08-24 12:18:06 -04:00
Paul Davis 6bcdf4f0f1 fix merge issues with master 2013-08-14 13:10:59 -04:00
Tim Mayberry 7a431f892e Move curve test file handling in main() until after ARDOUR::init is called
This means it doesn't need to call PBD::ID::init directly, which it now
shouldn't be doing
2013-08-13 20:15:47 +10:00
Tim Mayberry 611058bf58 Remove call to PBD::ID::init as it is now done via ARDOUR::init 2013-08-13 20:15:47 +10:00
Tim Mayberry de4b24b162 Move initialization of libardour from ARDOUR_UI class into main() 2013-08-13 20:15:47 +10:00
Paul Davis fbfa0acebe remove compile errors (still will not link and JACKPortEngine is not close to done) 2013-07-30 23:26:46 -04:00
Paul Davis 3d95822716 more miscellaneous changes for audioengine, all of this is still far from actually compiling 2013-07-24 08:36:04 -04:00
Paul Davis e4ab2ffbfb Don't install signal handler for SIGPIPE in windows 2013-07-11 22:34:59 -04:00
Paul Davis 09e471545b remove direct of realpath(2), replace with canonical_path() which is a no-op on windows 2013-07-11 14:57:16 -04:00
Paul Davis 27eecdc88b Use g_setenv and g_getenv for portability 2013-07-11 11:37:25 -04:00
Robin Gareus 2b745cab64 set PATH (used for harvid+ffmpeg) 2013-06-10 22:24:19 +02:00
Julien de Kozak eb7a85b8f9 Set the revision mechanism independent from the VCS name 2013-03-18 20:13:05 +01:00
Paul Davis 30938c1dcf attempted further rationalization of clock font issues (especially fr OS X
git-svn-id: svn://localhost/ardour2/branches/3.0@14199 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-03-09 14:01:48 +00:00
Paul Davis ba73a77c63 switch to Lucida Sans Typewriter as OS X monospace font; new pingback code to get announcements from ardour.org (can be disabled on the command line with -a)
git-svn-id: svn://localhost/ardour2/branches/3.0@14189 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-03-08 16:41:45 +00:00
Paul Davis 5907f3eb03 potential fix, part two, for Tiger-based font issues. this also switches things so that building on Lion or Mountain Lion sets MAC_OS_VERSION_MIN_REQUIRED to 1070, to avoid legacy stuff
git-svn-id: svn://localhost/ardour2/branches/3.0@14179 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-03-08 03:39:58 +00:00
Paul Davis dff782989b fix OS X compilation (i hope)
git-svn-id: svn://localhost/ardour2/branches/3.0@14142 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-03-05 04:33:38 +00:00
Paul Davis 959eec5cc2 load custom mono font on OS X too
git-svn-id: svn://localhost/ardour2/branches/3.0@14140 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-03-05 03:45:44 +00:00
Robin Gareus 2865bcddd5 disable custom font loading on OSX
git-svn-id: svn://localhost/ardour2/branches/3.0@14093 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-02-23 01:55:06 +00:00
Robin Gareus db52e09032 OSX font loading
git-svn-id: svn://localhost/ardour2/branches/3.0@14090 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-02-22 15:48:44 +00:00
Paul Davis 8a78d86546 fix GTK_PATH for linux bundle
git-svn-id: svn://localhost/ardour2/branches/3.0@14086 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-02-21 22:41:32 +00:00
Paul Davis 9bbed5925d add MIDNAM (patchfiles) to child list so that they get installed
git-svn-id: svn://localhost/ardour2/branches/3.0@14057 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-02-13 19:38:47 +00:00
Paul Davis 241a9edd3e replace final(?) incidences of program name (ardour, Ardour) with PROGRAM_NAME (thanks to edgar for tracking them all down)
git-svn-id: svn://localhost/ardour2/branches/3.0@14050 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-02-05 18:18:35 +00:00
Robin Gareus 38374e7aa5 OSX CoreText font loading, updated ArdourMono font-family name
git-svn-id: svn://localhost/ardour2/branches/3.0@14042 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-31 07:41:37 +00:00
Paul Davis d1c9bc0e72 don't bother trying to set FONTCONFIG_FILE on linux if /etc/fonts stuff doesn't exist - we don't include any data to make this useful
git-svn-id: svn://localhost/ardour2/branches/3.0@14035 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-30 12:55:59 +00:00
Robin Gareus 8cce8a6d0e proper fontconfig error handling
git-svn-id: svn://localhost/ardour2/branches/3.0@14028 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-29 15:59:22 +00:00
Robin Gareus eb369215ae Custom Monospace font for clocks and such (no dot in zero).
ArdourMono is a renamed version of
https://www.google.com/webfonts/specimen/Droid+Sans+Mono
distributed under Apache License, version 2.0.
Since the name Droid(R) is registered by Google Inc it was
renamed to ArdourMono - otherwise the .tff is unchanged (build 112)

git-svn-id: svn://localhost/ardour2/branches/3.0@14026 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-29 15:25:30 +00:00
Paul Davis 4dd01105e1 remove setting of GTK_LOCALEDIR from bundle setup
git-svn-id: svn://localhost/ardour2/branches/3.0@14009 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-27 03:43:05 +00:00
Paul Davis bc2523c249 new logic for enabling translation in bundled releases of ardour
git-svn-id: svn://localhost/ardour2/branches/3.0@13980 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-23 18:44:16 +00:00
Paul Davis a8bf2e9402 more i18n fixes, this time removing a hack that broke i18n in bundles, and also only initializing NLS stuff if ENABLE_NLS is in effect. note that if translations are disabled by the user, we set the localedir used to look for message catalogs to a dir that is assumed to not exist (/this/cannot/exist) which should block all translation from happening.
git-svn-id: svn://localhost/ardour2/branches/3.0@13975 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-23 16:09:10 +00:00
Paul Davis 0058b2d866 more i18n debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@13971 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-22 15:18:16 +00:00
Paul Davis 7a4ab98f89 guard initial bindtextdomain() etc. with ENABLE_NLS for debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@13968 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-22 03:29:28 +00:00
Paul Davis 2a2b48ef66 start passing around the (possibly-bundle-modified) localedir so that we call bindtextdomain() correctly, and thus (hopefully) find message catalogs correctly inside a bundle
git-svn-id: svn://localhost/ardour2/branches/3.0@13965 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-21 23:14:00 +00:00
Paul Davis 98834c0532 remove a bunch of cerr output and/or convert to use error<<
git-svn-id: svn://localhost/ardour2/branches/3.0@13477 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-13 15:11:07 +00:00
Paul Davis fe7d01847b string fix
git-svn-id: svn://localhost/ardour2/branches/3.0@12912 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-24 12:49:53 +00:00
Tim Mayberry 105caf23da Use std::string instead of PBD::sys::path in pbd/search_path.h, pbd/file_utils.h and ardour/session_dir.h
git-svn-id: svn://localhost/ardour2/branches/3.0@12829 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23 05:06:54 +00:00
Paul Davis d4a4dc20ab fix compilation on OS X
git-svn-id: svn://localhost/ardour2/branches/3.0@12773 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-18 22:57:16 +00:00
Paul Davis a11d9d4e5a define CHARSETALIASDIR (again) to stop various bits of the GNU stack from loading a charset.alias file that we did not provide; slightly rearrange logic of fixup_bundle() so that we can do more stuff even if we can't write to the user ardour conf dir (as in 2.X)
git-svn-id: svn://localhost/ardour2/branches/3.0@12771 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-18 21:33:55 +00:00
Paul Davis 5d10ef90b8 fixup previous commit for OS X
git-svn-id: svn://localhost/ardour2/branches/3.0@12491 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-30 15:33:56 +00:00
Paul Davis 1de10f1229 more cleanups and standardization of fixup_bundle_environment() functions
git-svn-id: svn://localhost/ardour2/branches/3.0@12490 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-30 14:58:39 +00:00
Paul Davis 28e3bc3ac7 MCP: metering changes from rodrigo, makes metering work correctly on the MC Pro (also checked on the nucleus)
git-svn-id: svn://localhost/ardour2/branches/3.0@12489 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-30 14:32:27 +00:00
Paul Davis d825f20a32 explicit checks for all components of the LV2 stack
git-svn-id: svn://localhost/ardour2/branches/3.0@12465 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-28 13:51:26 +00:00
Paul Davis 59d3cc258b tweaks to packaging to make SUIL (and thus LV2 UI's) work
git-svn-id: svn://localhost/ardour2/branches/3.0@12413 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-24 01:43:58 +00:00
Paul Davis 6ee23029a3 packaging tweaks for OS X
git-svn-id: svn://localhost/ardour2/branches/3.0@12345 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-20 20:17:33 +00:00
Paul Davis 746b020d9f more tweaks to bundles, search paths and packaging
git-svn-id: svn://localhost/ardour2/branches/3.0@12339 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-20 14:23:49 +00:00
Paul Davis 03605a3a06 tweaks to dir path names for bundles
git-svn-id: svn://localhost/ardour2/branches/3.0@12336 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-20 12:51:38 +00:00