bus joint paint now configured with BlockView::setBusSquareNodes(), square or round. By default round

This commit is contained in:
2020-08-14 14:08:31 +03:00
parent 8fbed9f427
commit 055b8a9480
4 changed files with 34 additions and 8 deletions

View File

@@ -64,6 +64,7 @@ public:
double width() const {return pen_width;}
void setWidth(const double & w);
void setColor(const QColor & c);
void setSquareNodes(bool yes);
int addPoint(const QPointF & point, bool update = true);
int segmentPointPair(int point, int * seg = 0) const;
void removePoint(int index);
@@ -122,7 +123,7 @@ protected:
QImage im_bus, im_end;
QPolygonF pol, bpol, pol_s;
Qt::KeyboardModifiers mm_mods;
bool temp_;
bool temp_, square_node;
double pen_width, grid_step, im_bus_scale, im_end_scale;
int selPoint, selSegment, max_ep, bus_type, state_;
bool moved, deleted, mark_in, mark_out, new_segment, mm_cancel, lm_point;