1 /* === S Y N F I G ========================================================= */
2 /*! \file dialog_soundselect.cpp
3 ** \brief Template File
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 /* === H E A D E R S ======================================================= */
32 #include "dialog_soundselect.h"
33 #include <gtkmm/table.h>
37 /* === U S I N G =========================================================== */
41 using namespace synfig;
43 /* === M A C R O S ========================================================= */
45 /* === G L O B A L S ======================================================= */
47 /* === P R O C E D U R E S ================================================= */
49 /* === M E T H O D S ======================================================= */
51 /* === E N T R Y P O I N T ================================================= */
53 studio::Dialog_SoundSelect::Dialog_SoundSelect(Gtk::Window &/*parent*/, etl::handle<synfigapp::CanvasInterface> ci)
54 :Dialog(_("Sound Select")),
58 Gtk::Table *table = manage(new Gtk::Table);
60 table->attach(soundfile,0,1,0,1);
61 table->attach(offset,1,2,0,1);
62 table->attach(okbutton,0,2,1,2);
65 get_vbox()->pack_start(*table);
69 okbutton.signal_clicked().connect(sigc::mem_fun(*this,&Dialog_SoundSelect::on_ok));
72 studio::Dialog_SoundSelect::~Dialog_SoundSelect()
76 void studio::Dialog_SoundSelect::on_file()
78 signal_file_changed_(soundfile.get_value());
81 void studio::Dialog_SoundSelect::on_offset()
83 signal_offset_changed_(offset.get_value());
86 void studio::Dialog_SoundSelect::on_ok()
91 signal_file_changed_(soundfile.get_value());
92 signal_offset_changed_(offset.get_value());
95 void studio::Dialog_SoundSelect::set_global_fps(float f)