Use conf.fatal for fatal configuration errors
[ardour.git] / gtk2_ardour / session_import_dialog.h
index b31751115f4ede5d4641a45248209a14739517fc..ad1ba9099014795ec3937d32a59fe16d5dd3124f 100644 (file)
@@ -1,22 +1,23 @@
 /*
-    Copyright (C) 2008 Paul Davis
-    Author: Sakari Bergen
-
-    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.
-
-*/
+ * Copyright (C) 2008-2009 Sakari Bergen <sakari.bergen@beatwaves.net>
+ * Copyright (C) 2009-2012 David Robillard <d@drobilla.net>
+ * Copyright (C) 2009-2017 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2017 Robin Gareus <robin@gareus.org>
+ *
+ * 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.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
 
 #ifndef __session_import_dialog_h__
 #define __session_import_dialog_h__
 #include <utility>
 
 #include <boost/shared_ptr.hpp>
-#include <gtkmm.h>
+
+#include <gtkmm/box.h>
+#include <gtkmm/button.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/filechooserdialog.h>
+#include <gtkmm/frame.h>
+#include <gtkmm/scrolledwindow.h>
+#include <gtkmm/treemodel.h>
+#include <gtkmm/treestore.h>
+#include <gtkmm/treeview.h>
 
 #include "pbd/xml++.h"
 
@@ -39,19 +49,19 @@ namespace ARDOUR {
 
 class SessionImportDialog : public ArdourDialog
 {
-  private:
+private:
        typedef boost::shared_ptr<ARDOUR::ElementImportHandler> HandlerPtr;
        typedef std::list<HandlerPtr> HandlerList;
 
        typedef boost::shared_ptr<ARDOUR::ElementImporter> ElementPtr;
        typedef std::list<ElementPtr> ElementList;
 
-  public:
+public:
        SessionImportDialog (ARDOUR::Session* target);
 
        virtual Gtk::FileChooserAction browse_action() const { return Gtk::FILE_CHOOSER_ACTION_OPEN; }
 
-  private:
+private:
 
        void load_session (const std::string& filename);
        void fill_list ();
@@ -77,12 +87,12 @@ class SessionImportDialog : public ArdourDialog
        struct SessionBrowserColumns : public Gtk::TreeModel::ColumnRecord
        {
        public:
-         Gtk::TreeModelColumn<std::string>    name;
-         Gtk::TreeModelColumn<bool>           queued;
-         Gtk::TreeModelColumn<ElementPtr>     element;
-         Gtk::TreeModelColumn<std::string>    info;
+               Gtk::TreeModelColumn<std::string>    name;
+               Gtk::TreeModelColumn<bool>           queued;
+               Gtk::TreeModelColumn<ElementPtr>     element;
+               Gtk::TreeModelColumn<std::string>    info;
 
-         SessionBrowserColumns() { add (name); add (queued); add (element); add (info); }
+               SessionBrowserColumns() { add (name); add (queued); add (element); add (info); }
        };
 
        SessionBrowserColumns         sb_cols;