##// END OF EJS Templates
Renamed oscilloscope
Tero Ahola -
r2402:535ed23a38ec
parent child
Show More
@@ -1,86 +1,86
1 1 /****************************************************************************
2 2 **
3 3 ** Copyright (C) 2012 Digia Plc
4 4 ** All rights reserved.
5 5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 6 **
7 7 ** This file is part of the Qt Commercial Charts Add-on.
8 8 **
9 9 ** $QT_BEGIN_LICENSE$
10 10 ** Licensees holding valid Qt Commercial licenses may use this file in
11 11 ** accordance with the Qt Commercial License Agreement provided with the
12 12 ** Software or, alternatively, in accordance with the terms contained in
13 13 ** a written agreement between you and Digia.
14 14 **
15 15 ** If you have questions regarding the use of this file, please use
16 16 ** contact form at http://qt.digia.com
17 17 ** $QT_END_LICENSE$
18 18 **
19 19 ****************************************************************************/
20 20
21 21 import QtQuick 1.0
22 22
23 23 Column {
24 24 spacing: 8
25 25 signal animationsEnabled(bool enabled)
26 26 signal seriesTypeChanged(string type)
27 27 signal refreshRateChanged(variant rate);
28 28 signal signalSourceChanged(string source, int signalCount, int sampleCount);
29 29 signal antialiasingEnabled(bool enabled)
30 30
31 31 Text {
32 text: "Scope-PAS2"
32 text: "Scope"
33 33 font.pointSize: 18
34 34 color: "white"
35 35 }
36 36
37 37 MultiButton {
38 38 text: "Graph: "
39 39 items: ["line", "spline", "scatter"]
40 40 currentSelection: 0
41 41 onSelectionChanged: seriesTypeChanged(items[currentSelection]);
42 42 }
43 43
44 44 MultiButton {
45 45 id: signalSourceButton
46 46 text: "Source: "
47 47 items: ["sin", "linear"]
48 48 currentSelection: 0
49 49 onSelectionChanged: signalSourceChanged(
50 50 selection,
51 51 5,
52 52 sampleCountButton.items[sampleCountButton.currentSelection]);
53 53 }
54 54
55 55 MultiButton {
56 56 id: sampleCountButton
57 57 text: "Samples: "
58 58 items: [6, 128, 1024, 10000]
59 59 currentSelection: 2
60 60 onSelectionChanged: signalSourceChanged(
61 61 signalSourceButton.items[signalSourceButton.currentSelection],
62 62 5,
63 63 selection);
64 64 }
65 65
66 66 MultiButton {
67 67 text: "Refresh rate: "
68 68 items: [1, 24, 60, 100]
69 69 currentSelection: 2
70 70 onSelectionChanged: refreshRateChanged(items[currentSelection]);
71 71 }
72 72
73 73 MultiButton {
74 74 text: "Animations: "
75 75 items: ["OFF", "ON"]
76 76 currentSelection: 0
77 77 onSelectionChanged: animationsEnabled(currentSelection == 1);
78 78 }
79 79
80 80 MultiButton {
81 81 text: "Antialias: "
82 82 items: ["OFF", "ON"]
83 83 currentSelection: 0
84 84 onSelectionChanged: antialiasingEnabled(currentSelection == 1);
85 85 }
86 86 }
1 NO CONTENT: modified file, binary diff hidden
General Comments 0
You need to be logged in to leave comments. Login now