<ui version="4.0" stdsetdef="1">
  <author></author>
  <comment></comment>
  <exportmacro></exportmacro>
  <class>HistogramOptionsDialog</class>
  <widget class="QDialog" name="HistogramOptionsDialog">
    <property name="geometry">
      <rect>
        <x>0</x>
        <y>0</y>
        <width>440</width>
        <height>217</height>
      </rect>
    </property>
    <property name="windowTitle">
      <string>Histogram Options</string>
    </property>
    <layout class="QVBoxLayout">
      <item>
        <widget class="Q3GroupBox" name="groupBox5">
          <property name="title">
            <string>Options</string>
          </property>
          <layout class="QVBoxLayout">
            <item>
              <layout class="QHBoxLayout">
                <property name="margin">
                  <number>0</number>
                </property>
                <property name="spacing">
                  <number>12</number>
                </property>
                <item>
                  <widget class="QCheckBox" name="intensityRange">
                    <property name="text">
                      <string>Set intensity range:</string>
                    </property>
                    <property name="whatsThis" stdset="0">
                      <string>Specify a range for the histogram. Only data values falling within this range will be counted in the resulting histogram.

When toggled off the full data range will be used.</string>
                    </property>
                  </widget>
                </item>
                <item>
                  <widget class="QLabel" name="TextLabel1">
                    <property name="maximumSize">
                      <size>
                        <width>80</width>
                        <height>32767</height>
                      </size>
                    </property>
                    <property name="text">
                      <string>Min</string>
                    </property>
                    <property name="alignment">
                      <set>Qt::AlignVCenter|Qt::AlignRight</set>
                    </property>
                    <property name="wordWrap">
                      <bool>false</bool>
                    </property>
                  </widget>
                </item>
                <item>
                  <widget class="QLineEdit" name="minIntensity">
                    <property name="enabled">
                      <bool>false</bool>
                    </property>
                    <property name="sizePolicy">
                      <sizepolicy>
                        <hsizetype>0</hsizetype>
                        <vsizetype>0</vsizetype>
                        <horstretch>0</horstretch>
                        <verstretch>0</verstretch>
                      </sizepolicy>
                    </property>
                    <property name="maximumSize">
                      <size>
                        <width>80</width>
                        <height>32767</height>
                      </size>
                    </property>
                  </widget>
                </item>
                <item>
                  <widget class="QLabel" name="TextLabel2">
                    <property name="text">
                      <string>Max</string>
                    </property>
                    <property name="alignment">
                      <set>Qt::AlignVCenter|Qt::AlignRight</set>
                    </property>
                    <property name="wordWrap">
                      <bool>false</bool>
                    </property>
                  </widget>
                </item>
                <item>
                  <widget class="QLineEdit" name="maxIntensity">
                    <property name="enabled">
                      <bool>false</bool>
                    </property>
                    <property name="sizePolicy">
                      <sizepolicy>
                        <hsizetype>0</hsizetype>
                        <vsizetype>0</vsizetype>
                        <horstretch>0</horstretch>
                        <verstretch>0</verstretch>
                      </sizepolicy>
                    </property>
                    <property name="maximumSize">
                      <size>
                        <width>80</width>
                        <height>32767</height>
                      </size>
                    </property>
                  </widget>
                </item>
              </layout>
            </item>
            <item>
              <widget class="QCheckBox" name="logScale">
                <property name="enabled">
                  <bool>true</bool>
                </property>
                <property name="text">
                  <string>Use log scale</string>
                </property>
                <property name="whatsThis" stdset="0">
                  <string>Switch on/off the log scale for the histogram's Y axis.</string>
                </property>
              </widget>
            </item>
            <item>
              <widget class="QCheckBox" name="ignoreZeros">
                <property name="text">
                  <string>Ignore zeros</string>
                </property>
                <property name="toolTip" stdset="0">
                  <string/>
                </property>
                <property name="whatsThis" stdset="0">
                  <string>Voxels with a value of zero are often simply background values. This can lead to large spikes in the histogram which hide the nature of the actual data values.

