projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Skip script-setup if there are no parameters (and name is unique)
[ardour.git]
/
gtk2_ardour
/
time_axis_view.h
diff --git
a/gtk2_ardour/time_axis_view.h
b/gtk2_ardour/time_axis_view.h
index 13ade6a2fe2b9f93d55bf0464780a9733bb4aa1c..f33379e4d63bc2660150b1d5a69f11d24721bf49 100644
(file)
--- a/
gtk2_ardour/time_axis_view.h
+++ b/
gtk2_ardour/time_axis_view.h
@@
-39,7
+39,9
@@
#include "pbd/signals.h"
#include "ardour/types.h"
#include "pbd/signals.h"
#include "ardour/types.h"
+#include "ardour/presentation_info.h"
#include "ardour/region.h"
#include "ardour/region.h"
+
#include "evoral/Parameter.hpp"
#include "canvas/line.h"
#include "evoral/Parameter.hpp"
#include "canvas/line.h"
@@
-55,6
+57,7
@@
namespace ARDOUR {
class Session;
class RouteGroup;
class Playlist;
class Session;
class RouteGroup;
class Playlist;
+ class Stripable;
}
namespace Gtk {
}
namespace Gtk {
@@
-134,6
+137,7
@@
class TimeAxisView : public virtual AxisView
bool hidden () const { return _hidden; }
void set_selected (bool);
bool hidden () const { return _hidden; }
void set_selected (bool);
+
virtual bool selectable() const { return true; }
/**
virtual bool selectable() const { return true; }
/**
@@
-181,7
+185,8
@@
class TimeAxisView : public virtual AxisView
*/
virtual bool paste (ARDOUR::framepos_t pos,
const Selection& selection,
*/
virtual bool paste (ARDOUR::framepos_t pos,
const Selection& selection,
- PasteContext& ctx) { return false; }
+ PasteContext& ctx,
+ const int32_t sub_num) { return false; }
virtual void set_selected_regionviews (RegionSelection&) {}
virtual void set_selected_points (PointSelection&) {}
virtual void set_selected_regionviews (RegionSelection&) {}
virtual void set_selected_points (PointSelection&) {}
@@
-214,8
+219,6
@@
class TimeAxisView : public virtual AxisView
typedef std::vector<boost::shared_ptr<TimeAxisView> > Children;
Children get_child_list ();
typedef std::vector<boost::shared_ptr<TimeAxisView> > Children;
Children get_child_list ();
- SelectionRect* get_selection_rect(uint32_t id);
-
static uint32_t preset_height (Height);
protected:
static uint32_t preset_height (Height);
protected:
@@
-230,9
+233,7
@@
class TimeAxisView : public virtual AxisView
Gtk::VBox time_axis_vbox;
Gtk::HBox time_axis_hbox;
Gtk::Frame time_axis_frame;
Gtk::VBox time_axis_vbox;
Gtk::HBox time_axis_hbox;
Gtk::Frame time_axis_frame;
- Gtk::HBox name_hbox;
Gtk::HBox top_hbox;
Gtk::HBox top_hbox;
- Gtk::Label name_label;
Gtk::Fixed scroomer_placeholder;
bool _name_editing;
uint32_t height; /* in canvas units */
Gtk::Fixed scroomer_placeholder;
bool _name_editing;
uint32_t height; /* in canvas units */
@@
-303,7
+304,7
@@
class TimeAxisView : public virtual AxisView
void build_size_menu ();
void build_size_menu ();
-private:
+
private:
Gtk::VBox* control_parent;
int _order;
uint32_t _effective_height;
Gtk::VBox* control_parent;
int _order;
uint32_t _effective_height;
@@
-317,6
+318,8
@@
private:
static uint32_t extra_height;
static int const _max_order;
static uint32_t extra_height;
static int const _max_order;
+ SelectionRect* get_selection_rect(uint32_t id);
+
void compute_heights ();
bool maybe_set_cursor (int y);
void compute_heights ();
bool maybe_set_cursor (int y);