75623c53dc
needed to make it available to the Plugin framework
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
//=============================================================================
|
|
// MuseScore
|
|
// Music Composition & Notation
|
|
//
|
|
// Copyright (C) 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 __INAME_H__
|
|
#define __INAME_H__
|
|
|
|
#include "text.h"
|
|
|
|
namespace Ms {
|
|
|
|
enum class InstrumentNameType : char {
|
|
LONG, SHORT
|
|
};
|
|
|
|
//---------------------------------------------------------
|
|
// InstrumentName
|
|
//---------------------------------------------------------
|
|
|
|
class InstrumentName : public Text {
|
|
InstrumentNameType _instrumentNameType;
|
|
int _layoutPos;
|
|
|
|
public:
|
|
InstrumentName(Score*);
|
|
virtual InstrumentName* clone() const { return new InstrumentName(*this); }
|
|
virtual Element::Type type() const { return Element::Type::INSTRUMENT_NAME; }
|
|
int layoutPos() const { return _layoutPos; }
|
|
void setLayoutPos(int val) { _layoutPos = val; }
|
|
|
|
QString instrumentNameTypeName() const;
|
|
InstrumentNameType instrumentNameType() const { return _instrumentNameType; }
|
|
void setInstrumentNameType(InstrumentNameType v);
|
|
void setInstrumentNameType(const QString& s);
|
|
};
|
|
|
|
|
|
} // namespace Ms
|
|
#endif
|
|
|