1f9ccfcdce
git-subtree-dir: libmscore git-subtree-mainline:412ca45401
git-subtree-split:6047361bd0
53 lines
1.6 KiB
C++
53 lines
1.6 KiB
C++
//=============================================================================
|
|
// MuseScore
|
|
// Music Composition & Notation
|
|
// $Id: glissando.h 5500 2012-03-28 16:28:26Z wschweer $
|
|
//
|
|
// Copyright (C) 2008-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 __GLISSANDO_H__
|
|
#define __GLISSANDO_H__
|
|
|
|
#include "element.h"
|
|
|
|
class Note;
|
|
|
|
//---------------------------------------------------------
|
|
// Glissando
|
|
//---------------------------------------------------------
|
|
|
|
class Glissando : public Element {
|
|
int _subtype;
|
|
QLineF line;
|
|
QString _text;
|
|
bool _showText;
|
|
|
|
public:
|
|
Glissando(Score* s);
|
|
virtual Glissando* clone() const { return new Glissando(*this); }
|
|
virtual ElementType type() const { return GLISSANDO; }
|
|
int subtype() const { return _subtype; }
|
|
void setSubtype(int v) { _subtype = v; }
|
|
virtual Space space() const;
|
|
|
|
virtual void draw(QPainter*) const;
|
|
virtual void layout();
|
|
virtual void write(Xml&) const;
|
|
virtual void read(const QDomElement&);
|
|
|
|
void setSize(const QSizeF&); // used for palette
|
|
|
|
QString text() const { return _text; }
|
|
void setText(const QString& t) { _text = t; }
|
|
bool showText() const { return _showText; }
|
|
void setShowText(bool v) { _showText = v; }
|
|
};
|
|
|
|
#endif
|
|
|