00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef FADE_VIEW_H
00024 #define FADE_VIEW_H
00025
00026 #include "ViewItem.h"
00027
00028 class Curve;
00029 class FadeCurve;
00030 class AudioClipView;
00031
00032 class FadeView : public ViewItem
00033 {
00034 Q_OBJECT
00035
00036 Q_CLASSINFO("bend", tr("Adjust Bend"))
00037 Q_CLASSINFO("strength", tr("Adjust Strength"))
00038 Q_CLASSINFO("select_fade_shape", tr("Select Preset"))
00039
00040 public:
00041 FadeView(SheetView* sv, AudioClipView* parent, FadeCurve* fadeCuve);
00042 ~FadeView();
00043
00044 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00045 int get_vector(int xstart, int pixelcount, float * arg);
00046 void calculate_bounding_rect();
00047 void set_holding(bool hold);
00048
00049 FadeCurve* get_fade() const {return m_fadeCurve;}
00050
00051 void load_theme_data();
00052
00053 private:
00054 FadeCurve* m_fadeCurve;
00055 Curve* m_guicurve;
00056 bool m_holdactive;
00057
00058 public slots:
00059 void state_changed();
00060
00061 Command* bend();
00062 Command* strength();
00063 Command* select_fade_shape();
00064
00065
00066 signals :
00067
00068
00069 void fadeModified();
00070 };
00071
00072
00073 #endif
00074
00075
00076
00077