mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
start putting some relevant elements into the AudioClipEditor
This commit is contained in:
parent
12dc428a60
commit
757debb711
2 changed files with 99 additions and 20 deletions
|
|
@ -47,6 +47,10 @@ namespace ArdourCanvas {
|
|||
class Polygon;
|
||||
};
|
||||
|
||||
namespace ArdourWaveView {
|
||||
class WaveView;
|
||||
}
|
||||
|
||||
class ClipEditorBox : public Gtk::VBox, public ARDOUR::SessionHandlePtr
|
||||
{
|
||||
public:
|
||||
|
|
@ -56,17 +60,24 @@ public:
|
|||
virtual void set_region (boost::shared_ptr<ARDOUR::Region>) =0;
|
||||
};
|
||||
|
||||
|
||||
class AudioClipEditor : public ArdourCanvas::GtkCanvas
|
||||
{
|
||||
public:
|
||||
AudioClipEditor ();
|
||||
~AudioClipEditor ();
|
||||
|
||||
void set_region (boost::shared_ptr<ARDOUR::AudioRegion>);
|
||||
void on_size_allocate (Gtk::Allocation&);
|
||||
|
||||
private:
|
||||
ArdourCanvas::Rectangle* frame;
|
||||
bool event_handler (GdkEvent* ev);
|
||||
|
||||
std::vector<ArdourWaveView::WaveView *> waves;
|
||||
|
||||
void drop_waves ();
|
||||
void set_wave_heights (int);
|
||||
void set_waveform_colors ();
|
||||
};
|
||||
|
||||
class AudioClipEditorBox : public ClipEditorBox
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue