diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-10-11 10:14:51 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-10-11 10:14:51 +0000 |
commit | 98389f7da420ee205f6827b7df4db3ea0802f751 (patch) | |
tree | 28a28cf591b3d90a7eb60f422eee95e5ebfed6dc /libs/ardour/ardour/export_channel_configuration.h | |
parent | 01b1790c98f9ee6739681f1dc8fe529c3ca7160a (diff) |
Region export dialog: Make export channel and -selector polymorphic, add the region related classes and a dialog specialization
git-svn-id: svn://localhost/ardour2/branches/3.0@3915 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/export_channel_configuration.h')
-rw-r--r-- | libs/ardour/ardour/export_channel_configuration.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/libs/ardour/ardour/export_channel_configuration.h b/libs/ardour/ardour/export_channel_configuration.h index 80ad29b435..7223e29110 100644 --- a/libs/ardour/ardour/export_channel_configuration.h +++ b/libs/ardour/ardour/export_channel_configuration.h @@ -21,12 +21,12 @@ #ifndef __ardour_export_channel_configuration_h__ #define __ardour_export_channel_configuration_h__ -#include <set> #include <list> #include <glibmm/ustring.h> #include <sigc++/signal.h> +#include <ardour/export_channel.h> #include <ardour/export_status.h> #include <ardour/ardour.h> @@ -46,13 +46,6 @@ class ExportProcessor; class ExportTimespan; class Session; -class ExportChannel : public std::set<AudioPort *> -{ - public: - void add_port (AudioPort * port) { if (port) { insert (port); } } - void read_ports (float * data, nframes_t frames) const; -}; - class ExportChannelConfiguration { private: @@ -86,20 +79,19 @@ class ExportChannelConfiguration XMLNode & get_state (); int set_state (const XMLNode &); - typedef boost::shared_ptr<ExportChannel const> ChannelPtr; - typedef std::list<ChannelPtr> ChannelList; + typedef std::list<ExportChannelPtr> ChannelList; - ChannelList const & get_channels () { return channels; } - bool all_channels_have_ports (); + ChannelList const & get_channels () const { return channels; } + bool all_channels_have_ports () const; ustring name () const { return _name; } void set_name (ustring name) { _name = name; } void set_split (bool value) { split = value; } - bool get_split () { return split; } - uint32_t get_n_chans () { return channels.size(); } + bool get_split () const { return split; } + uint32_t get_n_chans () const { return channels.size(); } - void register_channel (ChannelPtr channel) { channels.push_back (channel); } + void register_channel (ExportChannelPtr channel) { channels.push_back (channel); } void register_file_config (FormatPtr format, FilenamePtr filename) { file_configs.push_back (FileConfig (format, filename)); } void clear_channels () { channels.clear (); } |