Update copyright headers
[qt:qt.git] / demos / mobile / guitartuner / src / mycomponents / NotesModel.qml
1 /****************************************************************************
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd.
4 ** Contact: http://www.qt.io/licensing/
5 **
6 ** This file is part of the QtDeclarative module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:BSD$
9 ** You may use this file under the terms of the BSD license as follows:
10 **
11 ** "Redistribution and use in source and binary forms, with or without
12 ** modification, are permitted provided that the following conditions are
13 ** met:
14 **   * Redistributions of source code must retain the above copyright
15 **     notice, this list of conditions and the following disclaimer.
16 **   * Redistributions in binary form must reproduce the above copyright
17 **     notice, this list of conditions and the following disclaimer in
18 **     the documentation and/or other materials provided with the
19 **     distribution.
20 **   * Neither the name of The Qt Company Ltd nor the names of its
21 **     contributors may be used to endorse or promote products derived
22 **     from this software without specific prior written permission.
23 **
24 **
25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 **
37 ** $QT_END_LICENSE$
38 **
39 ****************************************************************************/
40
41 import QtQuick 1.0
42
43 /* The model component for the NoteButtonView. */
44 ListModel {
45     ListElement {
46         note: "E"
47         offSource: "./images/tuner_e.png"
48         onSource: "./images/tuner_e_on.png"
49         bigSource: "./mycomponents/images/big_e.png"
50         glowSource: "./mycomponents/images/glowing_e.png"
51         frequency: "82.407"
52         interval: "5"
53     }
54     ListElement {
55         note: "A"
56         offSource: "./images/tuner_a.png"
57         onSource: "./images/tuner_a_on.png"
58         bigSource: "./mycomponents/images/big_a.png"
59         glowSource: "./mycomponents/images/glowing_a.png"
60         frequency: "110.00"
61         interval: "5"
62     }
63     ListElement {
64         note: "D"
65         offSource: "./images/tuner_d.png"
66         onSource: "./images/tuner_d_on.png"
67         bigSource: "./mycomponents/images/big_d.png"
68         glowSource: "./mycomponents/images/glowing_d.png"
69         frequency: "146.83"
70         interval: "5"
71     }
72     ListElement {
73         note: "G"
74         offSource: "./images/tuner_g.png"
75         onSource: "./images/tuner_g_on.png"
76         bigSource: "./mycomponents/images/big_g.png"
77         glowSource: "./mycomponents/images/glowing_g.png"
78         frequency: "196.00"
79         interval: "4"
80     }
81     ListElement {
82         note: "B"
83         offSource: "./images/tuner_b.png"
84         onSource: "./images/tuner_b_on.png"
85         bigSource: "./mycomponents/images/big_b.png"
86         glowSource: "./mycomponents/images/glowing_b.png"
87         frequency: "246.94"
88         interval: "5"
89     }
90     ListElement {
91         note: "e"
92         offSource: "./images/tuner_e.png"
93         onSource: "./images/tuner_e_on.png"
94         bigSource: "./mycomponents/images/big_e.png"
95         glowSource: "./mycomponents/images/glowing_e.png"
96         frequency: "329.63"
97         interval: "9999" //Big enough that we can't move over this note
98     }
99     ListElement {
100         note: "Auto"
101         offSource: "./images/tuner_auto.png"
102         onSource: "./images/tuner_auto_on.png"
103         frequency: "82.407"
104     }
105 }