Commit 190b7397 authored by Payno's avatar Payno

Add the empty widget of the four first process

parent b6d58b5a
......@@ -42,4 +42,5 @@ tmp*
dataset/
datasets/
*.egg-info*
*.log
\ No newline at end of file
*.log
*.log.*
\ No newline at end of file
from silx.gui import qt
from Orange.widgets.widget import OWWidget
class DataSelectionOW(OWWidget):
"""
"""
name = "Data selection"
icon = "icons/scanselector.svg"
want_main_area = False
ALPHA_CHAR = (b'\xce\xb1').decode('utf-8')
BETA_CHAR = (b'\xce\xb2').decode('utf-8')
def __init__(self):
super().__init__()
self._alphaAngle = AnglesInfoWidget(parent=self, name=self.ALPHA_CHAR)
self._betaAngle = AnglesInfoWidget(parent=self, name=self.BETA_CHAR)
self.controlArea.layout().addWidget(self._alphaAngle)
self.controlArea.layout().addWidget(self._betaAngle)
self._folderWidget = FolderWidget(parent=self)
self.controlArea.layout().addWidget(self._folderWidget)
self.controlArea.layout().setSpacing(0)
class AnglesInfoWidget(qt.QWidget):
def __init__(self, parent=None, name=None):
qt.QWidget.__init__(self, parent)
self.setLayout(qt.QHBoxLayout())
# self.layout().setContentsMargins(0, 0, 0, 0)
self._qlabel = qt.QLabel('n %s angles = ' % name, parent=self)
self.layout().addWidget(self._qlabel)
self._qlenangles = qt.QLineEdit('', parent=self)
self.layout().addWidget(self._qlenangles)
self.layout().addWidget(qt.QLabel('from: ', parent=self))
self._qlefrom = qt.QLineEdit('', parent=self)
self.layout().addWidget(self._qlefrom)
self.layout().addWidget(qt.QLabel('to: ', parent=self))
self._qleto = qt.QLineEdit('', parent=self)
self.layout().addWidget(self._qleto)
class FolderWidget(qt.QWidget):
def __init__(self, parent=None):
qt.QWidget.__init__(self, parent)
self.setLayout(qt.QHBoxLayout())
# self.layout().setContentsMargins(0, 0, 0, 0)
self.layout().addWidget(qt.QLabel('data folder:'))
self._folderLE = qt.QLineEdit('', parent=self)
self.layout().addWidget(self._folderLE)
self._folderPB = qt.QPushButton('select folder', parent=self)
self.layout().addWidget(self._folderPB)
def _selectFolderCallback(self):
dialog = qt.QFileDialog(self)
dialog.setFileMode(qt.QFileDialog.DirectoryOnly)
if not dialog.exec_() or (len(dialog.selectedFiles()) < 1):
dialog.close()
return
self._qteFolderSelected.setText(dialog.selectedFiles()[0])
from silx.gui import qt
from Orange.widgets.widget import OWWidget
class FitOW(OWWidget):
"""
"""
name = "Fit"
icon = "icons/math-fit.svg"
want_main_area = False
def __init__(self):
super().__init__()
label = qt.QLabel("fit")
self.controlArea.layout().addWidget(label)
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="m5.389 25.291c1.58-0.508 1.812-2.553 2.157-3.945 0.386-1.556 1.273-1.214 2.263-2.038 0.688-0.573 0.899-1.425 0.95-2.313 0.042-0.741-0.152-3.181 0.782-3.454 0.318-0.092 0.664-0.102 0.965-0.255 0.843-0.43 1.344-1.121 1.679-2.019 0.255-0.686 0.463-1.369 0.655-2.074 0.03-0.11 1.031-3.262 1.374-2.735 1.012 1.557 1.44 3.84 1.949 5.601 0.467 1.616 0.819 3.259 1.312 4.869 0.223 0.728 0.394 1.828 1.124 2.255 1.383 0.811 1.77-1.7 1.924-2.377 0.246-1.075 0.345-1.811 0.732-0.343 0.3 1.136 0.448 2.319 0.637 3.477 0.226 1.388 0.626 3.463 1.515 4.559 0.089 0.11 0.305 0.171 0.438 0.116 0.787-0.324 0.642-2.325 1.354-0.873 0.313 0.641 0.516 1.625 1.247 1.912 0.54 0.213 0.772-0.658 0.238-0.867-0.869-0.342-0.671-3.279-2.23-2.851-0.671 0.185-0.841 1.305-0.97 1.82 0.32-1.277-0.408-2.326-0.656-3.659-0.226-1.215-0.218-5.231-1.676-5.757-0.453-0.164-0.721 0.077-0.967 0.44-0.239 0.353-0.314 0.894-0.416 1.295-0.056 0.224-0.622 3.16-1.157 1.405-1.157-3.8-1.675-8.486-3.87-11.864-1.414-2.176-2.873 3.723-2.96 4.045-0.374 1.378-0.894 2.683-2.477 3.011-0.307 0.063-0.67 0.193-0.897 0.421-1.402 1.402 0.693 4.751-1.486 5.647-0.974 0.4-1.453 0.299-1.934 1.379-0.503 1.128-0.444 3.855-1.834 4.303-0.554 0.179-0.319 1.048 0.235 0.869z" fill="#ed1c24"/><path d="m8.904 16.8h4.941v1.5h-3.106v1.847h2.903v1.487h-2.903v3.25h-1.835v-8.084z"/><path d="m17.063 16.8v8.083h-1.835v-8.083h1.835z"/><path d="m20.207 18.336h-2.171v-1.536h6.213v1.536h-2.207v6.548h-1.835v-6.548z"/></svg>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg2"
sodipodi:docname="scanselector.svg"
height="31px"
sodipodi:version="0.32"
width="36px"
version="1.1"
inkscape:version="0.48.5 r10040">
<defs
id="defs8">
<marker
inkscape:stockid="Arrow1Send"
orient="auto"
refY="0.0"
refX="0.0"
id="Arrow1Send"
style="overflow:visible;">
<path
id="path3806"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;"
transform="scale(0.2) rotate(180) translate(6,0)" />
</marker>
<marker
inkscape:stockid="Arrow2Mend"
orient="auto"
refY="0.0"
refX="0.0"
id="Arrow2Mend"
style="overflow:visible;">
<path
id="path3818"
style="fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;"
d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
transform="scale(0.6) rotate(180) translate(0,0)" />
</marker>
<marker
inkscape:stockid="Arrow2Sstart"
orient="auto"
refY="0.0"
refX="0.0"
id="Arrow2Sstart"
style="overflow:visible">
<path
id="path3821"
style="fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round"
d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
transform="scale(0.3) translate(-2.3,0)" />
</marker>
<marker
inkscape:stockid="Arrow2Lend"
orient="auto"
refY="0.0"
refX="0.0"
id="Arrow2Lend"
style="overflow:visible;">
<path
id="path3812"
style="fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;"
d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
transform="scale(1.1) rotate(180) translate(1,0)" />
</marker>
<marker
inkscape:stockid="Arrow2Lstart"
orient="auto"
refY="0.0"
refX="0.0"
id="Arrow2Lstart"
style="overflow:visible">
<path
id="path3809"
style="fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round"
d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
transform="scale(1.1) translate(1,0)" />
</marker>
<linearGradient
id="linearGradient3788">
<stop
style="stop-color:#dfd4d4;stop-opacity:0.69565219;"
offset="0"
id="stop3790" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop3792" />
</linearGradient>
<linearGradient
id="linearGradient3753">
<stop
style="stop-color:#dedde8;stop-opacity:1;"
offset="0"
id="stop3755" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop3757" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3753"
id="linearGradient3769"
x1="3.5068505"
y1="25.745764"
x2="12.781284"
y2="25.745764"
gradientUnits="userSpaceOnUse" />
<filter
inkscape:collect="always"
id="filter3784">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.10012024"
id="feGaussianBlur3786" />
</filter>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3788"
id="radialGradient3794"
cx="13.792373"
cy="20.622881"
fx="13.792373"
fy="20.622881"
r="6.9237847"
gradientTransform="matrix(1,0,0,1.0948585,0,-1.9562553)"
gradientUnits="userSpaceOnUse" />
<filter
color-interpolation-filters="sRGB"
inkscape:collect="always"
id="filter3784-4">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.10012024"
id="feGaussianBlur3786-8" />
</filter>
<filter
color-interpolation-filters="sRGB"
inkscape:collect="always"
id="filter3784-3">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.10012024"
id="feGaussianBlur3786-6" />
</filter>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient3788"
id="radialGradient3055"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,1.0948585,0,-1.9562553)"
cx="13.792373"
cy="20.622881"
fx="13.792373"
fy="20.622881"
r="6.9237847" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3753"
id="linearGradient3057"
gradientUnits="userSpaceOnUse"
x1="3.5068505"
y1="25.745764"
x2="12.781284"
y2="25.745764" />
<linearGradient
id="linearGradient3788-3">
<stop
style="stop-color:#dfd4d4;stop-opacity:0.69565219;"
offset="0"
id="stop3790-7" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop3792-2" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3753-2"
id="linearGradient3057-7"
gradientUnits="userSpaceOnUse"
x1="3.5068505"
y1="25.745764"
x2="12.781284"
y2="25.745764" />
<linearGradient
id="linearGradient3753-2">
<stop
style="stop-color:#dedde8;stop-opacity:1;"
offset="0"
id="stop3755-0" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop3757-7" />
</linearGradient>
</defs>
<sodipodi:namedview
id="base"
bordercolor="#666666"
pagecolor="#ffffff"
borderopacity="1.0"
showguides="true"
showgrid="false"
inkscape:zoom="7.6129032"
inkscape:cx="-13.125533"
inkscape:cy="20.462548"
inkscape:window-width="1920"
inkscape:window-height="1098"
inkscape:window-x="0"
inkscape:window-y="31"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<metadata
id="metadata4">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1">
<path
style="fill:#e4ff07;fill-opacity:1;stroke:#000000;stroke-width:0.20000000000000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter3784);opacity:0.5"
inkscape:connector-curvature="0"
id="rect1363"
d="m 24.782302,1.4531009 0.968,1.7107 h -11.836 l 0.839,-1.7107 h 10.029 z m 3.394,2.1159 V 18.513 H 5.1883039 l -2e-4,-14.9439991 22.9879981,2e-4 z"
sodipodi:nodetypes="cccccccccc" />
<path
style="fill:#e4ff07;fill-opacity:1;stroke:#a10000;stroke-width:0.5;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter3784-4)"
inkscape:connector-curvature="0"
id="rect1363-5"
d="m 28.328912,4.7369995 0.968,1.7106998 h -11.836 l 0.839,-1.7106998 h 10.029 z m 3.394,2.1158998 V 21.796898 H 8.7349139 l -2e-4,-14.9439987 22.9879981,2e-4 z"
sodipodi:nodetypes="cccccccccc" />
<path
style="fill:#e4ff07;fill-opacity:1;stroke:#000000;stroke-width:0.20000000000000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;filter:url(#filter3784-3);opacity:0.5"
inkscape:connector-curvature="0"
id="rect1363-59"
d="m 31.218743,8.6776774 0.968,1.7107006 h -11.836 l 0.839,-1.7107006 h 10.029 z m 3.394,2.1159006 V 25.737577 H 11.624745 l -2e-4,-14.943999 22.987998,2e-4 z"
sodipodi:nodetypes="cccccccccc" />
<g
id="g3836">
<path
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.20000005;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"
d="M 9.03125,16.28125 1,24.9375 1.875,25.75 l 8.03125,-8.65625 -0.875,-0.8125 z"
id="path3017"
inkscape:connector-curvature="0" />
<path
d="M 3.0640604,19.320904 10.527851,15.507271 7.3128104,23.24778 C 6.9115956,21.165633 5.190676,19.584947 3.0640604,19.320904 z"
style="fill-rule:evenodd;stroke-width:0.625;stroke-linejoin:round"
id="path3842"
inkscape:connector-curvature="0" />
</g>
</g>
</svg>
This diff is collapsed.
from PyQt4 import QtCore, QtGui
from Orange.widgets.widget import OWWidget
from Orange.widgets import gui
class MyWidget(OWWidget):
# Widget needs a name, or it is considered an abstract widget
# and not shown in the menu.
name = "Hello World"
icon = "icons/mywidget.svg"
want_main_area = False
def __init__(self):
super().__init__()
label = QtGui.QLabel("Hello, World!")
self.controlArea.layout().addWidget(
label, QtCore.Qt.AlignCenter | QtCore.Qt.AlignVCenter)
from silx.gui import qt
from Orange.widgets.widget import OWWidget
class RoiSelectionOW(OWWidget):
"""
"""
name = "ROI selection"
icon = "icons/image-select-box.svg"
want_main_area = False
def __init__(self):
super().__init__()
label = qt.QLabel("roi selection")
self.controlArea.layout().addWidget(label)
from silx.gui import qt
from Orange.widgets.widget import OWWidget
class ShiftCorrectionOW(OWWidget):
"""
"""
name = "Shift correction"
icon = "icons/shift_correction.svg"
want_main_area = False
def __init__(self):
super().__init__()
label = qt.QLabel("shift correction")
self.controlArea.layout().addWidget(label)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment