diff options
author | Carl Hetherington <carl@carlh.net> | 2009-04-29 17:05:42 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-04-29 17:05:42 +0000 |
commit | 9e776feac62e7a9609a29fa233f21d5278475a9d (patch) | |
tree | 388f298b35807462380f2115acd289e67a5e0f70 /gtk2_ardour/strip_silence_dialog.h | |
parent | 459c43951238fd771231f840733468b84079dcdc (diff) |
Add files missing from previous commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@5011 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/strip_silence_dialog.h')
-rw-r--r-- | gtk2_ardour/strip_silence_dialog.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gtk2_ardour/strip_silence_dialog.h b/gtk2_ardour/strip_silence_dialog.h new file mode 100644 index 0000000000..faf52c268a --- /dev/null +++ b/gtk2_ardour/strip_silence_dialog.h @@ -0,0 +1,45 @@ +/* + Copyright (C) 2009 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#include <gtkmm/spinbutton.h> +#include "ardour_dialog.h" + +/// Dialog box to set options for the `strip silence' filter +class StripSilenceDialog : public ArdourDialog +{ +public: + StripSilenceDialog (); + + double threshold () const { + return _threshold.get_value (); + } + + nframes_t minimum_length () const { + return _minimum_length.get_value_as_int (); + } + + nframes_t fade_length () const { + return _fade_length.get_value_as_int (); + } + +private: + Gtk::SpinButton _threshold; + Gtk::SpinButton _minimum_length; + Gtk::SpinButton _fade_length; +}; |