ec7f226cc3c410424a268fde9b1e87819a06722e
[ardour.git] / gtk2_ardour / sfdb_ui.h
1 /*
2     Copyright (C) 2005 Paul Davis 
3     Written by Taybin Rutkin
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19
20 */
21
22 #ifndef __ardour_sfdb_ui_h__
23 #define __ardour_sfdb_ui_h__
24
25 #include <string>
26 #include <vector>
27
28 #include <sigc++/signal.h>
29
30 #include <gtkmm/box.h>
31 #include <gtkmm/button.h>
32 #include <gtkmm/checkbutton.h>
33 #include <gtkmm/dialog.h>
34 #include <gtkmm/filechooserwidget.h>
35
36 #include "ardour_dialog.h"
37
38 class SoundFileBrowser : public ArdourDialog
39 {
40   public:
41     SoundFileBrowser (std::string title);
42     virtual ~SoundFileBrowser () {}
43
44   protected:
45     Gtk::FileChooserWidget chooser;
46 };
47
48 class SoundFileChooser : public SoundFileBrowser
49 {
50   public:
51     SoundFileChooser (std::string title);
52     virtual ~SoundFileChooser () {};
53
54     std::string get_filename () {return chooser.get_filename();};
55 };
56
57 class SoundFileOmega : public SoundFileBrowser
58 {
59   public:
60     SoundFileOmega (std::string title);
61     virtual ~SoundFileOmega () {};
62
63     sigc::signal<void, std::vector<std::string>, bool> Embedded;
64     sigc::signal<void, std::vector<std::string>, bool> Imported;
65
66   protected:
67     Gtk::Button embed_btn;
68     Gtk::Button import_btn;
69     Gtk::CheckButton split_check;
70
71     void embed_clicked ();
72     void import_clicked ();
73 };
74
75 #endif // __ardour_sfdb_ui_h__