mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
NO-OP whitespace & foratting of header files
This commit is contained in:
parent
2219021389
commit
b976bf8986
112 changed files with 711 additions and 698 deletions
|
|
@ -28,11 +28,11 @@ class ConfigInfoDialog;
|
||||||
|
|
||||||
class About : public Gtk::AboutDialog, public ARDOUR::SessionHandlePtr
|
class About : public Gtk::AboutDialog, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
About ();
|
About ();
|
||||||
~About ();
|
~About ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ConfigInfoDialog* config_info;
|
ConfigInfoDialog* config_info;
|
||||||
void show_config_info ();
|
void show_config_info ();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ class RouteGroupDialog;
|
||||||
|
|
||||||
class AddRouteDialog : public ArdourDialog
|
class AddRouteDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AddRouteDialog ();
|
AddRouteDialog ();
|
||||||
~AddRouteDialog ();
|
~AddRouteDialog ();
|
||||||
|
|
||||||
|
|
@ -80,11 +80,11 @@ class AddRouteDialog : public ArdourDialog
|
||||||
RouteDialogs::InsertAt insert_at();
|
RouteDialogs::InsertAt insert_at();
|
||||||
bool use_strict_io();
|
bool use_strict_io();
|
||||||
|
|
||||||
void on_response (int response_id) {
|
void on_response (int response_id) {
|
||||||
Gtk::Dialog::on_response (response_id);
|
Gtk::Dialog::on_response (response_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Entry name_template_entry;
|
Gtk::Entry name_template_entry;
|
||||||
Gtk::ComboBoxText track_bus_combo;
|
Gtk::ComboBoxText track_bus_combo;
|
||||||
Gtk::Adjustment routes_adjustment;
|
Gtk::Adjustment routes_adjustment;
|
||||||
|
|
@ -117,9 +117,9 @@ class AddRouteDialog : public ArdourDialog
|
||||||
void on_show ();
|
void on_show ();
|
||||||
|
|
||||||
struct ChannelSetup {
|
struct ChannelSetup {
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string template_path;
|
std::string template_path;
|
||||||
uint32_t channels;
|
uint32_t channels;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::vector<ChannelSetup> ChannelSetups;
|
typedef std::vector<ChannelSetup> ChannelSetups;
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ enum VtlImportOption {
|
||||||
|
|
||||||
class AddVideoDialog : public ArdourDialog
|
class AddVideoDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AddVideoDialog (ARDOUR::Session*);
|
AddVideoDialog (ARDOUR::Session*);
|
||||||
~AddVideoDialog ();
|
~AddVideoDialog ();
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@ class AddVideoDialog : public ArdourDialog
|
||||||
bool launch_xjadeo ();
|
bool launch_xjadeo ();
|
||||||
bool auto_set_session_fps ();
|
bool auto_set_session_fps ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void on_show ();
|
void on_show ();
|
||||||
bool page_switch();
|
bool page_switch();
|
||||||
void set_action_ok(bool yn);
|
void set_action_ok(bool yn);
|
||||||
|
|
@ -87,7 +87,7 @@ class AddVideoDialog : public ArdourDialog
|
||||||
/* Harvid Browser related */
|
/* Harvid Browser related */
|
||||||
class HarvidColumns : public Gtk::TreeModel::ColumnRecord
|
class HarvidColumns : public Gtk::TreeModel::ColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<std::string> id;
|
Gtk::TreeModelColumn<std::string> id;
|
||||||
Gtk::TreeModelColumn<std::string> uri;
|
Gtk::TreeModelColumn<std::string> uri;
|
||||||
Gtk::TreeModelColumn<std::string> filename;
|
Gtk::TreeModelColumn<std::string> filename;
|
||||||
|
|
|
||||||
|
|
@ -31,17 +31,15 @@
|
||||||
|
|
||||||
class ArdourDisplay : public ArdourDropdown
|
class ArdourDisplay : public ArdourDropdown
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ArdourDisplay (Element e = default_elements);
|
ArdourDisplay (Element e = default_elements);
|
||||||
virtual ~ArdourDisplay ();
|
virtual ~ArdourDisplay ();
|
||||||
|
|
||||||
boost::shared_ptr<PBD::Controllable> get_controllable() { return binding_proxy.get_controllable(); }
|
boost::shared_ptr<PBD::Controllable> get_controllable() { return binding_proxy.get_controllable(); }
|
||||||
void set_controllable (boost::shared_ptr<PBD::Controllable> c);
|
void set_controllable (boost::shared_ptr<PBD::Controllable> c);
|
||||||
|
|
||||||
// bool on_button_release_event (GdkEventButton*);
|
|
||||||
bool on_scroll_event (GdkEventScroll* ev);
|
bool on_scroll_event (GdkEventScroll* ev);
|
||||||
// bool on_motion_notify_event (GdkEventMotion *ev) ;
|
|
||||||
|
|
||||||
void add_controllable_preset (const char*, float);
|
void add_controllable_preset (const char*, float);
|
||||||
void handle_controllable_preset (float p);
|
void handle_controllable_preset (float p);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
class ArdourDropdown : public ArdourButton
|
class ArdourDropdown : public ArdourButton
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ArdourDropdown (Element e = default_elements);
|
ArdourDropdown (Element e = default_elements);
|
||||||
virtual ~ArdourDropdown ();
|
virtual ~ArdourDropdown ();
|
||||||
|
|
@ -47,7 +47,7 @@ class ArdourDropdown : public ArdourButton
|
||||||
|
|
||||||
Gtk::Menu_Helpers::MenuList& items () { return _menu.items (); }
|
Gtk::Menu_Helpers::MenuList& items () { return _menu.items (); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Menu _menu;
|
Gtk::Menu _menu;
|
||||||
|
|
||||||
bool _scrolling_disabled;
|
bool _scrolling_disabled;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __gtk2_ardour_auplugin_ui_h__
|
#ifndef __gtk2_ardour_auplugin_ui_h__
|
||||||
|
|
@ -75,7 +74,7 @@ class AUPluginUI;
|
||||||
|
|
||||||
class AUPluginUI : public PlugUIBase, public Gtk::VBox
|
class AUPluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AUPluginUI (boost::shared_ptr<ARDOUR::PluginInsert>);
|
AUPluginUI (boost::shared_ptr<ARDOUR::PluginInsert>);
|
||||||
~AUPluginUI ();
|
~AUPluginUI ();
|
||||||
|
|
||||||
|
|
@ -110,7 +109,7 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
void start_live_resize ();
|
void start_live_resize ();
|
||||||
void end_live_resize ();
|
void end_live_resize ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
WindowRef wr;
|
WindowRef wr;
|
||||||
boost::shared_ptr<ARDOUR::AUPlugin> au;
|
boost::shared_ptr<ARDOUR::AUPlugin> au;
|
||||||
int prefheight;
|
int prefheight;
|
||||||
|
|
@ -133,7 +132,7 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
|
|
||||||
NSWindow* cocoa_window;
|
NSWindow* cocoa_window;
|
||||||
NSView* au_view;
|
NSView* au_view;
|
||||||
NSRect last_au_frame;
|
NSRect last_au_frame;
|
||||||
bool in_live_resize;
|
bool in_live_resize;
|
||||||
uint32_t plugin_requested_resize;
|
uint32_t plugin_requested_resize;
|
||||||
|
|
||||||
|
|
@ -175,7 +174,7 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
static bool timer_callback ();
|
static bool timer_callback ();
|
||||||
static sigc::connection timer_connection;
|
static sigc::connection timer_connection;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void start_cf_timer ();
|
static void start_cf_timer ();
|
||||||
static void stop_cf_timer ();
|
static void stop_cf_timer ();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -51,13 +51,13 @@ class AudioRegionView;
|
||||||
|
|
||||||
class AudioRegionEditor : public RegionEditor
|
class AudioRegionEditor : public RegionEditor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AudioRegionEditor (ARDOUR::Session*, boost::shared_ptr<ARDOUR::AudioRegion>);
|
AudioRegionEditor (ARDOUR::Session*, boost::shared_ptr<ARDOUR::AudioRegion>);
|
||||||
~AudioRegionEditor ();
|
~AudioRegionEditor ();
|
||||||
|
|
||||||
void peak_amplitude_thread ();
|
void peak_amplitude_thread ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void region_changed (PBD::PropertyChange const &);
|
void region_changed (PBD::PropertyChange const &);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,20 +50,20 @@ class RouteTimeAxisView;
|
||||||
|
|
||||||
class AudioRegionView : public RegionView
|
class AudioRegionView : public RegionView
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AudioRegionView (ArdourCanvas::Container *,
|
AudioRegionView (ArdourCanvas::Container *,
|
||||||
RouteTimeAxisView&,
|
RouteTimeAxisView&,
|
||||||
boost::shared_ptr<ARDOUR::AudioRegion>,
|
boost::shared_ptr<ARDOUR::AudioRegion>,
|
||||||
double initial_samples_per_pixel,
|
double initial_samples_per_pixel,
|
||||||
uint32_t base_color);
|
uint32_t base_color);
|
||||||
|
|
||||||
AudioRegionView (ArdourCanvas::Container *,
|
AudioRegionView (ArdourCanvas::Container *,
|
||||||
RouteTimeAxisView&,
|
RouteTimeAxisView&,
|
||||||
boost::shared_ptr<ARDOUR::AudioRegion>,
|
boost::shared_ptr<ARDOUR::AudioRegion>,
|
||||||
double samples_per_pixel,
|
double samples_per_pixel,
|
||||||
uint32_t base_color,
|
uint32_t base_color,
|
||||||
bool recording,
|
bool recording,
|
||||||
TimeAxisViewItem::Visibility);
|
TimeAxisViewItem::Visibility);
|
||||||
|
|
||||||
AudioRegionView (const AudioRegionView& other, boost::shared_ptr<ARDOUR::AudioRegion>);
|
AudioRegionView (const AudioRegionView& other, boost::shared_ptr<ARDOUR::AudioRegion>);
|
||||||
|
|
||||||
|
|
@ -138,12 +138,12 @@ class AudioRegionView : public RegionView
|
||||||
return _end_xfade_visible;
|
return _end_xfade_visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
/* this constructor allows derived types
|
/* this constructor allows derived types
|
||||||
to specify their visibility requirements
|
* to specify their visibility requirements
|
||||||
to the TimeAxisViewItem parent class
|
* to the TimeAxisViewItem parent class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum Flags {
|
enum Flags {
|
||||||
WaveformVisible = 0x4,
|
WaveformVisible = 0x4,
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ class Selection;
|
||||||
|
|
||||||
class AudioStreamView : public StreamView
|
class AudioStreamView : public StreamView
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AudioStreamView (AudioTimeAxisView&);
|
AudioStreamView (AudioTimeAxisView&);
|
||||||
|
|
||||||
int set_amplitude_above_axis (gdouble app);
|
int set_amplitude_above_axis (gdouble app);
|
||||||
|
|
@ -64,7 +64,7 @@ class AudioStreamView : public StreamView
|
||||||
RegionView* create_region_view (boost::shared_ptr<ARDOUR::Region>, bool, bool);
|
RegionView* create_region_view (boost::shared_ptr<ARDOUR::Region>, bool, bool);
|
||||||
void set_selected_points (PointSelection&);
|
void set_selected_points (PointSelection&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setup_rec_box ();
|
void setup_rec_box ();
|
||||||
void rec_peak_range_ready (framepos_t start, ARDOUR::framecnt_t cnt, boost::weak_ptr<ARDOUR::Source> src);
|
void rec_peak_range_ready (framepos_t start, ARDOUR::framecnt_t cnt, boost::weak_ptr<ARDOUR::Source> src);
|
||||||
void update_rec_regions (ARDOUR::framepos_t, ARDOUR::framecnt_t);
|
void update_rec_regions (ARDOUR::framepos_t, ARDOUR::framecnt_t);
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,9 @@ class AutomationTimeAxisView;
|
||||||
|
|
||||||
class AudioTimeAxisView : public RouteTimeAxisView
|
class AudioTimeAxisView : public RouteTimeAxisView
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AudioTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
|
AudioTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
|
||||||
virtual ~AudioTimeAxisView ();
|
virtual ~AudioTimeAxisView ();
|
||||||
|
|
||||||
void set_route (boost::shared_ptr<ARDOUR::Route>);
|
void set_route (boost::shared_ptr<ARDOUR::Route>);
|
||||||
|
|
||||||
|
|
@ -80,7 +80,7 @@ class AudioTimeAxisView : public RouteTimeAxisView
|
||||||
|
|
||||||
void first_idle ();
|
void first_idle ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class AudioStreamView;
|
friend class AudioStreamView;
|
||||||
friend class AudioRegionView;
|
friend class AudioRegionView;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class AutomationRegionView;
|
||||||
|
|
||||||
class AutomationStreamView : public StreamView
|
class AutomationStreamView : public StreamView
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AutomationStreamView (AutomationTimeAxisView& tv);
|
AutomationStreamView (AutomationTimeAxisView& tv);
|
||||||
~AutomationStreamView ();
|
~AutomationStreamView ();
|
||||||
|
|
||||||
|
|
@ -70,7 +70,7 @@ class AutomationStreamView : public StreamView
|
||||||
float times,
|
float times,
|
||||||
boost::shared_ptr<ARDOUR::AutomationList> list);
|
boost::shared_ptr<ARDOUR::AutomationList> list);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void setup_rec_box ();
|
void setup_rec_box ();
|
||||||
|
|
||||||
RegionView* add_region_view_internal (boost::shared_ptr<ARDOUR::Region>, bool wait_for_data, bool recording = false);
|
RegionView* add_region_view_internal (boost::shared_ptr<ARDOUR::Region>, bool wait_for_data, bool recording = false);
|
||||||
|
|
|
||||||
|
|
@ -54,19 +54,20 @@ class AutomationStreamView;
|
||||||
class AutomationController;
|
class AutomationController;
|
||||||
class ItemCounts;
|
class ItemCounts;
|
||||||
|
|
||||||
class AutomationTimeAxisView : public TimeAxisView {
|
class AutomationTimeAxisView : public TimeAxisView
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
AutomationTimeAxisView (ARDOUR::Session*,
|
AutomationTimeAxisView (ARDOUR::Session*,
|
||||||
boost::shared_ptr<ARDOUR::Stripable>,
|
boost::shared_ptr<ARDOUR::Stripable>,
|
||||||
boost::shared_ptr<ARDOUR::Automatable>,
|
boost::shared_ptr<ARDOUR::Automatable>,
|
||||||
boost::shared_ptr<ARDOUR::AutomationControl>,
|
boost::shared_ptr<ARDOUR::AutomationControl>,
|
||||||
Evoral::Parameter,
|
Evoral::Parameter,
|
||||||
PublicEditor&,
|
PublicEditor&,
|
||||||
TimeAxisView& parent,
|
TimeAxisView& parent,
|
||||||
bool show_regions,
|
bool show_regions,
|
||||||
ArdourCanvas::Canvas& canvas,
|
ArdourCanvas::Canvas& canvas,
|
||||||
const std::string & name, /* translatable */
|
const std::string & name, /* translatable */
|
||||||
const std::string & plug_name = "");
|
const std::string & plug_name = "");
|
||||||
|
|
||||||
~AutomationTimeAxisView();
|
~AutomationTimeAxisView();
|
||||||
|
|
||||||
|
|
@ -127,10 +128,10 @@ class AutomationTimeAxisView : public TimeAxisView {
|
||||||
|
|
||||||
static void what_has_visible_automation (const boost::shared_ptr<ARDOUR::Automatable>& automatable, std::set<Evoral::Parameter>& visible);
|
static void what_has_visible_automation (const boost::shared_ptr<ARDOUR::Automatable>& automatable, std::set<Evoral::Parameter>& visible);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/* Note that for MIDI controller "automation" (in regions), all of these
|
/* Note that for MIDI controller "automation" (in regions), all of these
|
||||||
may be set. In this case, _automatable is likely _route so the
|
* may be set. In this case, _automatable is likely _route so the
|
||||||
controller will send immediate events out the route's MIDI port. */
|
* controller will send immediate events out the route's MIDI port. */
|
||||||
|
|
||||||
/** parent strip */
|
/** parent strip */
|
||||||
boost::shared_ptr<ARDOUR::Stripable> _stripable;
|
boost::shared_ptr<ARDOUR::Stripable> _stripable;
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ namespace ARDOUR {
|
||||||
*/
|
*/
|
||||||
class AxisView : public virtual PBD::ScopedConnectionList, public virtual ARDOUR::SessionHandlePtr, public virtual Selectable
|
class AxisView : public virtual PBD::ScopedConnectionList, public virtual ARDOUR::SessionHandlePtr, public virtual Selectable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual std::string name() const = 0;
|
virtual std::string name() const = 0;
|
||||||
virtual Gdk::Color color() const = 0;
|
virtual Gdk::Color color() const = 0;
|
||||||
|
|
||||||
|
|
@ -63,21 +63,21 @@ class AxisView : public virtual PBD::ScopedConnectionList, public virtual ARDOUR
|
||||||
|
|
||||||
virtual std::string state_id() const = 0;
|
virtual std::string state_id() const = 0;
|
||||||
/* for now, we always return properties in string form.
|
/* for now, we always return properties in string form.
|
||||||
*/
|
*/
|
||||||
std::string gui_property (const std::string& property_name) const;
|
std::string gui_property (const std::string& property_name) const;
|
||||||
|
|
||||||
bool get_gui_property (const std::string& property_name, std::string& value) const;
|
bool get_gui_property (const std::string& property_name, std::string& value) const;
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool get_gui_property (const std::string& property_name, T& value) const
|
bool get_gui_property (const std::string& property_name, T& value) const
|
||||||
{
|
{
|
||||||
std::string str = gui_property (property_name);
|
std::string str = gui_property (property_name);
|
||||||
|
|
||||||
if (!str.empty ()) {
|
if (!str.empty ()) {
|
||||||
return PBD::string_to<T>(str, value);
|
return PBD::string_to<T>(str, value);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void set_gui_property (const std::string& property_name, const std::string& value);
|
void set_gui_property (const std::string& property_name, const std::string& value);
|
||||||
|
|
||||||
|
|
@ -112,7 +112,7 @@ class AxisView : public virtual PBD::ScopedConnectionList, public virtual ARDOUR
|
||||||
*/
|
*/
|
||||||
static Gdk::Color unique_random_color();
|
static Gdk::Color unique_random_color();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
AxisView ();
|
AxisView ();
|
||||||
virtual ~AxisView();
|
virtual ~AxisView();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,10 +26,10 @@ class AudioClock;
|
||||||
|
|
||||||
class BigClockWindow : public ArdourWindow
|
class BigClockWindow : public ArdourWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BigClockWindow (AudioClock&);
|
BigClockWindow (AudioClock&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AudioClock& clock;
|
AudioClock& clock;
|
||||||
Gtk::Requisition default_size;
|
Gtk::Requisition default_size;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class BundleEditorMatrix : public PortMatrix
|
class BundleEditorMatrix : public PortMatrix
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BundleEditorMatrix (Gtk::Window *, ARDOUR::Session *, boost::shared_ptr<ARDOUR::Bundle>);
|
BundleEditorMatrix (Gtk::Window *, ARDOUR::Session *, boost::shared_ptr<ARDOUR::Bundle>);
|
||||||
|
|
||||||
void set_state (ARDOUR::BundleChannel c[2], bool s);
|
void set_state (ARDOUR::BundleChannel c[2], bool s);
|
||||||
|
|
@ -54,7 +54,7 @@ class BundleEditorMatrix : public PortMatrix
|
||||||
|
|
||||||
std::string disassociation_verb () const;
|
std::string disassociation_verb () const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum {
|
enum {
|
||||||
OTHER = 0,
|
OTHER = 0,
|
||||||
OURS = 1
|
OURS = 1
|
||||||
|
|
@ -66,13 +66,13 @@ class BundleEditorMatrix : public PortMatrix
|
||||||
|
|
||||||
class BundleEditor : public ArdourDialog
|
class BundleEditor : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BundleEditor (ARDOUR::Session *, boost::shared_ptr<ARDOUR::UserBundle>);
|
BundleEditor (ARDOUR::Session *, boost::shared_ptr<ARDOUR::UserBundle>);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void on_map ();
|
void on_map ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void name_changed ();
|
void name_changed ();
|
||||||
void input_or_output_changed ();
|
void input_or_output_changed ();
|
||||||
void on_show ();
|
void on_show ();
|
||||||
|
|
@ -85,10 +85,10 @@ class BundleEditor : public ArdourDialog
|
||||||
|
|
||||||
class BundleManager : public ArdourDialog
|
class BundleManager : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BundleManager (ARDOUR::Session *);
|
BundleManager (ARDOUR::Session *);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void new_clicked ();
|
void new_clicked ();
|
||||||
void edit_clicked ();
|
void edit_clicked ();
|
||||||
|
|
|
||||||
|
|
@ -27,15 +27,16 @@
|
||||||
#include "gtkmm2ext/activatable.h"
|
#include "gtkmm2ext/activatable.h"
|
||||||
#include "gtkmm2ext/cairo_widget.h"
|
#include "gtkmm2ext/cairo_widget.h"
|
||||||
|
|
||||||
class ButtonJoiner : public CairoWidget, public Gtkmm2ext::Activatable {
|
class ButtonJoiner : public CairoWidget, public Gtkmm2ext::Activatable
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
ButtonJoiner (const std::string&, Gtk::Widget&, Gtk::Widget&, bool central_link = false);
|
ButtonJoiner (const std::string&, Gtk::Widget&, Gtk::Widget&, bool central_link = false);
|
||||||
~ButtonJoiner ();
|
~ButtonJoiner ();
|
||||||
|
|
||||||
void set_related_action (Glib::RefPtr<Gtk::Action>);
|
void set_related_action (Glib::RefPtr<Gtk::Action>);
|
||||||
void set_active_state (Gtkmm2ext::ActiveState);
|
void set_active_state (Gtkmm2ext::ActiveState);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
||||||
bool on_button_release_event (GdkEventButton*);
|
bool on_button_release_event (GdkEventButton*);
|
||||||
void on_size_request (Gtk::Requisition*);
|
void on_size_request (Gtk::Requisition*);
|
||||||
|
|
@ -46,7 +47,7 @@ class ButtonJoiner : public CairoWidget, public Gtkmm2ext::Activatable {
|
||||||
void action_tooltip_changed ();
|
void action_tooltip_changed ();
|
||||||
void action_toggled ();
|
void action_toggled ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Widget& left;
|
Gtk::Widget& left;
|
||||||
Gtk::Widget& right;
|
Gtk::Widget& right;
|
||||||
Gtk::HBox packer;
|
Gtk::HBox packer;
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,9 @@
|
||||||
|
|
||||||
#include "audio_clock.h"
|
#include "audio_clock.h"
|
||||||
|
|
||||||
class ClockGroup : public sigc::trackable {
|
class ClockGroup : public sigc::trackable
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
ClockGroup ();
|
ClockGroup ();
|
||||||
~ClockGroup ();
|
~ClockGroup ();
|
||||||
|
|
||||||
|
|
@ -36,7 +37,7 @@ class ClockGroup : public sigc::trackable {
|
||||||
void add (AudioClock&);
|
void add (AudioClock&);
|
||||||
void remove (AudioClock&);
|
void remove (AudioClock&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::set<AudioClock*> clocks;
|
std::set<AudioClock*> clocks;
|
||||||
bool ignore_changes;
|
bool ignore_changes;
|
||||||
AudioClock::Mode _clock_mode;
|
AudioClock::Mode _clock_mode;
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class ArdourDialog;
|
||||||
|
|
||||||
class ColorThemeManager : public OptionEditorMiniPage
|
class ColorThemeManager : public OptionEditorMiniPage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ColorThemeManager();
|
ColorThemeManager();
|
||||||
~ColorThemeManager();
|
~ColorThemeManager();
|
||||||
|
|
||||||
|
|
@ -62,13 +62,13 @@ class ColorThemeManager : public OptionEditorMiniPage
|
||||||
|
|
||||||
Gtk::Widget& tip_widget();
|
Gtk::Widget& tip_widget();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Button reset_button;
|
Gtk::Button reset_button;
|
||||||
Gtk::Notebook notebook;
|
Gtk::Notebook notebook;
|
||||||
|
|
||||||
/* handls response from color dialog when it is used to
|
/* handls response from color dialog when it is used to
|
||||||
edit a derived color.
|
* edit a derived color.
|
||||||
*/
|
*/
|
||||||
void palette_color_response (int, std::string);
|
void palette_color_response (int, std::string);
|
||||||
|
|
||||||
Gtk::ScrolledWindow palette_scroller;
|
Gtk::ScrolledWindow palette_scroller;
|
||||||
|
|
@ -76,29 +76,29 @@ class ColorThemeManager : public OptionEditorMiniPage
|
||||||
ArdourCanvas::Container* palette_group;
|
ArdourCanvas::Container* palette_group;
|
||||||
|
|
||||||
/* these methods create and manage a canvas for use in either the
|
/* these methods create and manage a canvas for use in either the
|
||||||
palette tab or in a separate dialog. Different behaviour is
|
* palette tab or in a separate dialog. Different behaviour is
|
||||||
accomplished by changing the event handler passed into the
|
* accomplished by changing the event handler passed into the
|
||||||
allocation handler. We do it there because we have to rebuild
|
* allocation handler. We do it there because we have to rebuild
|
||||||
the canvas on allocation events, and during the rebuild, connect
|
* the canvas on allocation events, and during the rebuild, connect
|
||||||
each rectangle to the event handler.
|
* each rectangle to the event handler.
|
||||||
|
*
|
||||||
the alternative is one event handler for the canvas and a map
|
* the alternative is one event handler for the canvas and a map
|
||||||
of where each color rectangle is. nothing wrong with this
|
* of where each color rectangle is. nothing wrong with this
|
||||||
but the per-rect event setup is simpler and avoids building
|
* but the per-rect event setup is simpler and avoids building
|
||||||
and looking up the map information.
|
* and looking up the map information.
|
||||||
*/
|
*/
|
||||||
ArdourCanvas::Container* initialize_palette_canvas (ArdourCanvas::Canvas& canvas);
|
ArdourCanvas::Container* initialize_palette_canvas (ArdourCanvas::Canvas& canvas);
|
||||||
void build_palette_canvas (ArdourCanvas::Canvas&, ArdourCanvas::Container&, sigc::slot<bool,GdkEvent*,std::string> event_handler);
|
void build_palette_canvas (ArdourCanvas::Canvas&, ArdourCanvas::Container&, sigc::slot<bool,GdkEvent*,std::string> event_handler);
|
||||||
void palette_canvas_allocated (Gtk::Allocation& alloc, ArdourCanvas::Container* group, ArdourCanvas::Canvas* canvas, sigc::slot<bool,GdkEvent*,std::string> event_handler);
|
void palette_canvas_allocated (Gtk::Allocation& alloc, ArdourCanvas::Container* group, ArdourCanvas::Canvas* canvas, sigc::slot<bool,GdkEvent*,std::string> event_handler);
|
||||||
void palette_size_request (Gtk::Requisition*);
|
void palette_size_request (Gtk::Requisition*);
|
||||||
|
|
||||||
/* handles events from a palette canvas inside the palette (derived
|
/* handles events from a palette canvas inside the palette (derived
|
||||||
colors) tab
|
* colors) tab
|
||||||
*/
|
*/
|
||||||
bool palette_event (GdkEvent*, std::string name);
|
bool palette_event (GdkEvent*, std::string name);
|
||||||
/* allows user to edit a named color (e.g. "color 3") after clicking
|
/* allows user to edit a named color (e.g. "color 3") after clicking
|
||||||
on it inside the palette tab.
|
* on it inside the palette tab.
|
||||||
*/
|
*/
|
||||||
void edit_palette_color (std::string);
|
void edit_palette_color (std::string);
|
||||||
|
|
||||||
struct ColorAliasModelColumns : public Gtk::TreeModel::ColumnRecord {
|
struct ColorAliasModelColumns : public Gtk::TreeModel::ColumnRecord {
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,10 @@
|
||||||
|
|
||||||
class ConfigInfoDialog : public ArdourDialog
|
class ConfigInfoDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ConfigInfoDialog();
|
ConfigInfoDialog();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::TextView text;
|
Gtk::TextView text;
|
||||||
Gtk::ScrolledWindow scroller;
|
Gtk::ScrolledWindow scroller;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ namespace ArdourCanvas {
|
||||||
|
|
||||||
class ControlPoint : public Selectable
|
class ControlPoint : public Selectable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ControlPoint (AutomationLine& al);
|
ControlPoint (AutomationLine& al);
|
||||||
ControlPoint (const ControlPoint&, bool dummy_arg_to_force_special_copy_constructor);
|
ControlPoint (const ControlPoint&, bool dummy_arg_to_force_special_copy_constructor);
|
||||||
virtual ~ControlPoint ();
|
virtual ~ControlPoint ();
|
||||||
|
|
@ -82,7 +82,7 @@ class ControlPoint : public Selectable
|
||||||
|
|
||||||
static PBD::Signal1<void, ControlPoint *> CatchDeletion;
|
static PBD::Signal1<void, ControlPoint *> CatchDeletion;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ArdourCanvas::Rectangle* _item;
|
ArdourCanvas::Rectangle* _item;
|
||||||
AutomationLine& _line;
|
AutomationLine& _line;
|
||||||
ARDOUR::AutomationList::iterator _model;
|
ARDOUR::AutomationList::iterator _model;
|
||||||
|
|
|
||||||
|
|
@ -41,12 +41,12 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class ControlSlaveUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
class ControlSlaveUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ControlSlaveUI (ARDOUR::Session*);
|
ControlSlaveUI (ARDOUR::Session*);
|
||||||
~ControlSlaveUI ();
|
~ControlSlaveUI ();
|
||||||
void set_stripable (boost::shared_ptr<ARDOUR::Stripable>);
|
void set_stripable (boost::shared_ptr<ARDOUR::Stripable>);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::shared_ptr<ARDOUR::Stripable> stripable;
|
boost::shared_ptr<ARDOUR::Stripable> stripable;
|
||||||
PBD::ScopedConnectionList connections;
|
PBD::ScopedConnectionList connections;
|
||||||
PBD::ScopedConnectionList master_connections;
|
PBD::ScopedConnectionList master_connections;
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ namespace ArdourCanvas {
|
||||||
|
|
||||||
class CrossfadeEditor : public ArdourDialog
|
class CrossfadeEditor : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CrossfadeEditor (ARDOUR::Session*, boost::shared_ptr<ARDOUR::Crossfade>, double miny, double maxy);
|
CrossfadeEditor (ARDOUR::Session*, boost::shared_ptr<ARDOUR::Crossfade>, double miny, double maxy);
|
||||||
~CrossfadeEditor ();
|
~CrossfadeEditor ();
|
||||||
|
|
||||||
|
|
@ -57,8 +57,7 @@ class CrossfadeEditor : public ArdourDialog
|
||||||
|
|
||||||
static const double canvas_border;
|
static const double canvas_border;
|
||||||
|
|
||||||
/* these are public so that a caller/subclass can make them do the right thing.
|
/* these are public so that a caller/subclass can make them do the right thing. */
|
||||||
*/
|
|
||||||
|
|
||||||
Gtk::Button* cancel_button;
|
Gtk::Button* cancel_button;
|
||||||
Gtk::Button* ok_button;
|
Gtk::Button* ok_button;
|
||||||
|
|
@ -83,11 +82,11 @@ class CrossfadeEditor : public ArdourDialog
|
||||||
static Presets* fade_in_presets;
|
static Presets* fade_in_presets;
|
||||||
static Presets* fade_out_presets;
|
static Presets* fade_out_presets;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool on_key_press_event (GdkEventKey*);
|
bool on_key_press_event (GdkEventKey*);
|
||||||
bool on_key_release_event (GdkEventKey*);
|
bool on_key_release_event (GdkEventKey*);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::shared_ptr<ARDOUR::Crossfade> xfade;
|
boost::shared_ptr<ARDOUR::Crossfade> xfade;
|
||||||
|
|
||||||
Gtk::VBox vpacker;
|
Gtk::VBox vpacker;
|
||||||
|
|
|
||||||
|
|
@ -40,12 +40,12 @@ class Editor;
|
||||||
|
|
||||||
class DuplicateRouteDialog : public ArdourDialog
|
class DuplicateRouteDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DuplicateRouteDialog ();
|
DuplicateRouteDialog ();
|
||||||
|
|
||||||
int restart (ARDOUR::Session*);
|
int restart (ARDOUR::Session*);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Entry name_template_entry;
|
Gtk::Entry name_template_entry;
|
||||||
Gtk::VBox playlist_button_box;
|
Gtk::VBox playlist_button_box;
|
||||||
Gtk::Label playlist_option_label;
|
Gtk::Label playlist_option_label;
|
||||||
|
|
@ -64,7 +64,7 @@ class DuplicateRouteDialog : public ArdourDialog
|
||||||
RouteDialogs::InsertAt insert_at();
|
RouteDialogs::InsertAt insert_at();
|
||||||
ARDOUR::PlaylistDisposition playlist_disposition() const;
|
ARDOUR::PlaylistDisposition playlist_disposition() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::ComboBoxText insert_at_combo;
|
Gtk::ComboBoxText insert_at_combo;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,9 @@
|
||||||
|
|
||||||
class Editor;
|
class Editor;
|
||||||
|
|
||||||
class EditorCursor {
|
class EditorCursor
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
|
EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
|
||||||
EditorCursor (Editor&);
|
EditorCursor (Editor&);
|
||||||
~EditorCursor ();
|
~EditorCursor ();
|
||||||
|
|
@ -53,7 +54,7 @@ class EditorCursor {
|
||||||
|
|
||||||
PBD::Signal1<void, framepos_t> PositionChanged;
|
PBD::Signal1<void, framepos_t> PositionChanged;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Editor& _editor;
|
Editor& _editor;
|
||||||
ArdourCanvas::Arrow* _track_canvas_item;
|
ArdourCanvas::Arrow* _track_canvas_item;
|
||||||
framepos_t _current_frame;
|
framepos_t _current_frame;
|
||||||
|
|
|
||||||
|
|
@ -501,7 +501,7 @@ private:
|
||||||
/** "Drag" to cut a region (action only on button release) */
|
/** "Drag" to cut a region (action only on button release) */
|
||||||
class RegionCutDrag : public Drag
|
class RegionCutDrag : public Drag
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RegionCutDrag (Editor*, ArdourCanvas::Item*, framepos_t);
|
RegionCutDrag (Editor*, ArdourCanvas::Item*, framepos_t);
|
||||||
~RegionCutDrag ();
|
~RegionCutDrag ();
|
||||||
|
|
||||||
|
|
@ -510,7 +510,7 @@ class RegionCutDrag : public Drag
|
||||||
void finished (GdkEvent*, bool);
|
void finished (GdkEvent*, bool);
|
||||||
void aborted (bool);
|
void aborted (bool);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
EditorCursor* line;
|
EditorCursor* line;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -551,7 +551,7 @@ private:
|
||||||
/** Drags to move MIDI notes */
|
/** Drags to move MIDI notes */
|
||||||
class NoteDrag : public Drag
|
class NoteDrag : public Drag
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NoteDrag (Editor*, ArdourCanvas::Item*);
|
NoteDrag (Editor*, ArdourCanvas::Item*);
|
||||||
|
|
||||||
void start_grab (GdkEvent *, Gdk::Cursor* c = 0);
|
void start_grab (GdkEvent *, Gdk::Cursor* c = 0);
|
||||||
|
|
@ -560,7 +560,7 @@ class NoteDrag : public Drag
|
||||||
void aborted (bool);
|
void aborted (bool);
|
||||||
|
|
||||||
void setup_pointer_frame_offset ();
|
void setup_pointer_frame_offset ();
|
||||||
private:
|
private:
|
||||||
|
|
||||||
double total_dx (GdkEvent * event) const; // total movement in quarter notes
|
double total_dx (GdkEvent * event) const; // total movement in quarter notes
|
||||||
int8_t total_dy () const;
|
int8_t total_dy () const;
|
||||||
|
|
@ -1274,7 +1274,7 @@ private:
|
||||||
*/
|
*/
|
||||||
class CrossfadeEdgeDrag : public Drag
|
class CrossfadeEdgeDrag : public Drag
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CrossfadeEdgeDrag (Editor*, AudioRegionView*, ArdourCanvas::Item*, bool start);
|
CrossfadeEdgeDrag (Editor*, AudioRegionView*, ArdourCanvas::Item*, bool start);
|
||||||
|
|
||||||
void start_grab (GdkEvent*, Gdk::Cursor* c = 0);
|
void start_grab (GdkEvent*, Gdk::Cursor* c = 0);
|
||||||
|
|
@ -1290,7 +1290,7 @@ class CrossfadeEdgeDrag : public Drag
|
||||||
return std::make_pair (4, 4);
|
return std::make_pair (4, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AudioRegionView* arv;
|
AudioRegionView* arv;
|
||||||
bool start;
|
bool start;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ namespace Gtk {
|
||||||
|
|
||||||
class EditorLocations : public EditorComponent, public ARDOUR::SessionHandlePtr
|
class EditorLocations : public EditorComponent, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EditorLocations (Editor *);
|
EditorLocations (Editor *);
|
||||||
|
|
||||||
void set_session (ARDOUR::Session *);
|
void set_session (ARDOUR::Session *);
|
||||||
|
|
@ -43,7 +43,7 @@ class EditorLocations : public EditorComponent, public ARDOUR::SessionHandlePtr
|
||||||
XMLNode & get_state () const;
|
XMLNode & get_state () const;
|
||||||
int set_state (const XMLNode&);
|
int set_state (const XMLNode&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::ScrolledWindow _scroller;
|
Gtk::ScrolledWindow _scroller;
|
||||||
LocationUI* _locations;
|
LocationUI* _locations;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,9 @@
|
||||||
#include "ardour_dialog.h"
|
#include "ardour_dialog.h"
|
||||||
#include "ardour_button.h"
|
#include "ardour_button.h"
|
||||||
|
|
||||||
class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
|
class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
EngineControl ();
|
EngineControl ();
|
||||||
~EngineControl ();
|
~EngineControl ();
|
||||||
|
|
||||||
|
|
@ -51,7 +52,7 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
|
||||||
void set_desired_sample_rate (uint32_t);
|
void set_desired_sample_rate (uint32_t);
|
||||||
bool try_autostart ();
|
bool try_autostart ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Notebook notebook;
|
Gtk::Notebook notebook;
|
||||||
|
|
||||||
Gtk::Label engine_status;
|
Gtk::Label engine_status;
|
||||||
|
|
@ -182,17 +183,17 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
|
||||||
void configure_midi_devices ();
|
void configure_midi_devices ();
|
||||||
|
|
||||||
struct MidiDeviceSetting {
|
struct MidiDeviceSetting {
|
||||||
std::string name;
|
std::string name;
|
||||||
bool enabled;
|
bool enabled;
|
||||||
uint32_t input_latency;
|
uint32_t input_latency;
|
||||||
uint32_t output_latency;
|
uint32_t output_latency;
|
||||||
|
|
||||||
MidiDeviceSetting (std::string n, bool en = true, uint32_t inl = 0, uint32_t oul = 0)
|
MidiDeviceSetting (std::string n, bool en = true, uint32_t inl = 0, uint32_t oul = 0)
|
||||||
: name (n)
|
: name (n)
|
||||||
, enabled (en)
|
, enabled (en)
|
||||||
, input_latency (inl)
|
, input_latency (inl)
|
||||||
, output_latency (oul)
|
, output_latency (oul)
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef boost::shared_ptr<MidiDeviceSetting> MidiDeviceSettings;
|
typedef boost::shared_ptr<MidiDeviceSetting> MidiDeviceSettings;
|
||||||
|
|
@ -200,44 +201,44 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
|
||||||
std::vector<MidiDeviceSettings> _midi_devices;
|
std::vector<MidiDeviceSettings> _midi_devices;
|
||||||
|
|
||||||
MidiDeviceSettings find_midi_device(std::string devicename) const {
|
MidiDeviceSettings find_midi_device(std::string devicename) const {
|
||||||
for (std::vector<MidiDeviceSettings>::const_iterator p = _midi_devices.begin(); p != _midi_devices.end(); ++p) {
|
for (std::vector<MidiDeviceSettings>::const_iterator p = _midi_devices.begin(); p != _midi_devices.end(); ++p) {
|
||||||
if ((*p)->name == devicename) {
|
if ((*p)->name == devicename) {
|
||||||
return *p;
|
return *p;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
return MidiDeviceSettings();
|
||||||
return MidiDeviceSettings();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct StateStruct {
|
struct StateStruct {
|
||||||
std::string backend;
|
std::string backend;
|
||||||
std::string driver;
|
std::string driver;
|
||||||
std::string device;
|
std::string device;
|
||||||
std::string input_device;
|
std::string input_device;
|
||||||
std::string output_device;
|
std::string output_device;
|
||||||
float sample_rate;
|
float sample_rate;
|
||||||
uint32_t buffer_size;
|
uint32_t buffer_size;
|
||||||
uint32_t n_periods;
|
uint32_t n_periods;
|
||||||
uint32_t input_latency;
|
uint32_t input_latency;
|
||||||
uint32_t output_latency;
|
uint32_t output_latency;
|
||||||
uint32_t input_channels;
|
uint32_t input_channels;
|
||||||
uint32_t output_channels;
|
uint32_t output_channels;
|
||||||
bool active;
|
bool active;
|
||||||
bool use_buffered_io;
|
bool use_buffered_io;
|
||||||
std::string midi_option;
|
std::string midi_option;
|
||||||
std::vector<MidiDeviceSettings> midi_devices;
|
std::vector<MidiDeviceSettings> midi_devices;
|
||||||
time_t lru;
|
time_t lru;
|
||||||
|
|
||||||
StateStruct()
|
|
||||||
: sample_rate (48000)
|
|
||||||
, buffer_size (1024)
|
|
||||||
, input_latency (0)
|
|
||||||
, output_latency (0)
|
|
||||||
, input_channels (0)
|
|
||||||
, output_channels (0)
|
|
||||||
, active (false)
|
|
||||||
, use_buffered_io (false)
|
|
||||||
, lru (0) {}
|
|
||||||
|
|
||||||
|
StateStruct()
|
||||||
|
: sample_rate (48000)
|
||||||
|
, buffer_size (1024)
|
||||||
|
, input_latency (0)
|
||||||
|
, output_latency (0)
|
||||||
|
, input_channels (0)
|
||||||
|
, output_channels (0)
|
||||||
|
, active (false)
|
||||||
|
, use_buffered_io (false)
|
||||||
|
, lru (0)
|
||||||
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef boost::shared_ptr<StateStruct> State;
|
typedef boost::shared_ptr<StateStruct> State;
|
||||||
|
|
|
||||||
|
|
@ -48,14 +48,14 @@ class XMLNode;
|
||||||
|
|
||||||
class ExportChannelSelector : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
class ExportChannelSelector : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportChannelConfiguration> ChannelConfigPtr;
|
typedef boost::shared_ptr<ARDOUR::ExportChannelConfiguration> ChannelConfigPtr;
|
||||||
typedef std::list<ChannelConfigPtr> ChannelConfigList;
|
typedef std::list<ChannelConfigPtr> ChannelConfigList;
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ProfileManagerPtr;
|
typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ProfileManagerPtr;
|
||||||
|
|
||||||
ProfileManagerPtr manager;
|
ProfileManagerPtr manager;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ExportChannelSelector (ARDOUR::Session * session, ProfileManagerPtr manager)
|
ExportChannelSelector (ARDOUR::Session * session, ProfileManagerPtr manager)
|
||||||
: SessionHandlePtr (session)
|
: SessionHandlePtr (session)
|
||||||
, manager (manager)
|
, manager (manager)
|
||||||
|
|
@ -70,15 +70,14 @@ class ExportChannelSelector : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
class PortExportChannelSelector : public ExportChannelSelector
|
class PortExportChannelSelector : public ExportChannelSelector
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
public:
|
|
||||||
|
|
||||||
PortExportChannelSelector (ARDOUR::Session * session, ProfileManagerPtr manager);
|
PortExportChannelSelector (ARDOUR::Session * session, ProfileManagerPtr manager);
|
||||||
~PortExportChannelSelector ();
|
~PortExportChannelSelector ();
|
||||||
|
|
||||||
void sync_with_manager ();
|
void sync_with_manager ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void fill_route_list ();
|
void fill_route_list ();
|
||||||
void update_channel_count ();
|
void update_channel_count ();
|
||||||
|
|
@ -101,12 +100,12 @@ class PortExportChannelSelector : public ExportChannelSelector
|
||||||
|
|
||||||
class RouteCols : public Gtk::TreeModelColumnRecord
|
class RouteCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
struct Channel;
|
struct Channel;
|
||||||
|
|
||||||
RouteCols () : n_channels (0)
|
RouteCols () : n_channels (0)
|
||||||
{ add (selected); add (name); add (io); add (port_list_col); }
|
{ add (selected); add (name); add (io); add (port_list_col); }
|
||||||
|
|
||||||
void add_channels (uint32_t chans);
|
void add_channels (uint32_t chans);
|
||||||
uint32_t n_channels;
|
uint32_t n_channels;
|
||||||
|
|
@ -129,7 +128,7 @@ class PortExportChannelSelector : public ExportChannelSelector
|
||||||
/* Channel struct, that represents the selected port and its name */
|
/* Channel struct, that represents the selected port and its name */
|
||||||
|
|
||||||
struct Channel {
|
struct Channel {
|
||||||
public:
|
public:
|
||||||
Channel (RouteCols & cols) { cols.add (port); cols.add (label); }
|
Channel (RouteCols & cols) { cols.add (port); cols.add (label); }
|
||||||
|
|
||||||
Gtk::TreeModelColumn<boost::weak_ptr<ARDOUR::AudioPort> > port;
|
Gtk::TreeModelColumn<boost::weak_ptr<ARDOUR::AudioPort> > port;
|
||||||
|
|
@ -146,7 +145,7 @@ class PortExportChannelSelector : public ExportChannelSelector
|
||||||
|
|
||||||
class PortCols : public Gtk::TreeModel::ColumnRecord
|
class PortCols : public Gtk::TreeModel::ColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PortCols () { add(selected); add(port); add(label); }
|
PortCols () { add(selected); add(port); add(label); }
|
||||||
|
|
||||||
Gtk::TreeModelColumn<bool> selected; // not used ATM
|
Gtk::TreeModelColumn<bool> selected; // not used ATM
|
||||||
|
|
@ -158,8 +157,9 @@ class PortExportChannelSelector : public ExportChannelSelector
|
||||||
|
|
||||||
/* Channels view */
|
/* Channels view */
|
||||||
|
|
||||||
class ChannelTreeView : public Gtk::TreeView {
|
class ChannelTreeView : public Gtk::TreeView
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
ChannelTreeView (uint32_t max_channels);
|
ChannelTreeView (uint32_t max_channels);
|
||||||
void set_config (ChannelConfigPtr c);
|
void set_config (ChannelConfigPtr c);
|
||||||
|
|
@ -172,7 +172,7 @@ class PortExportChannelSelector : public ExportChannelSelector
|
||||||
|
|
||||||
sigc::signal<void> CriticalSelectionChanged;
|
sigc::signal<void> CriticalSelectionChanged;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
ChannelConfigPtr config;
|
ChannelConfigPtr config;
|
||||||
void update_config ();
|
void update_config ();
|
||||||
|
|
@ -199,7 +199,7 @@ class PortExportChannelSelector : public ExportChannelSelector
|
||||||
|
|
||||||
class RegionExportChannelSelector : public ExportChannelSelector
|
class RegionExportChannelSelector : public ExportChannelSelector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RegionExportChannelSelector (ARDOUR::Session * session,
|
RegionExportChannelSelector (ARDOUR::Session * session,
|
||||||
ProfileManagerPtr manager,
|
ProfileManagerPtr manager,
|
||||||
ARDOUR::AudioRegion const & region,
|
ARDOUR::AudioRegion const & region,
|
||||||
|
|
@ -207,7 +207,7 @@ class RegionExportChannelSelector : public ExportChannelSelector
|
||||||
|
|
||||||
virtual void sync_with_manager ();
|
virtual void sync_with_manager ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void handle_selection ();
|
void handle_selection ();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,7 @@ class ExportChannelSelector;
|
||||||
|
|
||||||
class ExportDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
class ExportDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
public:
|
|
||||||
|
|
||||||
ExportDialog (PublicEditor & editor, std::string title, ARDOUR::ExportProfileManager::ExportType type);
|
ExportDialog (PublicEditor & editor, std::string title, ARDOUR::ExportProfileManager::ExportType type);
|
||||||
~ExportDialog ();
|
~ExportDialog ();
|
||||||
|
|
@ -62,7 +61,7 @@ class ExportDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
RESPONSE_CANCEL
|
RESPONSE_CANCEL
|
||||||
};
|
};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void on_response (int response_id) {
|
void on_response (int response_id) {
|
||||||
Gtk::Dialog::on_response (response_id);
|
Gtk::Dialog::on_response (response_id);
|
||||||
|
|
@ -94,7 +93,7 @@ class ExportDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
/*** GUI components ***/
|
/*** GUI components ***/
|
||||||
Gtk::Notebook export_notebook;
|
Gtk::Notebook export_notebook;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void init ();
|
void init ();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
class ExportFileNotebook : public Gtk::Notebook, public ARDOUR::SessionHandlePtr
|
class ExportFileNotebook : public Gtk::Notebook, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ExportFileNotebook ();
|
ExportFileNotebook ();
|
||||||
|
|
||||||
|
|
@ -45,7 +45,7 @@ class ExportFileNotebook : public Gtk::Notebook, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
sigc::signal<void> CriticalSelectionChanged;
|
sigc::signal<void> CriticalSelectionChanged;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ManagerPtr;
|
typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ManagerPtr;
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportFormatSpecification> FormatPtr;
|
typedef boost::shared_ptr<ARDOUR::ExportFormatSpecification> FormatPtr;
|
||||||
|
|
@ -70,8 +70,9 @@ class ExportFileNotebook : public Gtk::Notebook, public ARDOUR::SessionHandlePtr
|
||||||
uint32_t last_visible_page;
|
uint32_t last_visible_page;
|
||||||
uint32_t page_counter;
|
uint32_t page_counter;
|
||||||
|
|
||||||
class FilePage : public Gtk::VBox {
|
class FilePage : public Gtk::VBox
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
FilePage (ARDOUR::Session * s, ManagerPtr profile_manager, ExportFileNotebook * parent, uint32_t number,
|
FilePage (ARDOUR::Session * s, ManagerPtr profile_manager, ExportFileNotebook * parent, uint32_t number,
|
||||||
ARDOUR::ExportProfileManager::FormatStatePtr format_state,
|
ARDOUR::ExportProfileManager::FormatStatePtr format_state,
|
||||||
ARDOUR::ExportProfileManager::FilenameStatePtr filename_state);
|
ARDOUR::ExportProfileManager::FilenameStatePtr filename_state);
|
||||||
|
|
@ -93,7 +94,7 @@ class ExportFileNotebook : public Gtk::Notebook, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
sigc::signal<void> CriticalSelectionChanged;
|
sigc::signal<void> CriticalSelectionChanged;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void save_format_to_manager (FormatPtr format);
|
void save_format_to_manager (FormatPtr format);
|
||||||
void update_tab_label ();
|
void update_tab_label ();
|
||||||
void critical_selection_changed ();
|
void critical_selection_changed ();
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,9 @@
|
||||||
#include "ardour/export_filename.h"
|
#include "ardour/export_filename.h"
|
||||||
#include "ardour/session_handle.h"
|
#include "ardour/session_handle.h"
|
||||||
|
|
||||||
///
|
|
||||||
class ExportFilenameSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
class ExportFilenameSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportFilename> FilenamePtr;
|
typedef boost::shared_ptr<ARDOUR::ExportFilename> FilenamePtr;
|
||||||
|
|
||||||
ExportFilenameSelector ();
|
ExportFilenameSelector ();
|
||||||
|
|
@ -44,7 +43,7 @@ class ExportFilenameSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
sigc::signal<void> CriticalSelectionChanged;
|
sigc::signal<void> CriticalSelectionChanged;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void load_state ();
|
void load_state ();
|
||||||
|
|
||||||
|
|
@ -94,7 +93,7 @@ class ExportFilenameSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
struct DateFormatCols : public Gtk::TreeModelColumnRecord
|
struct DateFormatCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<DateFormat> format;
|
Gtk::TreeModelColumn<DateFormat> format;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
||||||
|
|
@ -110,7 +109,7 @@ class ExportFilenameSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
struct TimeFormatCols : public Gtk::TreeModelColumnRecord
|
struct TimeFormatCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<TimeFormat> format;
|
Gtk::TreeModelColumn<TimeFormat> format;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,9 @@
|
||||||
|
|
||||||
#include <gtkmm.h>
|
#include <gtkmm.h>
|
||||||
|
|
||||||
class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList {
|
class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
private:
|
{
|
||||||
|
private:
|
||||||
|
|
||||||
typedef ARDOUR::WeakExportFormatCompatibilityPtr WeakCompatPtr;
|
typedef ARDOUR::WeakExportFormatCompatibilityPtr WeakCompatPtr;
|
||||||
typedef ARDOUR::WeakExportFormatPtr WeakFormatPtr;
|
typedef ARDOUR::WeakExportFormatPtr WeakFormatPtr;
|
||||||
|
|
@ -51,14 +52,14 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportFormatSpecification> FormatPtr;
|
typedef boost::shared_ptr<ARDOUR::ExportFormatSpecification> FormatPtr;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
explicit ExportFormatDialog (FormatPtr format, bool new_dialog = false);
|
explicit ExportFormatDialog (FormatPtr format, bool new_dialog = false);
|
||||||
~ExportFormatDialog ();
|
~ExportFormatDialog ();
|
||||||
|
|
||||||
void set_session (ARDOUR::Session* s);
|
void set_session (ARDOUR::Session* s);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
FormatPtr format;
|
FormatPtr format;
|
||||||
ARDOUR::ExportFormatManager manager;
|
ARDOUR::ExportFormatManager manager;
|
||||||
|
|
@ -197,7 +198,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
|
|
||||||
struct CompatibilityCols : public Gtk::TreeModelColumnRecord
|
struct CompatibilityCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<ARDOUR::ExportFormatCompatibilityPtr> ptr;
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatCompatibilityPtr> ptr;
|
||||||
Gtk::TreeModelColumn<bool> selected;
|
Gtk::TreeModelColumn<bool> selected;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
@ -213,7 +214,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
|
|
||||||
struct QualityCols : public Gtk::TreeModelColumnRecord
|
struct QualityCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::QualityPtr> ptr;
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::QualityPtr> ptr;
|
||||||
Gtk::TreeModelColumn<std::string> color;
|
Gtk::TreeModelColumn<std::string> color;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
@ -225,7 +226,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
|
|
||||||
struct FormatCols : public Gtk::TreeModelColumnRecord
|
struct FormatCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<ARDOUR::ExportFormatPtr> ptr;
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatPtr> ptr;
|
||||||
Gtk::TreeModelColumn<std::string> color;
|
Gtk::TreeModelColumn<std::string> color;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
@ -237,7 +238,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
|
|
||||||
struct SampleRateCols : public Gtk::TreeModelColumnRecord
|
struct SampleRateCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::SampleRatePtr> ptr;
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::SampleRatePtr> ptr;
|
||||||
Gtk::TreeModelColumn<std::string> color;
|
Gtk::TreeModelColumn<std::string> color;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
@ -263,7 +264,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
|
|
||||||
struct SRCQualityCols : public Gtk::TreeModelColumnRecord
|
struct SRCQualityCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<ARDOUR::ExportFormatBase::SRCQuality> id;
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatBase::SRCQuality> id;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
||||||
|
|
@ -293,7 +294,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
|
|
||||||
struct SampleFormatCols : public Gtk::TreeModelColumnRecord
|
struct SampleFormatCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::SampleFormatPtr> ptr;
|
Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::SampleFormatPtr> ptr;
|
||||||
Gtk::TreeModelColumn<std::string> color;
|
Gtk::TreeModelColumn<std::string> color;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
@ -305,7 +306,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||||
|
|
||||||
struct DitherTypeCols : public Gtk::TreeModelColumnRecord
|
struct DitherTypeCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::DitherTypePtr> ptr;
|
Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::DitherTypePtr> ptr;
|
||||||
Gtk::TreeModelColumn<std::string> color;
|
Gtk::TreeModelColumn<std::string> color;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
|
||||||
|
|
@ -34,16 +34,14 @@ namespace ARDOUR {
|
||||||
class ExportProfileManager;
|
class ExportProfileManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
|
||||||
class ExportFormatSelector : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
class ExportFormatSelector : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
|
private:
|
||||||
private:
|
|
||||||
|
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportFormatSpecification> FormatPtr;
|
typedef boost::shared_ptr<ARDOUR::ExportFormatSpecification> FormatPtr;
|
||||||
typedef std::list<FormatPtr> FormatList;
|
typedef std::list<FormatPtr> FormatList;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ExportFormatSelector ();
|
ExportFormatSelector ();
|
||||||
~ExportFormatSelector ();
|
~ExportFormatSelector ();
|
||||||
|
|
@ -59,7 +57,7 @@ class ExportFormatSelector : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
sigc::signal<void> CriticalSelectionChanged;
|
sigc::signal<void> CriticalSelectionChanged;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void select_format (FormatPtr f);
|
void select_format (FormatPtr f);
|
||||||
void add_new_format ();
|
void add_new_format ();
|
||||||
|
|
@ -74,7 +72,7 @@ class ExportFormatSelector : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
struct FormatCols : public Gtk::TreeModelColumnRecord
|
struct FormatCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<FormatPtr> format;
|
Gtk::TreeModelColumn<FormatPtr> format;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,7 @@
|
||||||
|
|
||||||
class ExportPresetSelector : public Gtk::HBox
|
class ExportPresetSelector : public Gtk::HBox
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
public:
|
|
||||||
|
|
||||||
ExportPresetSelector ();
|
ExportPresetSelector ();
|
||||||
|
|
||||||
|
|
@ -37,7 +36,7 @@ class ExportPresetSelector : public Gtk::HBox
|
||||||
|
|
||||||
sigc::signal<void> CriticalSelectionChanged;
|
sigc::signal<void> CriticalSelectionChanged;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ManagerPtr;
|
typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ManagerPtr;
|
||||||
typedef ARDOUR::ExportPresetPtr PresetPtr;
|
typedef ARDOUR::ExportPresetPtr PresetPtr;
|
||||||
|
|
@ -54,7 +53,7 @@ class ExportPresetSelector : public Gtk::HBox
|
||||||
|
|
||||||
struct PresetCols : public Gtk::TreeModelColumnRecord
|
struct PresetCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<PresetPtr> preset;
|
Gtk::TreeModelColumn<PresetPtr> preset;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ using ARDOUR::framecnt_t;
|
||||||
/// Timespan Selector base
|
/// Timespan Selector base
|
||||||
class ExportTimespanSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
class ExportTimespanSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
typedef std::list<ARDOUR::Location *> LocationList;
|
typedef std::list<ARDOUR::Location *> LocationList;
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportHandler> HandlerPtr;
|
typedef boost::shared_ptr<ARDOUR::ExportHandler> HandlerPtr;
|
||||||
typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ProfileManagerPtr;
|
typedef boost::shared_ptr<ARDOUR::ExportProfileManager> ProfileManagerPtr;
|
||||||
|
|
@ -58,7 +58,7 @@ class ExportTimespanSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
typedef boost::shared_ptr<TimespanList> TimespanListPtr;
|
typedef boost::shared_ptr<TimespanList> TimespanListPtr;
|
||||||
typedef ARDOUR::ExportProfileManager::TimespanStatePtr TimespanStatePtr;
|
typedef ARDOUR::ExportProfileManager::TimespanStatePtr TimespanStatePtr;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ExportTimespanSelector (ARDOUR::Session * session, ProfileManagerPtr manager, bool multi);
|
ExportTimespanSelector (ARDOUR::Session * session, ProfileManagerPtr manager, bool multi);
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@ class ExportTimespanSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
sigc::signal<void> CriticalSelectionChanged;
|
sigc::signal<void> CriticalSelectionChanged;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
ProfileManagerPtr manager;
|
ProfileManagerPtr manager;
|
||||||
TimespanStatePtr state;
|
TimespanStatePtr state;
|
||||||
|
|
@ -107,7 +107,7 @@ class ExportTimespanSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
struct TimeFormatCols : public Gtk::TreeModelColumnRecord
|
struct TimeFormatCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<TimeFormat> format;
|
Gtk::TreeModelColumn<TimeFormat> format;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
|
|
||||||
|
|
@ -121,7 +121,7 @@ class ExportTimespanSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
struct RangeCols : public Gtk::TreeModelColumnRecord
|
struct RangeCols : public Gtk::TreeModelColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<ARDOUR::Location *> location;
|
Gtk::TreeModelColumn<ARDOUR::Location *> location;
|
||||||
Gtk::TreeModelColumn<std::string> label;
|
Gtk::TreeModelColumn<std::string> label;
|
||||||
Gtk::TreeModelColumn<bool> selected;
|
Gtk::TreeModelColumn<bool> selected;
|
||||||
|
|
@ -142,12 +142,12 @@ class ExportTimespanSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
/// Allows selecting multiple timespans
|
/// Allows selecting multiple timespans
|
||||||
class ExportTimespanSelectorMultiple : public ExportTimespanSelector
|
class ExportTimespanSelectorMultiple : public ExportTimespanSelector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ExportTimespanSelectorMultiple (ARDOUR::Session * session, ProfileManagerPtr manager);
|
ExportTimespanSelectorMultiple (ARDOUR::Session * session, ProfileManagerPtr manager);
|
||||||
|
|
||||||
void allow_realtime_export (bool);
|
void allow_realtime_export (bool);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
virtual void fill_range_list ();
|
virtual void fill_range_list ();
|
||||||
|
|
||||||
|
|
@ -159,12 +159,12 @@ class ExportTimespanSelectorMultiple : public ExportTimespanSelector
|
||||||
/// Displays one timespan
|
/// Displays one timespan
|
||||||
class ExportTimespanSelectorSingle : public ExportTimespanSelector
|
class ExportTimespanSelectorSingle : public ExportTimespanSelector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ExportTimespanSelectorSingle (ARDOUR::Session * session, ProfileManagerPtr manager, std::string range_id);
|
ExportTimespanSelectorSingle (ARDOUR::Session * session, ProfileManagerPtr manager, std::string range_id);
|
||||||
|
|
||||||
void allow_realtime_export (bool);
|
void allow_realtime_export (bool);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
virtual void fill_range_list ();
|
virtual void fill_range_list ();
|
||||||
void update_timespans ();
|
void update_timespans ();
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
*/
|
*/
|
||||||
class ExportVideoDialog : public ArdourDialog , public PBD::ScopedConnectionList
|
class ExportVideoDialog : public ArdourDialog , public PBD::ScopedConnectionList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ExportVideoDialog ();
|
ExportVideoDialog ();
|
||||||
~ExportVideoDialog ();
|
~ExportVideoDialog ();
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ class ExportVideoDialog : public ArdourDialog , public PBD::ScopedConnectionList
|
||||||
Gtk::Dialog::on_response (response_id);
|
Gtk::Dialog::on_response (response_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TimeSelection export_range;
|
TimeSelection export_range;
|
||||||
|
|
||||||
void on_show ();
|
void on_show ();
|
||||||
|
|
|
||||||
|
|
@ -31,13 +31,13 @@
|
||||||
*/
|
*/
|
||||||
class ExportVideoInfobox : public ArdourDialog
|
class ExportVideoInfobox : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ExportVideoInfobox (ARDOUR::Session*);
|
ExportVideoInfobox (ARDOUR::Session*);
|
||||||
~ExportVideoInfobox ();
|
~ExportVideoInfobox ();
|
||||||
|
|
||||||
bool show_again () { return showagain_checkbox.get_active(); }
|
bool show_again () { return showagain_checkbox.get_active(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::CheckButton showagain_checkbox;
|
Gtk::CheckButton showagain_checkbox;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,12 +72,12 @@ enum MeterPointChangeTarget {
|
||||||
|
|
||||||
class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr
|
class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GainMeterBase (ARDOUR::Session*, bool horizontal, int, int);
|
GainMeterBase (ARDOUR::Session*, bool horizontal, int, int);
|
||||||
virtual ~GainMeterBase ();
|
virtual ~GainMeterBase ();
|
||||||
|
|
||||||
virtual void set_controls (boost::shared_ptr<ARDOUR::Route> route,
|
virtual void set_controls (boost::shared_ptr<ARDOUR::Route> route,
|
||||||
boost::shared_ptr<ARDOUR::PeakMeter> meter,
|
boost::shared_ptr<ARDOUR::PeakMeter> meter,
|
||||||
boost::shared_ptr<ARDOUR::Amp> amp,
|
boost::shared_ptr<ARDOUR::Amp> amp,
|
||||||
boost::shared_ptr<ARDOUR::GainControl> control);
|
boost::shared_ptr<ARDOUR::GainControl> control);
|
||||||
|
|
||||||
|
|
@ -108,7 +108,7 @@ class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr
|
||||||
static std::string short_astate_string (ARDOUR::AutoState);
|
static std::string short_astate_string (ARDOUR::AutoState);
|
||||||
static std::string _astate_string (ARDOUR::AutoState, bool);
|
static std::string _astate_string (ARDOUR::AutoState, bool);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
friend class MixerStrip;
|
friend class MixerStrip;
|
||||||
friend class MeterStrip;
|
friend class MeterStrip;
|
||||||
|
|
@ -127,7 +127,6 @@ class GainMeterBase : virtual public sigc::trackable, ARDOUR::SessionHandlePtr
|
||||||
Gtk::Adjustment gain_adjustment;
|
Gtk::Adjustment gain_adjustment;
|
||||||
Gtkmm2ext::FocusEntry gain_display;
|
Gtkmm2ext::FocusEntry gain_display;
|
||||||
Gtkmm2ext::FocusEntry peak_display;
|
Gtkmm2ext::FocusEntry peak_display;
|
||||||
// Gtk::Button peak_display;
|
|
||||||
Gtk::DrawingArea meter_metric_area;
|
Gtk::DrawingArea meter_metric_area;
|
||||||
Gtk::DrawingArea meter_ticks1_area;
|
Gtk::DrawingArea meter_ticks1_area;
|
||||||
Gtk::DrawingArea meter_ticks2_area;
|
Gtk::DrawingArea meter_ticks2_area;
|
||||||
|
|
@ -213,9 +212,9 @@ class GainMeter : public GainMeterBase, public Gtk::VBox
|
||||||
virtual ~GainMeter ();
|
virtual ~GainMeter ();
|
||||||
|
|
||||||
virtual void set_controls (boost::shared_ptr<ARDOUR::Route> route,
|
virtual void set_controls (boost::shared_ptr<ARDOUR::Route> route,
|
||||||
boost::shared_ptr<ARDOUR::PeakMeter> meter,
|
boost::shared_ptr<ARDOUR::PeakMeter> meter,
|
||||||
boost::shared_ptr<ARDOUR::Amp> amp,
|
boost::shared_ptr<ARDOUR::Amp> amp,
|
||||||
boost::shared_ptr<ARDOUR::GainControl> control);
|
boost::shared_ptr<ARDOUR::GainControl> control);
|
||||||
|
|
||||||
int get_gm_width ();
|
int get_gm_width ();
|
||||||
void setup_meters (int len=0);
|
void setup_meters (int len=0);
|
||||||
|
|
|
||||||
|
|
@ -81,14 +81,15 @@ public:
|
||||||
|
|
||||||
class MidiGhostRegion : public GhostRegion {
|
class MidiGhostRegion : public GhostRegion {
|
||||||
public:
|
public:
|
||||||
class GhostEvent : public sigc::trackable {
|
class GhostEvent : public sigc::trackable
|
||||||
public:
|
{
|
||||||
GhostEvent(::NoteBase *, ArdourCanvas::Container *);
|
public:
|
||||||
virtual ~GhostEvent ();
|
GhostEvent(::NoteBase *, ArdourCanvas::Container *);
|
||||||
|
virtual ~GhostEvent ();
|
||||||
|
|
||||||
NoteBase* event;
|
NoteBase* event;
|
||||||
ArdourCanvas::Item* item;
|
ArdourCanvas::Item* item;
|
||||||
bool is_hit;
|
bool is_hit;
|
||||||
};
|
};
|
||||||
|
|
||||||
MidiGhostRegion(MidiRegionView& rv,
|
MidiGhostRegion(MidiRegionView& rv,
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
class IOSelector : public PortMatrix
|
class IOSelector : public PortMatrix
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
IOSelector (Gtk::Window*, ARDOUR::Session *, boost::shared_ptr<ARDOUR::IO>);
|
IOSelector (Gtk::Window*, ARDOUR::Session *, boost::shared_ptr<ARDOUR::IO>);
|
||||||
|
|
||||||
void set_state (ARDOUR::BundleChannel c[2], bool);
|
void set_state (ARDOUR::BundleChannel c[2], bool);
|
||||||
|
|
@ -53,7 +53,7 @@ class IOSelector : public PortMatrix
|
||||||
return _other;
|
return _other;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void setup_type ();
|
void setup_type ();
|
||||||
void io_changed ();
|
void io_changed ();
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ class ARDOUR_UI;
|
||||||
|
|
||||||
class ArdourKeyboard : public Gtkmm2ext::Keyboard
|
class ArdourKeyboard : public Gtkmm2ext::Keyboard
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArdourKeyboard(ARDOUR_UI&);
|
ArdourKeyboard(ARDOUR_UI&);
|
||||||
|
|
||||||
XMLNode& get_state (void);
|
XMLNode& get_state (void);
|
||||||
|
|
@ -67,38 +67,31 @@ class ArdourKeyboard : public Gtkmm2ext::Keyboard
|
||||||
static bool indicates_constraint (guint state);
|
static bool indicates_constraint (guint state);
|
||||||
|
|
||||||
static void set_constraint_modifier (guint);
|
static void set_constraint_modifier (guint);
|
||||||
/** @return Modifier mask to constrain drags in a particular direction;
|
/** @return Modifier mask to constrain drags in a particular direction; */
|
||||||
*/
|
|
||||||
static ModifierMask constraint_modifier () { return ModifierMask (constraint_mod); }
|
static ModifierMask constraint_modifier () { return ModifierMask (constraint_mod); }
|
||||||
|
|
||||||
static void set_trim_contents_modifier (guint);
|
static void set_trim_contents_modifier (guint);
|
||||||
/** @return Modifier mask to move contents rather than region bounds during trim;
|
/** @return Modifier mask to move contents rather than region bounds during trim; */
|
||||||
*/
|
|
||||||
static ModifierMask trim_contents_modifier () { return ModifierMask (trim_contents_mod); }
|
static ModifierMask trim_contents_modifier () { return ModifierMask (trim_contents_mod); }
|
||||||
|
|
||||||
static void set_trim_overlap_modifier (guint);
|
static void set_trim_overlap_modifier (guint);
|
||||||
/** @return Modifier mask to remove region overlaps during trim;
|
/** @return Modifier mask to remove region overlaps during trim; */
|
||||||
*/
|
|
||||||
static ModifierMask trim_overlap_modifier () { return ModifierMask (trim_overlap_mod); }
|
static ModifierMask trim_overlap_modifier () { return ModifierMask (trim_overlap_mod); }
|
||||||
|
|
||||||
static void set_trim_anchored_modifier (guint);
|
static void set_trim_anchored_modifier (guint);
|
||||||
/** @return Modifier mask to use anchored trim;
|
/** @return Modifier mask to use anchored trim; */
|
||||||
*/
|
|
||||||
static ModifierMask trim_anchored_modifier () { return ModifierMask (trim_anchored_mod); }
|
static ModifierMask trim_anchored_modifier () { return ModifierMask (trim_anchored_mod); }
|
||||||
|
|
||||||
static void set_fine_adjust_modifier (guint);
|
static void set_fine_adjust_modifier (guint);
|
||||||
/** @return Modifier mask to fine adjust (control points only atm);
|
/** @return Modifier mask to fine adjust (control points only atm); */
|
||||||
*/
|
|
||||||
static ModifierMask fine_adjust_modifier () { return ModifierMask (fine_adjust_mod); }
|
static ModifierMask fine_adjust_modifier () { return ModifierMask (fine_adjust_mod); }
|
||||||
|
|
||||||
static void set_push_points_modifier (guint);
|
static void set_push_points_modifier (guint);
|
||||||
/** @return Modifier mask to push proceeding points;
|
/** @return Modifier mask to push proceeding points; */
|
||||||
*/
|
|
||||||
static ModifierMask push_points_modifier () { return ModifierMask (push_points_mod); }
|
static ModifierMask push_points_modifier () { return ModifierMask (push_points_mod); }
|
||||||
|
|
||||||
static void set_note_size_relative_modifier (guint);
|
static void set_note_size_relative_modifier (guint);
|
||||||
/** @return Modifier mask to resize notes relatively;
|
/** @return Modifier mask to resize notes relatively; */
|
||||||
*/
|
|
||||||
static ModifierMask note_size_relative_modifier () { return ModifierMask (note_size_relative_mod); }
|
static ModifierMask note_size_relative_modifier () { return ModifierMask (note_size_relative_mod); }
|
||||||
private:
|
private:
|
||||||
static guint constraint_mod;
|
static guint constraint_mod;
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ namespace Gtkmm2ext {
|
||||||
|
|
||||||
class KeyEditor : public ArdourWindow
|
class KeyEditor : public ArdourWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
KeyEditor ();
|
KeyEditor ();
|
||||||
|
|
||||||
void add_tab (std::string const &name, Gtkmm2ext::Bindings&);
|
void add_tab (std::string const &name, Gtkmm2ext::Bindings&);
|
||||||
|
|
@ -49,10 +49,10 @@ class KeyEditor : public ArdourWindow
|
||||||
_refresh_connection.disconnect ();
|
_refresh_connection.disconnect ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class Tab : public Gtk::VBox
|
class Tab : public Gtk::VBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Tab (KeyEditor&, std::string const &name, Gtkmm2ext::Bindings*);
|
Tab (KeyEditor&, std::string const &name, Gtkmm2ext::Bindings*);
|
||||||
|
|
||||||
uint32_t populate ();
|
uint32_t populate ();
|
||||||
|
|
@ -80,8 +80,8 @@ class KeyEditor : public ArdourWindow
|
||||||
|
|
||||||
Gtk::VBox vpacker;
|
Gtk::VBox vpacker;
|
||||||
/* give KeyEditor full access to these. This is just a helper
|
/* give KeyEditor full access to these. This is just a helper
|
||||||
class with no special semantics
|
* class with no special semantics
|
||||||
*/
|
*/
|
||||||
|
|
||||||
KeyEditor& owner;
|
KeyEditor& owner;
|
||||||
std::string name;
|
std::string name;
|
||||||
|
|
@ -94,7 +94,7 @@ class KeyEditor : public ArdourWindow
|
||||||
KeyEditorColumns columns;
|
KeyEditorColumns columns;
|
||||||
guint last_keyval;
|
guint last_keyval;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool key_press_event (GdkEventKey*);
|
bool key_press_event (GdkEventKey*);
|
||||||
bool key_release_event (GdkEventKey*);
|
bool key_release_event (GdkEventKey*);
|
||||||
Gtk::TreeModel::iterator find_action_path (Gtk::TreeModel::const_iterator begin, Gtk::TreeModel::const_iterator end, const std::string& path) const;
|
Gtk::TreeModel::iterator find_action_path (Gtk::TreeModel::const_iterator begin, Gtk::TreeModel::const_iterator end, const std::string& path) const;
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,8 @@ class LatencyBarController : public Gtkmm2ext::BarController
|
||||||
public:
|
public:
|
||||||
LatencyBarController (Gtk::Adjustment& adj, LatencyGUI* g)
|
LatencyBarController (Gtk::Adjustment& adj, LatencyGUI* g)
|
||||||
: BarController (adj, boost::shared_ptr<PBD::IgnorableControllable> (new PBD::IgnorableControllable ())),
|
: BarController (adj, boost::shared_ptr<PBD::IgnorableControllable> (new PBD::IgnorableControllable ())),
|
||||||
_latency_gui (g) {}
|
_latency_gui (g)
|
||||||
|
{}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LatencyGUI* _latency_gui;
|
LatencyGUI* _latency_gui;
|
||||||
|
|
@ -56,7 +57,7 @@ private:
|
||||||
|
|
||||||
class LatencyGUI : public Gtk::VBox
|
class LatencyGUI : public Gtk::VBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LatencyGUI (ARDOUR::Latent&, framepos_t sample_rate, framepos_t period_size);
|
LatencyGUI (ARDOUR::Latent&, framepos_t sample_rate, framepos_t period_size);
|
||||||
~LatencyGUI() { }
|
~LatencyGUI() { }
|
||||||
|
|
||||||
|
|
@ -64,7 +65,7 @@ class LatencyGUI : public Gtk::VBox
|
||||||
void reset ();
|
void reset ();
|
||||||
void refresh ();
|
void refresh ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ARDOUR::Latent& _latent;
|
ARDOUR::Latent& _latent;
|
||||||
framepos_t initial_value;
|
framepos_t initial_value;
|
||||||
framepos_t sample_rate;
|
framepos_t sample_rate;
|
||||||
|
|
|
||||||
|
|
@ -26,18 +26,18 @@
|
||||||
|
|
||||||
class LED : public CairoWidget
|
class LED : public CairoWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LED ();
|
LED ();
|
||||||
virtual ~LED ();
|
virtual ~LED ();
|
||||||
|
|
||||||
void set_diameter (float);
|
void set_diameter (float);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
void render (Cairo::RefPtr<Cairo::Context> const&, cairo_rectangle_t*);
|
||||||
void on_size_request (Gtk::Requisition* req);
|
void on_size_request (Gtk::Requisition* req);
|
||||||
void on_realize ();
|
void on_realize ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float _diameter;
|
float _diameter;
|
||||||
float _red;
|
float _red;
|
||||||
float _green;
|
float _green;
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ namespace Gtk {
|
||||||
|
|
||||||
class LevelMeterBase : public ARDOUR::SessionHandlePtr, virtual public sigc::trackable
|
class LevelMeterBase : public ARDOUR::SessionHandlePtr, virtual public sigc::trackable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LevelMeterBase (ARDOUR::Session*, PBD::EventLoop::InvalidationRecord* ir,
|
LevelMeterBase (ARDOUR::Session*, PBD::EventLoop::InvalidationRecord* ir,
|
||||||
Gtkmm2ext::FastMeter::Orientation o = Gtkmm2ext::FastMeter::Vertical);
|
Gtkmm2ext::FastMeter::Orientation o = Gtkmm2ext::FastMeter::Vertical);
|
||||||
virtual ~LevelMeterBase ();
|
virtual ~LevelMeterBase ();
|
||||||
|
|
@ -75,11 +75,11 @@ class LevelMeterBase : public ARDOUR::SessionHandlePtr, virtual public sigc::tra
|
||||||
PBD::Signal1<bool, GdkEventButton *> ButtonRelease;
|
PBD::Signal1<bool, GdkEventButton *> ButtonRelease;
|
||||||
PBD::Signal1<void, ARDOUR::MeterType> MeterTypeChanged;
|
PBD::Signal1<void, ARDOUR::MeterType> MeterTypeChanged;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void mtr_pack(Gtk::Widget &w) = 0;
|
virtual void mtr_pack(Gtk::Widget &w) = 0;
|
||||||
virtual void mtr_remove(Gtk::Widget &w) = 0;
|
virtual void mtr_remove(Gtk::Widget &w) = 0;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PBD::EventLoop::InvalidationRecord* parent_invalidator;
|
PBD::EventLoop::InvalidationRecord* parent_invalidator;
|
||||||
ARDOUR::PeakMeter* _meter;
|
ARDOUR::PeakMeter* _meter;
|
||||||
Gtkmm2ext::FastMeter::Orientation _meter_orientation;
|
Gtkmm2ext::FastMeter::Orientation _meter_orientation;
|
||||||
|
|
@ -131,22 +131,22 @@ class LevelMeterBase : public ARDOUR::SessionHandlePtr, virtual public sigc::tra
|
||||||
|
|
||||||
class LevelMeterHBox : public LevelMeterBase, public Gtk::HBox
|
class LevelMeterHBox : public LevelMeterBase, public Gtk::HBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LevelMeterHBox (ARDOUR::Session*);
|
LevelMeterHBox (ARDOUR::Session*);
|
||||||
~LevelMeterHBox();
|
~LevelMeterHBox();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void mtr_pack(Gtk::Widget &w);
|
void mtr_pack(Gtk::Widget &w);
|
||||||
void mtr_remove(Gtk::Widget &w);
|
void mtr_remove(Gtk::Widget &w);
|
||||||
};
|
};
|
||||||
|
|
||||||
class LevelMeterVBox : public LevelMeterBase, public Gtk::VBox
|
class LevelMeterVBox : public LevelMeterBase, public Gtk::VBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LevelMeterVBox (ARDOUR::Session*);
|
LevelMeterVBox (ARDOUR::Session*);
|
||||||
~LevelMeterVBox();
|
~LevelMeterVBox();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void mtr_pack(Gtk::Widget &w);
|
void mtr_pack(Gtk::Widget &w);
|
||||||
void mtr_remove(Gtk::Widget &w);
|
void mtr_remove(Gtk::Widget &w);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ class LuaWindow :
|
||||||
public ARDOUR::SessionHandlePtr,
|
public ARDOUR::SessionHandlePtr,
|
||||||
public Gtkmm2ext::VisibilityTracker
|
public Gtkmm2ext::VisibilityTracker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static LuaWindow* instance();
|
static LuaWindow* instance();
|
||||||
~LuaWindow();
|
~LuaWindow();
|
||||||
|
|
||||||
|
|
@ -66,7 +66,8 @@ class LuaWindow :
|
||||||
Buffer_Scratch = 0x10,
|
Buffer_Scratch = 0x10,
|
||||||
} BufferFlags;
|
} BufferFlags;
|
||||||
|
|
||||||
class ScriptBuffer {
|
class ScriptBuffer
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
ScriptBuffer (const std::string&);
|
ScriptBuffer (const std::string&);
|
||||||
ScriptBuffer (ARDOUR::LuaScriptInfoPtr);
|
ScriptBuffer (ARDOUR::LuaScriptInfoPtr);
|
||||||
|
|
@ -82,7 +83,7 @@ class LuaWindow :
|
||||||
ARDOUR::LuaScriptInfo::ScriptType type;
|
ARDOUR::LuaScriptInfo::ScriptType type;
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LuaWindow ();
|
LuaWindow ();
|
||||||
static LuaWindow* _instance;
|
static LuaWindow* _instance;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,9 +48,9 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class LV2PluginUI : public PlugUIBase, public Gtk::VBox
|
class LV2PluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LV2PluginUI (boost::shared_ptr<ARDOUR::PluginInsert>,
|
LV2PluginUI (boost::shared_ptr<ARDOUR::PluginInsert>,
|
||||||
boost::shared_ptr<ARDOUR::LV2Plugin>);
|
boost::shared_ptr<ARDOUR::LV2Plugin>);
|
||||||
~LV2PluginUI ();
|
~LV2PluginUI ();
|
||||||
|
|
||||||
gint get_preferred_height ();
|
gint get_preferred_height ();
|
||||||
|
|
@ -63,7 +63,7 @@ class LV2PluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
int package (Gtk::Window&);
|
int package (Gtk::Window&);
|
||||||
void grab_focus ();
|
void grab_focus ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void control_changed (uint32_t);
|
void control_changed (uint32_t);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class LXVSTPluginUI : public VSTPluginUI
|
class LXVSTPluginUI : public VSTPluginUI
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LXVSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert>, boost::shared_ptr<ARDOUR::VSTPlugin>);
|
LXVSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert>, boost::shared_ptr<ARDOUR::VSTPlugin>);
|
||||||
~LXVSTPluginUI ();
|
~LXVSTPluginUI ();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ class PublicEditor;
|
||||||
*/
|
*/
|
||||||
class ArdourMarker : public sigc::trackable
|
class ArdourMarker : public sigc::trackable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum Type {
|
enum Type {
|
||||||
Mark,
|
Mark,
|
||||||
Tempo,
|
Tempo,
|
||||||
|
|
@ -61,7 +61,7 @@ class ArdourMarker : public sigc::trackable
|
||||||
|
|
||||||
|
|
||||||
ArdourMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, Type,
|
ArdourMarker (PublicEditor& editor, ArdourCanvas::Container &, guint32 rgba, const std::string& text, Type,
|
||||||
framepos_t frame = 0, bool handle_events = true);
|
framepos_t frame = 0, bool handle_events = true);
|
||||||
|
|
||||||
virtual ~ArdourMarker ();
|
virtual ~ArdourMarker ();
|
||||||
|
|
||||||
|
|
@ -100,7 +100,7 @@ class ArdourMarker : public sigc::trackable
|
||||||
|
|
||||||
bool label_on_left () const;
|
bool label_on_left () const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PublicEditor& editor;
|
PublicEditor& editor;
|
||||||
|
|
||||||
Pango::FontDescription name_font;
|
Pango::FontDescription name_font;
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ namespace Gtk {
|
||||||
|
|
||||||
class MeterStrip : public Gtk::VBox, public AxisView, public RouteUI
|
class MeterStrip : public Gtk::VBox, public AxisView, public RouteUI
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MeterStrip (ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>);
|
MeterStrip (ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>);
|
||||||
MeterStrip (int, ARDOUR::MeterType);
|
MeterStrip (int, ARDOUR::MeterType);
|
||||||
~MeterStrip ();
|
~MeterStrip ();
|
||||||
|
|
@ -79,7 +79,7 @@ class MeterStrip : public Gtk::VBox, public AxisView, public RouteUI
|
||||||
|
|
||||||
bool selected() const { return false; }
|
bool selected() const { return false; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
boost::shared_ptr<ARDOUR::Route> _route;
|
boost::shared_ptr<ARDOUR::Route> _route;
|
||||||
PBD::ScopedConnectionList meter_route_connections;
|
PBD::ScopedConnectionList meter_route_connections;
|
||||||
PBD::ScopedConnectionList level_meter_connection;
|
PBD::ScopedConnectionList level_meter_connection;
|
||||||
|
|
@ -99,7 +99,7 @@ class MeterStrip : public Gtk::VBox, public AxisView, public RouteUI
|
||||||
std::string state_id() const;
|
std::string state_id() const;
|
||||||
void set_button_names ();
|
void set_button_names ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::VBox mtr_vbox;
|
Gtk::VBox mtr_vbox;
|
||||||
Gtk::VBox nfo_vbox;
|
Gtk::VBox nfo_vbox;
|
||||||
Gtk::EventBox mtr_container;
|
Gtk::EventBox mtr_container;
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ class Meterbridge :
|
||||||
public ARDOUR::SessionHandlePtr,
|
public ARDOUR::SessionHandlePtr,
|
||||||
public Gtkmm2ext::VisibilityTracker
|
public Gtkmm2ext::VisibilityTracker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Meterbridge* instance();
|
static Meterbridge* instance();
|
||||||
~Meterbridge();
|
~Meterbridge();
|
||||||
|
|
||||||
|
|
@ -56,7 +56,7 @@ class Meterbridge :
|
||||||
void show_window ();
|
void show_window ();
|
||||||
bool hide_window (GdkEventAny *ev);
|
bool hide_window (GdkEventAny *ev);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Meterbridge ();
|
Meterbridge ();
|
||||||
static Meterbridge* _instance;
|
static Meterbridge* _instance;
|
||||||
|
|
||||||
|
|
@ -94,7 +94,8 @@ class Meterbridge :
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct MeterOrderRouteSorter {
|
struct MeterOrderRouteSorter
|
||||||
|
{
|
||||||
bool operator() (struct MeterBridgeStrip ma, struct MeterBridgeStrip mb) {
|
bool operator() (struct MeterBridgeStrip ma, struct MeterBridgeStrip mb) {
|
||||||
boost::shared_ptr<ARDOUR::Route> a = ma.s->route();
|
boost::shared_ptr<ARDOUR::Route> a = ma.s->route();
|
||||||
boost::shared_ptr<ARDOUR::Route> b = mb.s->route();
|
boost::shared_ptr<ARDOUR::Route> b = mb.s->route();
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,11 @@
|
||||||
|
|
||||||
class MidiChannelDialog : public ArdourDialog
|
class MidiChannelDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MidiChannelDialog (uint8_t active_channel = 0);
|
MidiChannelDialog (uint8_t active_channel = 0);
|
||||||
uint8_t active_channel() const;
|
uint8_t active_channel() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SingleMidiChannelSelector selector;
|
SingleMidiChannelSelector selector;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class MidiChannelSelector : public Gtk::Table
|
class MidiChannelSelector : public Gtk::Table
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MidiChannelSelector(int n_rows = 4, int n_columns = 4, int start_row = 0, int start_column = 0);
|
MidiChannelSelector(int n_rows = 4, int n_columns = 4, int start_row = 0, int start_column = 0);
|
||||||
virtual ~MidiChannelSelector() = 0;
|
virtual ~MidiChannelSelector() = 0;
|
||||||
|
|
||||||
|
|
@ -50,7 +50,7 @@ class MidiChannelSelector : public Gtk::Table
|
||||||
void set_channel_colors(const uint32_t new_channel_colors[16]);
|
void set_channel_colors(const uint32_t new_channel_colors[16]);
|
||||||
void set_default_channel_color();
|
void set_default_channel_color();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void button_toggled(Gtk::ToggleButton* button, uint8_t button_nr) = 0;
|
virtual void button_toggled(Gtk::ToggleButton* button, uint8_t button_nr) = 0;
|
||||||
Gtk::Label _button_labels[4][4];
|
Gtk::Label _button_labels[4][4];
|
||||||
Gtkmm2ext::StatefulToggleButton _buttons[4][4];
|
Gtkmm2ext::StatefulToggleButton _buttons[4][4];
|
||||||
|
|
@ -61,14 +61,14 @@ class MidiChannelSelector : public Gtk::Table
|
||||||
|
|
||||||
class SingleMidiChannelSelector : public MidiChannelSelector
|
class SingleMidiChannelSelector : public MidiChannelSelector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SingleMidiChannelSelector(uint8_t active_channel = 0);
|
SingleMidiChannelSelector(uint8_t active_channel = 0);
|
||||||
|
|
||||||
uint8_t get_active_channel() const { return _active_channel; }
|
uint8_t get_active_channel() const { return _active_channel; }
|
||||||
|
|
||||||
sigc::signal<void, uint8_t> channel_selected;
|
sigc::signal<void, uint8_t> channel_selected;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void button_toggled(Gtk::ToggleButton* button, uint8_t button_nr);
|
virtual void button_toggled(Gtk::ToggleButton* button, uint8_t button_nr);
|
||||||
|
|
||||||
Gtk::ToggleButton* _last_active_button;
|
Gtk::ToggleButton* _last_active_button;
|
||||||
|
|
@ -77,9 +77,9 @@ class SingleMidiChannelSelector : public MidiChannelSelector
|
||||||
|
|
||||||
class MidiMultipleChannelSelector : public MidiChannelSelector
|
class MidiMultipleChannelSelector : public MidiChannelSelector
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MidiMultipleChannelSelector(ARDOUR::ChannelMode mode = ARDOUR::FilterChannels,
|
MidiMultipleChannelSelector(ARDOUR::ChannelMode mode = ARDOUR::FilterChannels,
|
||||||
uint16_t initial_selection = 0xFFFF);
|
uint16_t initial_selection = 0xFFFF);
|
||||||
|
|
||||||
virtual ~MidiMultipleChannelSelector();
|
virtual ~MidiMultipleChannelSelector();
|
||||||
|
|
||||||
|
|
@ -100,7 +100,7 @@ class MidiMultipleChannelSelector : public MidiChannelSelector
|
||||||
uint16_t get_selected_channels() const;
|
uint16_t get_selected_channels() const;
|
||||||
void set_selected_channels(uint16_t selected_channels);
|
void set_selected_channels(uint16_t selected_channels);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ARDOUR::ChannelMode _channel_mode;
|
ARDOUR::ChannelMode _channel_mode;
|
||||||
ARDOUR::NoteMode _note_mode;
|
ARDOUR::NoteMode _note_mode;
|
||||||
|
|
||||||
|
|
@ -118,14 +118,14 @@ class MidiMultipleChannelSelector : public MidiChannelSelector
|
||||||
|
|
||||||
class MidiChannelSelectorWindow : public ArdourWindow, public PBD::ScopedConnectionList
|
class MidiChannelSelectorWindow : public ArdourWindow, public PBD::ScopedConnectionList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MidiChannelSelectorWindow (boost::shared_ptr<ARDOUR::MidiTrack>);
|
MidiChannelSelectorWindow (boost::shared_ptr<ARDOUR::MidiTrack>);
|
||||||
~MidiChannelSelectorWindow ();
|
~MidiChannelSelectorWindow ();
|
||||||
|
|
||||||
void set_channel_colors (const uint32_t new_channel_colors[16]);
|
void set_channel_colors (const uint32_t new_channel_colors[16]);
|
||||||
void set_default_channel_color();
|
void set_default_channel_color();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::shared_ptr<ARDOUR::MidiTrack> track;
|
boost::shared_ptr<ARDOUR::MidiTrack> track;
|
||||||
std::vector<Gtk::ToggleButton*> playback_buttons;
|
std::vector<Gtk::ToggleButton*> playback_buttons;
|
||||||
std::vector<Gtk::ToggleButton*> capture_buttons;
|
std::vector<Gtk::ToggleButton*> capture_buttons;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class MidiCutBuffer : public ARDOUR::AutomatableSequence<Evoral::Beats>
|
class MidiCutBuffer : public ARDOUR::AutomatableSequence<Evoral::Beats>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef Evoral::Beats TimeType;
|
typedef Evoral::Beats TimeType;
|
||||||
|
|
||||||
MidiCutBuffer (ARDOUR::Session*);
|
MidiCutBuffer (ARDOUR::Session*);
|
||||||
|
|
@ -40,7 +40,7 @@ class MidiCutBuffer : public ARDOUR::AutomatableSequence<Evoral::Beats>
|
||||||
|
|
||||||
void set (const Evoral::Sequence<TimeType>::Notes&);
|
void set (const Evoral::Sequence<TimeType>::Notes&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TimeType _origin;
|
TimeType _origin;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,9 @@
|
||||||
#include "ardour_dialog.h"
|
#include "ardour_dialog.h"
|
||||||
#include "public_editor.h"
|
#include "public_editor.h"
|
||||||
|
|
||||||
class MidiExportDialog : public ArdourDialog {
|
class MidiExportDialog : public ArdourDialog
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
MidiExportDialog (PublicEditor& editor, boost::shared_ptr<ARDOUR::MidiRegion>);
|
MidiExportDialog (PublicEditor& editor, boost::shared_ptr<ARDOUR::MidiRegion>);
|
||||||
~MidiExportDialog ();
|
~MidiExportDialog ();
|
||||||
|
|
||||||
|
|
@ -36,7 +37,7 @@ class MidiExportDialog : public ArdourDialog {
|
||||||
|
|
||||||
std::string get_path() const;
|
std::string get_path() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::FileChooserWidget file_chooser;
|
Gtk::FileChooserWidget file_chooser;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,15 +43,16 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class MidiListEditor : public ArdourWindow
|
class MidiListEditor : public ArdourWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef Evoral::Note<Evoral::Beats> NoteType;
|
typedef Evoral::Note<Evoral::Beats> NoteType;
|
||||||
|
|
||||||
MidiListEditor(ARDOUR::Session*, boost::shared_ptr<ARDOUR::MidiRegion>,
|
MidiListEditor(ARDOUR::Session*, boost::shared_ptr<ARDOUR::MidiRegion>,
|
||||||
boost::shared_ptr<ARDOUR::MidiTrack>);
|
boost::shared_ptr<ARDOUR::MidiTrack>);
|
||||||
~MidiListEditor();
|
~MidiListEditor();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct MidiListModelColumns : public Gtk::TreeModel::ColumnRecord {
|
struct MidiListModelColumns : public Gtk::TreeModel::ColumnRecord
|
||||||
|
{
|
||||||
MidiListModelColumns() {
|
MidiListModelColumns() {
|
||||||
add (channel);
|
add (channel);
|
||||||
add (note);
|
add (note);
|
||||||
|
|
@ -70,7 +71,8 @@ class MidiListEditor : public ArdourWindow
|
||||||
Gtk::TreeModelColumn<boost::shared_ptr<NoteType> > _note;
|
Gtk::TreeModelColumn<boost::shared_ptr<NoteType> > _note;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct NoteLengthColumns : public Gtk::TreeModel::ColumnRecord {
|
struct NoteLengthColumns : public Gtk::TreeModel::ColumnRecord
|
||||||
|
{
|
||||||
NoteLengthColumns() {
|
NoteLengthColumns() {
|
||||||
add (ticks);
|
add (ticks);
|
||||||
add (name);
|
add (name);
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,9 @@
|
||||||
#include <gtkmm2ext/scroomer.h>
|
#include <gtkmm2ext/scroomer.h>
|
||||||
#include <gdkmm/pixbuf.h>
|
#include <gdkmm/pixbuf.h>
|
||||||
|
|
||||||
class MidiScroomer : public Gtkmm2ext::Scroomer {
|
class MidiScroomer : public Gtkmm2ext::Scroomer
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
MidiScroomer(Gtk::Adjustment&);
|
MidiScroomer(Gtk::Adjustment&);
|
||||||
~MidiScroomer();
|
~MidiScroomer();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class Selection;
|
||||||
|
|
||||||
class MidiStreamView : public StreamView
|
class MidiStreamView : public StreamView
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MidiStreamView (MidiTimeAxisView&);
|
MidiStreamView (MidiTimeAxisView&);
|
||||||
~MidiStreamView ();
|
~MidiStreamView ();
|
||||||
|
|
||||||
|
|
@ -78,23 +78,26 @@ class MidiStreamView : public StreamView
|
||||||
void update_note_range(uint8_t note_num);
|
void update_note_range(uint8_t note_num);
|
||||||
|
|
||||||
void set_layer_display (LayerDisplay);
|
void set_layer_display (LayerDisplay);
|
||||||
// bool can_change_layer_display() const { return false; } //revert this change for now. Although stacked view is weirdly implemented wrt the "scroomer", it is still necessary to be able to manage layered regions.
|
//bool can_change_layer_display() const { return false; } // revert this change for now. Although stacked view is weirdly implemented wrt the "scroomer", it is still necessary to be able to manage layered regions.
|
||||||
void redisplay_track ();
|
void redisplay_track ();
|
||||||
|
|
||||||
inline double contents_height() const
|
inline double contents_height() const {
|
||||||
{ return (child_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2); }
|
return (child_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2);
|
||||||
|
}
|
||||||
|
|
||||||
inline double note_to_y(uint8_t note) const
|
inline double note_to_y(uint8_t note) const {
|
||||||
{ return contents_height()
|
return contents_height() - (note + 1 - lowest_note()) * note_height() + 1;
|
||||||
- (note + 1 - lowest_note()) * note_height() + 1; }
|
}
|
||||||
|
|
||||||
uint8_t y_to_note(double y) const;
|
uint8_t y_to_note(double y) const;
|
||||||
|
|
||||||
inline double note_height() const
|
inline double note_height() const {
|
||||||
{ return contents_height() / (double)contents_note_range(); }
|
return contents_height() / (double)contents_note_range();
|
||||||
|
}
|
||||||
|
|
||||||
inline uint8_t contents_note_range() const
|
inline uint8_t contents_note_range() const {
|
||||||
{ return highest_note() - lowest_note() + 1; }
|
return highest_note() - lowest_note() + 1;
|
||||||
|
}
|
||||||
|
|
||||||
sigc::signal<void> NoteRangeChanged;
|
sigc::signal<void> NoteRangeChanged;
|
||||||
|
|
||||||
|
|
@ -107,16 +110,16 @@ class MidiStreamView : public StreamView
|
||||||
void suspend_updates ();
|
void suspend_updates ();
|
||||||
void resume_updates ();
|
void resume_updates ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void setup_rec_box ();
|
void setup_rec_box ();
|
||||||
void update_rec_box ();
|
void update_rec_box ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
RegionView* add_region_view_internal (
|
RegionView* add_region_view_internal (
|
||||||
boost::shared_ptr<ARDOUR::Region>,
|
boost::shared_ptr<ARDOUR::Region>,
|
||||||
bool wait_for_waves,
|
bool wait_for_waves,
|
||||||
bool recording = false);
|
bool recording = false);
|
||||||
|
|
||||||
void display_region(MidiRegionView* region_view, bool load_model);
|
void display_region(MidiRegionView* region_view, bool load_model);
|
||||||
void display_track (boost::shared_ptr<ARDOUR::Track> tr);
|
void display_track (boost::shared_ptr<ARDOUR::Track> tr);
|
||||||
|
|
|
||||||
|
|
@ -45,11 +45,11 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class MidiTracer : public ArdourWindow
|
class MidiTracer : public ArdourWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MidiTracer ();
|
MidiTracer ();
|
||||||
~MidiTracer();
|
~MidiTracer();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::TextView text;
|
Gtk::TextView text;
|
||||||
Gtk::ScrolledWindow scroller;
|
Gtk::ScrolledWindow scroller;
|
||||||
Gtk::Adjustment line_count_adjustment;
|
Gtk::Adjustment line_count_adjustment;
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,11 @@
|
||||||
|
|
||||||
class MidiVelocityDialog : public ArdourDialog
|
class MidiVelocityDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MidiVelocityDialog (uint8_t current_velocity = 0);
|
MidiVelocityDialog (uint8_t current_velocity = 0);
|
||||||
uint8_t velocity() const;
|
uint8_t velocity() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Adjustment adjustment;
|
Gtk::Adjustment adjustment;
|
||||||
Gtk::SpinButton spinner;
|
Gtk::SpinButton spinner;
|
||||||
Gtk::Label label;
|
Gtk::Label label;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class MissingPluginDialog : public ArdourDialog
|
class MissingPluginDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MissingPluginDialog (ARDOUR::Session *, std::list<std::string> const &);
|
MissingPluginDialog (ARDOUR::Session *, std::list<std::string> const &);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ class ArdourWindow;
|
||||||
|
|
||||||
class MixerStrip : public AxisView, public RouteUI, public Gtk::EventBox
|
class MixerStrip : public AxisView, public RouteUI, public Gtk::EventBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MixerStrip (Mixer_UI&, ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>, bool in_mixer = true);
|
MixerStrip (Mixer_UI&, ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>, bool in_mixer = true);
|
||||||
MixerStrip (Mixer_UI&, ARDOUR::Session*, bool in_mixer = true);
|
MixerStrip (Mixer_UI&, ARDOUR::Session*, bool in_mixer = true);
|
||||||
~MixerStrip ();
|
~MixerStrip ();
|
||||||
|
|
@ -144,14 +144,14 @@ class MixerStrip : public AxisView, public RouteUI, public Gtk::EventBox
|
||||||
|
|
||||||
static MixerStrip* entered_mixer_strip() { return _entered_mixer_strip; }
|
static MixerStrip* entered_mixer_strip() { return _entered_mixer_strip; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class Mixer_UI;
|
friend class Mixer_UI;
|
||||||
void set_packed (bool yn);
|
void set_packed (bool yn);
|
||||||
bool packed () { return _packed; }
|
bool packed () { return _packed; }
|
||||||
|
|
||||||
void set_stuff_from_route ();
|
void set_stuff_from_route ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Mixer_UI& _mixer;
|
Mixer_UI& _mixer;
|
||||||
|
|
||||||
void init ();
|
void init ();
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ protected:
|
||||||
|
|
||||||
class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr, public AxisViewProvider
|
class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, public ARDOUR::SessionHandlePtr, public AxisViewProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Mixer_UI* instance();
|
static Mixer_UI* instance();
|
||||||
~Mixer_UI();
|
~Mixer_UI();
|
||||||
|
|
||||||
|
|
@ -127,10 +127,10 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
|
||||||
void load_bindings ();
|
void load_bindings ();
|
||||||
Gtkmm2ext::Bindings* bindings;
|
Gtkmm2ext::Bindings* bindings;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void set_axis_targets_for_operation ();
|
void set_axis_targets_for_operation ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Mixer_UI ();
|
Mixer_UI ();
|
||||||
static Mixer_UI* _instance;
|
static Mixer_UI* _instance;
|
||||||
Gtk::VBox _content;
|
Gtk::VBox _content;
|
||||||
|
|
@ -343,8 +343,8 @@ class Mixer_UI : public Gtkmm2ext::Tabbable, public PBD::ScopedConnectionList, p
|
||||||
static const int32_t default_height = 765;
|
static const int32_t default_height = 765;
|
||||||
|
|
||||||
/** true if we are rebuilding the route group list, or clearing
|
/** true if we are rebuilding the route group list, or clearing
|
||||||
it during a session teardown.
|
* it during a session teardown.
|
||||||
*/
|
*/
|
||||||
bool _in_group_rebuild_or_clear;
|
bool _in_group_rebuild_or_clear;
|
||||||
bool _route_deletion_in_progress;
|
bool _route_deletion_in_progress;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ namespace Gtkmm2ext {
|
||||||
|
|
||||||
class MonitorSection : public RouteUI, public Gtk::EventBox
|
class MonitorSection : public RouteUI, public Gtk::EventBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MonitorSection (ARDOUR::Session*);
|
MonitorSection (ARDOUR::Session*);
|
||||||
~MonitorSection ();
|
~MonitorSection ();
|
||||||
|
|
||||||
|
|
@ -53,7 +53,7 @@ class MonitorSection : public RouteUI, public Gtk::EventBox
|
||||||
|
|
||||||
PluginSelector* plugin_selector() { return _plugin_selector; }
|
PluginSelector* plugin_selector() { return _plugin_selector; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::HBox hpacker;
|
Gtk::HBox hpacker;
|
||||||
Gtk::VBox vpacker;
|
Gtk::VBox vpacker;
|
||||||
Gtkmm2ext::TearOff* _tearoff;
|
Gtkmm2ext::TearOff* _tearoff;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
class MonitorSelector : public PortMatrix
|
class MonitorSelector : public PortMatrix
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MonitorSelector (Gtk::Window*, ARDOUR::Session *, boost::shared_ptr<ARDOUR::IO>);
|
MonitorSelector (Gtk::Window*, ARDOUR::Session *, boost::shared_ptr<ARDOUR::IO>);
|
||||||
|
|
||||||
void set_state (ARDOUR::BundleChannel c[2], bool);
|
void set_state (ARDOUR::BundleChannel c[2], bool);
|
||||||
|
|
@ -55,8 +55,7 @@ class MonitorSelector : public PortMatrix
|
||||||
bool can_remove_channels (boost::shared_ptr<ARDOUR::Bundle>) const { return false; }
|
bool can_remove_channels (boost::shared_ptr<ARDOUR::Bundle>) const { return false; }
|
||||||
bool can_rename_channels (boost::shared_ptr<ARDOUR::Bundle>) const { return false; }
|
bool can_rename_channels (boost::shared_ptr<ARDOUR::Bundle>) const { return false; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void io_changed ();
|
void io_changed ();
|
||||||
void io_changed_proxy ();
|
void io_changed_proxy ();
|
||||||
|
|
||||||
|
|
@ -70,16 +69,16 @@ class MonitorSelector : public PortMatrix
|
||||||
|
|
||||||
class MonitorSelectorWindow : public ArdourWindow
|
class MonitorSelectorWindow : public ArdourWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MonitorSelectorWindow (ARDOUR::Session *, boost::shared_ptr<ARDOUR::IO>, bool can_cancel = false);
|
MonitorSelectorWindow (ARDOUR::Session *, boost::shared_ptr<ARDOUR::IO>, bool can_cancel = false);
|
||||||
|
|
||||||
MonitorSelector& selector() { return _selector; }
|
MonitorSelector& selector() { return _selector; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void on_map ();
|
void on_map ();
|
||||||
void on_show ();
|
void on_show ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MonitorSelector _selector;
|
MonitorSelector _selector;
|
||||||
|
|
||||||
void io_name_changed (void *src);
|
void io_name_changed (void *src);
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ namespace PBD {
|
||||||
|
|
||||||
class MonoPanner : public PannerInterface
|
class MonoPanner : public PannerInterface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MonoPanner (boost::shared_ptr<ARDOUR::PannerShell>);
|
MonoPanner (boost::shared_ptr<ARDOUR::PannerShell>);
|
||||||
~MonoPanner ();
|
~MonoPanner ();
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ class MonoPanner : public PannerInterface
|
||||||
sigc::signal<void> StartGesture;
|
sigc::signal<void> StartGesture;
|
||||||
sigc::signal<void> StopGesture;
|
sigc::signal<void> StopGesture;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool on_expose_event (GdkEventExpose*);
|
bool on_expose_event (GdkEventExpose*);
|
||||||
bool on_button_press_event (GdkEventButton*);
|
bool on_button_press_event (GdkEventButton*);
|
||||||
bool on_button_release_event (GdkEventButton*);
|
bool on_button_release_event (GdkEventButton*);
|
||||||
|
|
@ -55,7 +55,7 @@ class MonoPanner : public PannerInterface
|
||||||
bool on_scroll_event (GdkEventScroll*);
|
bool on_scroll_event (GdkEventScroll*);
|
||||||
bool on_key_press_event (GdkEventKey*);
|
bool on_key_press_event (GdkEventKey*);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PannerEditor* editor ();
|
PannerEditor* editor ();
|
||||||
boost::shared_ptr<ARDOUR::PannerShell> _panner_shell;
|
boost::shared_ptr<ARDOUR::PannerShell> _panner_shell;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,13 +28,13 @@
|
||||||
|
|
||||||
class NagScreen : public ArdourDialog
|
class NagScreen : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
~NagScreen();
|
~NagScreen();
|
||||||
|
|
||||||
static NagScreen* maybe_nag (std::string context);
|
static NagScreen* maybe_nag (std::string context);
|
||||||
void nag ();
|
void nag ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NagScreen (std::string context, bool maybe_subscriber);
|
NagScreen (std::string context, bool maybe_subscriber);
|
||||||
|
|
||||||
Gtk::Label message;
|
Gtk::Label message;
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ namespace ArdourCanvas {
|
||||||
*/
|
*/
|
||||||
class NoteBase : public sigc::trackable
|
class NoteBase : public sigc::trackable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef Evoral::Note<Evoral::Beats> NoteType;
|
typedef Evoral::Note<Evoral::Beats> NoteType;
|
||||||
|
|
||||||
NoteBase (MidiRegionView& region, bool, const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>());
|
NoteBase (MidiRegionView& region, bool, const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>());
|
||||||
|
|
@ -106,11 +106,9 @@ class NoteBase : public sigc::trackable
|
||||||
if (selected) {
|
if (selected) {
|
||||||
return _selected_mod_col;
|
return _selected_mod_col;
|
||||||
} else if (vel < 64) {
|
} else if (vel < 64) {
|
||||||
return UINT_INTERPOLATE(_min_col, _mid_col,
|
return UINT_INTERPOLATE(_min_col, _mid_col, (vel / (double)63.0));
|
||||||
(vel / (double)63.0));
|
|
||||||
} else {
|
} else {
|
||||||
return UINT_INTERPOLATE(_mid_col, _max_col,
|
return UINT_INTERPOLATE(_mid_col, _max_col, ((vel - 64) / (double)63.0));
|
||||||
((vel-64) / (double)63.0));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,17 +23,18 @@
|
||||||
|
|
||||||
class NSM_Client:public NSM::Client
|
class NSM_Client:public NSM::Client
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
NSM_Client();
|
NSM_Client();
|
||||||
~NSM_Client() { }
|
~NSM_Client() { }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
int command_open(const char *name,
|
int command_open (const char *name,
|
||||||
const char *display_name,
|
const char *display_name,
|
||||||
const char *client_id,
|
const char *client_id,
|
||||||
char **out_msg);
|
char **out_msg);
|
||||||
int command_save(char **out_msg);
|
|
||||||
|
int command_save (char **out_msg);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,90 +23,88 @@
|
||||||
|
|
||||||
namespace NSM
|
namespace NSM
|
||||||
{
|
{
|
||||||
|
class Client
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
|
||||||
class Client
|
const char *nsm_url;
|
||||||
|
|
||||||
|
lo_server _server;
|
||||||
|
lo_server_thread _st;
|
||||||
|
lo_address nsm_addr;
|
||||||
|
|
||||||
|
bool nsm_is_active;
|
||||||
|
char *_nsm_client_id;
|
||||||
|
char *_session_manager_name;
|
||||||
|
char *_nsm_client_path;
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
enum
|
||||||
{
|
{
|
||||||
|
ERR_OK = 0,
|
||||||
private:
|
ERR_GENERAL = -1,
|
||||||
|
ERR_INCOMPATIBLE_API = -2,
|
||||||
const char *nsm_url;
|
ERR_BLACKLISTED = -3,
|
||||||
|
ERR_LAUNCH_FAILED = -4,
|
||||||
lo_server _server;
|
ERR_NO_SUCH_FILE = -5,
|
||||||
lo_server_thread _st;
|
ERR_NO_SESSION_OPEN = -6,
|
||||||
lo_address nsm_addr;
|
ERR_UNSAVED_CHANGES = -7,
|
||||||
|
ERR_NOT_NOW = -8
|
||||||
bool nsm_is_active;
|
|
||||||
char *_nsm_client_id;
|
|
||||||
char *_session_manager_name;
|
|
||||||
char *_nsm_client_path;
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ERR_OK = 0,
|
|
||||||
ERR_GENERAL = -1,
|
|
||||||
ERR_INCOMPATIBLE_API = -2,
|
|
||||||
ERR_BLACKLISTED = -3,
|
|
||||||
ERR_LAUNCH_FAILED = -4,
|
|
||||||
ERR_NO_SUCH_FILE = -5,
|
|
||||||
ERR_NO_SESSION_OPEN = -6,
|
|
||||||
ERR_UNSAVED_CHANGES = -7,
|
|
||||||
ERR_NOT_NOW = -8
|
|
||||||
};
|
|
||||||
|
|
||||||
Client ( );
|
|
||||||
virtual ~Client ( );
|
|
||||||
|
|
||||||
bool is_active ( void ) { return nsm_is_active; }
|
|
||||||
|
|
||||||
const char *session_manager_name ( void ) { return _session_manager_name; }
|
|
||||||
const char *client_id ( void ) { return _nsm_client_id; }
|
|
||||||
const char *client_path ( void ) { return _nsm_client_path; }
|
|
||||||
|
|
||||||
/* Client->Server methods */
|
|
||||||
void is_dirty ( void );
|
|
||||||
void is_clean ( void );
|
|
||||||
void progress ( float f );
|
|
||||||
void message( int priority, const char *msg );
|
|
||||||
void announce ( const char *appliction_name, const char *capabilities, const char *process_name );
|
|
||||||
|
|
||||||
void broadcast ( lo_message msg );
|
|
||||||
|
|
||||||
/* init without threading */
|
|
||||||
int init ( const char *nsm_url );
|
|
||||||
/* init with threading */
|
|
||||||
int init_thread ( const char *nsm_url );
|
|
||||||
|
|
||||||
/* call this periodically to check for new messages */
|
|
||||||
void check ( int timeout = 0 );
|
|
||||||
|
|
||||||
/* or call these to start and stop a thread (must do your own locking in handler!) */
|
|
||||||
void start ( void );
|
|
||||||
void stop ( void );
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
/* Server->Client methods */
|
|
||||||
virtual int command_open ( const char *name, const char *display_name, const char *client_id, char **out_msg ) = 0;
|
|
||||||
virtual int command_save ( char **out_msg ) = 0;
|
|
||||||
|
|
||||||
virtual void command_active ( bool ) { }
|
|
||||||
|
|
||||||
virtual void command_session_is_loaded ( void ) { }
|
|
||||||
|
|
||||||
/* invoked when an unrecognized message is received. Should return 0 if you handled it, -1 otherwise. */
|
|
||||||
virtual int command_broadcast ( const char *, lo_message ) { return -1; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
/* osc handlers */
|
|
||||||
static int osc_open ( const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data );
|
|
||||||
static int osc_save ( const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data );
|
|
||||||
static int osc_announce_reply ( const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data );
|
|
||||||
static int osc_error ( const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data );
|
|
||||||
static int osc_session_is_loaded ( const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data );
|
|
||||||
static int osc_broadcast ( const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data );
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Client ();
|
||||||
|
virtual ~Client ();
|
||||||
|
|
||||||
|
bool is_active (void) { return nsm_is_active; }
|
||||||
|
|
||||||
|
const char *session_manager_name (void) { return _session_manager_name; }
|
||||||
|
const char *client_id (void) { return _nsm_client_id; }
|
||||||
|
const char *client_path (void) { return _nsm_client_path; }
|
||||||
|
|
||||||
|
/* Client->Server methods */
|
||||||
|
void is_dirty (void);
|
||||||
|
void is_clean (void);
|
||||||
|
void progress (float f);
|
||||||
|
void message (int priority, const char *msg);
|
||||||
|
void announce (const char *appliction_name, const char *capabilities, const char *process_name);
|
||||||
|
|
||||||
|
void broadcast (lo_message msg);
|
||||||
|
|
||||||
|
/* init without threading */
|
||||||
|
int init (const char *nsm_url);
|
||||||
|
/* init with threading */
|
||||||
|
int init_thread (const char *nsm_url);
|
||||||
|
|
||||||
|
/* call this periodically to check for new messages */
|
||||||
|
void check (int timeout = 0);
|
||||||
|
|
||||||
|
/* or call these to start and stop a thread (must do your own locking in handler!) */
|
||||||
|
void start (void);
|
||||||
|
void stop (void);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
/* Server->Client methods */
|
||||||
|
virtual int command_open (const char *name, const char *display_name, const char *client_id, char **out_msg) = 0;
|
||||||
|
virtual int command_save (char **out_msg) = 0;
|
||||||
|
|
||||||
|
virtual void command_active (bool) {}
|
||||||
|
|
||||||
|
virtual void command_session_is_loaded (void) {}
|
||||||
|
|
||||||
|
/* invoked when an unrecognized message is received. Should return 0 if you handled it, -1 otherwise. */
|
||||||
|
virtual int command_broadcast (const char *, lo_message) { return -1; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
/* osc handlers */
|
||||||
|
static int osc_open (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data);
|
||||||
|
static int osc_save (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data);
|
||||||
|
static int osc_announce_reply (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data);
|
||||||
|
static int osc_error (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data);
|
||||||
|
static int osc_session_is_loaded (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data);
|
||||||
|
static int osc_broadcast (const char *path, const char *types, lo_arg **argv, int argc, lo_message msg, void *user_data);
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ namespace Gtk {
|
||||||
|
|
||||||
class PannerUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
class PannerUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PannerUI (ARDOUR::Session*);
|
PannerUI (ARDOUR::Session*);
|
||||||
~PannerUI ();
|
~PannerUI ();
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ class PannerUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
static void setup_slider_pix ();
|
static void setup_slider_pix ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class MixerStrip;
|
friend class MixerStrip;
|
||||||
friend class SendUI;
|
friend class SendUI;
|
||||||
|
|
||||||
|
|
@ -105,7 +105,7 @@ class PannerUI : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
|
|
||||||
Gtk::VBox pan_bar_packer;
|
Gtk::VBox pan_bar_packer;
|
||||||
Gtk::VBox pan_vbox;
|
Gtk::VBox pan_vbox;
|
||||||
Gtk::VBox poswidth_box;
|
Gtk::VBox poswidth_box;
|
||||||
Width _width;
|
Width _width;
|
||||||
|
|
||||||
StereoPanner* _stereo_panner;
|
StereoPanner* _stereo_panner;
|
||||||
|
|
|
||||||
|
|
@ -41,16 +41,16 @@ class RouteUI;
|
||||||
|
|
||||||
class PlaylistSelector : public ArdourDialog
|
class PlaylistSelector : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PlaylistSelector ();
|
PlaylistSelector ();
|
||||||
~PlaylistSelector ();
|
~PlaylistSelector ();
|
||||||
|
|
||||||
void show_for (RouteUI*);
|
void show_for (RouteUI*);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool on_unmap_event (GdkEventAny*);
|
bool on_unmap_event (GdkEventAny*);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef std::map<PBD::ID,std::list<boost::shared_ptr<ARDOUR::Playlist> >*> TrackPlaylistMap;
|
typedef std::map<PBD::ID,std::list<boost::shared_ptr<ARDOUR::Playlist> >*> TrackPlaylistMap;
|
||||||
|
|
||||||
Gtk::ScrolledWindow scroller;
|
Gtk::ScrolledWindow scroller;
|
||||||
|
|
@ -64,13 +64,14 @@ class PlaylistSelector : public ArdourDialog
|
||||||
void close_button_click ();
|
void close_button_click ();
|
||||||
void selection_changed ();
|
void selection_changed ();
|
||||||
|
|
||||||
struct ModelColumns : public Gtk::TreeModel::ColumnRecord {
|
struct ModelColumns : public Gtk::TreeModel::ColumnRecord
|
||||||
ModelColumns () {
|
{
|
||||||
add (text);
|
ModelColumns () {
|
||||||
add (playlist);
|
add (text);
|
||||||
}
|
add (playlist);
|
||||||
Gtk::TreeModelColumn<std::string> text;
|
}
|
||||||
Gtk::TreeModelColumn<boost::shared_ptr<ARDOUR::Playlist> > playlist;
|
Gtk::TreeModelColumn<std::string> text;
|
||||||
|
Gtk::TreeModelColumn<boost::shared_ptr<ARDOUR::Playlist> > playlist;
|
||||||
};
|
};
|
||||||
|
|
||||||
ModelColumns columns;
|
ModelColumns columns;
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,9 @@
|
||||||
|
|
||||||
typedef std::vector<ARDOUR::PluginPtr> SelectedPlugins;
|
typedef std::vector<ARDOUR::PluginPtr> SelectedPlugins;
|
||||||
|
|
||||||
class PluginInterestedObject {
|
class PluginInterestedObject
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
PluginInterestedObject() {}
|
PluginInterestedObject() {}
|
||||||
virtual ~PluginInterestedObject() {}
|
virtual ~PluginInterestedObject() {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class PluginSelector : public ArdourDialog
|
class PluginSelector : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PluginSelector (ARDOUR::PluginManager&);
|
PluginSelector (ARDOUR::PluginManager&);
|
||||||
~PluginSelector ();
|
~PluginSelector ();
|
||||||
|
|
||||||
|
|
@ -53,7 +53,7 @@ class PluginSelector : public ArdourDialog
|
||||||
Gtk::Menu* plugin_menu ();
|
Gtk::Menu* plugin_menu ();
|
||||||
void show_manager ();
|
void show_manager ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PluginInterestedObject* interested_object;
|
PluginInterestedObject* interested_object;
|
||||||
|
|
||||||
Gtk::ScrolledWindow scroller; // Available plugins
|
Gtk::ScrolledWindow scroller; // Available plugins
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ class VSTPluginUI;
|
||||||
|
|
||||||
class PlugUIBase : public virtual sigc::trackable, public PBD::ScopedConnectionList
|
class PlugUIBase : public virtual sigc::trackable, public PBD::ScopedConnectionList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PlugUIBase (boost::shared_ptr<ARDOUR::PluginInsert>);
|
PlugUIBase (boost::shared_ptr<ARDOUR::PluginInsert>);
|
||||||
virtual ~PlugUIBase();
|
virtual ~PlugUIBase();
|
||||||
|
|
||||||
|
|
@ -106,11 +106,11 @@ class PlugUIBase : public virtual sigc::trackable, public PBD::ScopedConnectionL
|
||||||
|
|
||||||
virtual void forward_key_event (GdkEventKey*) {}
|
virtual void forward_key_event (GdkEventKey*) {}
|
||||||
virtual void grab_focus () {}
|
virtual void grab_focus () {}
|
||||||
virtual bool non_gtk_gui() const { return false; }
|
virtual bool non_gtk_gui() const { return false; }
|
||||||
|
|
||||||
sigc::signal<void,bool> KeyboardFocused;
|
sigc::signal<void,bool> KeyboardFocused;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
boost::shared_ptr<ARDOUR::PluginInsert> insert;
|
boost::shared_ptr<ARDOUR::PluginInsert> insert;
|
||||||
boost::shared_ptr<ARDOUR::Plugin> plugin;
|
boost::shared_ptr<ARDOUR::Plugin> plugin;
|
||||||
|
|
||||||
|
|
@ -185,7 +185,7 @@ class PlugUIBase : public virtual sigc::trackable, public PBD::ScopedConnectionL
|
||||||
|
|
||||||
class GenericPluginUI : public PlugUIBase, public Gtk::VBox
|
class GenericPluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GenericPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> plug, bool scrollable=false);
|
GenericPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> plug, bool scrollable=false);
|
||||||
~GenericPluginUI ();
|
~GenericPluginUI ();
|
||||||
|
|
||||||
|
|
@ -195,7 +195,7 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
bool start_updating(GdkEventAny*);
|
bool start_updating(GdkEventAny*);
|
||||||
bool stop_updating(GdkEventAny*);
|
bool stop_updating(GdkEventAny*);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::VBox main_contents;
|
Gtk::VBox main_contents;
|
||||||
Gtk::HBox settings_box;
|
Gtk::HBox settings_box;
|
||||||
Gtk::HBox hpacker;
|
Gtk::HBox hpacker;
|
||||||
|
|
@ -301,7 +301,7 @@ class GenericPluginUI : public PlugUIBase, public Gtk::VBox
|
||||||
|
|
||||||
class PluginUIWindow : public ArdourWindow
|
class PluginUIWindow : public ArdourWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PluginUIWindow (boost::shared_ptr<ARDOUR::PluginInsert> insert,
|
PluginUIWindow (boost::shared_ptr<ARDOUR::PluginInsert> insert,
|
||||||
bool scrollable=false,
|
bool scrollable=false,
|
||||||
bool editor=true);
|
bool editor=true);
|
||||||
|
|
@ -319,7 +319,7 @@ class PluginUIWindow : public ArdourWindow
|
||||||
void on_show ();
|
void on_show ();
|
||||||
void on_hide ();
|
void on_hide ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string _title;
|
std::string _title;
|
||||||
PlugUIBase* _pluginui;
|
PlugUIBase* _pluginui;
|
||||||
PBD::ScopedConnection death_connection;
|
PBD::ScopedConnection death_connection;
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ private:
|
||||||
/// A list of PortGroups
|
/// A list of PortGroups
|
||||||
class PortGroupList : public sigc::trackable
|
class PortGroupList : public sigc::trackable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PortGroupList ();
|
PortGroupList ();
|
||||||
~PortGroupList();
|
~PortGroupList();
|
||||||
|
|
||||||
|
|
@ -136,16 +136,14 @@ class PortGroupList : public sigc::trackable
|
||||||
/** A bundle in one of our groups has changed */
|
/** A bundle in one of our groups has changed */
|
||||||
PBD::Signal1<void,ARDOUR::Bundle::Change> BundleChanged;
|
PBD::Signal1<void,ARDOUR::Bundle::Change> BundleChanged;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool port_has_prefix (std::string const &, std::string const &) const;
|
bool port_has_prefix (std::string const &, std::string const &) const;
|
||||||
std::string common_prefix (std::vector<std::string> const &) const;
|
std::string common_prefix (std::vector<std::string> const &) const;
|
||||||
std::string common_prefix_before (std::vector<std::string> const &, std::string const &) const;
|
std::string common_prefix_before (std::vector<std::string> const &, std::string const &) const;
|
||||||
void emit_changed ();
|
void emit_changed ();
|
||||||
void emit_bundle_changed (ARDOUR::Bundle::Change);
|
void emit_bundle_changed (ARDOUR::Bundle::Change);
|
||||||
boost::shared_ptr<ARDOUR::Bundle> make_bundle_from_ports (std::vector<std::string> const &, ARDOUR::DataType, bool, std::string const& bundle_name = std::string()) const;
|
boost::shared_ptr<ARDOUR::Bundle> make_bundle_from_ports (std::vector<std::string> const &, ARDOUR::DataType, bool, std::string const& bundle_name = std::string()) const;
|
||||||
void maybe_add_processor_to_list (
|
void maybe_add_processor_to_list (boost::weak_ptr<ARDOUR::Processor>, std::list<boost::shared_ptr<ARDOUR::IO> > *, bool, std::set<boost::shared_ptr<ARDOUR::IO> > &);
|
||||||
boost::weak_ptr<ARDOUR::Processor>, std::list<boost::shared_ptr<ARDOUR::IO> > *, bool, std::set<boost::shared_ptr<ARDOUR::IO> > &
|
|
||||||
);
|
|
||||||
|
|
||||||
mutable PortGroup::BundleList _bundles;
|
mutable PortGroup::BundleList _bundles;
|
||||||
List _groups;
|
List _groups;
|
||||||
|
|
|
||||||
|
|
@ -30,13 +30,13 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class PortInsertUI : public Gtk::VBox
|
class PortInsertUI : public Gtk::VBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PortInsertUI (Gtk::Window*, ARDOUR::Session *, boost::shared_ptr<ARDOUR::PortInsert>);
|
PortInsertUI (Gtk::Window*, ARDOUR::Session *, boost::shared_ptr<ARDOUR::PortInsert>);
|
||||||
|
|
||||||
void redisplay ();
|
void redisplay ();
|
||||||
void finished (IOSelector::Result);
|
void finished (IOSelector::Result);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::shared_ptr<ARDOUR::PortInsert> _pi;
|
boost::shared_ptr<ARDOUR::PortInsert> _pi;
|
||||||
|
|
||||||
Gtk::Notebook notebook;
|
Gtk::Notebook notebook;
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ class ProcessorBox;
|
||||||
|
|
||||||
class ProcessorWindowProxy : public WM::ProxyBase
|
class ProcessorWindowProxy : public WM::ProxyBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ProcessorWindowProxy (std::string const &, ProcessorBox *, boost::weak_ptr<ARDOUR::Processor>);
|
ProcessorWindowProxy (std::string const &, ProcessorBox *, boost::weak_ptr<ARDOUR::Processor>);
|
||||||
~ProcessorWindowProxy();
|
~ProcessorWindowProxy();
|
||||||
|
|
||||||
|
|
@ -97,7 +97,7 @@ class ProcessorWindowProxy : public WM::ProxyBase
|
||||||
int set_state (const XMLNode&, int);
|
int set_state (const XMLNode&, int);
|
||||||
XMLNode& get_state ();
|
XMLNode& get_state ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ProcessorBox* _processor_box;
|
ProcessorBox* _processor_box;
|
||||||
boost::weak_ptr<ARDOUR::Processor> _processor;
|
boost::weak_ptr<ARDOUR::Processor> _processor;
|
||||||
bool is_custom;
|
bool is_custom;
|
||||||
|
|
@ -401,7 +401,7 @@ private:
|
||||||
|
|
||||||
class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARDOUR::SessionHandlePtr
|
class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum ProcessorOperation {
|
enum ProcessorOperation {
|
||||||
ProcessorsCut,
|
ProcessorsCut,
|
||||||
ProcessorsCopy,
|
ProcessorsCopy,
|
||||||
|
|
@ -414,7 +414,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
|
||||||
};
|
};
|
||||||
|
|
||||||
ProcessorBox (ARDOUR::Session*, boost::function<PluginSelector*()> get_plugin_selector,
|
ProcessorBox (ARDOUR::Session*, boost::function<PluginSelector*()> get_plugin_selector,
|
||||||
ProcessorSelection&, MixerStrip* parent, bool owner_is_mixer = false);
|
ProcessorSelection&, MixerStrip* parent, bool owner_is_mixer = false);
|
||||||
~ProcessorBox ();
|
~ProcessorBox ();
|
||||||
|
|
||||||
void set_route (boost::shared_ptr<ARDOUR::Route>);
|
void set_route (boost::shared_ptr<ARDOUR::Route>);
|
||||||
|
|
@ -457,7 +457,8 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
|
||||||
|
|
||||||
typedef std::vector<boost::shared_ptr<ARDOUR::Processor> > ProcSelection;
|
typedef std::vector<boost::shared_ptr<ARDOUR::Processor> > ProcSelection;
|
||||||
|
|
||||||
static ProcSelection current_processor_selection () {
|
static ProcSelection current_processor_selection ()
|
||||||
|
{
|
||||||
ProcSelection ps;
|
ProcSelection ps;
|
||||||
if (_current_processor_box) {
|
if (_current_processor_box) {
|
||||||
_current_processor_box->get_selected_processors (ps);
|
_current_processor_box->get_selected_processors (ps);
|
||||||
|
|
@ -469,7 +470,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD
|
||||||
static bool show_all_processors;
|
static bool show_all_processors;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/* prevent copy construction */
|
/* prevent copy construction */
|
||||||
ProcessorBox (ProcessorBox const &);
|
ProcessorBox (ProcessorBox const &);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
class ArdourPrompter : public Gtkmm2ext::Prompter
|
class ArdourPrompter : public Gtkmm2ext::Prompter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArdourPrompter (bool modal = false);
|
ArdourPrompter (bool modal = false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,8 +108,9 @@ using ARDOUR::framecnt_t;
|
||||||
* of PublicEditor need not be recompiled if private methods or member variables
|
* of PublicEditor need not be recompiled if private methods or member variables
|
||||||
* change.
|
* change.
|
||||||
*/
|
*/
|
||||||
class PublicEditor : public Gtkmm2ext::Tabbable, public ARDOUR::SessionHandlePtr, public AxisViewProvider {
|
class PublicEditor : public Gtkmm2ext::Tabbable, public ARDOUR::SessionHandlePtr, public AxisViewProvider
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
PublicEditor (Gtk::Widget& content);
|
PublicEditor (Gtk::Widget& content);
|
||||||
virtual ~PublicEditor ();
|
virtual ~PublicEditor ();
|
||||||
|
|
||||||
|
|
@ -151,7 +152,7 @@ class PublicEditor : public Gtkmm2ext::Tabbable, public ARDOUR::SessionHandlePt
|
||||||
virtual void snap_to (ARDOUR::MusicFrame& first,
|
virtual void snap_to (ARDOUR::MusicFrame& first,
|
||||||
ARDOUR::RoundMode direction = ARDOUR::RoundNearest,
|
ARDOUR::RoundMode direction = ARDOUR::RoundNearest,
|
||||||
bool for_mark = false,
|
bool for_mark = false,
|
||||||
bool ensure_snap = false) = 0;
|
bool ensure_snap = false) = 0;
|
||||||
|
|
||||||
/** Undo some transactions.
|
/** Undo some transactions.
|
||||||
* @param n Number of transactions to undo.
|
* @param n Number of transactions to undo.
|
||||||
|
|
@ -181,8 +182,7 @@ class PublicEditor : public Gtkmm2ext::Tabbable, public ARDOUR::SessionHandlePt
|
||||||
*/
|
*/
|
||||||
virtual Editing::MouseMode current_mouse_mode () const = 0;
|
virtual Editing::MouseMode current_mouse_mode () const = 0;
|
||||||
|
|
||||||
/** @return Whether the current mouse mode is an "internal" editing mode.
|
/** @return Whether the current mouse mode is an "internal" editing mode. */
|
||||||
*/
|
|
||||||
virtual bool internal_editing() const = 0;
|
virtual bool internal_editing() const = 0;
|
||||||
|
|
||||||
/** Possibly start the audition of a region. If @param r is 0, or not an AudioRegion
|
/** Possibly start the audition of a region. If @param r is 0, or not an AudioRegion
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class PublicEditor;
|
||||||
|
|
||||||
class QuantizeDialog : public ArdourDialog
|
class QuantizeDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QuantizeDialog (PublicEditor&);
|
QuantizeDialog (PublicEditor&);
|
||||||
~QuantizeDialog ();
|
~QuantizeDialog ();
|
||||||
|
|
||||||
|
|
@ -52,7 +52,7 @@ class QuantizeDialog : public ArdourDialog
|
||||||
float threshold () const;
|
float threshold () const;
|
||||||
float swing () const;
|
float swing () const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PublicEditor& editor;
|
PublicEditor& editor;
|
||||||
|
|
||||||
Gtk::ComboBoxText start_grid_combo;
|
Gtk::ComboBoxText start_grid_combo;
|
||||||
|
|
|
||||||
|
|
@ -51,17 +51,17 @@ class ClockGroup;
|
||||||
|
|
||||||
class RegionEditor : public ArdourDialog
|
class RegionEditor : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RegionEditor (ARDOUR::Session*, boost::shared_ptr<ARDOUR::Region>);
|
RegionEditor (ARDOUR::Session*, boost::shared_ptr<ARDOUR::Region>);
|
||||||
virtual ~RegionEditor ();
|
virtual ~RegionEditor ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void region_changed (const PBD::PropertyChange&);
|
virtual void region_changed (const PBD::PropertyChange&);
|
||||||
|
|
||||||
Gtk::Table _table;
|
Gtk::Table _table;
|
||||||
int _table_row;
|
int _table_row;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::shared_ptr<ARDOUR::Region> _region;
|
boost::shared_ptr<ARDOUR::Region> _region;
|
||||||
|
|
||||||
void connect_editor_events ();
|
void connect_editor_events ();
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ class AudioRegionView;
|
||||||
|
|
||||||
class AudioRegionGainLine : public AutomationLine
|
class AudioRegionGainLine : public AutomationLine
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AudioRegionGainLine (const std::string & name, AudioRegionView&, ArdourCanvas::Container& parent, boost::shared_ptr<ARDOUR::AutomationList>);
|
AudioRegionGainLine (const std::string & name, AudioRegionView&, ArdourCanvas::Container& parent, boost::shared_ptr<ARDOUR::AutomationList>);
|
||||||
|
|
||||||
void start_drag_single (ControlPoint*, double, float);
|
void start_drag_single (ControlPoint*, double, float);
|
||||||
|
|
@ -49,5 +49,4 @@ private:
|
||||||
AudioRegionView& rv;
|
AudioRegionView& rv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif /* __ardour_gtk_region_gain_line_h__ */
|
#endif /* __ardour_gtk_region_gain_line_h__ */
|
||||||
|
|
|
||||||
|
|
@ -39,17 +39,17 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class RegionLayeringOrderEditor : public ArdourWindow
|
class RegionLayeringOrderEditor : public ArdourWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RegionLayeringOrderEditor (PublicEditor&);
|
RegionLayeringOrderEditor (PublicEditor&);
|
||||||
virtual ~RegionLayeringOrderEditor ();
|
virtual ~RegionLayeringOrderEditor ();
|
||||||
|
|
||||||
void set_context (const std::string &, ARDOUR::Session *, TimeAxisView *, boost::shared_ptr<ARDOUR::Playlist>, ARDOUR::framepos_t);
|
void set_context (const std::string &, ARDOUR::Session *, TimeAxisView *, boost::shared_ptr<ARDOUR::Playlist>, ARDOUR::framepos_t);
|
||||||
void maybe_present ();
|
void maybe_present ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool on_key_press_event (GdkEventKey* event);
|
virtual bool on_key_press_event (GdkEventKey* event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
framepos_t position;
|
framepos_t position;
|
||||||
bool in_row_change;
|
bool in_row_change;
|
||||||
uint32_t regions_at_position;
|
uint32_t regions_at_position;
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class TimeAxisView;
|
||||||
*/
|
*/
|
||||||
class RegionSelection : public std::list<RegionView*>
|
class RegionSelection : public std::list<RegionView*>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RegionSelection();
|
RegionSelection();
|
||||||
RegionSelection (const RegionSelection&);
|
RegionSelection (const RegionSelection&);
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@ class RegionSelection : public std::list<RegionView*>
|
||||||
|
|
||||||
ARDOUR::RegionList regionlist () const;
|
ARDOUR::RegionList regionlist () const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void remove_it (RegionView*);
|
void remove_it (RegionView*);
|
||||||
|
|
||||||
void add_to_layer (RegionView *);
|
void add_to_layer (RegionView *);
|
||||||
|
|
|
||||||
|
|
@ -48,13 +48,13 @@ namespace ArdourCanvas {
|
||||||
|
|
||||||
class RegionView : public TimeAxisViewItem
|
class RegionView : public TimeAxisViewItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RegionView (ArdourCanvas::Container* parent,
|
RegionView (ArdourCanvas::Container* parent,
|
||||||
TimeAxisView& time_view,
|
TimeAxisView& time_view,
|
||||||
boost::shared_ptr<ARDOUR::Region> region,
|
boost::shared_ptr<ARDOUR::Region> region,
|
||||||
double samples_per_pixel,
|
double samples_per_pixel,
|
||||||
uint32_t base_color,
|
uint32_t base_color,
|
||||||
bool automation = false);
|
bool automation = false);
|
||||||
|
|
||||||
RegionView (const RegionView& other);
|
RegionView (const RegionView& other);
|
||||||
RegionView (const RegionView& other, boost::shared_ptr<ARDOUR::Region> other_region);
|
RegionView (const RegionView& other, boost::shared_ptr<ARDOUR::Region> other_region);
|
||||||
|
|
@ -123,18 +123,18 @@ class RegionView : public TimeAxisViewItem
|
||||||
|
|
||||||
ARDOUR::MusicFrame snap_frame_to_frame (ARDOUR::frameoffset_t, bool ensure_snap = false) const;
|
ARDOUR::MusicFrame snap_frame_to_frame (ARDOUR::frameoffset_t, bool ensure_snap = false) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
/** Allows derived types to specify their visibility requirements
|
/** Allows derived types to specify their visibility requirements
|
||||||
* to the TimeAxisViewItem parent class
|
* to the TimeAxisViewItem parent class
|
||||||
*/
|
*/
|
||||||
RegionView (ArdourCanvas::Container *,
|
RegionView (ArdourCanvas::Container *,
|
||||||
TimeAxisView&,
|
TimeAxisView&,
|
||||||
boost::shared_ptr<ARDOUR::Region>,
|
boost::shared_ptr<ARDOUR::Region>,
|
||||||
double samples_per_pixel,
|
double samples_per_pixel,
|
||||||
uint32_t basic_color,
|
uint32_t basic_color,
|
||||||
bool recording,
|
bool recording,
|
||||||
TimeAxisViewItem::Visibility);
|
TimeAxisViewItem::Visibility);
|
||||||
|
|
||||||
bool canvas_group_event (GdkEvent*);
|
bool canvas_group_event (GdkEvent*);
|
||||||
|
|
||||||
|
|
@ -176,9 +176,9 @@ class RegionView : public TimeAxisViewItem
|
||||||
std::vector<GhostRegion*> ghosts;
|
std::vector<GhostRegion*> ghosts;
|
||||||
|
|
||||||
/** a list of rectangles which are used in stacked display mode to colour
|
/** a list of rectangles which are used in stacked display mode to colour
|
||||||
different bits of regions according to whether or not they are the one
|
* different bits of regions according to whether or not they are the one
|
||||||
that will be played at any given time.
|
* that will be played at any given time.
|
||||||
*/
|
*/
|
||||||
std::list<ArdourCanvas::Rectangle*> _coverage_frames;
|
std::list<ArdourCanvas::Rectangle*> _coverage_frames;
|
||||||
|
|
||||||
/** a list of rectangles used to show silent segments
|
/** a list of rectangles used to show silent segments
|
||||||
|
|
@ -187,8 +187,7 @@ class RegionView : public TimeAxisViewItem
|
||||||
/** a list of rectangles used to show the current silence threshold
|
/** a list of rectangles used to show the current silence threshold
|
||||||
*/
|
*/
|
||||||
std::list<ArdourCanvas::Rectangle*> _silent_threshold_frames;
|
std::list<ArdourCanvas::Rectangle*> _silent_threshold_frames;
|
||||||
/** a text item to display strip silence statistics
|
/** a text item to display strip silence statistics */
|
||||||
*/
|
|
||||||
ArdourCanvas::Text* _silence_text;
|
ArdourCanvas::Text* _silence_text;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ class IOSelector;
|
||||||
|
|
||||||
class ReturnUI : public Gtk::HBox
|
class ReturnUI : public Gtk::HBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ReturnUI (Gtk::Window *,boost::shared_ptr<ARDOUR::Return>, ARDOUR::Session*);
|
ReturnUI (Gtk::Window *,boost::shared_ptr<ARDOUR::Return>, ARDOUR::Session*);
|
||||||
~ReturnUI();
|
~ReturnUI();
|
||||||
|
|
||||||
|
|
@ -44,7 +44,7 @@ class ReturnUI : public Gtk::HBox
|
||||||
|
|
||||||
boost::shared_ptr<ARDOUR::Return>& retrn() { return _return; }
|
boost::shared_ptr<ARDOUR::Return>& retrn() { return _return; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::shared_ptr<ARDOUR::Return> _return;
|
boost::shared_ptr<ARDOUR::Return> _return;
|
||||||
GainMeter _gpm;
|
GainMeter _gpm;
|
||||||
Gtk::VBox _vbox;
|
Gtk::VBox _vbox;
|
||||||
|
|
|
||||||
|
|
@ -40,11 +40,12 @@ namespace ARDOUR {
|
||||||
class Editor;
|
class Editor;
|
||||||
class RegionView;
|
class RegionView;
|
||||||
|
|
||||||
class RhythmFerret : public ArdourDialog {
|
class RhythmFerret : public ArdourDialog
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
/* order of these enums must match the _analyse_mode_strings
|
/* order of these enums must match the _analyse_mode_strings
|
||||||
in rhythm_ferret.cc
|
* in rhythm_ferret.cc
|
||||||
*/
|
*/
|
||||||
enum AnalysisMode {
|
enum AnalysisMode {
|
||||||
PercussionOnset,
|
PercussionOnset,
|
||||||
NoteOnset
|
NoteOnset
|
||||||
|
|
@ -61,10 +62,10 @@ class RhythmFerret : public ArdourDialog {
|
||||||
void set_session (ARDOUR::Session*);
|
void set_session (ARDOUR::Session*);
|
||||||
void on_response (int);
|
void on_response (int);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void on_hide ();
|
void on_hide ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Editor& editor;
|
Editor& editor;
|
||||||
|
|
||||||
Gtk::ComboBoxText operation_selector;
|
Gtk::ComboBoxText operation_selector;
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ class IOSelector;
|
||||||
|
|
||||||
class RouteParams_UI : public ArdourWindow, public PBD::ScopedConnectionList
|
class RouteParams_UI : public ArdourWindow, public PBD::ScopedConnectionList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RouteParams_UI ();
|
RouteParams_UI ();
|
||||||
~RouteParams_UI();
|
~RouteParams_UI();
|
||||||
|
|
||||||
|
|
@ -66,7 +66,7 @@ class RouteParams_UI : public ArdourWindow, public PBD::ScopedConnectionList
|
||||||
void session_going_away ();
|
void session_going_away ();
|
||||||
PluginSelector* plugin_selector() { return _plugin_selector; }
|
PluginSelector* plugin_selector() { return _plugin_selector; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::VBox list_vpacker;
|
Gtk::VBox list_vpacker;
|
||||||
Gtk::ScrolledWindow route_select_scroller;
|
Gtk::ScrolledWindow route_select_scroller;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ class AxisViewProvider;
|
||||||
|
|
||||||
class RouteProcessorSelection : public ProcessorSelection
|
class RouteProcessorSelection : public ProcessorSelection
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AxisViewSelection axes;
|
AxisViewSelection axes;
|
||||||
|
|
||||||
RouteProcessorSelection (ARDOUR::SessionHandlePtr&, AxisViewProvider&);
|
RouteProcessorSelection (ARDOUR::SessionHandlePtr&, AxisViewProvider&);
|
||||||
|
|
@ -53,7 +53,7 @@ class RouteProcessorSelection : public ProcessorSelection
|
||||||
|
|
||||||
void presentation_info_changed (PBD::PropertyChange const & what_changed);
|
void presentation_info_changed (PBD::PropertyChange const & what_changed);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ARDOUR::SessionHandlePtr& shp;
|
ARDOUR::SessionHandlePtr& shp;
|
||||||
AxisViewProvider& avp;
|
AxisViewProvider& avp;
|
||||||
void removed (AxisView*);
|
void removed (AxisView*);
|
||||||
|
|
|
||||||
|
|
@ -62,14 +62,14 @@ class ControlSlaveUI;
|
||||||
|
|
||||||
class RoutePinWindowProxy : public WM::ProxyBase
|
class RoutePinWindowProxy : public WM::ProxyBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RoutePinWindowProxy (std::string const &, boost::shared_ptr<ARDOUR::Route>);
|
RoutePinWindowProxy (std::string const &, boost::shared_ptr<ARDOUR::Route>);
|
||||||
~RoutePinWindowProxy();
|
~RoutePinWindowProxy();
|
||||||
|
|
||||||
Gtk::Window* get (bool create = false);
|
Gtk::Window* get (bool create = false);
|
||||||
ARDOUR::SessionHandlePtr* session_handle();
|
ARDOUR::SessionHandlePtr* session_handle();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::weak_ptr<ARDOUR::Route> _route;
|
boost::weak_ptr<ARDOUR::Route> _route;
|
||||||
|
|
||||||
void route_going_away ();
|
void route_going_away ();
|
||||||
|
|
@ -78,7 +78,7 @@ class RoutePinWindowProxy : public WM::ProxyBase
|
||||||
|
|
||||||
class RouteUI : public virtual Selectable, public virtual ARDOUR::SessionHandlePtr, public virtual PBD::ScopedConnectionList, public virtual sigc::trackable
|
class RouteUI : public virtual Selectable, public virtual ARDOUR::SessionHandlePtr, public virtual PBD::ScopedConnectionList, public virtual sigc::trackable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RouteUI (ARDOUR::Session*);
|
RouteUI (ARDOUR::Session*);
|
||||||
|
|
||||||
virtual ~RouteUI();
|
virtual ~RouteUI();
|
||||||
|
|
@ -268,7 +268,7 @@ class RouteUI : public virtual Selectable, public virtual ARDOUR::SessionHandleP
|
||||||
void comment_edited ();
|
void comment_edited ();
|
||||||
bool ignore_comment_edit;
|
bool ignore_comment_edit;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
ArdourWindow* comment_window;
|
ArdourWindow* comment_window;
|
||||||
Gtk::TextView* comment_area;
|
Gtk::TextView* comment_area;
|
||||||
|
|
@ -299,18 +299,19 @@ class RouteUI : public virtual Selectable, public virtual ARDOUR::SessionHandleP
|
||||||
|
|
||||||
bool mark_hidden (bool yn);
|
bool mark_hidden (bool yn);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void parameter_changed (std::string const&);
|
void parameter_changed (std::string const&);
|
||||||
void relabel_solo_button ();
|
void relabel_solo_button ();
|
||||||
void track_mode_changed ();
|
void track_mode_changed ();
|
||||||
|
|
||||||
std::string route_state_id () const;
|
std::string route_state_id () const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
struct SoloMuteRelease {
|
struct SoloMuteRelease {
|
||||||
SoloMuteRelease (bool was_active)
|
SoloMuteRelease (bool was_active)
|
||||||
: active (was_active)
|
: active (was_active)
|
||||||
, exclusive (false) {}
|
, exclusive (false)
|
||||||
|
{}
|
||||||
|
|
||||||
boost::shared_ptr<ARDOUR::RouteList> routes;
|
boost::shared_ptr<ARDOUR::RouteList> routes;
|
||||||
boost::shared_ptr<ARDOUR::RouteList> routes_on;
|
boost::shared_ptr<ARDOUR::RouteList> routes_on;
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,11 @@ class Editor;
|
||||||
|
|
||||||
class RulerDialog : public ArdourDialog
|
class RulerDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RulerDialog ();
|
RulerDialog ();
|
||||||
~RulerDialog ();
|
~RulerDialog ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::CheckButton samples_button;
|
Gtk::CheckButton samples_button;
|
||||||
Gtk::CheckButton timecode_button;
|
Gtk::CheckButton timecode_button;
|
||||||
Gtk::CheckButton minsec_button;
|
Gtk::CheckButton minsec_button;
|
||||||
|
|
|
||||||
|
|
@ -31,10 +31,10 @@
|
||||||
|
|
||||||
class SearchPathOption : public Option
|
class SearchPathOption : public Option
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SearchPathOption (const std::string& pathname, const std::string& label,
|
SearchPathOption (const std::string& pathname, const std::string& label,
|
||||||
const std::string& default_path,
|
const std::string& default_path,
|
||||||
sigc::slot<std::string>, sigc::slot<bool, std::string>);
|
sigc::slot<std::string>, sigc::slot<bool, std::string>);
|
||||||
~SearchPathOption ();
|
~SearchPathOption ();
|
||||||
|
|
||||||
void set_state_from_config ();
|
void set_state_from_config ();
|
||||||
|
|
@ -43,11 +43,12 @@ class SearchPathOption : public Option
|
||||||
|
|
||||||
Gtk::Widget& tip_widget() { return add_chooser; }
|
Gtk::Widget& tip_widget() { return add_chooser; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
sigc::slot<std::string> _get; ///< slot to get the configuration variable's value
|
sigc::slot<std::string> _get; ///< slot to get the configuration variable's value
|
||||||
sigc::slot<bool, std::string> _set; ///< slot to set the configuration variable's value
|
sigc::slot<bool, std::string> _set; ///< slot to set the configuration variable's value
|
||||||
|
|
||||||
struct PathEntry {
|
struct PathEntry
|
||||||
|
{
|
||||||
PathEntry (const std::string& path, bool removable=true);
|
PathEntry (const std::string& path, bool removable=true);
|
||||||
|
|
||||||
Gtk::Entry entry;
|
Gtk::Entry entry;
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
class Selectable : public virtual sigc::trackable
|
class Selectable : public virtual sigc::trackable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Selectable() {
|
Selectable() {
|
||||||
_selected = false;
|
_selected = false;
|
||||||
}
|
}
|
||||||
|
|
@ -41,7 +41,7 @@ class Selectable : public virtual sigc::trackable
|
||||||
return _selected;
|
return _selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool _selected;
|
bool _selected;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ namespace Evoral {
|
||||||
|
|
||||||
class Selection : public sigc::trackable, public PBD::ScopedConnectionList
|
class Selection : public sigc::trackable, public PBD::ScopedConnectionList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum SelectionType {
|
enum SelectionType {
|
||||||
Object = 0x1,
|
Object = 0x1,
|
||||||
Range = 0x2
|
Range = 0x2
|
||||||
|
|
@ -190,15 +190,15 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
|
||||||
|
|
||||||
void replace (uint32_t time_index, framepos_t start, framepos_t end);
|
void replace (uint32_t time_index, framepos_t start, framepos_t end);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A note about items in an editing Selection:
|
* A note about items in an editing Selection:
|
||||||
* At a high level, selections can include Tracks, Objects, or Time Ranges
|
* At a high level, selections can include Tracks, Objects, or Time Ranges
|
||||||
* Range and Object selections are mutually exclusive.
|
* Range and Object selections are mutually exclusive.
|
||||||
* Selecting a Range will deselect all Objects, and vice versa.
|
* Selecting a Range will deselect all Objects, and vice versa.
|
||||||
* This is done to avoid confusion over what will happen in an operation such as Delete
|
* This is done to avoid confusion over what will happen in an operation such as Delete
|
||||||
* Tracks are somewhat orthogonal b/c editing operations don't apply to tracks.
|
* Tracks are somewhat orthogonal b/c editing operations don't apply to tracks.
|
||||||
* The Track selection isn't affected when ranges or objects are added.
|
* The Track selection isn't affected when ranges or objects are added.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void clear_all() { clear_time(); clear_tracks(); clear_objects(); }
|
void clear_all() { clear_time(); clear_tracks(); clear_objects(); }
|
||||||
|
|
||||||
|
|
@ -227,7 +227,7 @@ class Selection : public sigc::trackable, public PBD::ScopedConnectionList
|
||||||
|
|
||||||
void core_selection_changed (PBD::PropertyChange const & pc);
|
void core_selection_changed (PBD::PropertyChange const & pc);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PublicEditor const * editor;
|
PublicEditor const * editor;
|
||||||
uint32_t next_time_id;
|
uint32_t next_time_id;
|
||||||
bool manage_libardour_selection;
|
bool manage_libardour_selection;
|
||||||
|
|
|
||||||
|
|
@ -45,10 +45,11 @@
|
||||||
|
|
||||||
class EngineControl;
|
class EngineControl;
|
||||||
|
|
||||||
class SessionDialog : public ArdourDialog {
|
class SessionDialog : public ArdourDialog
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
SessionDialog (bool require_new, const std::string& session_name, const std::string& session_path,
|
SessionDialog (bool require_new, const std::string& session_name, const std::string& session_path,
|
||||||
const std::string& template_name, bool cancel_not_quit);
|
const std::string& template_name, bool cancel_not_quit);
|
||||||
SessionDialog ();
|
SessionDialog ();
|
||||||
~SessionDialog ();
|
~SessionDialog ();
|
||||||
|
|
||||||
|
|
@ -81,7 +82,7 @@ class SessionDialog : public ArdourDialog {
|
||||||
_provided_session_path = session_path;
|
_provided_session_path = session_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool new_only;
|
bool new_only;
|
||||||
std::string _provided_session_name;
|
std::string _provided_session_name;
|
||||||
std::string _provided_session_path;
|
std::string _provided_session_path;
|
||||||
|
|
@ -110,29 +111,31 @@ class SessionDialog : public ArdourDialog {
|
||||||
|
|
||||||
void setup_existing_session_page ();
|
void setup_existing_session_page ();
|
||||||
|
|
||||||
struct RecentSessionsSorter {
|
struct RecentSessionsSorter
|
||||||
bool operator() (std::pair<std::string,std::string> a, std::pair<std::string,std::string> b) const {
|
{
|
||||||
return ARDOUR::cmp_nocase(a.first, b.first) == -1;
|
bool operator() (std::pair<std::string,std::string> a, std::pair<std::string,std::string> b) const {
|
||||||
}
|
return ARDOUR::cmp_nocase(a.first, b.first) == -1;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RecentSessionModelColumns : public Gtk::TreeModel::ColumnRecord {
|
struct RecentSessionModelColumns : public Gtk::TreeModel::ColumnRecord {
|
||||||
RecentSessionModelColumns() {
|
RecentSessionModelColumns()
|
||||||
add (visible_name);
|
{
|
||||||
add (tip);
|
add (visible_name);
|
||||||
add (fullpath);
|
add (tip);
|
||||||
add (sample_rate);
|
add (fullpath);
|
||||||
add (disk_format);
|
add (sample_rate);
|
||||||
add (time_modified);
|
add (disk_format);
|
||||||
add (time_formatted);
|
add (time_modified);
|
||||||
}
|
add (time_formatted);
|
||||||
Gtk::TreeModelColumn<std::string> visible_name;
|
}
|
||||||
Gtk::TreeModelColumn<std::string> tip;
|
Gtk::TreeModelColumn<std::string> visible_name;
|
||||||
Gtk::TreeModelColumn<std::string> fullpath;
|
Gtk::TreeModelColumn<std::string> tip;
|
||||||
Gtk::TreeModelColumn<std::string> sample_rate;
|
Gtk::TreeModelColumn<std::string> fullpath;
|
||||||
Gtk::TreeModelColumn<std::string> disk_format;
|
Gtk::TreeModelColumn<std::string> sample_rate;
|
||||||
Gtk::TreeModelColumn<int64_t> time_modified;
|
Gtk::TreeModelColumn<std::string> disk_format;
|
||||||
Gtk::TreeModelColumn<std::string> time_formatted;
|
Gtk::TreeModelColumn<int64_t> time_modified;
|
||||||
|
Gtk::TreeModelColumn<std::string> time_formatted;
|
||||||
};
|
};
|
||||||
|
|
||||||
RecentSessionModelColumns recent_session_columns;
|
RecentSessionModelColumns recent_session_columns;
|
||||||
|
|
|
||||||
|
|
@ -39,19 +39,19 @@ namespace ARDOUR {
|
||||||
|
|
||||||
class SessionImportDialog : public ArdourDialog
|
class SessionImportDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
typedef boost::shared_ptr<ARDOUR::ElementImportHandler> HandlerPtr;
|
typedef boost::shared_ptr<ARDOUR::ElementImportHandler> HandlerPtr;
|
||||||
typedef std::list<HandlerPtr> HandlerList;
|
typedef std::list<HandlerPtr> HandlerList;
|
||||||
|
|
||||||
typedef boost::shared_ptr<ARDOUR::ElementImporter> ElementPtr;
|
typedef boost::shared_ptr<ARDOUR::ElementImporter> ElementPtr;
|
||||||
typedef std::list<ElementPtr> ElementList;
|
typedef std::list<ElementPtr> ElementList;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SessionImportDialog (ARDOUR::Session* target);
|
SessionImportDialog (ARDOUR::Session* target);
|
||||||
|
|
||||||
virtual Gtk::FileChooserAction browse_action() const { return Gtk::FILE_CHOOSER_ACTION_OPEN; }
|
virtual Gtk::FileChooserAction browse_action() const { return Gtk::FILE_CHOOSER_ACTION_OPEN; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void load_session (const std::string& filename);
|
void load_session (const std::string& filename);
|
||||||
void fill_list ();
|
void fill_list ();
|
||||||
|
|
@ -77,12 +77,12 @@ class SessionImportDialog : public ArdourDialog
|
||||||
struct SessionBrowserColumns : public Gtk::TreeModel::ColumnRecord
|
struct SessionBrowserColumns : public Gtk::TreeModel::ColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<std::string> name;
|
Gtk::TreeModelColumn<std::string> name;
|
||||||
Gtk::TreeModelColumn<bool> queued;
|
Gtk::TreeModelColumn<bool> queued;
|
||||||
Gtk::TreeModelColumn<ElementPtr> element;
|
Gtk::TreeModelColumn<ElementPtr> element;
|
||||||
Gtk::TreeModelColumn<std::string> info;
|
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;
|
SessionBrowserColumns sb_cols;
|
||||||
|
|
|
||||||
|
|
@ -38,8 +38,9 @@ class MetadataField;
|
||||||
typedef boost::shared_ptr<MetadataField> MetadataPtr;
|
typedef boost::shared_ptr<MetadataField> MetadataPtr;
|
||||||
|
|
||||||
/// Wraps a metadata field to be used in a GUI
|
/// Wraps a metadata field to be used in a GUI
|
||||||
class MetadataField {
|
class MetadataField
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
MetadataField (std::string const & field_name);
|
MetadataField (std::string const & field_name);
|
||||||
virtual ~MetadataField();
|
virtual ~MetadataField();
|
||||||
virtual MetadataPtr copy () = 0;
|
virtual MetadataPtr copy () = 0;
|
||||||
|
|
@ -56,17 +57,18 @@ class MetadataField {
|
||||||
virtual Gtk::Widget & value_widget () = 0;
|
virtual Gtk::Widget & value_widget () = 0;
|
||||||
/// Get widget for editing value
|
/// Get widget for editing value
|
||||||
virtual Gtk::Widget & edit_widget () = 0;
|
virtual Gtk::Widget & edit_widget () = 0;
|
||||||
protected:
|
protected:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
std::string _value;
|
std::string _value;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// MetadataField that contains text
|
/// MetadataField that contains text
|
||||||
class TextMetadataField : public MetadataField {
|
class TextMetadataField : public MetadataField
|
||||||
private:
|
{
|
||||||
|
private:
|
||||||
typedef std::string (ARDOUR::SessionMetadata::*Getter) () const;
|
typedef std::string (ARDOUR::SessionMetadata::*Getter) () const;
|
||||||
typedef void (ARDOUR::SessionMetadata::*Setter) (std::string const &);
|
typedef void (ARDOUR::SessionMetadata::*Setter) (std::string const &);
|
||||||
public:
|
public:
|
||||||
TextMetadataField (Getter getter, Setter setter, std::string const & field_name, guint width = 50);
|
TextMetadataField (Getter getter, Setter setter, std::string const & field_name, guint width = 50);
|
||||||
MetadataPtr copy ();
|
MetadataPtr copy ();
|
||||||
|
|
||||||
|
|
@ -76,7 +78,7 @@ class TextMetadataField : public MetadataField {
|
||||||
Gtk::Widget & name_widget ();
|
Gtk::Widget & name_widget ();
|
||||||
Gtk::Widget & value_widget ();
|
Gtk::Widget & value_widget ();
|
||||||
Gtk::Widget & edit_widget ();
|
Gtk::Widget & edit_widget ();
|
||||||
private:
|
private:
|
||||||
void update_value ();
|
void update_value ();
|
||||||
|
|
||||||
Getter getter;
|
Getter getter;
|
||||||
|
|
@ -90,11 +92,12 @@ class TextMetadataField : public MetadataField {
|
||||||
};
|
};
|
||||||
|
|
||||||
/// MetadataField that accepts only numbers
|
/// MetadataField that accepts only numbers
|
||||||
class NumberMetadataField : public MetadataField {
|
class NumberMetadataField : public MetadataField
|
||||||
private:
|
{
|
||||||
|
private:
|
||||||
typedef uint32_t (ARDOUR::SessionMetadata::*Getter) () const;
|
typedef uint32_t (ARDOUR::SessionMetadata::*Getter) () const;
|
||||||
typedef void (ARDOUR::SessionMetadata::*Setter) (uint32_t);
|
typedef void (ARDOUR::SessionMetadata::*Setter) (uint32_t);
|
||||||
public:
|
public:
|
||||||
NumberMetadataField (Getter getter, Setter setter, std::string const & field_name, guint numbers, guint width = 50);
|
NumberMetadataField (Getter getter, Setter setter, std::string const & field_name, guint numbers, guint width = 50);
|
||||||
MetadataPtr copy ();
|
MetadataPtr copy ();
|
||||||
|
|
||||||
|
|
@ -104,7 +107,7 @@ class NumberMetadataField : public MetadataField {
|
||||||
Gtk::Widget & name_widget ();
|
Gtk::Widget & name_widget ();
|
||||||
Gtk::Widget & value_widget ();
|
Gtk::Widget & value_widget ();
|
||||||
Gtk::Widget & edit_widget ();
|
Gtk::Widget & edit_widget ();
|
||||||
private:
|
private:
|
||||||
void update_value ();
|
void update_value ();
|
||||||
std::string uint_to_str (uint32_t i) const;
|
std::string uint_to_str (uint32_t i) const;
|
||||||
uint32_t str_to_uint (std::string const & str) const;
|
uint32_t str_to_uint (std::string const & str) const;
|
||||||
|
|
@ -121,11 +124,12 @@ class NumberMetadataField : public MetadataField {
|
||||||
};
|
};
|
||||||
|
|
||||||
/// MetadataField that accepts EAN-13 data only
|
/// MetadataField that accepts EAN-13 data only
|
||||||
class EAN13MetadataField : public MetadataField {
|
class EAN13MetadataField : public MetadataField
|
||||||
private:
|
{
|
||||||
|
private:
|
||||||
typedef std::string (ARDOUR::SessionMetadata::*Getter) () const;
|
typedef std::string (ARDOUR::SessionMetadata::*Getter) () const;
|
||||||
typedef void (ARDOUR::SessionMetadata::*Setter) (std::string const &);
|
typedef void (ARDOUR::SessionMetadata::*Setter) (std::string const &);
|
||||||
public:
|
public:
|
||||||
EAN13MetadataField (Getter getter, Setter setter, std::string const & field_name, guint width = 13);
|
EAN13MetadataField (Getter getter, Setter setter, std::string const & field_name, guint width = 13);
|
||||||
MetadataPtr copy ();
|
MetadataPtr copy ();
|
||||||
|
|
||||||
|
|
@ -138,7 +142,7 @@ class EAN13MetadataField : public MetadataField {
|
||||||
|
|
||||||
Gtk::Label* status_label;
|
Gtk::Label* status_label;
|
||||||
void update_status ();
|
void update_status ();
|
||||||
private:
|
private:
|
||||||
void update_value ();
|
void update_value ();
|
||||||
std::string numeric_string (std::string const & str) const;
|
std::string numeric_string (std::string const & str) const;
|
||||||
|
|
||||||
|
|
@ -153,8 +157,9 @@ class EAN13MetadataField : public MetadataField {
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Interface for MetadataFields
|
/// Interface for MetadataFields
|
||||||
class SessionMetadataSet : public ARDOUR::SessionHandlePtr {
|
class SessionMetadataSet : public ARDOUR::SessionHandlePtr
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
SessionMetadataSet (std::string const & name);
|
SessionMetadataSet (std::string const & name);
|
||||||
virtual ~SessionMetadataSet () {};
|
virtual ~SessionMetadataSet () {};
|
||||||
|
|
||||||
|
|
@ -168,15 +173,16 @@ class SessionMetadataSet : public ARDOUR::SessionHandlePtr {
|
||||||
virtual Gtk::Widget & get_widget () = 0;
|
virtual Gtk::Widget & get_widget () = 0;
|
||||||
virtual Gtk::Widget & get_tab_widget () = 0;
|
virtual Gtk::Widget & get_tab_widget () = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
typedef std::list<MetadataPtr> DataList;
|
typedef std::list<MetadataPtr> DataList;
|
||||||
DataList list;
|
DataList list;
|
||||||
std::string name;
|
std::string name;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Contains MetadataFields for editing
|
/// Contains MetadataFields for editing
|
||||||
class SessionMetadataSetEditable : public SessionMetadataSet {
|
class SessionMetadataSetEditable : public SessionMetadataSet
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
SessionMetadataSetEditable (std::string const & name);
|
SessionMetadataSetEditable (std::string const & name);
|
||||||
|
|
||||||
Gtk::Widget & get_widget () { return vbox; }
|
Gtk::Widget & get_widget () { return vbox; }
|
||||||
|
|
@ -187,15 +193,16 @@ class SessionMetadataSetEditable : public SessionMetadataSet {
|
||||||
/// Saves from MetadataFields into data
|
/// Saves from MetadataFields into data
|
||||||
void save_data ();
|
void save_data ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::VBox vbox;
|
Gtk::VBox vbox;
|
||||||
Gtk::Table table;
|
Gtk::Table table;
|
||||||
Gtk::Label tab_widget;
|
Gtk::Label tab_widget;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Contains MetadataFields for importing
|
/// Contains MetadataFields for importing
|
||||||
class SessionMetadataSetImportable : public SessionMetadataSet {
|
class SessionMetadataSetImportable : public SessionMetadataSet
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
SessionMetadataSetImportable (std::string const & name);
|
SessionMetadataSetImportable (std::string const & name);
|
||||||
|
|
||||||
Gtk::Widget & get_widget () { return tree_view; }
|
Gtk::Widget & get_widget () { return tree_view; }
|
||||||
|
|
@ -207,13 +214,13 @@ class SessionMetadataSetImportable : public SessionMetadataSet {
|
||||||
/// Saves from importable data (see load_data) to session_data
|
/// Saves from importable data (see load_data) to session_data
|
||||||
void save_data ();
|
void save_data ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DataList & session_list; // References MetadataSet::list
|
DataList & session_list; // References MetadataSet::list
|
||||||
DataList import_list;
|
DataList import_list;
|
||||||
|
|
||||||
struct Columns : public Gtk::TreeModel::ColumnRecord
|
struct Columns : public Gtk::TreeModel::ColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<std::string> field;
|
Gtk::TreeModelColumn<std::string> field;
|
||||||
Gtk::TreeModelColumn<std::string> values;
|
Gtk::TreeModelColumn<std::string> values;
|
||||||
Gtk::TreeModelColumn<bool> import;
|
Gtk::TreeModelColumn<bool> import;
|
||||||
|
|
@ -241,10 +248,10 @@ class SessionMetadataSetImportable : public SessionMetadataSet {
|
||||||
template <typename DataSet>
|
template <typename DataSet>
|
||||||
class SessionMetadataDialog : public ArdourDialog
|
class SessionMetadataDialog : public ArdourDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SessionMetadataDialog (std::string const & name);
|
SessionMetadataDialog (std::string const & name);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void init_data ( bool skip_user = false );
|
void init_data ( bool skip_user = false );
|
||||||
void load_extra_data (ARDOUR::SessionMetadata const & data);
|
void load_extra_data (ARDOUR::SessionMetadata const & data);
|
||||||
void save_data ();
|
void save_data ();
|
||||||
|
|
@ -267,7 +274,7 @@ class SessionMetadataDialog : public ArdourDialog
|
||||||
|
|
||||||
Gtk::Notebook notebook;
|
Gtk::Notebook notebook;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void init_user_data ();
|
void init_user_data ();
|
||||||
void init_track_data ();
|
void init_track_data ();
|
||||||
void init_album_data ();
|
void init_album_data ();
|
||||||
|
|
@ -282,12 +289,13 @@ class SessionMetadataDialog : public ArdourDialog
|
||||||
Gtk::Button * cancel_button;
|
Gtk::Button * cancel_button;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SessionMetadataEditor : public SessionMetadataDialog<SessionMetadataSetEditable> {
|
class SessionMetadataEditor : public SessionMetadataDialog<SessionMetadataSetEditable>
|
||||||
public:
|
{
|
||||||
|
public:
|
||||||
SessionMetadataEditor ();
|
SessionMetadataEditor ();
|
||||||
~SessionMetadataEditor ();
|
~SessionMetadataEditor ();
|
||||||
void run ();
|
void run ();
|
||||||
private:
|
private:
|
||||||
void init_gui ();
|
void init_gui ();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ class Mootcher;
|
||||||
|
|
||||||
class SoundFileBox : public Gtk::VBox, public ARDOUR::SessionHandlePtr, public PBD::ScopedConnectionList
|
class SoundFileBox : public Gtk::VBox, public ARDOUR::SessionHandlePtr, public PBD::ScopedConnectionList
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SoundFileBox (bool persistent);
|
SoundFileBox (bool persistent);
|
||||||
virtual ~SoundFileBox () {};
|
virtual ~SoundFileBox () {};
|
||||||
|
|
||||||
|
|
@ -74,7 +74,7 @@ class SoundFileBox : public Gtk::VBox, public ARDOUR::SessionHandlePtr, public P
|
||||||
void set_src_quality(ARDOUR::SrcQuality q) { _src_quality = q; }
|
void set_src_quality(ARDOUR::SrcQuality q) { _src_quality = q; }
|
||||||
void set_import_position(Editing::ImportPosition p) { _import_position = p; }
|
void set_import_position(Editing::ImportPosition p) { _import_position = p; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string path;
|
std::string path;
|
||||||
|
|
||||||
ARDOUR::SoundFileInfo sf_info;
|
ARDOUR::SoundFileInfo sf_info;
|
||||||
|
|
@ -131,10 +131,10 @@ class SoundFileBox : public Gtk::VBox, public ARDOUR::SessionHandlePtr, public P
|
||||||
|
|
||||||
class SoundFileBrowser : public ArdourWindow
|
class SoundFileBrowser : public ArdourWindow
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
class FoundTagColumns : public Gtk::TreeModel::ColumnRecord
|
class FoundTagColumns : public Gtk::TreeModel::ColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<std::string> pathname;
|
Gtk::TreeModelColumn<std::string> pathname;
|
||||||
|
|
||||||
FoundTagColumns() { add(pathname); }
|
FoundTagColumns() { add(pathname); }
|
||||||
|
|
@ -142,7 +142,7 @@ class SoundFileBrowser : public ArdourWindow
|
||||||
|
|
||||||
class FreesoundColumns : public Gtk::TreeModel::ColumnRecord
|
class FreesoundColumns : public Gtk::TreeModel::ColumnRecord
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Gtk::TreeModelColumn<std::string> id;
|
Gtk::TreeModelColumn<std::string> id;
|
||||||
Gtk::TreeModelColumn<std::string> uri;
|
Gtk::TreeModelColumn<std::string> uri;
|
||||||
Gtk::TreeModelColumn<std::string> filename;
|
Gtk::TreeModelColumn<std::string> filename;
|
||||||
|
|
@ -174,7 +174,8 @@ class SoundFileBrowser : public ArdourWindow
|
||||||
Gtk::Button freesound_similar_btn;
|
Gtk::Button freesound_similar_btn;
|
||||||
|
|
||||||
void handle_freesound_results(std::string theString);
|
void handle_freesound_results(std::string theString);
|
||||||
public:
|
|
||||||
|
public:
|
||||||
SoundFileBrowser (std::string title, ARDOUR::Session* _s, bool persistent);
|
SoundFileBrowser (std::string title, ARDOUR::Session* _s, bool persistent);
|
||||||
virtual ~SoundFileBrowser ();
|
virtual ~SoundFileBrowser ();
|
||||||
|
|
||||||
|
|
@ -204,7 +205,7 @@ class SoundFileBrowser : public ArdourWindow
|
||||||
void freesound_search();
|
void freesound_search();
|
||||||
void refresh_display(std::string ID, std::string file);
|
void refresh_display(std::string ID, std::string file);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool resetting_ourselves;
|
bool resetting_ourselves;
|
||||||
int matches;
|
int matches;
|
||||||
int _status;
|
int _status;
|
||||||
|
|
@ -263,24 +264,25 @@ class SoundFileBrowser : public ArdourWindow
|
||||||
|
|
||||||
class SoundFileChooser : public SoundFileBrowser
|
class SoundFileChooser : public SoundFileBrowser
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SoundFileChooser (std::string title, ARDOUR::Session* _s = 0);
|
SoundFileChooser (std::string title, ARDOUR::Session* _s = 0);
|
||||||
virtual ~SoundFileChooser () {};
|
virtual ~SoundFileChooser () {};
|
||||||
|
|
||||||
std::string get_filename ();
|
std::string get_filename ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void on_hide();
|
void on_hide();
|
||||||
};
|
};
|
||||||
|
|
||||||
class SoundFileOmega : public SoundFileBrowser
|
class SoundFileOmega : public SoundFileBrowser
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
public:
|
SoundFileOmega (std::string title,
|
||||||
SoundFileOmega (std::string title, ARDOUR::Session* _s,
|
ARDOUR::Session* _s,
|
||||||
uint32_t selected_audio_tracks, uint32_t selected_midi_tracks,
|
uint32_t selected_audio_tracks,
|
||||||
bool persistent,
|
uint32_t selected_midi_tracks,
|
||||||
Editing::ImportMode mode_hint = Editing::ImportAsTrack);
|
bool persistent,
|
||||||
|
Editing::ImportMode mode_hint = Editing::ImportAsTrack);
|
||||||
|
|
||||||
void reset (uint32_t selected_audio_tracks, uint32_t selected_midi_tracks);
|
void reset (uint32_t selected_audio_tracks, uint32_t selected_midi_tracks);
|
||||||
|
|
||||||
|
|
@ -302,10 +304,10 @@ class SoundFileOmega : public SoundFileBrowser
|
||||||
Editing::ImportDisposition get_channel_disposition() const;
|
Editing::ImportDisposition get_channel_disposition() const;
|
||||||
ARDOUR::SrcQuality get_src_quality() const;
|
ARDOUR::SrcQuality get_src_quality() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void on_hide();
|
void on_hide();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint32_t selected_audio_track_cnt;
|
uint32_t selected_audio_track_cnt;
|
||||||
uint32_t selected_midi_track_cnt;
|
uint32_t selected_midi_track_cnt;
|
||||||
|
|
||||||
|
|
@ -318,7 +320,7 @@ class SoundFileOmega : public SoundFileBrowser
|
||||||
Gtk::VBox block_four;
|
Gtk::VBox block_four;
|
||||||
|
|
||||||
bool check_info (const std::vector<std::string>& paths,
|
bool check_info (const std::vector<std::string>& paths,
|
||||||
bool& same_size, bool& src_needed, bool& multichannel);
|
bool& same_size, bool& src_needed, bool& multichannel);
|
||||||
|
|
||||||
static bool check_link_status (const ARDOUR::Session*, const std::vector<std::string>& paths);
|
static bool check_link_status (const ARDOUR::Session*, const std::vector<std::string>& paths);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
class SoundcloudExportSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
class SoundcloudExportSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SoundcloudExportSelector ();
|
SoundcloudExportSelector ();
|
||||||
int do_progress_callback (double ultotal, double ulnow, const std::string &filename);
|
int do_progress_callback (double ultotal, double ulnow, const std::string &filename);
|
||||||
std::string username () { return soundcloud_username_entry.get_text (); }
|
std::string username () { return soundcloud_username_entry.get_text (); }
|
||||||
|
|
@ -27,7 +27,7 @@ class SoundcloudExportSelector : public Gtk::VBox, public ARDOUR::SessionHandleP
|
||||||
bool downloadable () { return soundcloud_download_checkbox.get_active (); }
|
bool downloadable () { return soundcloud_download_checkbox.get_active (); }
|
||||||
void cancel () { soundcloud_cancel = true; }
|
void cancel () { soundcloud_cancel = true; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Table sc_table;
|
Gtk::Table sc_table;
|
||||||
Gtk::Label soundcloud_username_label;
|
Gtk::Label soundcloud_username_label;
|
||||||
Gtk::Entry soundcloud_username_entry;
|
Gtk::Entry soundcloud_username_entry;
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue