1
//=========================================================
4
// $Id: pianoroll.h,v 1.2 2001/11/20 15:19:33 muse Exp $
5
// (C) Copyright 1999 Werner Schweer (ws@seh.de)
6
//=========================================================
8
#ifndef __PIANOROLL_H__
9
#define __PIANOROLL_H__
13
#include "midieditor.h"
17
#include <qmainwindow.h>
41
//---------------------------------------------------------
43
//---------------------------------------------------------
45
class PianoRoll : public MidiEditor {
49
QPopupMenu *menuEdit, *menuFunctions;
62
QPopupMenu* eventColor;
65
static int _quantInit, _rasterInit;
66
static int _quantStrengthInit;
67
static int _quantLimitInit;
68
static bool _quantLenInit;
70
static int colorModeInit;
76
QuantConfig* quantConfig;
80
QWidget* genToolbar(QWidget* parent);
81
virtual void closeEvent(QCloseEvent*);
82
virtual void keyPressEvent(QKeyEvent*);
85
void setSelection(int, Event*, Part*);
86
void noteinfoChanged(NoteInfo::ValType, int);
88
void removeCtrl(CtrlEdit* ctrl);
89
void soloChanged(bool flag);
90
void soloChanged(SoundSource*);
94
void setQuantStrength(int val) { _quantStrength = val; }
95
void setQuantLimit(int val) { _quantLimit = val; }
96
void setQuantLen(bool val) { _quantLen = val; }
98
void setSteprec(bool);
99
void setTo(int val) { _to = val; }
100
void setEventColorMode(int);
101
void clipboardChanged(); // enable/disable "Paste"
102
void selectionChanged(); // enable/disable "Copy" & "Paste"
103
void setSpeaker(bool);
105
void follow(int pos);
111
PianoRoll(PartList*, QWidget* parent = 0, const char* name = 0);
113
virtual void readStatus(Xml&);
114
virtual void writeStatus(int, Xml&) const;
115
static void readConfiguration(Xml&);
116
static void writeConfiguration(int, Xml&);