1
//=========================================================
4
// $Id: transport.h,v 1.1.1.1 2003/10/29 10:05:15 wschweer Exp $
6
// (C) Copyright 1999/2000 Werner Schweer (ws@seh.de)
7
//=========================================================
9
#ifndef __TRANSPORT_H__
10
#define __TRANSPORT_H__
13
// #include <qframe.h>
24
//---------------------------------------------------------
26
//---------------------------------------------------------
28
class TempoSig : public QWidget {
34
void setTempo(double);
35
void setTempo(int tempo);
38
void tempoChanged(int);
39
void sigChanged(int, int);
42
TempoSig(QWidget* parent);
43
void setTimesig(int a, int b);
46
//---------------------------------------------------------
48
//---------------------------------------------------------
50
class Handle : public QWidget {
53
void mouseMoveEvent(QMouseEvent* ev);
54
void mousePressEvent(QMouseEvent* ev);
56
Handle(QWidget* parent, QWidget* root);
61
//---------------------------------------------------------
63
//---------------------------------------------------------
65
class Transport : public QWidget
67
PosEdit* tl1; // linke Marke
68
PosEdit* tl2; // rechte Marke
69
PosEdit* time1; // Tick Time
70
PosEdit* time2; // SMPTE
74
QToolButton* masterButton;
77
QToolButton* quantizeButton;
78
QToolButton* clickButton;
79
QToolButton* syncButton;
80
QToolButton* buttons[6]; // transport buttons
82
Handle *lefthandle, *righthandle;
87
void cposChanged(const Pos&);
88
void cposChanged(int);
89
void lposChanged(const Pos&);
90
void rposChanged(const Pos&);
92
void setCycleMode(int);
93
void songChanged(int);
94
void syncChanged(bool);
95
void setRecord(bool flag);
96
void stopToggled(bool);
97
void playToggled(bool);
100
void setTempo(int tempo);
101
void setTimesig(int a, int b);
102
void setPos(int,int, bool);
103
void setMasterFlag(bool);
104
void setClickFlag(bool);
105
void setQuantizeFlag(bool);
106
void setSyncFlag(bool);
107
void setPlay(bool f);
108
void setHandleColor(QColor);
111
Transport(QWidget* parent, const char* name = 0);
112
QColor getHandleColor() const { return lefthandle->backgroundColor(); }