blob: a22d34cedc8353ffe30157f648f68982899eeb06 [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
Alexander Afanasyev8d1a3a02017-03-11 13:00:24 -080013 onClosing: {
14 statusViewer.cancelEvents();
15 }
16
Qi Zhao7e524492017-03-02 15:05:45 -080017 TabView {
18 anchors.fill: parent
19 anchors.topMargin: 20
20 anchors.bottomMargin: 20
21 anchors.leftMargin: 20
22 anchors.rightMargin: 20
23
24 Tab {
Alexander Afanasyev8d1a3a02017-03-11 13:00:24 -080025 title: "General"
Qi Zhao7e524492017-03-02 15:05:45 -080026 TableView {
27 anchors.fill: parent
28 anchors.topMargin: 20
29 anchors.bottomMargin: 20
30 anchors.leftMargin: 20
31 anchors.rightMargin: 20
32 model: forwarderModel
33 TableViewColumn{
34 role: "type"
35 title: "Type"
36 width: 200
37 }
38 TableViewColumn{
39 role: "value"
40 title: "Value"
41 width: 300
42 }
43 }
44 }
45 Tab {
Alexander Afanasyev8d1a3a02017-03-11 13:00:24 -080046 title: "Channels"
Qi Zhaobd19e072017-03-05 15:12:46 -080047 TableView {
48 anchors.fill: parent
49 anchors.topMargin: 20
50 anchors.bottomMargin: 20
51 anchors.leftMargin: 20
52 anchors.rightMargin: 20
53 model: channelModel
54 TableViewColumn{
55 role: "channel"
56 title: "Channel"
57 width: 500
58 }
59 }
60 }
61 Tab {
Alexander Afanasyev8d1a3a02017-03-11 13:00:24 -080062 title: "Faces"
Qi Zhao078ac692017-03-02 16:28:51 -080063 TableView {
64 anchors.fill: parent
65 anchors.topMargin: 20
66 anchors.bottomMargin: 20
67 anchors.leftMargin: 20
68 anchors.rightMargin: 20
69 model: faceModel
70 TableViewColumn{
71 role: "faceId"
72 title: "Face ID"
73 width: 60
74 }
75 TableViewColumn{
76 role: "remote"
77 title: "Remote URI"
78 width: 150
79 }
80 TableViewColumn{
81 role: "local"
82 title: "Local URI"
83 width: 150
84 }
85 TableViewColumn{
86 role: "scope"
87 title: "Scope"
88 width: 70
89 }
90 TableViewColumn{
91 role: "persistency"
92 title: "Persistency"
93 width: 100
94 }
95 TableViewColumn{
96 role: "linkType"
97 title: "LinkType"
98 width: 100
99 }
100 TableViewColumn{
101 role: "inInterest"
102 title: "In Interests"
103 width: 100
104 }
105 TableViewColumn{
106 role: "outInterest"
107 title: "Out Interests"
108 width: 100
109 }
110 TableViewColumn{
111 role: "inData"
112 title: "In Data"
113 width: 100
114 }
115 TableViewColumn{
116 role: "outData"
117 title: "Out Data"
118 width: 100
119 }
120 TableViewColumn{
121 role: "inByte"
122 title: "In Bytes"
123 width: 100
124 }
125 TableViewColumn{
126 role: "outByte"
127 title: "Out Bytes"
128 width: 100
129 }
130 TableViewColumn{
131 role: "inNack"
132 title: "In Nacks"
133 width: 100
134 }
135 TableViewColumn{
136 role: "outNack"
137 title: "Out Nacks"
138 width: 100
139 }
140 }
141 }
142 Tab {
Qi Zhao7e524492017-03-02 15:05:45 -0800143 title: "FIB"
144 TableView {
145 anchors.fill: parent
146 anchors.topMargin: 20
147 anchors.bottomMargin: 20
148 anchors.leftMargin: 20
149 anchors.rightMargin: 20
150 model: fibModel
151 TableViewColumn{
152 role: "prefix"
153 title: "NDN prefix"
154 width: 300
155 }
156 TableViewColumn{
157 role: "faceId"
158 title: "Face ID"
159 width: 100
160 }
161 TableViewColumn{
162 role: "cost"
163 title: "Cost"
164 width: 100
165 }
166 }
167 }
168 Tab {
169 title: "RIB"
170 TableView {
171 anchors.fill: parent
172 anchors.topMargin: 20
173 anchors.bottomMargin: 20
174 anchors.leftMargin: 20
175 anchors.rightMargin: 20
176 model: ribModel
177 TableViewColumn{
178 role: "prefix"
179 title: "NDN prefix"
180 width: 200
181 }
182 TableViewColumn{
183 role: "faceId"
184 title: "Face ID"
185 width: 65
186 }
187 TableViewColumn{
188 role: "origin"
189 title: "Origin"
190 width: 50
191 }
192 TableViewColumn{
193 role: "cost"
194 title: "Cost"
195 width: 50
196 }
197 TableViewColumn{
198 role: "childinherit"
199 title: "ChildInherit"
200 width: 90
201 }
202 TableViewColumn{
203 role: "ribcapture"
204 title: "RibCapture"
205 width: 90
206 }
207 TableViewColumn{
208 role: "expiresin"
209 title: "Expires in"
210 width: 90
211 }
212 }
213 }
Qi Zhaobd19e072017-03-05 15:12:46 -0800214 Tab {
Alexander Afanasyev8d1a3a02017-03-11 13:00:24 -0800215 title: "Strategies"
Qi Zhaobd19e072017-03-05 15:12:46 -0800216 TableView {
217 anchors.fill: parent
218 anchors.topMargin: 20
219 anchors.bottomMargin: 20
220 anchors.leftMargin: 20
221 anchors.rightMargin: 20
222 model: strategyModel
223 TableViewColumn{
224 role: "prefix"
225 title: "NDN prefix"
226 width: 300
227 }
228 TableViewColumn{
229 role: "strategy"
230 title: "Strategy Choice"
231 width: 300
232 }
233 }
234 }
Qi Zhao7e524492017-03-02 15:05:45 -0800235 }
236 Connections {
237 target: statusViewer;
238 onShowStatus: {
239 window.show()
240 window.raise()
241 }
242 }
243}