1 //============================================================================= 2 // MuseScore 3 // Music Composition & Notation 4 // 5 // Copyright (C) 2011 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 // 10 // This program is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with this program; if not, write to the Free Software 17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 //============================================================================= 19 20 #ifndef __LAYER_H__ 21 #define __LAYER_H__ 22 23 #include "ui_layer.h" 24 25 namespace Ms { 26 27 class Score; 28 29 //--------------------------------------------------------- 30 // LayerManager 31 //--------------------------------------------------------- 32 33 class LayerManager : public QDialog, public Ui::LayerManager { 34 Q_OBJECT 35 36 Score* score; 37 38 virtual void hideEvent(QHideEvent*); 39 40 private slots: 41 void createClicked(); 42 void deleteClicked(); 43 void addTagClicked(); 44 void deleteTagClicked(); 45 virtual void accept(); 46 47 public: 48 LayerManager(Score*, QWidget* parent = 0); 49 }; 50 51 52 } // namespace Ms 53 #endif 54 55