Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tomwer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tomotools
tomwer
Commits
cc700e66
Commit
cc700e66
authored
7 years ago
by
lbs051
Browse files
Options
Downloads
Patches
Plain Diff
fix enable control scan validator
parent
94046bc0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
orangecontrib/tomwer/qwidgets/stackplot.py
+7
-4
7 additions, 4 deletions
orangecontrib/tomwer/qwidgets/stackplot.py
orangecontrib/tomwer/qwidgets/viewerQWidget.py
+18
-13
18 additions, 13 deletions
orangecontrib/tomwer/qwidgets/viewerQWidget.py
with
25 additions
and
17 deletions
orangecontrib/tomwer/qwidgets/stackplot.py
+
7
−
4
View file @
cc700e66
...
@@ -350,10 +350,13 @@ class _QImageFileStackPlot(_QImageStackPlot):
...
@@ -350,10 +350,13 @@ class _QImageFileStackPlot(_QImageStackPlot):
def
_updatefileName
(
self
):
def
_updatefileName
(
self
):
imageIndex
=
self
.
_qslider
.
value
()
imageIndex
=
self
.
_qslider
.
value
()
assert
imageIndex
in
self
.
_indexToFile
if
imageIndex
not
in
self
.
_indexToFile
:
imageName
=
self
.
_indexToFile
[
imageIndex
]
# TODO henri : raise error ? why not in the index file.
self
.
_qlFileName
.
setText
(
os
.
path
.
basename
(
imageName
))
return
self
.
_qlFileName
.
setToolTip
(
imageName
)
else
:
imageName
=
self
.
_indexToFile
[
imageIndex
]
self
.
_qlFileName
.
setText
(
os
.
path
.
basename
(
imageName
))
self
.
_qlFileName
.
setToolTip
(
imageName
)
def
main
():
def
main
():
...
...
This diff is collapsed.
Click to expand it.
orangecontrib/tomwer/qwidgets/viewerQWidget.py
+
18
−
13
View file @
cc700e66
...
@@ -356,36 +356,41 @@ class ValidationWidget(qt.QGroupBox):
...
@@ -356,36 +356,41 @@ class ValidationWidget(qt.QGroupBox):
self
.
setLayout
(
layout
)
self
.
setLayout
(
layout
)
# validate button
# validate button
validateButton
=
qt
.
QPushButton
(
'
Validate
'
)
self
.
validateButton
=
qt
.
QPushButton
(
'
Validate
'
)
style
=
qt
.
QApplication
.
style
()
style
=
qt
.
QApplication
.
style
()
validateButton
.
setIcon
(
style
.
standardIcon
(
qt
.
QStyle
.
SP_DialogApplyButton
))
self
.
validateButton
.
setIcon
(
style
.
standardIcon
(
qt
.
QStyle
.
SP_DialogApplyButton
))
validateButton
.
pressed
.
connect
(
self
.
__validated
)
self
.
validateButton
.
pressed
.
connect
(
self
.
__validated
)
layout
.
addWidget
(
validateButton
,
0
,
2
)
layout
.
addWidget
(
self
.
validateButton
,
0
,
2
)
spacer
=
qt
.
QWidget
(
self
)
spacer
=
qt
.
QWidget
(
self
)
spacer
.
setSizePolicy
(
qt
.
QSizePolicy
.
Expanding
,
qt
.
QSizePolicy
.
Minimum
)
spacer
.
setSizePolicy
(
qt
.
QSizePolicy
.
Expanding
,
qt
.
QSizePolicy
.
Minimum
)
layout
.
addWidget
(
spacer
,
0
,
1
)
layout
.
addWidget
(
spacer
,
0
,
1
)
# cancel button
# cancel button
cancelButton
=
qt
.
QPushButton
(
'
Cancel
'
)
self
.
cancelButton
=
qt
.
QPushButton
(
'
Cancel
'
)
cancelButton
.
setIcon
(
style
.
standardIcon
(
qt
.
QStyle
.
SP_DialogCancelButton
))
self
.
cancelButton
.
setIcon
(
style
.
standardIcon
(
qt
.
QStyle
.
SP_DialogCancelButton
))
cancelButton
.
pressed
.
connect
(
self
.
__canceled
)
self
.
cancelButton
.
pressed
.
connect
(
self
.
__canceled
)
layout
.
addWidget
(
cancelButton
,
0
,
0
)
layout
.
addWidget
(
self
.
cancelButton
,
0
,
0
)
# for now this button is hidden because the behavior haven't been
# for now this button is hidden because the behavior haven't been
# clearly defined
# clearly defined
cancelButton
.
hide
()
self
.
cancelButton
.
hide
()
# change reconstruction parameters button
# change reconstruction parameters button
changeReconsParamButton
=
qt
.
QPushButton
(
'
Change reconstruction parameters
'
)
self
.
changeReconsParamButton
=
qt
.
QPushButton
(
'
Change reconstruction parameters
'
)
changeReconsParamButton
.
setIcon
(
style
.
standardIcon
(
qt
.
QStyle
.
SP_FileDialogContentsView
))
self
.
changeReconsParamButton
.
setIcon
(
style
.
standardIcon
(
qt
.
QStyle
.
SP_FileDialogContentsView
))
changeReconsParamButton
.
pressed
.
connect
(
self
.
__updateReconstructionParameters
)
self
.
changeReconsParamButton
.
pressed
.
connect
(
self
.
__updateReconstructionParameters
)
layout
.
addWidget
(
changeReconsParamButton
,
2
,
0
)
layout
.
addWidget
(
self
.
changeReconsParamButton
,
2
,
0
)
# redo acquisition button
# redo acquisition button
# redoAcquisitionButton = qt.QPushButton('Redo acquisition')
# redoAcquisitionButton = qt.QPushButton('Redo acquisition')
# redoAcquisitionButton.setIcon(style.standardIcon(qt.QStyle.SP_MediaSkipBackward))
# redoAcquisitionButton.setIcon(style.standardIcon(qt.QStyle.SP_MediaSkipBackward))
# redoAcquisitionButton.pressed.connect(self.__redoacquisition)
# redoAcquisitionButton.pressed.connect(self.__redoacquisition)
# layout.addWidget(redoAcquisitionButton, 3, 0)
# layout.addWidget(redoAcquisitionButton, 3, 0)
def
setEnabled
(
self
,
b
):
self
.
validateButton
.
setEnabled
(
b
)
self
.
cancelButton
.
setEnabled
(
b
)
self
.
changeReconsParamButton
.
setEnabled
(
b
)
def
__validated
(
self
):
def
__validated
(
self
):
"""
Callback when the validate button is pushed
"""
"""
Callback when the validate button is pushed
"""
...
...
This diff is collapsed.
Click to expand it.
payno
@payno
mentioned in issue
#145 (closed)
·
7 years ago
mentioned in issue
#145 (closed)
mentioned in issue #145
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment