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