2005-10-27 15:46:27 -04:00
|
|
|
/*
|
|
|
|
Copyright (C) 2005 Paul Davis
|
|
|
|
Written by Taybin Rutkin
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2005-10-12 16:06:20 -04:00
|
|
|
#ifndef __ardour_sfdb_ui_h__
|
|
|
|
#define __ardour_sfdb_ui_h__
|
|
|
|
|
|
|
|
#include <string>
|
2005-10-12 17:59:45 -04:00
|
|
|
#include <vector>
|
2005-10-12 16:06:20 -04:00
|
|
|
|
2005-10-12 23:48:57 -04:00
|
|
|
#include <sigc++/signal.h>
|
|
|
|
|
|
|
|
#include <gtkmm/box.h>
|
2005-10-12 17:59:45 -04:00
|
|
|
#include <gtkmm/button.h>
|
2005-10-12 23:48:57 -04:00
|
|
|
#include <gtkmm/checkbutton.h>
|
2005-10-12 17:59:45 -04:00
|
|
|
#include <gtkmm/dialog.h>
|
|
|
|
#include <gtkmm/filechooserwidget.h>
|
2005-10-12 16:06:20 -04:00
|
|
|
|
2005-10-12 17:59:45 -04:00
|
|
|
class SoundFileBrowser : public Gtk::Dialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SoundFileBrowser (std::string title);
|
2005-10-12 23:48:57 -04:00
|
|
|
virtual ~SoundFileBrowser () {}
|
2005-10-12 17:59:45 -04:00
|
|
|
|
|
|
|
protected:
|
2005-10-12 23:48:57 -04:00
|
|
|
Gtk::FileChooserWidget chooser;
|
2005-10-12 17:59:45 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
class SoundFileChooser : public SoundFileBrowser
|
2005-10-12 16:06:20 -04:00
|
|
|
{
|
|
|
|
public:
|
2005-10-12 17:59:45 -04:00
|
|
|
SoundFileChooser (std::string title);
|
2005-10-12 23:48:57 -04:00
|
|
|
virtual ~SoundFileChooser () {};
|
2005-10-12 17:59:45 -04:00
|
|
|
|
2005-10-12 23:48:57 -04:00
|
|
|
std::string get_filename () {return chooser.get_filename();};
|
2005-10-12 16:06:20 -04:00
|
|
|
};
|
|
|
|
|
2005-10-12 23:48:57 -04:00
|
|
|
class SoundFileOmega : public SoundFileBrowser
|
2005-10-12 17:59:45 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
SoundFileOmega (std::string title);
|
2005-10-12 23:48:57 -04:00
|
|
|
virtual ~SoundFileOmega () {};
|
2005-10-12 17:59:45 -04:00
|
|
|
|
2005-10-12 23:48:57 -04:00
|
|
|
sigc::signal<void, std::vector<std::string>, bool> Embedded;
|
|
|
|
sigc::signal<void, std::vector<std::string>, bool> Imported;
|
2005-10-12 17:59:45 -04:00
|
|
|
|
|
|
|
protected:
|
2005-10-12 23:48:57 -04:00
|
|
|
Gtk::Button embed_btn;
|
|
|
|
Gtk::Button import_btn;
|
|
|
|
Gtk::CheckButton split_check;
|
|
|
|
|
|
|
|
void embed_clicked ();
|
|
|
|
void import_clicked ();
|
|
|
|
};
|
2005-10-12 17:59:45 -04:00
|
|
|
|
2005-10-12 16:06:20 -04:00
|
|
|
#endif // __ardour_sfdb_ui_h__
|