blob: 27f89bf06cb92c93cce2fddb6a12a837b1a4b0c1 [file] [log] [blame]
Qi Zhao7e524492017-03-02 15:05:45 -08001import QtQuick 2.2
2import QtQuick.Window 2.1
3import QtQuick.Controls 1.1
4import QtQuick.Layouts 1.0
5
6ApplicationWindow {
7 visible: false
8 id: window
9 title: "NFD Status"
10 minimumWidth: 700
11 minimumHeight: 400
12
13 TabView {
14 anchors.fill: parent
15 anchors.topMargin: 20
16 anchors.bottomMargin: 20
17 anchors.leftMargin: 20
18 anchors.rightMargin: 20
19
20 Tab {
21 title: "Forwarder"
22 TableView {
23 anchors.fill: parent
24 anchors.topMargin: 20
25 anchors.bottomMargin: 20
26 anchors.leftMargin: 20
27 anchors.rightMargin: 20
28 model: forwarderModel
29 TableViewColumn{
30 role: "type"
31 title: "Type"
32 width: 200
33 }
34 TableViewColumn{
35 role: "value"
36 title: "Value"
37 width: 300
38 }
39 }
40 }
41 Tab {
Qi Zhaobd19e072017-03-05 15:12:46 -080042 title: "Channel"
43 TableView {
44 anchors.fill: parent
45 anchors.topMargin: 20
46 anchors.bottomMargin: 20
47 anchors.leftMargin: 20
48 anchors.rightMargin: 20
49 model: channelModel
50 TableViewColumn{
51 role: "channel"
52 title: "Channel"
53 width: 500
54 }
55 }
56 }
57 Tab {
Qi Zhao078ac692017-03-02 16:28:51 -080058 title: "Face"
59 TableView {
60 anchors.fill: parent
61 anchors.topMargin: 20
62 anchors.bottomMargin: 20
63 anchors.leftMargin: 20
64 anchors.rightMargin: 20
65 model: faceModel
66 TableViewColumn{
67 role: "faceId"
68 title: "Face ID"
69 width: 60
70 }
71 TableViewColumn{
72 role: "remote"
73 title: "Remote URI"
74 width: 150
75 }
76 TableViewColumn{
77 role: "local"
78 title: "Local URI"
79 width: 150
80 }
81 TableViewColumn{
82 role: "scope"
83 title: "Scope"
84 width: 70
85 }
86 TableViewColumn{
87 role: "persistency"
88 title: "Persistency"
89 width: 100
90 }
91 TableViewColumn{
92 role: "linkType"
93 title: "LinkType"
94 width: 100
95 }
96 TableViewColumn{
97 role: "inInterest"
98 title: "In Interests"
99 width: 100
100 }
101 TableViewColumn{
102 role: "outInterest"
103 title: "Out Interests"
104 width: 100
105 }
106 TableViewColumn{
107 role: "inData"
108 title: "In Data"
109 width: 100
110 }
111 TableViewColumn{
112 role: "outData"
113 title: "Out Data"
114 width: 100
115 }
116 TableViewColumn{
117 role: "inByte"
118 title: "In Bytes"
119 width: 100
120 }
121 TableViewColumn{
122 role: "outByte"
123 title: "Out Bytes"
124 width: 100
125 }
126 TableViewColumn{
127 role: "inNack"
128 title: "In Nacks"
129 width: 100
130 }
131 TableViewColumn{
132 role: "outNack"
133 title: "Out Nacks"
134 width: 100
135 }
136 }
137 }
138 Tab {
Qi Zhao7e524492017-03-02 15:05:45 -0800139 title: "FIB"
140 TableView {
141 anchors.fill: parent
142 anchors.topMargin: 20
143 anchors.bottomMargin: 20
144 anchors.leftMargin: 20
145 anchors.rightMargin: 20
146 model: fibModel
147 TableViewColumn{
148 role: "prefix"
149 title: "NDN prefix"
150 width: 300
151 }
152 TableViewColumn{
153 role: "faceId"
154 title: "Face ID"
155 width: 100
156 }
157 TableViewColumn{
158 role: "cost"
159 title: "Cost"
160 width: 100
161 }
162 }
163 }
164 Tab {
165 title: "RIB"
166 TableView {
167 anchors.fill: parent
168 anchors.topMargin: 20
169 anchors.bottomMargin: 20
170 anchors.leftMargin: 20
171 anchors.rightMargin: 20
172 model: ribModel
173 TableViewColumn{
174 role: "prefix"
175 title: "NDN prefix"
176 width: 200
177 }
178 TableViewColumn{
179 role: "faceId"
180 title: "Face ID"
181 width: 65
182 }
183 TableViewColumn{
184 role: "origin"
185 title: "Origin"
186 width: 50
187 }
188 TableViewColumn{
189 role: "cost"
190 title: "Cost"
191 width: 50
192 }
193 TableViewColumn{
194 role: "childinherit"
195 title: "ChildInherit"
196 width: 90
197 }
198 TableViewColumn{
199 role: "ribcapture"
200 title: "RibCapture"
201 width: 90
202 }
203 TableViewColumn{
204 role: "expiresin"
205 title: "Expires in"
206 width: 90
207 }
208 }
209 }
Qi Zhaobd19e072017-03-05 15:12:46 -0800210 Tab {
211 title: "Strategy"
212 TableView {
213 anchors.fill: parent
214 anchors.topMargin: 20
215 anchors.bottomMargin: 20
216 anchors.leftMargin: 20
217 anchors.rightMargin: 20
218 model: strategyModel
219 TableViewColumn{
220 role: "prefix"
221 title: "NDN prefix"
222 width: 300
223 }
224 TableViewColumn{
225 role: "strategy"
226 title: "Strategy Choice"
227 width: 300
228 }
229 }
230 }
Qi Zhao7e524492017-03-02 15:05:45 -0800231 }
232 Connections {
233 target: statusViewer;
234 onShowStatus: {
235 window.show()
236 window.raise()
237 }
238 }
239}