summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_freesound_mootcher.cc
AgeCommit message (Collapse)Author
2019-04-13NO-OP: whitespaceRobin Gareus
This fixes mostly <tab> after <space> and similar <tab> not used for indenting as well as some related code alignment issues.
2017-08-31Call curl_global_init() exactly only once (1/2)Robin Gareus
2016-09-13Rename Struct defined in freesound header to be less genericTim Mayberry
This could potentially conflict with a struct declared in the ardour/soundcloud_upload.h file.
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2015-10-05use quotes for in-tree pbd/glib wrapper includeRobin Gareus
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-10-04globally remove all trailing whitespace from ardour code base.Paul Davis
Paul Davis was responsible for introducing almost all of this.
2015-09-17use pbd's gstdio compatibility wrapper (GUI)Robin Gareus
2014-12-28Remove pointless register specifier and warning.David Robillard
2014-05-23Fix MS-DOS line endingsColin Fletcher
Somehow sfdb_freesound_mootcher.cc has ended up with MS-DOS style line endings again. Put it back to UNIX-style.
2013-10-14'gtk2_ardour' - Harmonize '__WIN32__', 'OS_WIN32' etc, etc. Use ↵John Emmas
'PLATFORM_WINDOWS' instead
2013-06-21Amend comment to 'delete this'Colin Fletcher
Amend comment to 'delete this' to describe why I think it's OK.
2013-06-21Use connect(..., gui_thread()) rather than g_idle_add().Colin Fletcher
Use the proper functions to ensure things happen in the main gui thread, instead of fudging around with g_idle_add().
2013-06-21Further Freesound tweaks.Colin Fletcher
Make download of sound files multi-threaded. Each sound file download takes place in its own thread, and has its own progress bar and cancel button, which stack up from the bottom of the list of results. Sound files download into a file with a '.part' suffix, which is then renamed to the intended name on success. Add a 'Similar' button, which searches Freesound for sounds similar to the currently-selected sound in the results list.
2013-06-21Use config variable for Freesound download folder location.Colin Fletcher
Use the new freesound-download-dir config variable to decide the location of sound files downloaded from Freesound. Move the Windows-specific logic to replace '/'s with '\'s from Mootcher::changeWorkingDir() to Mootcher::ensureWorkingDir(), and remove the now unused Mootcher::changeWorkingDir(). Use Glib::build_filename to construct the path.
2013-03-17Freesound fixes for #5853, and a few other small improvementsColin Fletcher
Add a 'More' button to load the next page of results without clearing the already-found list. Don't allow cancellation of searches, and don't update progress bar around searches, since we only get one page at a time now. Show number of pages of results remaining to download in the tooltip of the 'More' button. Use a new Mootcher object for each request, to avoid bad things happening when clicking in the Freesound search results list while a search or file download is already in progress. Make the 'Stop' button insensitive except when it will actually stop the download of a sound file. Only retrieve one page worth of data per search, rather than looping to get all pages. Don't show an error in the log window if the user cancelled download. Request 100 items per page, rather than the default 30. Fix DOS line endings.
2012-12-21freesound display licenseRobin Gareus
git-svn-id: svn://localhost/ardour2/branches/3.0@13701 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-21freesound import - various small tweaksRobin Gareus
* quote search string * show filesize * include samplerate in list * filter out mp3s on Linux * decrease layout-spacing and shorten progressbar txt. git-svn-id: svn://localhost/ardour2/branches/3.0@13700 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-21fix freesound URL parameter escapeRobin Gareus
git-svn-id: svn://localhost/ardour2/branches/3.0@13698 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-13remove a bunch of cerr output and/or convert to use error<<Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@13477 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Replace use of pbd/filesystem.h with Glib equivalent in Mootcher classTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12886 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-02a variety of mostly unused parameter errors from OS X Lion's compilerPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@12148 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-07Clean up possibly-null pointer dereference (#4812).Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11813 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-05various tweaks to Freesound UI and code. keep a single mootcher to speed up ↵Ben Loftis
operations; add text to progress bar, stop storing xml files, auto-increment pages until user clicks stop. git-svn-id: svn://localhost/ardour2/branches/3.0@11801 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-03-13use g_fopen()Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@11670 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-03-09Freesound tweaks from colinf (#4761).Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11636 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-18colinf's 2011-12-08 patch for freesound mootcher (add stop, remove URI, ↵Paul Davis
clear barberpole, etc) git-svn-id: svn://localhost/ardour2/branches/3.0@11265 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-12-27Create Freesound working directory a little more lazily soCarl Hetherington
that a Freesound directory doesn't appear in /home/carl without ever using Freesound. git-svn-id: svn://localhost/ardour2/branches/3.0@11090 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-11-14the return of basic FreeSound mootcher functionality, c/o colinf. lots of ↵Paul Davis
bugs and workflow issues to still resolve, but good to play with. remember that ardour can't play mp3's git-svn-id: svn://localhost/ardour2/branches/3.0@10596 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-06-01Delete trailing whitespaceDavid Robillard
git-svn-id: svn://localhost/ardour2/branches/3.0@9656 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-01freesound mootcher patch from donf, from 2.XPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@5701 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-06-13Missing namespacesSampo Savolainen
git-svn-id: svn://localhost/ardour2/branches/3.0@5176 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-25*** NEW CODING POLICY ***David Robillard
All #include statements that include a header that is a part of a library bundled with ardour MUST use quotes, not angle brackets. Do this: #include "ardour/types.h" NOT this: #include <ardour/types.h> Rationale: This is best practice in general, to ensure we include the local version and not the system version. That quotes mean "local" (in some sense) and angle brackets mean "system" (in some sense) is a ubiquitous convention and IIRC right in the C spec somewhere. More pragmatically, this is required by (my) waf (stuff) for dependencies to work correctly. That is: !!! FAILURE TO DO THIS CAN RESULT IN BROKEN BUILDS !!! Failure to comply is punishable by death by torture. :) P.S. It's not that dramatic in all cases, but this (in combination with some GCC flags specific to the include type) is the best way I have found to be absolutely 100% positive the local ones are being used (and we definitely want to be absolutely 100% positive on that one). git-svn-id: svn://localhost/ardour2/branches/3.0@4655 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-10fix URL's for freesound (debian patch)Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@3907 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-04-11merge 3.0 from 2.0-ongoing@3243Paul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@3248 d708f5d6-7413-0410-9779-e7cbd77b26cf