1 //=============================================================================
2 //  MuseScore
3 //  Music Composition & Notation
4 //
5 //  Copyright (C) 2012 Werner Schweer and others
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 #ifndef __INSPECTOR_FRET_H__
14 #define __INSPECTOR_FRET_H__
15 
16 #include "inspector.h"
17 #include "inspectorBase.h"
18 #include "ui_inspector_fret.h"
19 
20 namespace Ms {
21 
22 //---------------------------------------------------------
23 //   InspectorFretDiagram
24 //---------------------------------------------------------
25 
26 class InspectorFretDiagram : public InspectorElementBase {
27       Q_OBJECT
28 
29       Ui::InspectorFretDiagram   f;
30       virtual void setElement() override;
31       void genericButtonToggled(QPushButton* b, bool v, FretDotType dtype);
32       std::vector<QPushButton*> dotTypeButtons;
33 
34    private slots:
35       virtual void valueChanged(int idx) override;
36       void fretNumberChanged(int fretNumber);
37       void resetFretNumber();
38 
39       void circleButtonToggled(bool v);
40       void crossButtonToggled(bool v);
41       void squareButtonToggled(bool v);
42       void triangleButtonToggled(bool v);
43       void barreButtonToggled(bool v);
44       void multidotButtonToggled(bool v);
45       void clearButtonClicked();
46 
47    public:
48       InspectorFretDiagram(QWidget* parent);
49       };
50 
51 
52 } // namespace Ms
53 #endif
54 
55