Allow SCTP graphs to resize with the window they're in.

Bug: 10698
Change-Id: I3304bd36945619aeb405c74917f21de3faa3fcbb
Reviewed-on: https://code.wireshark.org/review/5284
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
This commit is contained in:
Irene Ruengeler 2014-11-14 10:06:51 +01:00 committed by Jeff Morriss
parent a21436eaed
commit 0dae81b6d5
3 changed files with 240 additions and 279 deletions

View File

@ -13,15 +13,11 @@
<property name="windowTitle"> <property name="windowTitle">
<string>SCTP Graph</string> <string>SCTP Graph</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCustomPlot" name="sctpPlot" native="true"> <widget class="QCustomPlot" name="sctpPlot" native="true">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>761</width>
<height>451</height>
</rect>
</property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -29,15 +25,18 @@
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="pushButton_4"> </item>
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="hintLabel">
<x>10</x> <property name="text">
<y>510</y> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<width>131</width>
<height>32</height>
</rect>
</property> </property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="pushButton_4">
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -45,15 +44,29 @@
<string>Reset to full size</string> <string>Reset to full size</string>
</property> </property>
</widget> </widget>
<widget class="QDialogButtonBox" name="buttonBox"> </item>
<property name="geometry"> <item>
<rect> <widget class="QPushButton" name="saveButton">
<x>680</x> <property name="text">
<y>510</y> <string>Save Graph</string>
<width>120</width>
<height>32</height>
</rect>
</property> </property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>428</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -64,32 +77,12 @@
<set>QDialogButtonBox::Close</set> <set>QDialogButtonBox::Close</set>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="hintLabel"> </item>
<property name="geometry"> </layout>
<rect> </item>
<x>10</x> </layout>
<y>490</y> </item>
<width>655</width> </layout>
<height>12</height>
</rect>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QPushButton" name="saveButton">
<property name="geometry">
<rect>
<x>140</x>
<y>510</y>
<width>114</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>Save Graph</string>
</property>
</widget>
<action name="actionGoToPacket"> <action name="actionGoToPacket">
<property name="text"> <property name="text">
<string>goToPacket</string> <string>goToPacket</string>

View File

@ -13,15 +13,11 @@
<property name="windowTitle"> <property name="windowTitle">
<string>SCTP Graph</string> <string>SCTP Graph</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCustomPlot" name="sctpPlot" native="true"> <widget class="QCustomPlot" name="sctpPlot" native="true">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>761</width>
<height>451</height>
</rect>
</property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -29,15 +25,18 @@
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="pushButton_4"> </item>
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="hintLabel">
<x>10</x> <property name="text">
<y>510</y> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<width>131</width>
<height>32</height>
</rect>
</property> </property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="pushButton_4">
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -45,15 +44,29 @@
<string>Reset to full size</string> <string>Reset to full size</string>
</property> </property>
</widget> </widget>
<widget class="QDialogButtonBox" name="buttonBox"> </item>
<property name="geometry"> <item>
<rect> <widget class="QPushButton" name="saveButton">
<x>680</x> <property name="text">
<y>510</y> <string>Save Graph</string>
<width>120</width>
<height>32</height>
</rect>
</property> </property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>428</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -64,32 +77,12 @@
<set>QDialogButtonBox::Close</set> <set>QDialogButtonBox::Close</set>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="hintLabel"> </item>
<property name="geometry"> </layout>
<rect> </item>
<x>10</x> </layout>
<y>490</y> </item>
<width>655</width> </layout>
<height>12</height>
</rect>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QPushButton" name="saveButton">
<property name="geometry">
<rect>
<x>140</x>
<y>510</y>
<width>114</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>Save Graph</string>
</property>
</widget>
<action name="actionGoToPacket"> <action name="actionGoToPacket">
<property name="text"> <property name="text">
<string>goToPacket</string> <string>goToPacket</string>

View File

@ -13,15 +13,11 @@
<property name="windowTitle"> <property name="windowTitle">
<string>SCTP Graph</string> <string>SCTP Graph</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCustomPlot" name="sctpPlot" native="true"> <widget class="QCustomPlot" name="sctpPlot" native="true">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>761</width>
<height>451</height>
</rect>
</property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -29,15 +25,18 @@
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="pushButton"> </item>
<property name="geometry"> <item>
<rect> <widget class="QLabel" name="hintLabel">
<x>0</x> <property name="text">
<y>510</y> <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<width>120</width>
<height>32</height>
</rect>
</property> </property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="pushButton">
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -45,15 +44,9 @@
<string>Only SACKs</string> <string>Only SACKs</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_2"> <widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>120</x>
<y>510</y>
<width>120</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -61,15 +54,9 @@
<string>Only TSNs</string> <string>Only TSNs</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_3"> <widget class="QPushButton" name="pushButton_3">
<property name="geometry">
<rect>
<x>240</x>
<y>510</y>
<width>120</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -77,15 +64,9 @@
<string>Show both</string> <string>Show both</string>
</property> </property>
</widget> </widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_4"> <widget class="QPushButton" name="pushButton_4">
<property name="geometry">
<rect>
<x>360</x>
<y>510</y>
<width>131</width>
<height>32</height>
</rect>
</property>
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -93,15 +74,29 @@
<string>Reset to full size</string> <string>Reset to full size</string>
</property> </property>
</widget> </widget>
<widget class="QDialogButtonBox" name="buttonBox"> </item>
<property name="geometry"> <item>
<rect> <widget class="QPushButton" name="saveButton">
<x>680</x> <property name="text">
<y>510</y> <string>Save Graph</string>
<width>120</width>
<height>32</height>
</rect>
</property> </property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="focusPolicy"> <property name="focusPolicy">
<enum>Qt::NoFocus</enum> <enum>Qt::NoFocus</enum>
</property> </property>
@ -112,32 +107,12 @@
<set>QDialogButtonBox::Close</set> <set>QDialogButtonBox::Close</set>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="hintLabel"> </item>
<property name="geometry"> </layout>
<rect> </item>
<x>10</x> </layout>
<y>490</y> </item>
<width>655</width> </layout>
<height>12</height>
</rect>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
<widget class="QPushButton" name="saveButton">
<property name="geometry">
<rect>
<x>490</x>
<y>510</y>
<width>114</width>
<height>32</height>
</rect>
</property>
<property name="text">
<string>Save Graph</string>
</property>
</widget>
<action name="actionGoToPacket"> <action name="actionGoToPacket">
<property name="text"> <property name="text">
<string>goToPacket</string> <string>goToPacket</string>