~ubuntu-branches/ubuntu/karmic/rosegarden/karmic

« back to all changes in this revision

Viewing changes to src/commands/notation/RestoreTiesCommand.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-02 00:33:44 UTC
  • mfrom: (1.1.7 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080502003344-67vbfhgqx2yl0ksi
Tags: 1:1.7.0-1ubuntu1
* Merge from Debian unstable. (LP: #225849) Remaining Ubuntu changes:
  - Add usr/share/doc/kde/HTML to rosegarden-data, to provide online
    help documentation.
  - Change fftw3-dev to libfftw3-dev.
  - Update maintainer field as per spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
 
3
 
 
4
/*
 
5
    Rosegarden
 
6
    A MIDI and audio sequencer and musical notation editor.
 
7
 
 
8
    This program is Copyright 2000-2008
 
9
        Guillaume Laurent   <glaurent@telegraph-road.org>,
 
10
        Chris Cannam        <cannam@all-day-breakfast.com>,
 
11
        Richard Bown        <richard.bown@ferventsoftware.com>
 
12
 
 
13
    The moral rights of Guillaume Laurent, Chris Cannam, and Richard
 
14
    Bown to claim authorship of this work have been asserted.
 
15
 
 
16
    Other copyrights also apply to some parts of this work.  Please
 
17
    see the AUTHORS file and individual file headers for details.
 
18
 
 
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.
 
24
*/
 
25
 
 
26
#ifndef _RG_ADJUSTMENURESTORETIESCOMMAND_H_
 
27
#define _RG_ADJUSTMENURESTORETIESCOMMAND_H_
 
28
 
 
29
#include "document/BasicSelectionCommand.h"
 
30
#include <qstring.h>
 
31
#include <klocale.h>
 
32
 
 
33
 
 
34
 
 
35
 
 
36
namespace Rosegarden
 
37
{
 
38
 
 
39
class EventSelection;
 
40
 
 
41
 
 
42
class RestoreTiesCommand : public BasicSelectionCommand
 
43
{
 
44
public:
 
45
    RestoreTiesCommand(EventSelection &selection) :
 
46
        BasicSelectionCommand(getGlobalName(), selection, true),
 
47
        m_selection(&selection) { }
 
48
 
 
49
    static QString getGlobalName() { return i18n("&Restore Tie Positions"); }
 
50
 
 
51
protected:
 
52
    virtual void modifySegment();
 
53
 
 
54
private:
 
55
    EventSelection *m_selection;// only used on 1st execute (cf bruteForceRedo)
 
56
};
 
57
 
 
58
 
 
59
 
 
60
}
 
61
 
 
62
#endif