1 //============================================================================= 2 // MuseScore 3 // Music Composition & Notation 4 // 5 // Copyright (C) 2016 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_BARLINE_H__ 14 #define __INSPECTOR_BARLINE_H__ 15 16 #include "inspectorBase.h" 17 #include "inspectorElementBase.h" 18 #include "ui_inspector_barline.h" 19 #include "ui_inspector_segment.h" 20 21 namespace Ms { 22 23 //--------------------------------------------------------- 24 // InspectorBarLine 25 //--------------------------------------------------------- 26 27 class InspectorBarLine : public InspectorElementBase { 28 Q_OBJECT 29 30 Ui::InspectorSegment s; 31 Ui::InspectorBarLine b; 32 33 void blockSpanDataSignals(bool val); 34 35 private slots: 36 void manageSpanData(); 37 void presetDefaultClicked(); 38 void presetTick1Clicked(); 39 void presetTick2Clicked(); 40 void presetShort1Clicked(); 41 void presetShort2Clicked(); 42 void setAsStaffDefault(); 43 44 public: 45 InspectorBarLine(QWidget* parent); 46 virtual void setElement() override; 47 }; 48 49 } // namespace Ms 50 #endif 51 52