<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Analyzer</class>
- <widget class="QDialog" name="Analyzer">
+ <widget class="QMainWindow" name="Analyzer">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
- <width>843</width>
- <height>450</height>
+ <width>845</width>
+ <height>472</height>
</rect>
</property>
<property name="windowTitle">
- <string>Dialog</string>
+ <string>Analyzer</string>
</property>
- <widget class="GLWidget" name="display" native="true">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>10</y>
- <width>320</width>
- <height>180</height>
- </rect>
- </property>
- <property name="autoFillBackground">
- <bool>false</bool>
- </property>
- <property name="styleSheet">
- <string notr="true">background: rgb(233, 185, 110)</string>
- </property>
- </widget>
- <widget class="QComboBox" name="input_box">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>200</y>
- <width>251</width>
- <height>23</height>
- </rect>
- </property>
- </widget>
- <widget class="QPushButton" name="grab_btn">
- <property name="geometry">
- <rect>
- <x>270</x>
- <y>200</y>
- <width>61</width>
- <height>23</height>
- </rect>
- </property>
- <property name="text">
- <string>Grab</string>
- </property>
- </widget>
- <widget class="QWidget" name="widget_3" native="true">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>240</y>
- <width>320</width>
- <height>180</height>
- </rect>
- </property>
- <property name="autoFillBackground">
- <bool>false</bool>
- </property>
- <property name="styleSheet">
- <string notr="true">background: rgb(173, 127, 168)</string>
- </property>
- </widget>
- <widget class="QLabel" name="label">
- <property name="geometry">
- <rect>
- <x>370</x>
- <y>310</y>
- <width>421</width>
- <height>21</height>
- </rect>
- </property>
- <property name="text">
- <string>Selected coordinate (x,y): (123,456)</string>
- </property>
- </widget>
- <widget class="QLabel" name="label_3">
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>420</y>
- <width>321</width>
- <height>21</height>
- </rect>
- </property>
- <property name="text">
- <string>RGB histogram</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- <widget class="QLabel" name="label_4">
- <property name="geometry">
- <rect>
- <x>350</x>
- <y>280</y>
- <width>481</width>
- <height>21</height>
- </rect>
- </property>
- <property name="text">
- <string>Grabbed frame (1280x720)</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- <widget class="QWidget" name="gridLayoutWidget">
- <property name="geometry">
- <rect>
- <x>600</x>
- <y>350</y>
- <width>191</width>
- <height>80</height>
- </rect>
- </property>
- <layout class="QGridLayout" name="gridLayout">
- <item row="1" column="0">
- <widget class="QLabel" name="label_6">
- <property name="text">
- <string>Green:</string>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QLabel" name="green_label">
- <property name="text">
- <string>127</string>
- </property>
- </widget>
- </item>
- <item row="2" column="1">
- <widget class="QLabel" name="blue_label">
- <property name="text">
- <string>127</string>
- </property>
- </widget>
+ <widget class="QWidget" name="centralwidget">
+ <layout class="QHBoxLayout" name="horizontalLayout_3" stretch="2,3">
+ <item>
+ <layout class="QVBoxLayout" name="left_pane" stretch="0,1,0,0,1,0,0">
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>5</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="display_centerer" stretch="0,1,0">
+ <property name="spacing">
+ <number>0</number>
+ </property>
+ <item>
+ <spacer name="display_left_spacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>5</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="GLWidget" name="display" native="true">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="autoFillBackground">
+ <bool>false</bool>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">background: rgb(233, 185, 110)</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="display_right_spacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>5</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="grab_horizontal_layout" stretch="1">
+ <item>
+ <widget class="QComboBox" name="input_box"/>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="0,1,0">
+ <item>
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Grab every:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QComboBox" name="grab_frequency_box"/>
+ </item>
+ <item>
+ <widget class="QPushButton" name="grab_btn">
+ <property name="text">
+ <string>Grab</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QCustomPlot" name="histogram" native="true">
+ <property name="autoFillBackground">
+ <bool>false</bool>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">background: rgb(173, 127, 168)</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="histogram_label">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>RGB histogram</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>5</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
</item>
- <item row="3" column="0">
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>Hex:</string>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLabel" name="red_label">
- <property name="text">
- <string>127</string>
- </property>
- </widget>
- </item>
- <item row="2" column="0">
- <widget class="QLabel" name="label_7">
- <property name="text">
- <string>Blue:</string>
- </property>
- </widget>
- </item>
- <item row="3" column="1">
- <widget class="QLabel" name="hex_label">
- <property name="text">
- <string>#7f7f7f</string>
- </property>
- </widget>
- </item>
- <item row="0" column="0">
- <widget class="QLabel" name="label_5">
- <property name="text">
- <string>Red:</string>
- </property>
- </widget>
+ <item>
+ <layout class="QVBoxLayout" name="right_pane" stretch="0,1,0,0,0,0">
+ <item>
+ <spacer name="verticalSpacer_3">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>5</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="grabbed_frame_enterer" stretch="0,1,0">
+ <property name="spacing">
+ <number>0</number>
+ </property>
+ <item>
+ <spacer name="grabbed_frame_left_spacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>5</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="grabbed_frame_label">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Ignored" vsizetype="Ignored">
+ <horstretch>1</horstretch>
+ <verstretch>1</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="cursor">
+ <cursorShape>CrossCursor</cursorShape>
+ </property>
+ <property name="mouseTracking">
+ <bool>true</bool>
+ </property>
+ <property name="autoFillBackground">
+ <bool>false</bool>
+ </property>
+ <property name="styleSheet">
+ <string notr="true">background: color(0,0,0)</string>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ <property name="scaledContents">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="grabbed_frame_right_spacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>5</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QLabel" name="grabbed_frame_sublabel">
+ <property name="text">
+ <string>Grabbed frame</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="coord_label">
+ <property name="text">
+ <string>Selected coordinate (x,y): (none)</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="color_hbox">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_4">
+ <item>
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <widget class="QLabel" name="label_12">
+ <property name="text">
+ <string>Color (8-bit sRGB):</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="1" column="0">
+ <widget class="QLabel" name="label_6">
+ <property name="text">
+ <string>Green:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLabel" name="green_label">
+ <property name="text">
+ <string>—</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <widget class="QLabel" name="blue_label">
+ <property name="text">
+ <string>—</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="0">
+ <widget class="QLabel" name="label_2">
+ <property name="text">
+ <string>Hex:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QLabel" name="red_label">
+ <property name="text">
+ <string>—</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
+ <widget class="QLabel" name="label_7">
+ <property name="text">
+ <string>Blue:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="1">
+ <widget class="QLabel" name="hex_label">
+ <property name="text">
+ <string>#—</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="0">
+ <widget class="QLabel" name="label_5">
+ <property name="text">
+ <string>Red:</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <spacer name="verticalSpacer_4">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>5</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
</item>
</layout>
</widget>
- <widget class="QLabel" name="label_12">
- <property name="geometry">
- <rect>
- <x>600</x>
- <y>330</y>
- <width>191</width>
- <height>16</height>
- </rect>
- </property>
- <property name="text">
- <string>Color (8-bit sRGB):</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignCenter</set>
- </property>
- </widget>
- <widget class="QLabel" name="grabbed_frame_label">
- <property name="geometry">
- <rect>
- <x>350</x>
- <y>10</y>
- <width>480</width>
- <height>270</height>
- </rect>
- </property>
- <property name="cursor">
- <cursorShape>CrossCursor</cursorShape>
- </property>
- <property name="mouseTracking">
- <bool>true</bool>
- </property>
- <property name="autoFillBackground">
- <bool>false</bool>
- </property>
- <property name="styleSheet">
- <string notr="true">background: color(0,0,0)</string>
- </property>
- <property name="text">
- <string/>
- </property>
- <property name="scaledContents">
- <bool>true</bool>
- </property>
- </widget>
</widget>
<customwidgets>
<customwidget>
<extends>QWidget</extends>
<header>glwidget.h</header>
</customwidget>
+ <customwidget>
+ <class>QCustomPlot</class>
+ <extends>QWidget</extends>
+ <header>qcustomplot.h</header>
+ <container>1</container>
+ </customwidget>
</customwidgets>
<resources/>
<connections/>