1 /* === S I N F G =========================================================== */
3 ** \brief Template File
5 ** $Id: dialog_soundselect.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === H E A D E R S ======================================================= */
31 #include "dialog_soundselect.h"
32 #include <gtkmm/table.h>
36 /* === U S I N G =========================================================== */
40 using namespace sinfg;
42 /* === M A C R O S ========================================================= */
44 /* === G L O B A L S ======================================================= */
46 /* === P R O C E D U R E S ================================================= */
48 /* === M E T H O D S ======================================================= */
50 /* === E N T R Y P O I N T ================================================= */
52 studio::Dialog_SoundSelect::Dialog_SoundSelect(Gtk::Window &parent, etl::handle<sinfgapp::CanvasInterface> ci)
53 :Dialog(_("Sound Select")),
57 Gtk::Table *table = manage(new Gtk::Table);
59 table->attach(soundfile,0,1,0,1);
60 table->attach(offset,1,2,0,1);
61 table->attach(okbutton,0,2,1,2);
64 get_vbox()->pack_start(*table);
68 okbutton.signal_clicked().connect(sigc::mem_fun(*this,&Dialog_SoundSelect::on_ok));
71 studio::Dialog_SoundSelect::~Dialog_SoundSelect()
75 void studio::Dialog_SoundSelect::on_file()
77 signal_file_changed_(soundfile.get_value());
80 void studio::Dialog_SoundSelect::on_offset()
82 signal_offset_changed_(offset.get_value());
85 void studio::Dialog_SoundSelect::on_ok()
90 signal_file_changed_(soundfile.get_value());
91 signal_offset_changed_(offset.get_value());
94 void studio::Dialog_SoundSelect::set_global_fps(float f)