|
Carlos Lopez |
a09598 |
/* === S Y N F I G ========================================================= */
|
|
Nikita Kitaev |
76ba27 |
/*! \file dialogs/dialog_soundselect.h
|
|
Carlos Lopez |
a09598 |
** \brief Sound Select Header
|
|
Carlos Lopez |
a09598 |
**
|
|
Carlos Lopez |
a09598 |
** $Id$
|
|
Carlos Lopez |
a09598 |
**
|
|
Carlos Lopez |
a09598 |
** \legal
|
|
Carlos Lopez |
a09598 |
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
|
|
Carlos Lopez |
a09598 |
** Copyright (c) 2008 David Roden
|
|
Carlos Lopez |
a09598 |
**
|
|
Carlos Lopez |
a09598 |
** This package is free software; you can redistribute it and/or
|
|
Carlos Lopez |
a09598 |
** modify it under the terms of the GNU General Public License as
|
|
Carlos Lopez |
a09598 |
** published by the Free Software Foundation; either version 2 of
|
|
Carlos Lopez |
a09598 |
** the License, or (at your option) any later version.
|
|
Carlos Lopez |
a09598 |
**
|
|
Carlos Lopez |
a09598 |
** This package is distributed in the hope that it will be useful,
|
|
Carlos Lopez |
a09598 |
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Carlos Lopez |
a09598 |
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Carlos Lopez |
a09598 |
** General Public License for more details.
|
|
Carlos Lopez |
a09598 |
** \endlegal
|
|
Carlos Lopez |
a09598 |
*/
|
|
Carlos Lopez |
a09598 |
/* ========================================================================= */
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* === S T A R T =========================================================== */
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#ifndef __SYNFIG_DIALOG_SOUNDSELECT_H
|
|
Carlos Lopez |
a09598 |
#define __SYNFIG_DIALOG_SOUNDSELECT_H
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* === H E A D E R S ======================================================= */
|
|
Nikita Kitaev |
5fe12e |
#include "docks/dockdialog.h"
|
|
Nikita Kitaev |
3c2324 |
#include "widgets/widget_filename.h"
|
|
Nikita Kitaev |
3c2324 |
#include "widgets/widget_time.h"
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#include <synfigapp canvasinterface.h=""></synfigapp>
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* === M A C R O S ========================================================= */
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* === T Y P E D E F S ===================================================== */
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* === C L A S S E S & S T R U C T S ======================================= */
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
namespace studio {
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
struct AudioBaseInfo
|
|
Carlos Lopez |
a09598 |
{
|
|
Carlos Lopez |
a09598 |
std::string file;
|
|
Carlos Lopez |
a09598 |
synfig::Time offset;
|
|
Carlos Lopez |
a09598 |
};
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
class Dialog_SoundSelect : public Gtk::Dialog
|
|
Carlos Lopez |
a09598 |
{
|
|
Carlos Lopez |
a09598 |
Widget_Filename soundfile;
|
|
Carlos Lopez |
a09598 |
Widget_Time offset;
|
|
Carlos Lopez |
a09598 |
Gtk::Button *okbutton;
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
etl::handle<synfigapp::canvasinterface> canvas_interface;</synfigapp::canvasinterface>
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
sigc::signal<void,const &="" std::string=""> signal_file_changed_;</void,const>
|
|
Carlos Lopez |
a09598 |
sigc::signal<void,const &="" synfig::time=""> signal_offset_changed_;</void,const>
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
void on_file();
|
|
Carlos Lopez |
a09598 |
void on_offset();
|
|
Carlos Lopez |
a09598 |
void on_ok();
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
public:
|
|
Carlos Lopez |
a09598 |
Dialog_SoundSelect(Gtk::Window &parent,etl::handle<synfigapp::canvasinterface> ci );</synfigapp::canvasinterface>
|
|
Carlos Lopez |
a09598 |
~Dialog_SoundSelect();
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
//float get_global_fps() const { return globalfps; }
|
|
Carlos Lopez |
a09598 |
void set_global_fps(float f);
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
synfig::Time get_offset() const { return offset.get_value(); }
|
|
Carlos Lopez |
a09598 |
void set_offset(const synfig::Time &t) {offset.set_value(t); }
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
std::string get_file() const { return soundfile.get_value(); }
|
|
Carlos Lopez |
a09598 |
void set_file(const std::string &f) {soundfile.set_value(f); }
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
sigc::signal<void,const &="" std::string=""> &signal_file_changed() { return signal_file_changed_; }</void,const>
|
|
Carlos Lopez |
a09598 |
sigc::signal<void,const &="" synfig::time=""> &signal_offset_changed() { return signal_offset_changed_; }</void,const>
|
|
Carlos Lopez |
a09598 |
};
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
}; // END of namespace studio
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
/* === E N D =============================================================== */
|
|
Carlos Lopez |
a09598 |
|
|
Carlos Lopez |
a09598 |
#endif
|