ExportDialog compiles. Removed gtkmm.h's.
[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 class SoundFileBrowser : public Gtk::Dialog
37 {
38   public:
39     SoundFileBrowser (std::string title);
40     virtual ~SoundFileBrowser () {}
41
42   protected:
43     Gtk::FileChooserWidget chooser;
44 };
45
46 class SoundFileChooser : public SoundFileBrowser
47 {
48   public:
49     SoundFileChooser (std::string title);
50     virtual ~SoundFileChooser () {};
51
52     std::string get_filename () {return chooser.get_filename();};
53 };
54
55 class SoundFileOmega : public SoundFileBrowser
56 {
57   public:
58     SoundFileOmega (std::string title);
59     virtual ~SoundFileOmega () {};
60
61     sigc::signal<void, std::vector<std::string>, bool> Embedded;
62     sigc::signal<void, std::vector<std::string>, bool> Imported;
63
64   protected:
65     Gtk::Button embed_btn;
66     Gtk::Button import_btn;
67     Gtk::CheckButton split_check;
68
69     void embed_clicked ();
70     void import_clicked ();
71 };
72
73 #endif // __ardour_sfdb_ui_h__