1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4     Rosegarden
5     A MIDI and audio sequencer and musical notation editor.
6     Copyright 2000-2021 the Rosegarden development team.
7 
8     Other copyrights also apply to some parts of this work.  Please
9     see the AUTHORS file and individual file headers for details.
10 
11     This program is free software; you can redistribute it and/or
12     modify it under the terms of the GNU General Public License as
13     published by the Free Software Foundation; either version 2 of the
14     License, or (at your option) any later version.  See the file
15     COPYING included with this distribution for more information.
16 */
17 
18 
19 /*
20  * MarkParallelCommand.h
21  *
22  *  Created on: Mar 25, 2015
23  *      Author: lambache
24  */
25 
26 #ifndef SRC_COMMANDS_NOTATION_MARKPARALLELCOMMAND_H_
27 #define SRC_COMMANDS_NOTATION_MARKPARALLELCOMMAND_H_
28 
29 #include "document/BasicSelectionCommand.h"
30 #include "base/BaseProperties.h"
31 
32 #include <QString>
33 #include <QCoreApplication>
34 
35 
36 namespace Rosegarden
37 {
38 
39 using namespace BaseProperties;
40 
41 
42 class EventSelection;
43 class CommandRegistry;
44 
45 class MarkParallelCommand : public BasicCommand
46 {
47     Q_DECLARE_TR_FUNCTIONS(Rosegarden::MarkParallelCommand)
48 
49 public:
50     MarkParallelCommand(Segment &segment, timeT begin, timeT end);
51 
getGlobalName()52     static QString getGlobalName() { return tr("Mark Parallel"); }
53 
54     //static void registerCommand(CommandRegistry *r);
55 
56 protected:
57     void modifySegment() override;
58     EventSelection *m_selection;// only used on 1st execute (cf bruteForceRedo)
59 };
60 
61 
62 }
63 
64 #endif /* SRC_COMMANDS_NOTATION_MARKPARALLELCOMMAND_H_ */
65