blob: c4bb56c3977d1aac5282e3e87446d90334d97e91 [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 Zhao078ac692017-03-02 16:28:51 -080042 title: "Face"
43 TableView {
44 anchors.fill: parent
45 anchors.topMargin: 20
46 anchors.bottomMargin: 20
47 anchors.leftMargin: 20
48 anchors.rightMargin: 20
49 model: faceModel
50 TableViewColumn{
51 role: "faceId"
52 title: "Face ID"
53 width: 60
54 }
55 TableViewColumn{
56 role: "remote"
57 title: "Remote URI"
58 width: 150
59 }
60 TableViewColumn{
61 role: "local"
62 title: "Local URI"
63 width: 150
64 }
65 TableViewColumn{
66 role: "scope"
67 title: "Scope"
68 width: 70
69 }
70 TableViewColumn{
71 role: "persistency"
72 title: "Persistency"
73 width: 100
74 }
75 TableViewColumn{
76 role: "linkType"
77 title: "LinkType"
78 width: 100
79 }
80 TableViewColumn{
81 role: "inInterest"
82 title: "In Interests"
83 width: 100
84 }
85 TableViewColumn{
86 role: "outInterest"
87 title: "Out Interests"
88 width: 100
89 }
90 TableViewColumn{
91 role: "inData"
92 title: "In Data"
93 width: 100
94 }
95 TableViewColumn{
96 role: "outData"
97 title: "Out Data"
98 width: 100
99 }
100 TableViewColumn{
101 role: "inByte"
102 title: "In Bytes"
103 width: 100
104 }
105 TableViewColumn{
106 role: "outByte"
107 title: "Out Bytes"
108 width: 100
109 }
110 TableViewColumn{
111 role: "inNack"
112 title: "In Nacks"
113 width: 100
114 }
115 TableViewColumn{
116 role: "outNack"
117 title: "Out Nacks"
118 width: 100
119 }
120 }
121 }
122 Tab {
Qi Zhao7e524492017-03-02 15:05:45 -0800123 title: "FIB"
124 TableView {
125 anchors.fill: parent
126 anchors.topMargin: 20
127 anchors.bottomMargin: 20
128 anchors.leftMargin: 20
129 anchors.rightMargin: 20
130 model: fibModel
131 TableViewColumn{
132 role: "prefix"
133 title: "NDN prefix"
134 width: 300
135 }
136 TableViewColumn{
137 role: "faceId"
138 title: "Face ID"
139 width: 100
140 }
141 TableViewColumn{
142 role: "cost"
143 title: "Cost"
144 width: 100
145 }
146 }
147 }
148 Tab {
149 title: "RIB"
150 TableView {
151 anchors.fill: parent
152 anchors.topMargin: 20
153 anchors.bottomMargin: 20
154 anchors.leftMargin: 20
155 anchors.rightMargin: 20
156 model: ribModel
157 TableViewColumn{
158 role: "prefix"
159 title: "NDN prefix"
160 width: 200
161 }
162 TableViewColumn{
163 role: "faceId"
164 title: "Face ID"
165 width: 65
166 }
167 TableViewColumn{
168 role: "origin"
169 title: "Origin"
170 width: 50
171 }
172 TableViewColumn{
173 role: "cost"
174 title: "Cost"
175 width: 50
176 }
177 TableViewColumn{
178 role: "childinherit"
179 title: "ChildInherit"
180 width: 90
181 }
182 TableViewColumn{
183 role: "ribcapture"
184 title: "RibCapture"
185 width: 90
186 }
187 TableViewColumn{
188 role: "expiresin"
189 title: "Expires in"
190 width: 90
191 }
192 }
193 }
194 }
195 Connections {
196 target: statusViewer;
197 onShowStatus: {
198 window.show()
199 window.raise()
200 }
201 }
202}