1f9ccfcdce
git-subtree-dir: libmscore git-subtree-mainline:412ca45401
git-subtree-split:6047361bd0
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
//=============================================================================
|
|
// MuseScore
|
|
// Music Composition & Notation
|
|
// $Id:$
|
|
//
|
|
// 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"
|
|
|
|
enum InstrumentNameType {
|
|
INSTRUMENT_NAME_LONG, INSTRUMENT_NAME_SHORT
|
|
};
|
|
|
|
//---------------------------------------------------------
|
|
// InstrumentName
|
|
//---------------------------------------------------------
|
|
|
|
class InstrumentName : public Text {
|
|
InstrumentNameType _subtype;
|
|
int _layoutPos;
|
|
|
|
public:
|
|
InstrumentName(Score*);
|
|
virtual InstrumentName* clone() const { return new InstrumentName(*this); }
|
|
virtual ElementType type() const { return INSTRUMENT_NAME; }
|
|
int layoutPos() const { return _layoutPos; }
|
|
void setLayoutPos(int val) { _layoutPos = val; }
|
|
|
|
QString subtypeName() const;
|
|
InstrumentNameType subtype() const { return _subtype; }
|
|
void setSubtype(InstrumentNameType v) { _subtype = v; }
|
|
void setSubtype(const QString& s);
|
|
};
|
|
|
|
#endif
|
|
|