#ifndef _QTSELFRAME_H_
#define _QTSELFRAME_H_
#include "qtMain.h"
class QtEditor;
class QtSelFrame : public QFrame
{
Q_OBJECT
public:
QtSelFrame( QWidget * parent, const char * name );
QLabel * top;
QLabel * bottom;
void setTop(int,int,int);
void setBottom(int,int,int);
};
class Notebar;
class NoteEdit : public QLineEdit
{
Q_OBJECT
private:
int num;
Notebar * nb;
public:
NoteEdit( int n, QWidget * parent = 0, const char * name = 0 );
void enable();
public slots:
void focusOutEvent ( QFocusEvent * );
void focusInEvent (QFocusEvent * );
};
class PopLabel : public QLabel
{
Q_OBJECT
private:
QPopupMenu * menu;
int entry;
public:
PopLabel( QWidget * parent = 0, const char * name=0 );
public slots:
void mousePressEvent ( QMouseEvent * );
void select(int);
};
class Notebar : public QFrame
{
Q_OBJECT
private:
int pos;
char position[32];
char lengths[12];
char pitch[12];
char velocity[12];
QLabel * qlPosition;
int enhValue;
PopLabel * enhLabel;
NoteEdit * start;
NoteEdit * length;
NoteEdit * freq;
NoteEdit * vel;
public:
Notebar( QWidget *parent=0, const char *name=0 );
QtEditor * editor;
void setStart(int,int,int);
void setLength(int);
void setPitch(int);
void setVelocity(int);
void setEnh(int);
void clear();
public slots:
void startCF();
void lengthCF();
void freqCF();
void velCF();
void startEnter();
void lengthEnter();
void freqEnter();
void velEnter();
};
#endif
Documentation generated by wuerthne@clouseau on Sat Feb 20 16:41:13 MST 1999