2005-10-12 20:06:20 +00:00
|
|
|
#ifndef __ardour_sfdb_ui_h__
|
|
|
|
|
#define __ardour_sfdb_ui_h__
|
|
|
|
|
|
|
|
|
|
#include <string>
|
2005-10-12 21:59:45 +00:00
|
|
|
#include <vector>
|
2005-10-12 20:06:20 +00:00
|
|
|
|
2005-10-13 03:48:57 +00:00
|
|
|
#include <sigc++/signal.h>
|
|
|
|
|
|
|
|
|
|
#include <gtkmm/box.h>
|
2005-10-12 21:59:45 +00:00
|
|
|
#include <gtkmm/button.h>
|
2005-10-13 03:48:57 +00:00
|
|
|
#include <gtkmm/checkbutton.h>
|
2005-10-12 21:59:45 +00:00
|
|
|
#include <gtkmm/dialog.h>
|
|
|
|
|
#include <gtkmm/filechooserwidget.h>
|
2005-10-12 20:06:20 +00:00
|
|
|
|
2005-10-12 21:59:45 +00:00
|
|
|
class SoundFileBrowser : public Gtk::Dialog
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
SoundFileBrowser (std::string title);
|
2005-10-13 03:48:57 +00:00
|
|
|
virtual ~SoundFileBrowser () {}
|
2005-10-12 21:59:45 +00:00
|
|
|
|
|
|
|
|
protected:
|
2005-10-13 03:48:57 +00:00
|
|
|
Gtk::FileChooserWidget chooser;
|
2005-10-12 21:59:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class SoundFileChooser : public SoundFileBrowser
|
2005-10-12 20:06:20 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2005-10-12 21:59:45 +00:00
|
|
|
SoundFileChooser (std::string title);
|
2005-10-13 03:48:57 +00:00
|
|
|
virtual ~SoundFileChooser () {};
|
2005-10-12 21:59:45 +00:00
|
|
|
|
2005-10-13 03:48:57 +00:00
|
|
|
std::string get_filename () {return chooser.get_filename();};
|
2005-10-12 20:06:20 +00:00
|
|
|
};
|
|
|
|
|
|
2005-10-13 03:48:57 +00:00
|
|
|
class SoundFileOmega : public SoundFileBrowser
|
2005-10-12 21:59:45 +00:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
SoundFileOmega (std::string title);
|
2005-10-13 03:48:57 +00:00
|
|
|
virtual ~SoundFileOmega () {};
|
2005-10-12 21:59:45 +00:00
|
|
|
|
2005-10-13 03:48:57 +00:00
|
|
|
sigc::signal<void, std::vector<std::string>, bool> Embedded;
|
|
|
|
|
sigc::signal<void, std::vector<std::string>, bool> Imported;
|
2005-10-12 21:59:45 +00:00
|
|
|
|
|
|
|
|
protected:
|
2005-10-13 03:48:57 +00:00
|
|
|
Gtk::Button embed_btn;
|
|
|
|
|
Gtk::Button import_btn;
|
|
|
|
|
Gtk::CheckButton split_check;
|
|
|
|
|
|
|
|
|
|
void embed_clicked ();
|
|
|
|
|
void import_clicked ();
|
|
|
|
|
};
|
2005-10-12 21:59:45 +00:00
|
|
|
|
2005-10-12 20:06:20 +00:00
|
|
|
#endif // __ardour_sfdb_ui_h__
|