summaryrefslogtreecommitdiffstats
path: root/examples/mobile/guitartuner/src/mycomponents
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mobile/guitartuner/src/mycomponents')
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/Adjuster.qml132
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/Meter.qml113
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/NoteButtonView.qml85
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/NotesModel.qml106
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/ToggleButton.qml111
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/adjustbars.js89
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/big_a.pngbin575 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/big_b.pngbin599 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/big_d.pngbin465 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/big_e.pngbin327 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/big_g.pngbin610 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/glowing_a.pngbin2978 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/glowing_b.pngbin3084 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/glowing_d.pngbin2940 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/glowing_e.pngbin2696 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/glowing_g.pngbin3046 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/guitartuner_malli.pngbin143243 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/guitartuner_skin.pngbin129068 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/lcdFrame.pngbin176107 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/meterBG.pngbin8378 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/mute.pngbin3630 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/pointer.pngbin965 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/pointerShadow.pngbin1694 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/power.pngbin3190 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/quit.pngbin1363 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/sensitivity.pngbin835 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_a.pngbin3233 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_a_on.pngbin3068 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_auto.pngbin3619 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_auto_on.pngbin3281 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_b.pngbin3324 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_b_on.pngbin3132 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_d.pngbin3266 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_d_on.pngbin3009 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_e.pngbin3171 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_e_on.pngbin2955 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_g.pngbin3292 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/tuner_g_on.pngbin3089 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/voicemode_off.pngbin3775 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/voicemode_on.pngbin3484 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/volume.pngbin351 -> 0 bytes
-rw-r--r--examples/mobile/guitartuner/src/mycomponents/images/volume_off.pngbin2235 -> 0 bytes
42 files changed, 0 insertions, 636 deletions
diff --git a/examples/mobile/guitartuner/src/mycomponents/Adjuster.qml b/examples/mobile/guitartuner/src/mycomponents/Adjuster.qml
deleted file mode 100644
index 23f41fed..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/Adjuster.qml
+++ /dev/null
@@ -1,132 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia. For licensing terms and
-** conditions see http://qt.digia.com/licensing. For further information
-** use the contact form at http://qt.digia.com/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Digia gives you certain additional
-** rights. These rights are described in the Digia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 1.0
-import "adjustbars.js" as AdjustBars
-
-/* A barchart-like adjuster component. */
-Rectangle {
- id: adjuster
-
- property real max: 100
- property real value: 0
- property bool created: false
-
- signal valueChanged(real value)
- signal focusChangedByClick()
- signal arrowPressedWhenValueOverLimits()
-
- function setValue(pValue) {
- value = pValue;
- AdjustBars.fillBars(value/max*AdjustBars.maxBars);
- valueChanged(value);
- }
-
- height: 60; width: 300
- color: "transparent"
- Keys.onRightPressed: {
- var val = value+max/AdjustBars.maxBars;
- if (val <= max) {
- value = val;
- AdjustBars.fillBars(value/max*AdjustBars.maxBars);
- valueChanged(value);
- }
- else {
- arrowPressedWhenValueOverLimits()
- }
- }
- Keys.onLeftPressed: {
- var val = value-max/AdjustBars.maxBars;
- if (0 <= val) {
- value = val;
- AdjustBars.fillBars(value/max*AdjustBars.maxBars);
- valueChanged(value);
- }
- else {
- arrowPressedWhenValueOverLimits()
- }
- }
- Component.onCompleted: {
- AdjustBars.createBars();
- AdjustBars.fillBars(value/max*AdjustBars.maxBars);
- created = true;
- }
- Component.onDestruction: {
- AdjustBars.destroyBars;
- }
- //Dynamic objects have to be recreated when the window size changes.
- onWidthChanged: {
- if (created) {
- AdjustBars.destroyBars();
- AdjustBars.createBars();
- AdjustBars.fillBars(value/max*AdjustBars.maxBars);
- }
- }
- onHeightChanged: {
- if (created) {
- AdjustBars.destroyBars();
- AdjustBars.createBars();
- AdjustBars.fillBars(value/max*AdjustBars.maxBars);
- }
- }
-
- MouseArea {
- anchors.fill: parent
- onPositionChanged: {
- focusChangedByClick();
- var val = mouse.x/parent.width*parent.max;
- if (0 < val && val < max) {
- parent.value = val;
- AdjustBars.fillBars(parent.value/parent.max*AdjustBars.maxBars);
- valueChanged(parent.value);
- }
- }
- onClicked: {
- focusChangedByClick();
- var val = mouse.x/parent.width*parent.max;
- if (0 < val && val < max) {
- parent.value = val;
- AdjustBars.fillBars(parent.value/parent.max*AdjustBars.maxBars);
- valueChanged(parent.value);
- }
- }
- }
-}
diff --git a/examples/mobile/guitartuner/src/mycomponents/Meter.qml b/examples/mobile/guitartuner/src/mycomponents/Meter.qml
deleted file mode 100644
index 235cf46f..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/Meter.qml
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia. For licensing terms and
-** conditions see http://qt.digia.com/licensing. For further information
-** use the contact form at http://qt.digia.com/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Digia gives you certain additional
-** rights. These rights are described in the Digia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 1.0
-
-/* A meter component. */
-Rectangle {
- id: meter
-
- property real value: 0
- property real minValue: -1
- property real maxValue: 1
- property alias imageSize: meterImage.sourceSize
-
- function valueChanged(pValue) {
- value = pValue;
- scaleValueToAngle();
- }
- function scaleValueToAngle() {
- pointer.angle = (((value-minValue)/(maxValue-minValue))*
- (pointer.angleMax-pointer.angleMin))+
- pointer.angleMin;
- }
-
- color: "transparent"
-
- Image {
- id: meterImage
-
- smooth: true
- source: "./images/meterBG.png"
- anchors.fill: parent
- }
-
- Image {
- id:pointerShadow
-
- x: pointer.x - 2
- y: pointer.y - 2
- height: pointer.height
- smooth: true
- source: "./images/pointerShadow.png"
- transform: Rotation {
- origin.x: 2
- origin.y: height
- angle: -pointer.angle
- }
- }
-
- Image {
- id: pointer
-
- property real angle: 0
- property real angleMax: -45
- property real angleMin: 45
-
- height: parent.height*0.92
- transformOrigin: "Bottom"
- rotation: -angle
- smooth: true
- source: "./images/pointer.png"
- anchors {
- bottomMargin: 2
- bottom: parent.bottom;
- horizontalCenter: parent.horizontalCenter
- }
-
- Behavior on angle {
- SpringAnimation {
- spring: 1.4
- damping: 0.15
- }
- }
- }
-}
diff --git a/examples/mobile/guitartuner/src/mycomponents/NoteButtonView.qml b/examples/mobile/guitartuner/src/mycomponents/NoteButtonView.qml
deleted file mode 100644
index 6936baf2..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/NoteButtonView.qml
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia. For licensing terms and
-** conditions see http://qt.digia.com/licensing. For further information
-** use the contact form at http://qt.digia.com/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Digia gives you certain additional
-** rights. These rights are described in the Digia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 1.0
-
-/* A view component for buttons for choosing notes. */
-ListView {
- id: noteChooser
-
- property real currentFrequency: 82.407
-
- signal noteSelected(string note, real frequency, int index)
-
- //Press down the button corresponding to the given note.
- function pushButton(index) {
- currentIndex = index;
- }
-
- width: 50*model.count + spacing*(model.count-1); height: 50
- orientation: ListView.Horizontal
- model: NotesModel {}
- delegate: notesDelegate
- keyNavigationWraps: true
- boundsBehavior: Flickable.StopAtBounds
-
- Component {
- id: notesDelegate
-
- ToggleButton {
- id: noteButton
-
- width: height; height: noteChooser.height
- offImageSource: offSource
- onImageSource: onSource
- state: noteButton.ListView.isCurrentItem ? "pressed" : "unPressed"
- onSelected: {
- noteChooser.noteSelected(note, frequency, index)
- if (note != "Auto") {
- currentFrequency = frequency
- }
- }
- onPushed: {
- noteButton.ListView.view.currentIndex = index
- }
- }
- }
-}
diff --git a/examples/mobile/guitartuner/src/mycomponents/NotesModel.qml b/examples/mobile/guitartuner/src/mycomponents/NotesModel.qml
deleted file mode 100644
index 6a395bbe..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/NotesModel.qml
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia. For licensing terms and
-** conditions see http://qt.digia.com/licensing. For further information
-** use the contact form at http://qt.digia.com/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Digia gives you certain additional
-** rights. These rights are described in the Digia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 1.0
-
-/* The model component for the NoteButtonView. */
-ListModel {
- ListElement {
- note: "E"
- offSource: "./images/tuner_e.png"
- onSource: "./images/tuner_e_on.png"
- bigSource: "./mycomponents/images/big_e.png"
- glowSource: "./mycomponents/images/glowing_e.png"
- frequency: "82.407"
- interval: "5"
- }
- ListElement {
- note: "A"
- offSource: "./images/tuner_a.png"
- onSource: "./images/tuner_a_on.png"
- bigSource: "./mycomponents/images/big_a.png"
- glowSource: "./mycomponents/images/glowing_a.png"
- frequency: "110.00"
- interval: "5"
- }
- ListElement {
- note: "D"
- offSource: "./images/tuner_d.png"
- onSource: "./images/tuner_d_on.png"
- bigSource: "./mycomponents/images/big_d.png"
- glowSource: "./mycomponents/images/glowing_d.png"
- frequency: "146.83"
- interval: "5"
- }
- ListElement {
- note: "G"
- offSource: "./images/tuner_g.png"
- onSource: "./images/tuner_g_on.png"
- bigSource: "./mycomponents/images/big_g.png"
- glowSource: "./mycomponents/images/glowing_g.png"
- frequency: "196.00"
- interval: "4"
- }
- ListElement {
- note: "B"
- offSource: "./images/tuner_b.png"
- onSource: "./images/tuner_b_on.png"
- bigSource: "./mycomponents/images/big_b.png"
- glowSource: "./mycomponents/images/glowing_b.png"
- frequency: "246.94"
- interval: "5"
- }
- ListElement {
- note: "e"
- offSource: "./images/tuner_e.png"
- onSource: "./images/tuner_e_on.png"
- bigSource: "./mycomponents/images/big_e.png"
- glowSource: "./mycomponents/images/glowing_e.png"
- frequency: "329.63"
- interval: "9999" //Big enough that we can't move over this note
- }
- ListElement {
- note: "Auto"
- offSource: "./images/tuner_auto.png"
- onSource: "./images/tuner_auto_on.png"
- frequency: "82.407"
- }
-}
diff --git a/examples/mobile/guitartuner/src/mycomponents/ToggleButton.qml b/examples/mobile/guitartuner/src/mycomponents/ToggleButton.qml
deleted file mode 100644
index 4922d897..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/ToggleButton.qml
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** This file is part of the demonstration applications of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia. For licensing terms and
-** conditions see http://qt.digia.com/licensing. For further information
-** use the contact form at http://qt.digia.com/contact-us.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Digia gives you certain additional
-** rights. These rights are described in the Digia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3.0 as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU General Public License version 3.0 requirements will be
-** met: http://www.gnu.org/copyleft/gpl.html.
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 1.0
-
-/* A toggle button component. */
-Rectangle {
- id: toggleButton
-
- property url offImageSource: ""
- property url onImageSource: ""
- property alias imageSource: buttonImage.source
-
- signal selected()
- signal pushed()
-
- color: "transparent"
- state: "unPressed"
- onStateChanged: {
- if (state == "pressed") {
- selected()
- }
- }
-
- Image {
- id: buttonImage
-
- smooth: true
- anchors.fill: parent
- }
- MouseArea {
- id: mouseArea
-
- anchors.fill: parent
- onPressed: {
- if (parent.state == "unPressed") {
- pushed()
- }
- }
- }
-
- states: [
- State {
- name: "pressed"
- PropertyChanges {
- target: toggleButton
- scale: 0.95
- imageSource: onImageSource
- }
- },
- State {
- name: "unPressed"
- PropertyChanges {
- target: toggleButton
- scale: 1/0.95
- imageSource: offImageSource
- }
- }
- ]
-
- transitions: [
- Transition {
- from: "unPressed"
- to: "pressed"
- reversible: true
- PropertyAnimation {
- target: toggleButton
- properties: "scale"
- duration: 100
- }
- }
- ]
-}
diff --git a/examples/mobile/guitartuner/src/mycomponents/adjustbars.js b/examples/mobile/guitartuner/src/mycomponents/adjustbars.js
deleted file mode 100644
index 2ff7db25..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/adjustbars.js
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
-** Contact: http://www.qt-project.org/legal
-**
-** This file is part of the QtDeclarative module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** You may use this file under the terms of the BSD license as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
-** of its contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/* JavaScript functions for creating, handling and
- * destroying the bars of the adjuster component. */
-
-var maxBars = 10;
-var firstBarHeight = 5;
-var bars = new Array(maxBars);
-var colors = new Array(maxBars);
-var barWidthFactor = 2.3;
-
-function createBars() {
- var barWidth = adjuster.width/maxBars/barWidthFactor;
- for (var i = 1; i <= maxBars; i++) {
- //Create, configure and store the bars.
- var bar = Qt.createQmlObject('import QtQuick 1.0; Rectangle {smooth: true}', adjuster, "dynamicBar");
- bar.width = barWidth;
- bar.height = firstBarHeight+(i/maxBars)*(adjuster.height*0.8-firstBarHeight);
- bar.radius = bar.width/2;
- bar.x = (i-1)*(barWidthFactor*barWidth);
- bar.y = adjuster.height/2 - bar.height/2;
- bars[i-1] = bar;
-
- //Calculate and store the colors
- if (i < maxBars/2) {
- colors[i-1] = Qt.rgba(1-i/(maxBars/2), 1, 1-i/(maxBars/2), i);
- }
- else {
- colors[i-1] = Qt.rgba((i-(maxBars/2))/(maxBars/2), 1-((i-(maxBars/2))/(maxBars/2)), 0, i);
- }
- }
-}
-
-function destroyBars() {
- for (var i = 0; i < maxBars; i++) {
- bars[i].color = "transparent" //Colors must be set to transparent or otherwise the bars will stay appeared.
- bars[i].destroy();
- }
-}
-
-function fillBars(barNumber) {
- //Set the color for the bars (transparent from the selected bar to the end).
- for (var i = 0; i < maxBars; i++) {
- if (i < barNumber) {
- bars[i].color = colors[i];
- }
- else {
- bars[i].color = "black";
- }
- }
-}
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/big_a.png b/examples/mobile/guitartuner/src/mycomponents/images/big_a.png
deleted file mode 100644
index 3838e766..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/big_a.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/big_b.png b/examples/mobile/guitartuner/src/mycomponents/images/big_b.png
deleted file mode 100644
index 114b32d3..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/big_b.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/big_d.png b/examples/mobile/guitartuner/src/mycomponents/images/big_d.png
deleted file mode 100644
index 3ede9f0f..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/big_d.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/big_e.png b/examples/mobile/guitartuner/src/mycomponents/images/big_e.png
deleted file mode 100644
index cc1f4885..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/big_e.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/big_g.png b/examples/mobile/guitartuner/src/mycomponents/images/big_g.png
deleted file mode 100644
index 804177b3..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/big_g.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/glowing_a.png b/examples/mobile/guitartuner/src/mycomponents/images/glowing_a.png
deleted file mode 100644
index b6fd0e20..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/glowing_a.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/glowing_b.png b/examples/mobile/guitartuner/src/mycomponents/images/glowing_b.png
deleted file mode 100644
index b5fa016a..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/glowing_b.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/glowing_d.png b/examples/mobile/guitartuner/src/mycomponents/images/glowing_d.png
deleted file mode 100644
index 32f1a291..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/glowing_d.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/glowing_e.png b/examples/mobile/guitartuner/src/mycomponents/images/glowing_e.png
deleted file mode 100644
index 4be9f2a7..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/glowing_e.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/glowing_g.png b/examples/mobile/guitartuner/src/mycomponents/images/glowing_g.png
deleted file mode 100644
index 4216d828..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/glowing_g.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/guitartuner_malli.png b/examples/mobile/guitartuner/src/mycomponents/images/guitartuner_malli.png
deleted file mode 100644
index dbe3fc79..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/guitartuner_malli.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/guitartuner_skin.png b/examples/mobile/guitartuner/src/mycomponents/images/guitartuner_skin.png
deleted file mode 100644
index 5d53df9b..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/guitartuner_skin.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/lcdFrame.png b/examples/mobile/guitartuner/src/mycomponents/images/lcdFrame.png
deleted file mode 100644
index ff8dffc6..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/lcdFrame.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/meterBG.png b/examples/mobile/guitartuner/src/mycomponents/images/meterBG.png
deleted file mode 100644
index 4046355c..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/meterBG.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/mute.png b/examples/mobile/guitartuner/src/mycomponents/images/mute.png
deleted file mode 100644
index 382e6047..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/mute.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/pointer.png b/examples/mobile/guitartuner/src/mycomponents/images/pointer.png
deleted file mode 100644
index d0cb21b8..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/pointer.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/pointerShadow.png b/examples/mobile/guitartuner/src/mycomponents/images/pointerShadow.png
deleted file mode 100644
index a7086391..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/pointerShadow.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/power.png b/examples/mobile/guitartuner/src/mycomponents/images/power.png
deleted file mode 100644
index 8ec0c5ce..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/power.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/quit.png b/examples/mobile/guitartuner/src/mycomponents/images/quit.png
deleted file mode 100644
index 2a9443ec..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/quit.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/sensitivity.png b/examples/mobile/guitartuner/src/mycomponents/images/sensitivity.png
deleted file mode 100644
index c3d2ea31..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/sensitivity.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_a.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_a.png
deleted file mode 100644
index a1823e59..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_a.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_a_on.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_a_on.png
deleted file mode 100644
index 7c78cbd8..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_a_on.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_auto.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_auto.png
deleted file mode 100644
index b9e494bd..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_auto.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_auto_on.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_auto_on.png
deleted file mode 100644
index d5608d85..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_auto_on.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_b.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_b.png
deleted file mode 100644
index 94977f87..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_b.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_b_on.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_b_on.png
deleted file mode 100644
index 78841dc0..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_b_on.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_d.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_d.png
deleted file mode 100644
index 293ee55a..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_d.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_d_on.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_d_on.png
deleted file mode 100644
index 705de41d..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_d_on.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_e.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_e.png
deleted file mode 100644
index 569d2c65..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_e.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_e_on.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_e_on.png
deleted file mode 100644
index 1342a914..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_e_on.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_g.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_g.png
deleted file mode 100644
index a8f0de57..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_g.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/tuner_g_on.png b/examples/mobile/guitartuner/src/mycomponents/images/tuner_g_on.png
deleted file mode 100644
index 6fdca419..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/tuner_g_on.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/voicemode_off.png b/examples/mobile/guitartuner/src/mycomponents/images/voicemode_off.png
deleted file mode 100644
index 0701dd34..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/voicemode_off.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/voicemode_on.png b/examples/mobile/guitartuner/src/mycomponents/images/voicemode_on.png
deleted file mode 100644
index 986d589a..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/voicemode_on.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/volume.png b/examples/mobile/guitartuner/src/mycomponents/images/volume.png
deleted file mode 100644
index 46fdb7fa..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/volume.png
+++ /dev/null
Binary files differ
diff --git a/examples/mobile/guitartuner/src/mycomponents/images/volume_off.png b/examples/mobile/guitartuner/src/mycomponents/images/volume_off.png
deleted file mode 100644
index a97e4224..00000000
--- a/examples/mobile/guitartuner/src/mycomponents/images/volume_off.png
+++ /dev/null
Binary files differ