UX: Add category labels to Port Stats Window toolbar

This commit is contained in:
Srivats P 2017-09-07 20:48:46 +05:30
parent 40c5e00ec2
commit 88cea753b6

View File

@ -1,7 +1,8 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PortStatsWindow</class> <class>PortStatsWindow</class>
<widget class="QWidget" name="PortStatsWindow" > <widget class="QWidget" name="PortStatsWindow">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -9,183 +10,234 @@
<height>415</height> <height>415</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout">
<item> <item>
<widget class="QFrame" name="frame" > <widget class="QFrame" name="frame">
<property name="frameShape" > <property name="frameShape">
<enum>QFrame::Panel</enum> <enum>QFrame::Panel</enum>
</property> </property>
<property name="frameShadow" > <property name="frameShadow">
<enum>QFrame::Raised</enum> <enum>QFrame::Raised</enum>
</property> </property>
<layout class="QHBoxLayout" > <layout class="QHBoxLayout">
<item> <item>
<widget class="QToolButton" name="tbStartTransmit" > <widget class="QLabel" name="label">
<property name="toolTip" > <property name="text">
<string>Transmit</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbStartTransmit">
<property name="toolTip">
<string>Start Tx</string> <string>Start Tx</string>
</property> </property>
<property name="statusTip" > <property name="statusTip">
<string>Starts transmit on selected port(s)</string> <string>Starts transmit on selected port(s)</string>
</property> </property>
<property name="text" > <property name="text">
<string>Start Transmit</string> <string>Start</string>
</property> </property>
<property name="icon" > <property name="icon">
<iconset resource="ostinato.qrc" >:/icons/control_play.png</iconset> <iconset resource="ostinato.qrc">
<normaloff>:/icons/control_play.png</normaloff>:/icons/control_play.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="tbStopTransmit" > <widget class="QToolButton" name="tbStopTransmit">
<property name="toolTip" > <property name="toolTip">
<string>Stop Tx</string> <string>Stop Tx</string>
</property> </property>
<property name="statusTip" > <property name="statusTip">
<string>Stops transmit on selected port(s)</string> <string>Stops transmit on selected port(s)</string>
</property> </property>
<property name="text" > <property name="text">
<string>Stop Trasmit</string> <string>Stop</string>
</property> </property>
<property name="icon" > <property name="icon">
<iconset resource="ostinato.qrc" >:/icons/control_stop.png</iconset> <iconset resource="ostinato.qrc">
<normaloff>:/icons/control_stop.png</normaloff>:/icons/control_stop.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="tbClear" > <widget class="Line" name="line_2">
<property name="toolTip" > <property name="orientation">
<string>Clear Selected Port Stats</string>
</property>
<property name="statusTip" >
<string>Clears statistics of the selected port(s)</string>
</property>
<property name="text" >
<string>Clear</string>
</property>
<property name="icon" >
<iconset resource="ostinato.qrc" >:/icons/portstats_clear.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbClearAll" >
<property name="toolTip" >
<string>Clear All Ports Stats</string>
</property>
<property name="statusTip" >
<string>Clears statistics of all ports</string>
</property>
<property name="text" >
<string>Clear All</string>
</property>
<property name="icon" >
<iconset resource="ostinato.qrc" >:/icons/portstats_clear_all.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbStartCapture" >
<property name="toolTip" >
<string>Start Capture</string>
</property>
<property name="statusTip" >
<string>Captures packets on the selected port(s)</string>
</property>
<property name="text" >
<string>Start Capture</string>
</property>
<property name="icon" >
<iconset resource="ostinato.qrc" >:/icons/sound_none.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbStopCapture" >
<property name="toolTip" >
<string>Stop Capture</string>
</property>
<property name="statusTip" >
<string>End capture on selecteed port(s)</string>
</property>
<property name="text" >
<string>Stop Capture</string>
</property>
<property name="icon" >
<iconset resource="ostinato.qrc" >:/icons/sound_mute.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbViewCapture" >
<property name="toolTip" >
<string>View Capture Buffer</string>
</property>
<property name="statusTip" >
<string>View captured packets on selected port(s)</string>
</property>
<property name="text" >
<string>View Capture</string>
</property>
<property name="icon" >
<iconset resource="ostinato.qrc" >:/icons/magnifier.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="tbResolveNeighbors" > <widget class="QLabel" name="label_2">
<property name="toolTip" > <property name="text">
<string>Stats</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbClear">
<property name="toolTip">
<string>Clear Selected Port Stats</string>
</property>
<property name="statusTip">
<string>Clears statistics of the selected port(s)</string>
</property>
<property name="text">
<string>Clear</string>
</property>
<property name="icon">
<iconset resource="ostinato.qrc">
<normaloff>:/icons/portstats_clear.png</normaloff>:/icons/portstats_clear.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbClearAll">
<property name="toolTip">
<string>Clear All Ports Stats</string>
</property>
<property name="statusTip">
<string>Clears statistics of all ports</string>
</property>
<property name="text">
<string>Clear All</string>
</property>
<property name="icon">
<iconset resource="ostinato.qrc">
<normaloff>:/icons/portstats_clear_all.png</normaloff>:/icons/portstats_clear_all.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Capture</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbStartCapture">
<property name="toolTip">
<string>Start Capture</string>
</property>
<property name="statusTip">
<string>Captures packets on the selected port(s)</string>
</property>
<property name="text">
<string>Start</string>
</property>
<property name="icon">
<iconset resource="ostinato.qrc">
<normaloff>:/icons/sound_none.png</normaloff>:/icons/sound_none.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbStopCapture">
<property name="toolTip">
<string>Stop Capture</string>
</property>
<property name="statusTip">
<string>End capture on selecteed port(s)</string>
</property>
<property name="text">
<string>Stop</string>
</property>
<property name="icon">
<iconset resource="ostinato.qrc">
<normaloff>:/icons/sound_mute.png</normaloff>:/icons/sound_mute.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbViewCapture">
<property name="toolTip">
<string>View Capture Buffer</string>
</property>
<property name="statusTip">
<string>View captured packets on selected port(s)</string>
</property>
<property name="text">
<string>View</string>
</property>
<property name="icon">
<iconset resource="ostinato.qrc">
<normaloff>:/icons/magnifier.png</normaloff>:/icons/magnifier.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>ARP/ND</string>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="tbResolveNeighbors">
<property name="toolTip">
<string>Resolve Neighbors</string> <string>Resolve Neighbors</string>
</property> </property>
<property name="statusTip" > <property name="statusTip">
<string>Resolve Device Neighbors on selected port(s)</string> <string>Resolve Device Neighbors on selected port(s)</string>
</property> </property>
<property name="text" > <property name="text">
<string>Resolve Neighbors</string> <string>Resolve Neighbors</string>
</property> </property>
<property name="icon" > <property name="icon">
<iconset resource="ostinato.qrc" >:/icons/neighbor_resolve.png</iconset> <iconset resource="ostinato.qrc">
<normaloff>:/icons/neighbor_resolve.png</normaloff>:/icons/neighbor_resolve.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="tbClearNeighbors" > <widget class="QToolButton" name="tbClearNeighbors">
<property name="toolTip" > <property name="toolTip">
<string>Clear Neighbors</string> <string>Clear Neighbors</string>
</property> </property>
<property name="statusTip" > <property name="statusTip">
<string>Clear Device Neighbors on selected port(s)</string> <string>Clear Device Neighbors on selected port(s)</string>
</property> </property>
<property name="text" > <property name="text">
<string>Clear Neighbors</string> <string>Clear Neighbors</string>
</property> </property>
<property name="icon" > <property name="icon">
<iconset resource="ostinato.qrc" >:/icons/neighbor_clear.png</iconset> <iconset resource="ostinato.qrc">
<normaloff>:/icons/neighbor_clear.png</normaloff>:/icons/neighbor_clear.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="Line" name="line2" > <widget class="Line" name="line2">
<property name="orientation" > <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer> <spacer>
<property name="orientation" > <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint">
<size> <size>
<width>40</width> <width>40</width>
<height>20</height> <height>20</height>
@ -194,15 +246,16 @@
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QToolButton" name="tbFilter" > <widget class="QToolButton" name="tbFilter">
<property name="statusTip" > <property name="statusTip">
<string>Select which ports to view</string> <string>Select which ports to view</string>
</property> </property>
<property name="text" > <property name="text">
<string>Filter</string> <string>Filter</string>
</property> </property>
<property name="icon" > <property name="icon">
<iconset resource="ostinato.qrc" >:/icons/portstats_filter.png</iconset> <iconset resource="ostinato.qrc">
<normaloff>:/icons/portstats_filter.png</normaloff>:/icons/portstats_filter.png</iconset>
</property> </property>
</widget> </widget>
</item> </item>
@ -210,12 +263,12 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QTableView" name="tvPortStats" /> <widget class="QTableView" name="tvPortStats"/>
</item> </item>
</layout> </layout>
</widget> </widget>
<resources> <resources>
<include location="ostinato.qrc" /> <include location="ostinato.qrc"/>
</resources> </resources>
<connections/> <connections/>
</ui> </ui>