Commit graph

14433 commits

Author SHA1 Message Date
Tim Mayberry
94d8dfa256 Add utility function to test lib to create a test directory
There is an identical function in libardour test support lib so we
should probably find a better place to put this at some point
2014-06-25 12:40:11 -04:00
Tim Mayberry
3b1a98f0ec Change PBD::get_files and PBD::get_paths to take a Searchpath instead of directory path
Both these functions use the internal function run_functor_for_paths
which takes a Searchpath so this avoids a temporary variable in cases
where a Searchpath is passed directly.

The usage is the same as the compiler will generate a temporary Searchpath
from a string(directory path) if necessary.
2014-06-25 12:40:11 -04:00
Tim Mayberry
6d0cce528e Add/Update docs in pbd/file_utils.h 2014-06-25 12:40:11 -04:00
Tim Mayberry
851db83fc4 Use run_functor_for_paths in PBD::get_paths 2014-06-25 12:40:10 -04:00
Tim Mayberry
ba484f1e1f Fix finding icon sets by using correct utility function 2014-06-25 12:40:10 -04:00
Tim Mayberry
04434f2b88 Rename PBD::get_files_in_directory to just PBD::get_files, change parameter order and fix docs 2014-06-25 12:40:10 -04:00
Tim Mayberry
84d190b7cc Rename PBD::get_directory_contents to PBD::get_paths
shorter name and change order of parameters to match other functions
2014-06-25 12:40:10 -04:00
Tim Mayberry
26ec4038af Use run_functor_for_paths in PBD::find_files_matching_pattern 2014-06-25 12:40:10 -04:00
Tim Mayberry
a7ce765b0b Fix finding of bundled LV2 plugins 2014-06-25 12:40:10 -04:00
Tim Mayberry
24599c552d Add function PBD::find_paths_matching_filter 2014-06-25 12:40:10 -04:00
Tim Mayberry
54c0a0144c Use run_functor_for_paths in PBD::find_files_matching_filter 2014-06-25 12:40:10 -04:00
Tim Mayberry
e7141d2b80 Add function to file_utils intended to be used internally 2014-06-25 12:40:10 -04:00
Tim Mayberry
ab6837665f Add some debug output in file_utils.cc 2014-06-25 12:40:10 -04:00
Tim Mayberry
e6c4b0e9e4 Remove reference to strtok_r now that it isn't used 2014-06-25 12:40:10 -04:00
Tim Mayberry
a226068959 Change formatting of DEBUG_TRACE calls to match style guide 2014-06-25 12:40:10 -04:00
Tim Mayberry
cb3a604936 Move functions in pbd/clear_dir.h/cc into pbd/file_utils.h/cc 2014-06-25 12:40:10 -04:00
Tim Mayberry
257897392a Add remove_directory_internal function and use it in PBD::clear_directory and PBD::remove_directory 2014-06-25 12:40:10 -04:00
Tim Mayberry
64856a5862 Reimplement PBD::clear_dir using PBD::get_directory_contents 2014-06-25 12:40:10 -04:00
Tim Mayberry
cd12698b9c Rename PBD::find_file_in_search_path to just PBD::find_file
saves a bit of typing and not necessary if you look at how it is used.
2014-06-25 12:40:10 -04:00
Tim Mayberry
8d0cba3384 Use PBD::find_files_matching_pattern instead of other variations 2014-06-25 12:40:10 -04:00
Tim Mayberry
36fd67ab72 Add a variation of PBD::find_files_matching_pattern for convenience 2014-06-25 12:40:10 -04:00
Tim Mayberry
077c09b105 Add new function PBD::find_files_matching_pattern
This new function is intended to replace the three existing
PBD::find_matching_files_* functions.

