~ubuntu-branches/ubuntu/raring/muse/raring-proposed

« back to all changes in this revision

Viewing changes to muse/midiedit/pianoroll.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-11-22 01:16:59 UTC
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: package-import@ubuntu.com-20121122011659-a2fwbf33ceqe1s0t
Tags: upstream-2.1~rc1
ImportĀ upstreamĀ versionĀ 2.1~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
//  Linux Music Editor
4
4
//    $Id: pianoroll.h,v 1.5.2.4 2009/11/16 11:29:33 lunar_shuttle Exp $
5
5
//  (C) Copyright 1999 Werner Schweer (ws@seh.de)
 
6
//  (C) Copyright 2012 Tim E. Real (terminator356 on users dot sourceforge dot net)
6
7
//
7
8
//  This program is free software; you can redistribute it and/or
8
9
//  modify it under the terms of the GNU General Public License
29
30
#include <QKeyEvent>
30
31
 
31
32
#include <limits.h>
 
33
#include "type_defs.h"
32
34
#include "noteinfo.h"
33
35
#include "cobject.h"
34
36
#include "midieditor.h"
35
37
#include "tools.h"
36
38
#include "event.h"
 
39
#include "midictrl.h"
37
40
 
38
41
class QAction;
39
42
class QLabel;
64
67
class Splitter;
65
68
class TimeLabel;
66
69
class Toolbar1;
 
70
class Piano;
67
71
 
68
72
//---------------------------------------------------------
69
73
//   PianoRoll
124
128
      QToolButton* srec;
125
129
      QToolButton* midiin;
126
130
 
 
131
      Piano* piano;
127
132
      MusEGui::Toolbar1* toolbar;
128
133
      MusEGui::Splitter* splitter;
129
134
      MusEGui::Splitter* hsplitter;
130
135
      MusEGui::Splitter* ctrlLane;
131
 
 
 
136
      QPushButton* ctrl;
 
137
      
132
138
      QToolButton* speaker;
133
139
      QToolBar* tools;
134
140
      MusEGui::EditToolBar* tools2;
145
151
 
146
152
      
147
153
      void initShortcuts();
 
154
      void setupNewCtrl(CtrlEdit* ctrlEdit);
148
155
      void setEventColorMode(int);
149
156
      QWidget* genToolbar(QWidget* parent);
150
157
      virtual void closeEvent(QCloseEvent*);
164
171
      void setSpeaker(bool);
165
172
      void setTime(unsigned);
166
173
      void follow(int pos);
167
 
      void songChanged1(int);
 
174
      void songChanged1(MusECore::SongChangedFlags_t);
168
175
      void configChanged();
169
176
      void newCanvasWidth(int);
170
177
      void toggleTrackInfo();
171
178
      void updateTrackInfo();
172
179
      void deltaModeChanged(bool);
 
180
      void addCtrlClicked();
 
181
      void ctrlPopupTriggered(QAction* act);
173
182
 
174
183
   signals:
175
184
      void isDeleting(MusEGui::TopWin*);
179
188
      void execDeliveredScript(int id);
180
189
      void execUserScript(int id);
181
190
      void focusCanvas();
182
 
      CtrlEdit* addCtrl();
183
191
      
184
192
   public:
185
193
      PianoRoll(MusECore::PartList*, QWidget* parent = 0, const char* name = 0, unsigned initPos = INT_MAX);
188
196
      virtual void writeStatus(int, MusECore::Xml&) const;
189
197
      static void readConfiguration(MusECore::Xml&);
190
198
      static void writeConfiguration(int, MusECore::Xml&);
 
199
      CtrlEdit* addCtrl(int ctl_num = MusECore::CTRL_VELOCITY);
191
200
      };
192
201
 
193
202
} // namespace MusEGui