2012-03-02 02:55:32 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ui version="4.0">
|
|
|
|
<class>Form</class>
|
|
|
|
<widget class="QWidget" name="Form">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
2017-09-14 04:04:43 +00:00
|
|
|
<width>821</width>
|
|
|
|
<height>578</height>
|
2012-03-02 02:55:32 +00:00
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="windowTitle">
|
Patch/window handling (#468)
* Do not wrap PlotView/ImageView
There is no need to wrap PlotView/ImageView into QMainWindow, since
only purpose of the QMainWindow is some default menu toolbar & menu
handling, that is not used by PyQtGraph anyway.
Moreover, every parent-less Qt widget can become window, so this
change just use PlotView/ImageView as windows, removing extra
complexity, eg. method forwarding, self.win property.
Another benefit of this change, it that these windows get initial
dimensions and titles as they were designed in .ui file.
* Properly cleanup on ImageView.close()
We should not close explicitly child widgets or clear scene, otherwise
Qt will deallocate children views, and cause "wrapped C/C++ object of
type ImageItem has been deleted" error next time we call close()
and/or some other methods.
All children, including self.ui.roiPlot, self.ui.graphicsView will be
closed together with its parent, so there is no need to close them
explicitly.
So the purpose of close it to reclaim the memory, but not to make the existing ImageView object dysfunctional.
* Remove references to plot & image windows after close
PyQtGraph images and plots module list variables are currently holding
references to all plots and image windows returned directly from main
module. This does not seem to be documented however, and causes the Qt
windows to be not released from memory, even if user releases all own
references.
This change removes the references from images/plots list once window
is closed, so when there is no other reference, window and all related
memory is reclaimed.
* Change all UI forms title from Form to PyQtGraph
Co-authored-by: Ogi Moore <ognyan.moore@gmail.com>
2020-06-01 18:23:18 +00:00
|
|
|
<string>PyQtGraph</string>
|
2012-03-02 02:55:32 +00:00
|
|
|
</property>
|
2017-09-14 04:04:43 +00:00
|
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
2012-03-02 02:55:32 +00:00
|
|
|
<property name="margin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item row="0" column="0">
|
|
|
|
<widget class="QSplitter" name="splitter">
|
|
|
|
<property name="orientation">
|
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
|
</property>
|
|
|
|
<widget class="GraphicsView" name="view"/>
|
2017-09-14 04:04:43 +00:00
|
|
|
<widget class="QSplitter" name="vsplitter">
|
|
|
|
<property name="orientation">
|
|
|
|
<enum>Qt::Vertical</enum>
|
|
|
|
</property>
|
|
|
|
<widget class="QWidget" name="canvasCtrlWidget" native="true">
|
|
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
|
|
<item row="0" column="0" colspan="2">
|
|
|
|
<widget class="QPushButton" name="autoRangeBtn">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>1</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Auto Range</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="1" column="0" colspan="2">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
|
|
|
<widget class="QCheckBox" name="redirectCheck">
|
|
|
|
<property name="toolTip">
|
|
|
|
<string>Check to display all local items in a remote canvas.</string>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Redirect</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="CanvasCombo" name="redirectCombo"/>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</item>
|
|
|
|
<item row="2" column="0" colspan="2">
|
|
|
|
<widget class="TreeWidget" name="itemList">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>100</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="headerHidden">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<column>
|
2012-04-21 19:54:17 +00:00
|
|
|
<property name="text">
|
2017-09-14 04:04:43 +00:00
|
|
|
<string notr="true">1</string>
|
2012-04-21 19:54:17 +00:00
|
|
|
</property>
|
2017-09-14 04:04:43 +00:00
|
|
|
</column>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="3" column="0" colspan="2">
|
|
|
|
<widget class="QPushButton" name="resetTransformsBtn">
|
|
|
|
<property name="text">
|
|
|
|
<string>Reset Transforms</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="4" column="0">
|
|
|
|
<widget class="QPushButton" name="mirrorSelectionBtn">
|
|
|
|
<property name="text">
|
|
|
|
<string>Mirror Selection</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="4" column="1">
|
|
|
|
<widget class="QPushButton" name="reflectSelectionBtn">
|
2012-03-02 02:55:32 +00:00
|
|
|
<property name="text">
|
2017-09-14 04:04:43 +00:00
|
|
|
<string>MirrorXY</string>
|
2012-03-02 02:55:32 +00:00
|
|
|
</property>
|
2017-09-14 04:04:43 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
<widget class="QWidget" name="canvasItemCtrl" native="true">
|
|
|
|
<layout class="QGridLayout" name="ctrlLayout">
|
|
|
|
<property name="margin">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="spacing">
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
2012-03-02 02:55:32 +00:00
|
|
|
</widget>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
<customwidgets>
|
|
|
|
<customwidget>
|
|
|
|
<class>TreeWidget</class>
|
|
|
|
<extends>QTreeWidget</extends>
|
2013-12-23 15:08:26 +00:00
|
|
|
<header>..widgets.TreeWidget</header>
|
2012-03-02 02:55:32 +00:00
|
|
|
</customwidget>
|
|
|
|
<customwidget>
|
|
|
|
<class>GraphicsView</class>
|
|
|
|
<extends>QGraphicsView</extends>
|
2013-12-23 15:08:26 +00:00
|
|
|
<header>..widgets.GraphicsView</header>
|
2012-03-02 02:55:32 +00:00
|
|
|
</customwidget>
|
|
|
|
<customwidget>
|
|
|
|
<class>CanvasCombo</class>
|
|
|
|
<extends>QComboBox</extends>
|
2016-11-11 02:24:47 +00:00
|
|
|
<header>.CanvasManager</header>
|
2012-03-02 02:55:32 +00:00
|
|
|
</customwidget>
|
|
|
|
</customwidgets>
|
|
|
|
<resources/>
|
|
|
|
<connections/>
|
|
|
|
</ui>
|