1 /* === S Y N F I G ========================================================= */
2 /*! \file dialog_soundselect.h
3 ** \brief Sound Select Header
5 ** $Id: dialog_soundselect.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_DIALOG_SOUNDSELECT_H
26 #define __SYNFIG_DIALOG_SOUNDSELECT_H
28 /* === H E A D E R S ======================================================= */
29 #include "dockdialog.h"
30 #include "widget_filename.h"
31 #include "widget_time.h"
33 #include <synfigapp/canvasinterface.h>
35 /* === M A C R O S ========================================================= */
37 /* === T Y P E D E F S ===================================================== */
39 /* === C L A S S E S & S T R U C T S ======================================= */
49 class Dialog_SoundSelect : public Gtk::Dialog
51 Widget_Filename soundfile;
55 etl::handle<synfigapp::CanvasInterface> canvas_interface;
57 sigc::signal<void,const std::string &> signal_file_changed_;
58 sigc::signal<void,const synfig::Time &> signal_offset_changed_;
65 Dialog_SoundSelect(Gtk::Window &parent,etl::handle<synfigapp::CanvasInterface> ci );
66 ~Dialog_SoundSelect();
68 //float get_global_fps() const { return globalfps; }
69 void set_global_fps(float f);
71 synfig::Time get_offset() const { return offset.get_value(); }
72 void set_offset(const synfig::Time &t) {offset.set_value(t); }
74 std::string get_file() const { return soundfile.get_value(); }
75 void set_file(const std::string &f) {soundfile.set_value(f); }
77 sigc::signal<void,const std::string &> &signal_file_changed() { return signal_file_changed_; }
78 sigc::signal<void,const synfig::Time &> &signal_offset_changed() { return signal_offset_changed_; }
81 }; // END of namespace studio
83 /* === E N D =============================================================== */