~ubuntu-branches/ubuntu/precise/lmms/precise-proposed

« back to all changes in this revision

Viewing changes to include/note.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-12 13:32:32 UTC
  • mfrom: (1.1.9 upstream) (3.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101112133232-vdld83iyji8srqti
Tags: 0.4.7-2ubuntu1
* Re-sync with Debian (LP: #606533):
  - Replace build-dep on libwine-dev with libwine-dev-unstable to build
    against the newer Wine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "volume.h"
33
33
#include "panning.h"
34
34
#include "midi_time.h"
35
 
#include "serializing_object.h"
 
35
#include "SerializingObject.h"
36
36
 
37
37
class detuningHelper;
38
38
 
79
79
 
80
80
 
81
81
 
82
 
class EXPORT note : public serializingObject
 
82
class EXPORT note : public SerializingObject
83
83
{
84
84
public:
85
85
        note( const midiTime & _length = midiTime( 0 ),
120
120
                return (bool) ((int) ( *lhs ).pos() < (int) ( *rhs ).pos());
121
121
        }
122
122
 
123
 
        inline bool selected( void ) const
 
123
        inline bool selected() const
124
124
        {
125
125
                return m_selected;
126
126
        }
127
127
 
128
 
        inline int oldKey( void ) const
 
128
        inline int oldKey() const
129
129
        {
130
130
                return m_oldKey;
131
131
        }
132
132
 
133
 
        inline midiTime oldPos( void ) const
 
133
        inline midiTime oldPos() const
134
134
        {
135
135
                return m_oldPos;
136
136
        }
137
137
 
138
 
        inline midiTime oldLength( void ) const
 
138
        inline midiTime oldLength() const
139
139
        {
140
140
                return m_oldLength;
141
141
        }
142
142
 
143
 
        inline bool isPlaying( void ) const
 
143
        inline bool isPlaying() const
144
144
        {
145
145
                return m_isPlaying;
146
146
        }
147
147
 
148
 
        inline midiTime endPos( void ) const
 
148
        inline midiTime endPos() const
149
149
        {
150
150
                const int l = length();
151
151
                return pos() + l;
152
152
        }
153
153
 
154
 
        inline const midiTime & length( void ) const
 
154
        inline const midiTime & length() const
155
155
        {
156
156
                return m_length;
157
157
        }
158
158
 
159
 
        inline const midiTime & pos( void ) const
 
159
        inline const midiTime & pos() const
160
160
        {
161
161
                return m_pos;
162
162
        }
167
167
                return m_pos - bp;
168
168
        }
169
169
 
170
 
        inline int key( void ) const
 
170
        inline int key() const
171
171
        {
172
172
                return m_key;
173
173
        }
174
174
 
175
 
        inline volume_t getVolume( void ) const
 
175
        inline volume_t getVolume() const
176
176
        {
177
177
                return m_volume;
178
178
        }
179
179
 
180
 
        inline panning_t getPanning( void ) const
 
180
        inline panning_t getPanning() const
181
181
        {
182
182
                return m_panning;
183
183
        }
184
184
 
185
 
        static QString classNodeName( void )
 
185
        static QString classNodeName()
186
186
        {
187
187
                return "note";
188
188
        }
189
189
 
190
 
        inline virtual QString nodeName( void ) const
 
190
        inline virtual QString nodeName() const
191
191
        {
192
192
                return classNodeName();
193
193
        }
194
194
 
195
195
        static midiTime quantized( const midiTime & _m, const int _q_grid );
196
196
 
197
 
        detuningHelper * detuning( void ) const
 
197
        detuningHelper * detuning() const
198
198
        {
199
199
                return m_detuning;
200
200
        }
201
201
 
202
 
        void editDetuningPattern( void );
 
202
        void editDetuningPattern();
203
203
 
204
 
        bool hasDetuningInfo( void ) const;
 
204
        bool hasDetuningInfo() const;
205
205
 
206
206
 
207
207
protected:
209
209
                                                        QDomElement & _parent );
210
210
        virtual void loadSettings( const QDomElement & _this );
211
211
 
212
 
/*      virtual void undoStep( journalEntry & _je );
213
 
        virtual void redoStep( journalEntry & _je );*/
 
212
/*      virtual void undoStep( JournalEntry & _je );
 
213
        virtual void redoStep( JournalEntry & _je );*/
214
214
 
215
215
 
216
216
private:
238
238
        midiTime m_pos;
239
239
        detuningHelper * m_detuning;
240
240
 
241
 
        void createDetuning( void );
 
241
        void createDetuning();
242
242
 
243
243
} ;
244
244