Waveshaper: added bg image for graph, made graph larger
Graph widget: added new functionality - ability to draw straight lines with shift-click
This commit is contained in:
@@ -49,11 +49,15 @@ public:
|
||||
NumGraphStyles
|
||||
};
|
||||
|
||||
graph( QWidget * _parent, graphStyle _style = graph::LinearStyle );
|
||||
graph( QWidget * _parent, graphStyle _style = graph::LinearStyle,
|
||||
int _width = 132,
|
||||
int _height = 104
|
||||
);
|
||||
virtual ~graph();
|
||||
|
||||
void setForeground( const QPixmap & _pixmap );
|
||||
|
||||
|
||||
void setGraphColor( const QColor );
|
||||
|
||||
inline graphModel * model()
|
||||
@@ -65,6 +69,7 @@ public:
|
||||
{
|
||||
return m_graphStyle;
|
||||
}
|
||||
|
||||
|
||||
inline void setGraphStyle( graphStyle _s )
|
||||
{
|
||||
@@ -88,7 +93,8 @@ protected slots:
|
||||
private:
|
||||
virtual void modelChanged();
|
||||
|
||||
void changeSampleAt(int _x, int _y);
|
||||
void changeSampleAt( int _x, int _y );
|
||||
void drawLineAt( int _x, int _y, int _lastx );
|
||||
|
||||
|
||||
QPixmap m_foreground;
|
||||
|
||||
Reference in New Issue
Block a user