1 /* === S Y N F I G ========================================================= */
2 /*! \file dialogs/dialog_soundselect.h
3 ** \brief Sound Select Header
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2008 David Roden
11 ** This package is free software; you can redistribute it and/or
12 ** modify it under the terms of the GNU General Public License as
13 ** published by the Free Software Foundation; either version 2 of
14 ** the License, or (at your option) any later version.
16 ** This package is distributed in the hope that it will be useful,
17 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ** General Public License for more details.
22 /* ========================================================================= */
24 /* === S T A R T =========================================================== */
26 #ifndef __SYNFIG_DIALOG_SOUNDSELECT_H
27 #define __SYNFIG_DIALOG_SOUNDSELECT_H
29 /* === H E A D E R S ======================================================= */
30 #include "docks/dockdialog.h"
31 #include "widgets/widget_filename.h"
32 #include "widgets/widget_time.h"
34 #include <synfigapp/canvasinterface.h>
36 /* === M A C R O S ========================================================= */
38 /* === T Y P E D E F S ===================================================== */
40 /* === C L A S S E S & S T R U C T S ======================================= */
50 class Dialog_SoundSelect : public Gtk::Dialog
52 Widget_Filename soundfile;
54 Gtk::Button *okbutton;
56 etl::handle<synfigapp::CanvasInterface> canvas_interface;
58 sigc::signal<void,const std::string &> signal_file_changed_;
59 sigc::signal<void,const synfig::Time &> signal_offset_changed_;
66 Dialog_SoundSelect(Gtk::Window &parent,etl::handle<synfigapp::CanvasInterface> ci );
67 ~Dialog_SoundSelect();
69 //float get_global_fps() const { return globalfps; }
70 void set_global_fps(float f);
72 synfig::Time get_offset() const { return offset.get_value(); }
73 void set_offset(const synfig::Time &t) {offset.set_value(t); }
75 std::string get_file() const { return soundfile.get_value(); }
76 void set_file(const std::string &f) {soundfile.set_value(f); }
78 sigc::signal<void,const std::string &> &signal_file_changed() { return signal_file_changed_; }
79 sigc::signal<void,const synfig::Time &> &signal_offset_changed() { return signal_offset_changed_; }
82 }; // END of namespace studio
84 /* === E N D =============================================================== */