MuseScore/mscore/synthcontrol.h

90 lines
2.6 KiB
C
Raw Normal View History

2012-05-26 14:49:10 +02:00
//=============================================================================
// MusE Score
// Linux Music Score Editor
//
2016-06-30 15:34:02 +02:00
// Copyright (C) 2002-2016 Werner Schweer and others
2012-05-26 14:49:10 +02:00
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//=============================================================================
#ifndef __SYNTHCONTROL_H__
#define __SYNTHCONTROL_H__
#include "ui_synthcontrol.h"
#include "enableplayforwidget.h"
2012-05-26 14:49:10 +02:00
2013-05-13 18:49:17 +02:00
namespace Ms {
2012-05-26 14:49:10 +02:00
class Score;
//---------------------------------------------------------
// SynthControl
//---------------------------------------------------------
class SynthControl : public QWidget, Ui::SynthControl {
Q_OBJECT
Score* _score;
EnablePlayForWidget* enablePlay;
bool _dirty { false };
2012-05-26 14:49:10 +02:00
virtual void closeEvent(QCloseEvent*);
virtual void showEvent(QShowEvent*);
virtual bool eventFilter(QObject*, QEvent*);
virtual void keyPressEvent(QKeyEvent*) override;
void updateGui();
void readSettings();
2018-12-22 11:43:23 +01:00
void updateExpressivePatches();
void updateMixer();
void setAllUserBankController(bool val);
2012-05-26 14:49:10 +02:00
private slots:
void gainChanged(double, int);
void masterTuningChanged(double);
void changeMasterTuning();
void effectAChanged(int);
void effectBChanged(int);
void loadButtonClicked();
void saveButtonClicked();
void storeButtonClicked();
void recallButtonClicked();
2018-12-22 11:43:23 +01:00
void dynamicsMethodChanged(int);
void ccToUseChanged(int);
void switchExprButtonClicked();
void switchNonExprButtonClicked();
void resetExprButtonClicked();
void setDirty();
2012-05-26 14:49:10 +02:00
signals:
2013-04-03 12:13:23 +02:00
void soundFontChanged();
void closed(bool);
2012-05-26 14:49:10 +02:00
2016-06-30 15:34:02 +02:00
protected:
virtual void changeEvent(QEvent *event);
void retranslate() { retranslateUi(this); }
2012-05-26 14:49:10 +02:00
public slots:
void setGain(float);
public:
SynthControl(QWidget* parent);
void setMeter(float, float, float, float);
void stop();
void setScore(Score* s);
void writeSettings();
2012-05-26 14:49:10 +02:00
};
2013-05-13 18:49:17 +02:00
}
2012-05-26 14:49:10 +02:00
#endif