2018-07-12 10:15:56 +02:00
|
|
|
//=============================================================================
|
|
|
|
// 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 "inspectorHarmony.h"
|
|
|
|
#include "musescore.h"
|
|
|
|
#include "libmscore/harmony.h"
|
|
|
|
#include "libmscore/score.h"
|
2018-07-13 17:24:26 +02:00
|
|
|
#include "icons.h"
|
2018-07-12 10:15:56 +02:00
|
|
|
|
|
|
|
namespace Ms {
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
// InspectorHarmony
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
InspectorHarmony::InspectorHarmony(QWidget* parent)
|
2018-07-13 17:24:26 +02:00
|
|
|
: InspectorTextBase(parent)
|
2018-07-12 10:15:56 +02:00
|
|
|
{
|
2018-07-13 17:24:26 +02:00
|
|
|
h.setupUi(addWidget());
|
2018-07-12 10:15:56 +02:00
|
|
|
|
|
|
|
const std::vector<InspectorItem> iiList = {
|
2018-07-16 14:35:11 +02:00
|
|
|
{ Pid::POS_ABOVE, 0, h.posAbove, h.resetPosAbove },
|
|
|
|
{ Pid::SUB_STYLE, 0, h.style, h.resetStyle },
|
2018-07-12 10:15:56 +02:00
|
|
|
};
|
|
|
|
|
2018-07-13 17:24:26 +02:00
|
|
|
const std::vector<InspectorPanel> ppList = {
|
|
|
|
{ h.title, h.panel }
|
|
|
|
};
|
2018-07-12 10:15:56 +02:00
|
|
|
|
2018-07-13 17:24:26 +02:00
|
|
|
h.style->clear();
|
2018-08-01 11:46:07 +02:00
|
|
|
for (auto ss : { Tid::HARMONY_A, Tid::HARMONY_B } ) {
|
|
|
|
h.style->addItem(textStyleUserName(ss), int(ss));
|
2018-07-13 17:24:26 +02:00
|
|
|
}
|
2018-07-12 10:15:56 +02:00
|
|
|
|
2018-07-13 17:24:26 +02:00
|
|
|
t.resetToStyle->setVisible(false);
|
|
|
|
|
|
|
|
mapSignals(iiList, ppList);
|
2018-07-12 10:15:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|