MuseScore/mscore/playpanel.h

76 lines
2 KiB
C
Raw Normal View History

2012-05-26 14:49:10 +02:00
//=============================================================================
// MuseScore
// Linux Music Score Editor
// $Id: playpanel.h 4722 2011-09-01 12:26:07Z wschweer $
//
// Copyright (C) 2002-2011 Werner Schweer and others
//
// 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 __PLAYPANEL_H__
#define __PLAYPANEL_H__
#include "ui_playpanel.h"
2013-05-13 18:49:17 +02:00
namespace Ms {
2012-05-26 14:49:10 +02:00
class Score;
//---------------------------------------------------------
// PlayPanel
//---------------------------------------------------------
class PlayPanel : public QWidget, private Ui::PlayPanelBase {
Q_OBJECT
int cachedTickPosition;
int cachedTimePosition;
Score* cs;
virtual void closeEvent(QCloseEvent*);
virtual void hideEvent (QHideEvent* event);
2013-10-18 12:21:01 +02:00
void updateTimeLabel(int sec);
void updatePosLabel(int utick);
2012-05-26 14:49:10 +02:00
private slots:
void volumeChanged(double,int);
void relTempoChanged(double,int);
void relTempoChanged();
2012-05-26 14:49:10 +02:00
signals:
void relTempoChanged(double);
void posChange(int);
void gainChange(float);
void closed(bool);
2012-05-26 14:49:10 +02:00
public slots:
void setGain(float);
void setPos(int);
void heartBeat(int rpos, int apos, int samples);
2012-05-26 14:49:10 +02:00
public:
PlayPanel(QWidget* parent = 0);
~PlayPanel();
2012-05-26 14:49:10 +02:00
void setTempo(double);
void setRelTempo(qreal);
void setEndpos(int);
void setScore(Score* s);
};
2013-05-13 18:49:17 +02:00
} // namespace Ms
2012-05-26 14:49:10 +02:00
#endif