Ardour  8.7-14-g57a6773833
simple_export_dialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef _gtkardour_simple_export_dialog_h_
20 #define _gtkardour_simple_export_dialog_h_
21 
22 #include <gtkmm/button.h>
23 #include <gtkmm/combobox.h>
24 #include <gtkmm/label.h>
25 #include <gtkmm/progressbar.h>
26 
27 #include "ardour/simple_export.h"
28 
29 #include "ardour_dialog.h"
30 #include "export_preset_selector.h"
31 #include "public_editor.h"
32 
33 namespace ARDOUR {
34  class ExportHandler;
35  class ExportStatus;
36  class ExportProfileManager;
37 }
38 /* Quick Export Dialog */
40 {
41 public:
42  SimpleExportDialog (PublicEditor&, bool vapor_export = false);
43 
45 
46 protected:
47  void on_response (int response_id)
48  {
49  Gtk::Dialog::on_response (response_id);
50  }
51 
52  XMLNode& get_state () const;
53  void set_state (XMLNode const&);
54 
55 private:
56  void start_export ();
57  void close_dialog ();
58  void show_progress ();
59  void check_manager ();
60  void set_error (std::string const&);
62 
64  {
65  public:
67  {
68  add (label);
69  add (name);
70  add (start);
71  add (end);
72  }
77  };
78 
88 
90  Glib::RefPtr<Gtk::ListStore> _range_list;
91 
92  sigc::connection _progress_connection;
93  sigc::connection _preset_cfg_connection;
94 };
95 
96 #endif
virtual void on_response(int response_id)
This is a default handler for the signal signal_response().
void add(TreeModelColumnBase &column)
Representation of the interface of the Editor class.
Gtk::TreeModelColumn< samplepos_t > end
Gtk::TreeModelColumn< samplepos_t > start
Gtk::TreeModelColumn< std::string > label
Gtk::TreeModelColumn< std::string > name
ExportRangeCols _range_cols
sigc::connection _preset_cfg_connection
Glib::RefPtr< Gtk::ListStore > _range_list
Gtk::ComboBoxText _post_export_combo
SimpleExportDialog(PublicEditor &, bool vapor_export=false)
sigc::connection _progress_connection
void set_session(ARDOUR::Session *)
XMLNode & get_state() const
Gtk::ComboBox _range_combo
void on_response(int response_id)
This is a default handler for the signal signal_response().
Gtk::ProgressBar _progress_bar
void set_state(XMLNode const &)
ExportPresetSelector _eps
Gtk::Button * _cancel_button
Gtk::Button * _export_button
void set_error(std::string const &)
Definition: xml++.h:114