1 //=============================================================================
2 //  MuseScore
3 //  Music Composition & Notation
4 //
5 //  Copyright (C) 2018 Werner Schweer
6 //
7 //  This program is free software; you can redistribute it and/or modify
8 //  it under the terms of the GNU General Public License version 2
9 //  as published by the Free Software Foundation and appearing in
10 //  the file LICENSE.GPL
11 //=============================================================================
12 
13 #include "inspector.h"
14 #include "inspectorPedal.h"
15 
16 namespace Ms {
17 
18 //---------------------------------------------------------
19 //   InspectorPedal
20 //---------------------------------------------------------
21 
InspectorPedal(QWidget * parent)22 InspectorPedal::InspectorPedal(QWidget* parent)
23    : InspectorTextLineBase(parent)
24       {
25       p.setupUi(addWidget());
26 
27       const std::vector<InspectorItem> il = {
28             { Pid::PLACEMENT,  0, p.placement,  p.resetPlacement             },
29             };
30       const std::vector<InspectorPanel> ppList = {
31             { p.title, p.panel },
32             };
33 
34       populatePlacement(p.placement);
35       mapSignals(il, ppList);
36       }
37 }
38 
39