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

« back to all changes in this revision

Viewing changes to src/gui/general/PresetGroup.cpp

  • 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:
4
4
    Rosegarden
5
5
    A MIDI and audio sequencer and musical notation editor.
6
6
 
7
 
    This program is Copyright 2000-2007
 
7
    This program is Copyright 2000-2008
8
8
        Guillaume Laurent   <glaurent@telegraph-road.org>,
9
9
        Chris Cannam        <cannam@all-day-breakfast.com>,
10
10
        Richard Bown        <richard.bown@ferventsoftware.com>
163
163
    } else if (lcName == "clef") {
164
164
        QString s = attributes.value("type");
165
165
        if (s) {
166
 
            if (s == "treble")
167
 
                m_elClef = TrebleClef;
168
 
            else if (s == "bass")
169
 
                m_elClef = BassClef;
170
 
            else if (s == "crotales")
171
 
                m_elClef = CrotalesClef;
172
 
            else if (s == "xylophone")
173
 
                m_elClef = XylophoneClef;
174
 
            else if (s == "guitar")
175
 
                m_elClef = GuitarClef;
176
 
            else if (s == "contrabass")
177
 
                m_elClef = ContrabassClef;
178
 
            else if (s == "celesta")
179
 
                m_elClef = CelestaClef;
180
 
            else if (s == "oldCelesta")
181
 
                m_elClef = OldCelestaClef;
182
 
            else if (s == "french")
183
 
                m_elClef = FrenchClef;
184
 
            else if (s == "soprano")
185
 
                m_elClef = SopranoClef;
186
 
            else if (s == "mezzosoprano")
187
 
                m_elClef = MezzosopranoClef;
188
 
            else if (s == "alto")
189
 
                m_elClef = AltoClef;
190
 
            else if (s == "tenor")
191
 
                m_elClef = TenorClef;
192
 
            else if (s == "baritone")
193
 
                m_elClef = BaritoneClef;
194
 
            else if (s == "varbaritone")
195
 
                m_elClef = VarbaritoneClef;
196
 
            else if (s == "subbass")
197
 
                m_elClef = SubbassClef;
198
 
            else if (s == "two-bar")
199
 
                m_elClef = TwoBarClef;
200
 
            else {
201
 
                RG_DEBUG << "startElement: processed unrecognized clef type: " << s << endl;
202
 
            }
 
166
                m_elClef = clefNameToClefIndex(s);
203
167
            m_clef = true;
204
168
        }
205
 
 
206
169
    } else if (lcName == "transpose") {
207
170
        QString s = attributes.value("value");
208
171
        if (s) {