#include "enums.h"
#include "waveview.h"
#include "canvas.h"
-#include "color.h"
namespace ARDOUR {
class AudioRegion;
double initial_samples_per_unit,
Gdk::Color& basic_color);
+ AudioRegionView (const AudioRegionView& other);
+
~AudioRegionView ();
virtual void init (Gdk::Color& base_color, bool wait_for_data = false);
boost::shared_ptr<ARDOUR::AudioRegion> audio_region() const;
- void set_height (double);
+ void set_y_position_and_height (double, double);
void set_samples_per_unit (double);
void set_amplitude_above_axis (gdouble spp);
void reset_fade_in_shape_width (nframes_t);
void reset_fade_out_shape_width (nframes_t);
- void set_fade_in_active (bool);
- void set_fade_out_active (bool);
- void set_fade_in_shape (ARDOUR::AudioRegion::FadeShape);
- void set_fade_out_shape (ARDOUR::AudioRegion::FadeShape);
virtual void entered ();
virtual void exited ();
AudioRegionGainLine * gain_line;
double _amplitude_above_axis;
+ double _y_position;
+ double _height;
uint32_t _flags;
uint32_t fade_color;
void fade_out_active_changed ();
void region_resized (ARDOUR::Change);
- void region_moved (void *);
void region_muted ();
void region_scale_amplitude_changed ();
void region_renamed ();
void compute_colors (Gdk::Color&);
void reset_width_dependent_items (double pixel_width);
void set_waveview_data_src();
+
+ void color_handler ();
vector<GnomeCanvasWaveViewCache*> wave_caches;
-
- void color_handler (ColorID, uint32_t);
+
+ private:
+
+ void setup_fade_handle_positions ();
};
#endif /* __gtk_ardour_audio_region_view_h__ */