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:
Vesa
2014-02-12 13:21:55 +02:00
parent 2405a6a25e
commit 201fa1d89a
6 changed files with 111 additions and 41 deletions

View File

@@ -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;