1 //=============================================================================
2 //  MuseScore
3 //  Music Composition & Notation
4 //
5 //  Copyright (C) 2013 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 "inspectorJump.h"
14 #include "libmscore/jump.h"
15 
16 namespace Ms {
17 
18 //---------------------------------------------------------
19 //   InspectorJump
20 //---------------------------------------------------------
21 
InspectorJump(QWidget * parent)22 InspectorJump::InspectorJump(QWidget* parent)
23    : InspectorTextBase(parent)
24       {
25       j.setupUi(addWidget());
26 
27       const std::vector<InspectorItem> iiList = {
28             { Pid::JUMP_TO,            0, j.jumpTo,      0                  },
29             { Pid::PLAY_UNTIL,         0, j.playUntil,   0                  },
30             { Pid::CONTINUE_AT,        0, j.continueAt,  0                  },
31             { Pid::PLAY_REPEATS,       0, j.playRepeats, j.resetPlayRepeats }
32             };
33       const std::vector<InspectorPanel> ppList = {
34             { t.title, t.panel },
35             { j.title, j.panel }
36             };
37 
38       mapSignals(iiList, ppList);
39       }
40 
41 }
42