made some changes to make clone and main window resize plot

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@3 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d
2012-05-29 08:24:03 +00:00
parent 934bbbd0c8
commit 4624c65398
14 changed files with 782 additions and 425 deletions

View File

@ -57,21 +57,10 @@
</property>
<property name="maximumSize">
<size>
<width>1000</width>
<height>1000</height>
<width>524287</width>
<height>450</height>
</size>
</property>
<widget class="QWidget" name="gridLayoutWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>754</width>
<height>368</height>
</rect>
</property>
<layout class="QGridLayout" name="layoutTabs"/>
</widget>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
@ -321,8 +310,8 @@
<font>
<family>Sans Serif</family>
<pointsize>11</pointsize>
<weight>50</weight>
<bold>false</bold>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="features">
@ -339,7 +328,7 @@
</attribute>
<widget class="QWidget" name="dockWidgetContentsPlot">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>734</width>
<width>718</width>
<height>339</height>
</rect>
</property>
@ -153,9 +153,9 @@
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<y>10</y>
<width>321</width>
<height>117</height>
<height>130</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
@ -270,9 +270,9 @@
<property name="geometry">
<rect>
<x>390</x>
<y>20</y>
<y>11</y>
<width>322</width>
<height>312</height>
<height>321</height>
</rect>
</property>
<layout class="QGridLayout" name="gridTimeResolved">
@ -788,7 +788,7 @@
<property name="geometry">
<rect>
<x>20</x>
<y>150</y>
<y>170</y>
<width>319</width>
<height>90</height>
</rect>

View File

@ -6,10 +6,16 @@
<rect>
<x>0</x>
<y>0</y>
<width>748</width>
<width>734</width>
<height>339</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
@ -29,8 +35,8 @@
<property name="geometry">
<rect>
<x>10</x>
<y>180</y>
<width>731</width>
<y>130</y>
<width>711</width>
<height>151</height>
</rect>
</property>
@ -45,7 +51,7 @@
<rect>
<x>10</x>
<y>20</y>
<width>712</width>
<width>691</width>
<height>121</height>
</rect>
</property>
@ -97,6 +103,9 @@
<height>0</height>
</size>
</property>
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
</widget>
</item>
<item row="1" column="6">
@ -220,6 +229,9 @@
</item>
<item row="3" column="6">
<widget class="QCheckBox" name="chkZMax">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Z max:</string>
</property>
@ -227,6 +239,9 @@
</item>
<item row="3" column="7">
<widget class="QLineEdit" name="dispZMax">
<property name="enabled">
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
@ -270,10 +285,10 @@
<widget class="QGroupBox" name="box2D">
<property name="geometry">
<rect>
<x>10</x>
<y>100</y>
<x>11</x>
<y>70</y>
<width>571</width>
<height>61</height>
<height>51</height>
</rect>
</property>
<property name="title">
@ -282,16 +297,16 @@
<property name="flat">
<bool>false</bool>
</property>
<widget class="QWidget" name="gridLayoutWidget_2">
<widget class="QWidget" name="gridLayoutWidget_5">
<property name="geometry">
<rect>
<x>10</x>
<x>8</x>
<y>20</y>
<width>585</width>
<height>31</height>
<width>551</width>
<height>22</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">
<widget class="QCheckBox" name="chkInterpolate">
<property name="text">
@ -314,16 +329,13 @@
</widget>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_9">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>250</width>
<width>40</width>
<height>20</height>
</size>
</property>
@ -336,11 +348,129 @@
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<y>10</y>
<width>571</width>
<height>61</height>
<height>51</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
<colorrole role="ButtonText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
<colorrole role="Shadow">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
<colorrole role="ButtonText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
<colorrole role="Shadow">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>183</red>
<green>183</green>
<blue>183</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>171</red>
<green>171</green>
<blue>171</blue>
</color>
</brush>
</colorrole>
<colorrole role="ButtonText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>179</red>
<green>179</green>
<blue>179</blue>
</color>
</brush>
</colorrole>
<colorrole role="Shadow">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>154</red>
<green>154</green>
<blue>154</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="title">
<string>1D Plot Options</string>
</property>
@ -352,83 +482,231 @@
<rect>
<x>10</x>
<y>20</y>
<width>658</width>
<height>30</height>
<width>551</width>
<height>16</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<widget class="QCheckBox" name="chkLogz_2">
<property name="enabled">
<bool>false</bool>
</property>
<widget class="QCheckBox" name="chktest1D">
<property name="text">
<string>Log Scale (Z)</string>
<string/>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="chkLogz_3">
<property name="enabled">
<bool>false</bool>
</property>
</layout>
</widget>
<zorder>gridLayoutWidget_3</zorder>
<zorder>btnClear</zorder>
<zorder>gridLayoutWidget_4</zorder>
</widget>
<widget class="QGroupBox" name="boxSave">
<property name="geometry">
<rect>
<x>10</x>
<y>288</y>
<width>711</width>
<height>51</height>
</rect>
</property>
<property name="title">
<string>Save</string>
</property>
<widget class="QWidget" name="horizontalLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>13</y>
<width>698</width>
<height>31</height>
</rect>
</property>
<layout class="QHBoxLayout" name="layoutSave">
<item>
<widget class="QLabel" name="lblFName">
<property name="text">
<string>Superimpose</string>
<string>File Name:</string>
</property>
</widget>
</item>
<item row="0" column="2">
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<item>
<layout class="QHBoxLayout" name="hLayoutSave">
<property name="spacing">
<number>0</number>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
<item>
<widget class="QLineEdit" name="dispFName"/>
</item>
<item>
<widget class="QComboBox" name="comboFormat">
<property name="frame">
<bool>true</bool>
</property>
<item>
<property name="text">
<string>.gif</string>
</property>
</item>
<item>
<property name="text">
<string>.pdf</string>
</property>
</item>
<item>
<property name="text">
<string>.png</string>
</property>
</item>
<item>
<property name="text">
<string>.gif+</string>
</property>
</item>
<item>
<property name="text">
<string>.jpg</string>
</property>
</item>
<item>
<property name="text">
<string>.ps</string>
</property>
</item>
<item>
<property name="text">
<string>.eps</string>
</property>
</item>
<item>
<property name="text">
<string>.xpm</string>
</property>
</item>
<item>
<property name="text">
<string>.C</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QPushButton" name="btnSave">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>295</width>
<height>20</height>
</size>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
</spacer>
<property name="text">
<string>Save</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkAutoFName">
<property name="text">
<string>Automatic File Name</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkSaveAll">
<property name="text">
<string>Save All</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="gridLayoutWidget_4">
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>610</x>
<y>22</y>
<x>599</x>
<y>41</y>
<width>121</width>
<height>71</height>
<height>80</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<widget class="QPushButton" name="btnClone">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<property name="title">
<string>Clone</string>
</property>
<widget class="QWidget" name="gridLayoutWidget_2">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>101</width>
<height>71</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="topMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<property name="verticalSpacing">
<number>-1</number>
</property>
<item row="0" column="0">
<widget class="QPushButton" name="btnClone">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string>Clone Plot</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="btnCloseClones">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string>Close All</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="verticalLayoutWidget">
<property name="geometry">
<rect>
<x>600</x>
<y>16</y>
<width>121</width>
<height>21</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QPushButton" name="btnClear">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string>Clone</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="btnCloseClones">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Close All Clones</string>
<string>Clear</string>
</property>
</widget>
</item>