Try looking at z-stat images with this turned on to demonstrate the effect.</string>
                </property>
              </widget>
            </item>
            <item>
              <layout class="QHBoxLayout">
                <property name="margin">
                  <number>0</number>
                </property>
                <property name="spacing">
                  <number>12</number>
                </property>
                <item>
                  <widget class="QCheckBox" name="specifyBins">
                    <property name="sizePolicy">
                      <sizepolicy>
                        <hsizetype>3</hsizetype>
                        <vsizetype>0</vsizetype>
                        <horstretch>0</horstretch>
                        <verstretch>0</verstretch>
                      </sizepolicy>
                    </property>
                    <property name="text">
                      <string>Set the number of bins:</string>
                    </property>
                    <property name="whatsThis" stdset="0">
                      <string>Normally the number of bins is automatically calculated according to the bin size which, in turn, is calculated by determing a natural enclosing range for the data.

The number of calculated bins is shown in the box on the right. Toggle this checkbox to specify this number and the histogram will be recomputed when you click on &quot;OK&quot;.</string>
                    </property>
                  </widget>
                </item>
                <item>
                  <widget class="QSpinBox" name="numberOfBins">
                    <property name="enabled">
                      <bool>false</bool>
                    </property>
                    <property name="maximum">
                      <number>1000</number>
                    </property>
                  </widget>
                </item>
              </layout>
            </item>
          </layout>
        </widget>
      </item>
      <item>
        <widget class="Line" name="Line1">
          <property name="frameShape">
            <enum>QFrame::HLine</enum>
          </property>
          <property name="frameShadow">
            <enum>QFrame::Sunken</enum>
          </property>
        </widget>
      </item>
      <item>
        <layout class="QHBoxLayout">
          <property name="margin">
            <number>0</number>
          </property>
          <property name="spacing">
            <number>3</number>
          </property>
          <item>
            <spacer name="Spacer">
              <property name="sizeHint">
                <size>
                  <width>20</width>
                  <height>20</height>
                </size>
              </property>
              <property name="sizeType">
                <enum>QSizePolicy::MinimumExpanding</enum>
              </property>
              <property name="orientation">
                <enum>Qt::Horizontal</enum>
              </property>
            </spacer>
          </item>
          <item>
            <widget class="QPushButton" name="Ok">
              <property name="text">
                <string>Ok</string>
              </property>
              <property name="autoDefault">
                <bool>true</bool>
              </property>
              <property name="default">
                <bool>true</bool>
              </property>
              <property name="flat">
                <bool>false</bool>
              </property>
            </widget>
          </item>
          <item>
            <widget class="QPushButton" name="cancelButton">
              <property name="text">
                <string>Cancel</string>
              </property>
              <property name="default">
                <bool>false</bool>
              </property>
              <property name="flat">
                <bool>false</bool>
              </property>
            </widget>
          </item>
        </layout>
      </item>
    </layout>
  </widget>
  <layoutdefault spacing="3" margin="6"/>
  <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
  <tabstops>
    <tabstop>intensityRange</tabstop>
    <tabstop>minIntensity</tabstop>
    <tabstop>maxIntensity</tabstop>
    <tabstop>logScale</tabstop>
    <tabstop>ignoreZeros</tabstop>
    <tabstop>specifyBins</tabstop>
    <tabstop>numberOfBins</tabstop>
    <tabstop>Ok</tabstop>
    <tabstop>cancelButton</tabstop>
  </tabstops>
  <connections>
    <connection>
      <sender>Ok</sender>
      <signal>clicked()</signal>
      <receiver>HistogramOptionsDialog</receiver>
      <slot>accept()</slot>
    </connection>
    <connection>
      <sender>cancelButton</sender>
      <signal>clicked()</signal>
      <receiver>HistogramOptionsDialog</receiver>
      <slot>reject()</slot>
    </connection>
    <connection>
      <sender>specifyBins</sender>
      <signal>toggled(bool)</signal>
      <receiver>numberOfBins</receiver>
      <slot>setEnabled(bool)</slot>
    </connection>
    <connection>
      <sender>intensityRange</sender>
      <signal>toggled(bool)</signal>
      <receiver>minIntensity</receiver>
      <slot>setEnabled(bool)</slot>
    </connection>
    <connection>
      <sender>intensityRange</sender>
      <signal>toggled(bool)</signal>
      <receiver>maxIntensity</receiver>
      <slot>setEnabled(bool)</slot>
    </connection>
  </connections>
</ui>
