MuseScore/mscore/inspector/inspectorHairpin.cpp
2013-08-13 14:26:40 +02:00

51 lines
2.2 KiB
C++

//=============================================================================
// MuseScore
// Music Composition & Notation
// $Id:$
//
// Copyright (C) 2012 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 LICENSE.GPL
//=============================================================================
#include "inspectorHairpin.h"
#include "musescore.h"
#include "libmscore/hairpin.h"
#include "libmscore/score.h"
namespace Ms {
//---------------------------------------------------------
// InspectorHairpin
//---------------------------------------------------------
InspectorHairpin::InspectorHairpin(QWidget* parent)
: InspectorBase(parent)
{
e.setupUi(addWidget());
l.setupUi(addWidget());
setupLineStyle(l.lineStyle);
h.setupUi(addWidget());
iList = {
{ P_COLOR, 0, 0, e.color, e.resetColor },
{ P_VISIBLE, 0, 0, e.visible, e.resetVisible },
{ P_USER_OFF, 0, 0, e.offsetX, e.resetX },
{ P_USER_OFF, 1, 0, e.offsetY, e.resetY },
{ P_DIAGONAL, 0, 0, l.diagonal, l.resetDiagonal },
{ P_LINE_COLOR, 0, 0, l.lineColor, l.resetLineColor },
{ P_LINE_WIDTH, 0, 0, l.lineWidth, l.resetLineWidth },
{ P_LINE_STYLE, 0, 0, l.lineStyle, l.resetLineStyle },
{ P_HAIRPIN_TYPE, 0, 0, h.hairpinType, h.resetHairpinType },
{ P_DYNAMIC_RANGE, 0, 0, h.dynRange, h.resetDynRange },
{ P_VELO_CHANGE, 0, 0, h.veloChange, h.resetVeloChange },
{ P_HAIRPIN_HEIGHT, 0, 0, h.hairpinHeight, h.resetHairpinHeight },
{ P_HAIRPIN_CONT_HEIGHT, 0, 0, h.hairpinContHeight, h.resetHairpinContHeight }
};
mapSignals();
}
}