2 Copyright (C) 2005 Paul Davis
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.
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.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef NEW_SESSION_DIALOG_H
24 #define NEW_SESSION_DIALOG_H
27 #include <gtkmm/dialog.h>
28 #include <glibmm/refptr.h>
32 class FileChooserButton;
38 #include "glade_factory.h"
40 struct NewSessionDialogFactory : public GladeFactory
42 static GladeRef create();
44 static const char* top_level_widget_name();
48 static const char* s_m_top_level_widget_name;
52 class NewSessionDialog : public Gtk::Dialog
56 NewSessionDialog(BaseObjectType* cobject,
57 const Glib::RefPtr<Gnome::Glade::Xml>& xml);
59 void set_session_name(const Glib::ustring& name);
61 std::string session_name() const;
62 std::string session_folder() const;
64 bool use_session_template() const;
65 std::string session_template_name() const;
69 bool create_master_bus() const;
70 int master_channel_count() const;
72 bool create_control_bus() const;
73 int control_channel_count() const;
75 bool connect_inputs() const;
76 bool limit_inputs_used_for_connection() const;
77 int input_limit_count() const;
79 bool connect_outputs() const;
80 bool limit_outputs_used_for_connection() const;
81 int output_limit_count() const;
83 bool connect_outs_to_master() const;
84 bool connect_outs_to_physical() const ;
89 void reset_template();
91 // reset everything to default values.
94 // references to widgets we care about.
97 Gtk::FileChooserButton* m_folder;
98 Gtk::FileChooserButton* m_template;
100 Gtk::CheckButton* m_create_master_bus;
101 Gtk::SpinButton* m_master_bus_channel_count;
103 Gtk::CheckButton* m_create_control_bus;
104 Gtk::SpinButton* m_control_bus_channel_count;
106 Gtk::CheckButton* m_connect_inputs;
107 Gtk::CheckButton* m_limit_input_ports;
108 Gtk::SpinButton* m_input_limit_count;
110 Gtk::CheckButton* m_connect_outputs;
111 Gtk::CheckButton* m_limit_output_ports;
112 Gtk::SpinButton* m_output_limit_count;
114 Gtk::RadioButton* m_connect_outputs_to_master;
115 Gtk::RadioButton* m_connect_outputs_to_physical;
119 #endif // NEW_SESSION_DIALOG_H