1 /* === S I N F 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 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 /* === S T A R T =========================================================== */
24 #ifndef __SINFG_DIALOG_SOUNDSELECT_H
25 #define __SINFG_DIALOG_SOUNDSELECT_H
27 /* === H E A D E R S ======================================================= */
28 #include "dockdialog.h"
29 #include "widget_filename.h"
30 #include "widget_time.h"
32 #include <sinfgapp/canvasinterface.h>
34 /* === M A C R O S ========================================================= */
36 /* === T Y P E D E F S ===================================================== */
38 /* === C L A S S E S & S T R U C T S ======================================= */
48 class Dialog_SoundSelect : public Gtk::Dialog
50 Widget_Filename soundfile;
54 etl::handle<sinfgapp::CanvasInterface> canvas_interface;
56 sigc::signal<void,const std::string &> signal_file_changed_;
57 sigc::signal<void,const sinfg::Time &> signal_offset_changed_;
64 Dialog_SoundSelect(Gtk::Window &parent,etl::handle<sinfgapp::CanvasInterface> ci );
65 ~Dialog_SoundSelect();
67 //float get_global_fps() const { return globalfps; }
68 void set_global_fps(float f);
70 sinfg::Time get_offset() const { return offset.get_value(); }
71 void set_offset(const sinfg::Time &t) {offset.set_value(t); }
73 std::string get_file() const { return soundfile.get_value(); }
74 void set_file(const std::string &f) {soundfile.set_value(f); }
76 sigc::signal<void,const std::string &> &signal_file_changed() { return signal_file_changed_; }
77 sigc::signal<void,const sinfg::Time &> &signal_offset_changed() { return signal_offset_changed_; }
80 }; // END of namespace studio
82 /* === E N D =============================================================== */