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>
39 /* === U S I N G =========================================================== */
43 using namespace synfig;
45 /* === M A C R O S ========================================================= */
47 /* === G L O B A L S ======================================================= */
49 /* === P R O C E D U R E S ================================================= */
51 /* === M E T H O D S ======================================================= */
53 /* === E N T R Y P O I N T ================================================= */
55 studio::Dialog_SoundSelect::Dialog_SoundSelect(Gtk::Window &/*parent*/, etl::handle<synfigapp::CanvasInterface> ci)
56 :Dialog(_("Sound Select")),
60 Gtk::Table *table = manage(new Gtk::Table);
62 table->attach(soundfile,0,1,0,1);
63 table->attach(offset,1,2,0,1);
64 table->attach(okbutton,0,2,1,2);
67 get_vbox()->pack_start(*table);
71 okbutton.signal_clicked().connect(sigc::mem_fun(*this,&Dialog_SoundSelect::on_ok));
74 studio::Dialog_SoundSelect::~Dialog_SoundSelect()
78 void studio::Dialog_SoundSelect::on_file()
80 signal_file_changed_(soundfile.get_value());
83 void studio::Dialog_SoundSelect::on_offset()
85 signal_offset_changed_(offset.get_value());
88 void studio::Dialog_SoundSelect::on_ok()
93 signal_file_changed_(soundfile.get_value());
94 signal_offset_changed_(offset.get_value());
97 void studio::Dialog_SoundSelect::set_global_fps(float f)