MuseScore/libmscore/bracketItem.h
anatoly-os e2f3431e03 fix clang warnings
But the ones related to deprecations in third-party libs

* Remove unused variables
* Prevent calling non-virtual destructors
* Prevent the warning "Moving a temporary object prevents copy elision" by removing std::move call
* disable "`register` is deprecated" warning related to the 3rd party code
2019-10-14 19:01:59 +02:00

53 lines
2 KiB
C++

//=============================================================================
// MuseScore
// Music Composition & Notation
//
// Copyright (C) 2017 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 __BRACKET_ITEM_H__
#define __BRACKET_ITEM_H__
#include "scoreElement.h"
#include "mscore.h"
namespace Ms {
//---------------------------------------------------------
// BracketItem
//---------------------------------------------------------
class BracketItem final : public ScoreElement {
BracketType _bracketType { BracketType::NO_BRACKET };
int _column { 0 };
int _bracketSpan { 0 };
Staff* _staff { 0 };
public:
BracketItem(Score* s) : ScoreElement(s) {}
BracketItem(Score* s, BracketType a, int b) : ScoreElement(s), _bracketType(a), _bracketSpan(b) { }
virtual ElementType type() const override { return ElementType::BRACKET_ITEM; }
virtual QVariant getProperty(Pid) const override;
virtual bool setProperty(Pid, const QVariant&) override;
virtual QVariant propertyDefault(Pid id) const override;
// bool selected() const { return _selected; }
int bracketSpan() const { return _bracketSpan; }
BracketType bracketType() const { return _bracketType; }
// void setSelected(bool v) { _selected = v; }
void setBracketSpan(int v) { _bracketSpan = v; }
void setBracketType(BracketType v) { _bracketType = v; }
Staff* staff() { return _staff; }
void setStaff(Staff*s ) { _staff = s; }
int column() const { return _column; }
void setColumn(int v) { _column = v; }
};
}
#endif