1 /*************************************************************************** 2 ** ** 3 ** Polyphone, a soundfont editor ** 4 ** Copyright (C) 2013-2020 Davy Triponney ** 5 ** 2014 Andrea Celani ** 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 as published by ** 9 ** the Free Software Foundation, either version 3 of the License, or ** 10 ** (at your option) any later version. ** 11 ** ** 12 ** This program is distributed in the hope that it will be useful, ** 13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** 14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** 15 ** GNU General Public License for more details. ** 16 ** ** 17 ** You should have received a copy of the GNU General Public License ** 18 ** along with this program. If not, see http://www.gnu.org/licenses/. ** 19 ** ** 20 **************************************************************************** 21 ** Author: Davy Triponney ** 22 ** Website/Contact: https://www.polyphone-soundfonts.com ** 23 ** Date: 01.01.2013 ** 24 ***************************************************************************/ 25 26 #ifndef MODULATORLISTWIDGET_H 27 #define MODULATORLISTWIDGET_H 28 29 #include <QListWidget> 30 #include "basetypes.h" 31 32 class ModulatorListWidget : public QListWidget 33 { 34 Q_OBJECT 35 36 public: 37 ModulatorListWidget(QWidget * parent = nullptr); 38 39 // Get all modulators that have been selected 40 QList<ModulatorData> getSelectedModulators(); 41 42 signals: 43 void pasted(); 44 void copied(); 45 void deleted(); 46 47 protected: 48 void keyPressEvent(QKeyEvent * event); 49 50 private slots: 51 void onSelectionChanged(); 52 }; 53 54 #endif // MODULATORLISTWIDGET_H 55