2
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
6
A MIDI and audio sequencer and musical notation editor.
8
This program is Copyright 2000-2007
9
Guillaume Laurent <glaurent@telegraph-road.org>,
10
Chris Cannam <cannam@all-day-breakfast.com>,
11
Richard Bown <richard.bown@ferventsoftware.com>
13
The moral rights of Guillaume Laurent, Chris Cannam, and Richard
14
Bown to claim authorship of this work have been asserted.
16
Other copyrights also apply to some parts of this work. Please
17
see the AUTHORS file and individual file headers for details.
19
This program is free software; you can redistribute it and/or
20
modify it under the terms of the GNU General Public License as
21
published by the Free Software Foundation; either version 2 of the
22
License, or (at your option) any later version. See the file
23
COPYING included with this distribution for more information.
26
#ifndef _RG_SEGMENTSYNCCOMMAND_H_
27
#define _RG_SEGMENTSYNCCOMMAND_H_
30
#include "base/Composition.h"
31
#include "base/Event.h"
32
#include "base/NotationTypes.h"
33
#include "document/MultiViewCommandHistory.h"
40
class SegmentSelection;
43
class SegmentSyncCommand : public KMacroCommand
46
SegmentSyncCommand(Segment &segment,
47
int newTranspose, int lowRange, int highRange, const Clef& clef);
49
SegmentSyncCommand(SegmentSelection selection,
50
int newTranspose, int lowRange, int highRange, const Clef& clef);
52
SegmentSyncCommand(std::vector<Segment *> segments,
53
int newTranspose, int lowRange, int highRange, const Clef& clef);
55
SegmentSyncCommand(Composition::segmentcontainer& segments, TrackId track,
56
int newTranspose, int lowRange, int highRange, const Clef& clef);
58
virtual ~SegmentSyncCommand();
61
void processSegment(Segment &segment, int newTranspose, int lowRange, int highRange, const Clef& clef);