1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
//=============================================================================
// MuseScore
// Music Composition & Notation
// $Id:$
//
// Copyright (C) 2011 Werner Schweer and others
//
// 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 "inspectorLasso.h"
#include "musescore.h"
#include "libmscore/lasso.h"
namespace Ms {
//---------------------------------------------------------
// InspectorLasso
//---------------------------------------------------------
InspectorLasso::InspectorLasso(QWidget* parent)
: InspectorBase(parent)
{
b.setupUi(addWidget());
iList = {
{ P_ID::LASSO_POS, 0, false, b.posX, 0 },
{ P_ID::LASSO_POS, 1, false, b.posY, 0 },
{ P_ID::LASSO_SIZE, 0, false, b.sizeWidth, 0 },
{ P_ID::LASSO_SIZE, 1, false, b.sizeHeight, 0 },
};
mapSignals();
}
#if 0
//---------------------------------------------------------
// setElement
//---------------------------------------------------------
void InspectorLasso::setElement(Element* e)
{
Lasso* lasso = static_cast<Lasso*>(e);
QRectF bb(lasso->rect());
b.posX->setValue(bb.x() / DPMM);
b.posY->setValue(bb.y() / DPMM);
b.sizeWidth->setValue(bb.width() / DPMM);
b.sizeHeight->setValue(bb.height() / DPMM);
InspectorBase::setElement();
}
#endif
}
|