SailTuner/qml/Scene.qml

55 lines
1.2 KiB
QML
Raw Normal View History

2016-01-03 19:32:36 +03:00
/* Copyright 2016 (C) Louis-Joseph Fournier
* louisjoseph.fournier@gmail.com
*
* This file is part of SailTuner.
*
* SailTuner is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SailTuner is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
2015-12-27 14:01:07 +03:00
import QtQuick 2.0
/**
* display tuner screen with qmlscene
* to work on qml files
*/
Image {
width: 800
height: 400
source: "../images/bg_portrait.png"
2015-12-27 14:01:07 +03:00
2015-12-27 17:59:32 +03:00
DesktopTheme {
2015-12-27 14:01:07 +03:00
id: theme
}
Item {
id: tuner
property int note: 2
property int octave: 4
2016-01-06 00:02:44 +03:00
property double la: 440
2016-01-02 18:36:55 +03:00
property double deviation: 0.12
property bool found: true
2016-01-06 00:02:44 +03:00
property variant temperament_list: ["Weikmeister III", "equal"]
property int temperament_idx: 0
2016-01-11 14:38:05 +03:00
property bool running: false
property bool playing: false
2015-12-27 14:01:07 +03:00
}
2016-01-11 14:38:05 +03:00
PlayerScreen {
2015-12-27 14:01:07 +03:00
tuner: tuner
theme: theme
onTogglePlay: tuner.playing ^= true
2015-12-27 14:01:07 +03:00
}
}