The order of parameters matches find_files_matching_regex and
find_files_matching_filter
2014-06-25 12:40:10 -04:00
Tim Mayberry
d9a7d419b2 Change PBD::find_files_matching_regex and PBD::find_files_matching_filter to take a Searchpath 2014-06-25 12:40:10 -04:00
Tim Mayberry
613162df6b Reimplement PBD::find_files_matching_filter using SearchPath and get_directory_contents 2014-06-25 12:40:10 -04:00
Tim Mayberry
56337eade4 Remove limit parameter from PBD::find_files_matching_regex
This limit was not used or documented. The same functionality can be
performed when iterating through the results.
2014-06-25 12:40:10 -04:00
Tim Mayberry
0189ad7e29 Remove parameters from PBD::find_files_matching_regex
The only users of this API always used the same options so just remove
them.
2014-06-25 12:40:09 -04:00
Tim Mayberry
769ee5c1f2 Change PBD::get_files_in_directory to return full paths in result
get_files_in_directory uses get_directory_contents internally now
2014-06-25 12:40:09 -04:00
Tim Mayberry
d1dd5d3ee7 Add PBD::get_directory_contents to pbd/file_utils.h 2014-06-25 12:40:09 -04:00
Tim Mayberry
c1ff79e2e6 GLib functions for listing directory contents don't include "." or ".." entries 2014-06-25 12:40:09 -04:00
Paul Davis
3f776ce7d9 fix incorrect cut-n-paste across synergy 2014-06-25 12:30:57 -04:00
Paul Davis
66af3fbda0 add slider control to GUI tab of preferences for lock timeout 2014-06-25 12:12:01 -04:00
Paul Davis
a2404382e9 expose Gtk::HScale member of OptionEditor::HSliderOption 2014-06-25 12:11:43 -04:00
Paul Davis
6998cb1f13 part two of: lock dialog MUST be a Gtk::Dialog so that it does not forward key (or other) events to the Editor 2014-06-25 12:10:56 -04:00
Paul Davis
66be061449 lock dialog MUST be a Gtk::Dialog so that it does not forward key (or other) events to the Editor 2014-06-25 11:47:35 -04:00
Paul Davis
036740b0c8 check UIConfig variable before restarting lock timeout 2014-06-25 11:34:58 -04:00
Paul Davis
b43d3fe8d7 add UIConfig variable for lock timer 2014-06-25 11:34:37 -04:00
Paul Davis
9b7b5fc9bc wscript fix for wavesaudio backend - use correct name for CoreM[iI][dD][iI] framework on Lion and other versions 2014-06-25 08:29:23 -04:00
Paul Davis
d5ef8f5f1e new timer-based GUI locking code 2014-06-25 08:28:36 -04:00
Paul Davis
1945260cd6 there's no me in proaudio 2014-06-24 12:48:24 -04:00
Ben Loftis
663f9827f9 last piece of scroll-wheel checkin, oops 2014-06-24 10:46:53 -05:00
Ben Loftis
2cc25a9d79 add scroll wheel handler to canvas 2014-06-24 10:33:28 -05:00
Paul Davis
4bba1059e8 actual style specs for lock dialog button 2014-06-24 11:26:33 -04:00
Paul Davis
6a4a294167 a bit more styling for that lock dialog 2014-06-24 11:26:21 -04:00
Paul Davis
e3a33330a4 rename closed padlock icon 2014-06-24 11:02:59 -04:00
Paul Davis
1e160bca9a new padlock icons (48x48) 2014-06-24 11:01:41 -04:00
Paul Davis
a12f43fa46 add a modal lock dialog for better testing (and someone might find it useful, too) 2014-06-24 10:14:07 -04:00
Paul Davis
f147846863 add ability to save current action sensitivities and restore them, and to disable all action sensitivity.
This is needed to be able to lock the application fully on OS X, where the global menu bar would still allow interaction
even when a modal dialog is displayed.
2014-06-24 09:56:16 -04:00
Paul Davis
dae3b26f18 playing with oofus' preferences for selected region coloring 2014-06-24 09:56:16 -04:00
Robin Gareus
5b5e8df627 fix f6aaa16 (boost shared pointer) 2014-06-24 01:09:12 +02:00
Paul Davis
199ac89d40 return of the zero line 2014-06-23 15:24:08 -04:00