mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-10 13:30:00 -05:00
Various fixes to qlo10k1
Various fixes by Tim <terminator356@users.sourceforge.net>: - ld10k1 0.1.8p1 recommended for best operation. - Fixed link disconnect bug. - Now remembers last file open/save dir. - Now unused IO/FX do not disappear upon refresh. - Refresh/redraw fixups.
This commit is contained in:
parent
700edf08b4
commit
8d95c04c7e
14 changed files with 221 additions and 48 deletions
|
|
@ -39,11 +39,13 @@ private:
|
|||
RSItemIO *routes[POINTINFO_MAX_CONN_PER_POINT + 1];
|
||||
|
||||
QValueList <QPoint> routesPoints[POINTINFO_MAX_CONN_PER_POINT + 1];
|
||||
QPoint routesEndPoints[POINTINFO_MAX_CONN_PER_POINT + 1];
|
||||
QPoint routesEndPoints[POINTINFO_MAX_CONN_PER_POINT + 1];
|
||||
|
||||
bool useMixPoint;
|
||||
QPoint mixPoint;
|
||||
// Determines whether a point is close enough to a another point, within LINK_SELECT_WH.
|
||||
bool containsPointPoint(QPoint &p, int xp, int yp);
|
||||
// Determines whether a point is on a line segment.
|
||||
bool containsPointSegment(QPoint &p1, QPoint &p2, int xp, int yp);
|
||||
public:
|
||||
StrLink(int id, LinkType t);
|
||||
|
|
@ -73,6 +75,9 @@ public:
|
|||
void setRoutePoint(int r, RSItemIO *ri);
|
||||
void clearRoutesPoints(int r);
|
||||
|
||||
// Returns route number which segment containing point leads to, else -1
|
||||
int getRouteNumFromPoint(int xp, int yp);
|
||||
|
||||
virtual void calcSize();
|
||||
virtual void draw(DrawingParams *dp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue