tnotepair.cpp 4.47 KiB
/***************************************************************************
* Copyright (C) 2017-2018 by Tomasz Bojczuk *
* seelook@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#include "tnotepair.h"
#include "tbeamobject.h"
#include "tnoteitem.h"
#include "tstaffitem.h"
TnotePair::TnotePair(int index, const Tnote &n, TnoteItem *ob)
: m_note(n)
, m_noteItem(ob)
, m_index(static_cast<quint16>(index))
{
}
TnotePair::~TnotePair()
{
delete m_noteItem;
}
// void TnotePair::setIndex(int i) {
// m_index = static_cast<quint32>(i);
// if (m_noteItem)
// m_noteItem->updateDebug();
// }
//
//
// void TnotePair::setRhythmGroup(qint8 g) {
// m_group = g;
// if (m_noteItem)
// m_noteItem->updateDebug();
// }
void TnotePair::setNoteItem(TnoteItem *ob)
{
m_noteItem = ob;
}
void TnotePair::setPairNotes(const Tnote &n)
{
m_note = n;
m_noteItem->setNote(n);
}
void TnotePair::setWrapperNote(const Tnote &n)
{
m_note = n;
}
void TnotePair::setRhythmGroup(qint8 g)
{
m_group = g;
}
void TnotePair::setTechnical(quint32 tech)