1 //============================================================================= 2 // MusE Score 3 // Linux Music Score Editor 4 // 5 // Copyright (C) 2002-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 // 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 EDITPITCH_H 21 #define EDITPITCH_H 22 23 #include "ui_editpitch.h" 24 25 namespace Ms { 26 27 //--------------------------------------------------------- 28 // EditPitch 29 //--------------------------------------------------------- 30 31 class EditPitch : public QDialog, private Ui::EditPitchBase { 32 Q_OBJECT 33 34 virtual void hideEvent(QHideEvent*); 35 36 private slots: 37 void on_tableWidget_cellDoubleClicked(int row, int column); 38 void accept(); reject()39 void reject() { done(-1); } // return an invalid pitch MIDI code 40 41 public: 42 EditPitch(QWidget *parent); 43 EditPitch(QWidget * parent, int midiCode); ~EditPitch()44 ~EditPitch() {} 45 }; 46 47 } 48 49 #endif // EDITPITCH_H 50