1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4     Rosegarden
5     A sequencer and musical notation editor.
6     Copyright 2000-2021 the Rosegarden development team.
7     See the AUTHORS file for more details.
8 
9     This program is free software; you can redistribute it and/or
10     modify it under the terms of the GNU General Public License as
11     published by the Free Software Foundation; either version 2 of the
12     License, or (at your option) any later version.  See the file
13     COPYING included with this distribution for more information.
14 */
15 
16 
17 #ifndef RG_CLEF_INDEX_H
18 #define RG_CLEF_INDEX_H
19 
20 #include "base/NotationTypes.h"
21 #include <QString>
22 
23 // used variously by TPB, SPB, PresetHandler to correlate combo box indices to
24 // clef types
25 enum { TrebleClef = 0,                  // G clef, line 2
26        BassClef,                        // F clef, line 4
27        CrotalesClef,                    // G clef, line 2, 15 above
makeStringInfo(void)28        XylophoneClef,                   // G clef, line 2,  8 above
29        GuitarClef,                      // G clef, line 2,  8 below
30        ContrabassClef,                  // F clef, line 4,  8 below
31        CelestaClef,                     // F clef, line 4, 15 above
32        OldCelestaClef,                  // F clef, line 4,  8 above
33        FrenchClef,                      // G clef, line 1
34        SopranoClef,                     // C clef, line 1
35        MezzosopranoClef,                // C clef, line 2
36        AltoClef,                        // C clef, line 3
37        TenorClef,                       // C clef, line 4
38        BaritoneClef,                    // C clef, line 5
39        VarbaritoneClef,                 // F clef, line 3
40        SubbassClef,                     // F clef, line 5
41        TwoBarClef                       // percussion clef
42      };
43 
44 namespace Rosegarden
45 {
initStringInfo(StringInfo str)46 
47 const Clef clefIndexToClef(int index);
48 
49 int clefNameToClefIndex(QString s);
50 
51 }
52 
53 #endif // RG_CLEF_INDEX_H
54