MuseScore/libmscore/lasso.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.5 KiB
C
Raw Normal View History

2012-05-26 14:26:10 +02:00
//=============================================================================
// MuseScore
// Music Composition & Notation
//
// Copyright (C) 2010-2011 Werner Schweer
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2
// as published by the Free Software Foundation and appearing in
// the file LICENCE.GPL
//=============================================================================
#ifndef __LASSO_H__
#define __LASSO_H__
#include "element.h"
2013-05-13 18:49:17 +02:00
namespace Ms {
2012-05-26 14:26:10 +02:00
//---------------------------------------------------------
// Lasso
//---------------------------------------------------------
class Lasso : public Element
{
public:
Lasso(Score*);
virtual Lasso* clone() const override { return new Lasso(*this); }
2019-12-10 09:13:22 +01:00
ElementType type() const final { return ElementType::LASSO; }
virtual void draw(QPainter*) const override;
virtual bool isEditable() const override { return true; }
2017-03-31 13:03:15 +02:00
virtual void editDrag(EditData&) override;
2018-02-12 16:34:33 +01:00
virtual void endDrag(EditData&) {}
2020-05-26 15:54:26 +02:00
2018-03-27 15:36:00 +02:00
virtual QVariant getProperty(Pid propertyId) const override;
virtual bool setProperty(Pid propertyId, const QVariant&) override;
2020-05-26 15:54:26 +02:00
int gripsCount() const override { return 8; }
Grip initialEditModeGrip() const override { return Grip(7); }
Grip defaultGrip() const override { return Grip(7); }
std::vector<QPointF> gripsPositions(const EditData&) const override;
2012-05-26 14:26:10 +02:00
};
2013-05-13 18:49:17 +02:00
} // namespace Ms
2012-05-26 14:26:10 +02:00
#endif