|
lmms
Cross-platform music production software
|
#include <Graph.h>
Public Types | |
| enum class | Style { Nearest , Linear , LinearNonCyclic , Bar } |
Signals | |
| void | drawn () |
Public Member Functions | |
| Graph (QWidget *parent, Style style=Style::Linear, int width=132, int height=104) | |
| ~Graph () override=default | |
| void | setForeground (const QPixmap &_pixmap) |
| void | setGraphColor (const QColor) |
| graphModel * | model () |
| Style | getGraphStyle () |
| void | setGraphStyle (Style _s) |
| Public Member Functions inherited from lmms::gui::ModelView | |
| ModelView (Model *model, QWidget *widget) | |
| virtual | ~ModelView () |
| virtual void | setModel (Model *model, bool isOldModelValid=true) |
| virtual void | unsetModel () |
| Model * | model () |
| const Model * | model () const |
| template<class T> | |
| T * | castModel () |
| template<class T> | |
| const T * | castModel () const |
Protected Slots | |
| void | updateGraph (int _startPos, int _endPos) |
| void | updateGraph () |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *_pe) override |
| void | dropEvent (QDropEvent *_de) override |
| void | dragEnterEvent (QDragEnterEvent *_dee) override |
| void | mousePressEvent (QMouseEvent *_me) override |
| void | mouseMoveEvent (QMouseEvent *_me) override |
| void | mouseReleaseEvent (QMouseEvent *_me) override |
| Protected Member Functions inherited from lmms::gui::ModelView | |
| QWidget * | widget () |
| virtual void | doConnections () |
Private Member Functions | |
| void | modelChanged () override |
| void | changeSampleAt (int _x, int _y) |
| void | drawLineAt (int _x, int _y, int _lastx) |
Private Attributes | |
| QPixmap | m_foreground |
| QColor | m_graphColor |
| Style | m_graphStyle |
| bool | m_mouseDown |
| int | m_lastCursorX |
|
strong |
| lmms::gui::Graph::Graph | ( | QWidget * | parent, |
| Style | style = Style::Linear, | ||
| int | width = 132, | ||
| int | height = 104 ) |
|
overridedefault |
|
private |
|
overrideprotected |
|
private |
|
signal |
|
overrideprotected |
|
inline |
|
inline |
|
overrideprivatevirtual |
Reimplemented from lmms::gui::ModelView.
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
| void lmms::gui::Graph::setForeground | ( | const QPixmap & | _pixmap | ) |
| void lmms::gui::Graph::setGraphColor | ( | const QColor | _graphcol | ) |
|
inline |
|
protectedslot |
|
protectedslot |
|
private |
|
private |
|
private |
|
private |
|
private |