mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 15:20:02 +02:00
bug fix: time interval disabled when angular conversion disabled.solved
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@81 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
parent
87f79a9327
commit
887303c820
@ -564,6 +564,13 @@
|
|||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><nobr>
|
||||||
|
Exposure Time of a frame.
|
||||||
|
</nobr><br><nobr>
|
||||||
|
#exptime#
|
||||||
|
</nobr></string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Exposure Time:</string>
|
<string>Exposure Time:</string>
|
||||||
</property>
|
</property>
|
||||||
@ -581,8 +588,11 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Exposure time of each frame.
|
<string><nobr>
|
||||||
#exptime#</string>
|
Exposure Time of a frame.
|
||||||
|
</nobr><br><nobr>
|
||||||
|
#exptime#
|
||||||
|
</nobr></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
@ -612,6 +622,13 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><nobr>
|
||||||
|
Exposure Time of a frame.
|
||||||
|
</nobr><br><nobr>
|
||||||
|
#exptime#
|
||||||
|
</nobr></string>
|
||||||
|
</property>
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::LeftToRight</enum>
|
<enum>Qt::LeftToRight</enum>
|
||||||
</property>
|
</property>
|
||||||
@ -656,15 +673,11 @@
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><nobr>
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
Frame period between exposures.
|
||||||
p, li { white-space: pre-wrap; }
|
</nobr><br><nobr>
|
||||||
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
|
#period#
|
||||||
<table style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
</nobr></string>
|
||||||
<tr>
|
|
||||||
<td style="border: none;">
|
|
||||||
<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Frame period between exposures. </p>
|
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> #period#</p></td></tr></table></body></html></string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Acquisition Period:</string>
|
<string>Acquisition Period:</string>
|
||||||
@ -683,15 +696,11 @@ p, li { white-space: pre-wrap; }
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><nobr>
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
Frame period between exposures.
|
||||||
p, li { white-space: pre-wrap; }
|
</nobr><br><nobr>
|
||||||
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
|
#period#
|
||||||
<table style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
</nobr></string>
|
||||||
<tr>
|
|
||||||
<td style="border: none;">
|
|
||||||
<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Frame period between exposures. </p>
|
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> #period#</p></td></tr></table></body></html></string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
@ -719,15 +728,11 @@ p, li { white-space: pre-wrap; }
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><nobr>
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
Frame period between exposures.
|
||||||
p, li { white-space: pre-wrap; }
|
</nobr><br><nobr>
|
||||||
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
|
#period#
|
||||||
<table style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
</nobr></string>
|
||||||
<tr>
|
|
||||||
<td style="border: none;">
|
|
||||||
<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Frame period between exposures. </p>
|
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"> #period#</p></td></tr></table></body></html></string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="layoutDirection">
|
<property name="layoutDirection">
|
||||||
<enum>Qt::LeftToRight</enum>
|
<enum>Qt::LeftToRight</enum>
|
||||||
|
@ -6,7 +6,7 @@ UI_HEADERS_DIR = forms/include
|
|||||||
RESOURCES += icons.qrc
|
RESOURCES += icons.qrc
|
||||||
|
|
||||||
|
|
||||||
DEFINES += VERBOSE DACS_INT #VERYVERBOSE
|
DEFINES += VERBOSE DACS_INT VERYVERBOSE
|
||||||
|
|
||||||
|
|
||||||
target.path += $(DESTDIR)
|
target.path += $(DESTDIR)
|
||||||
|
@ -509,7 +509,7 @@ void qTabPlot::EnableScanBox(){
|
|||||||
bool checkedBefore = boxScan->isChecked();//||(!boxScan->isEnabled()));
|
bool checkedBefore = boxScan->isChecked();//||(!boxScan->isEnabled()));
|
||||||
|
|
||||||
int ang;
|
int ang;
|
||||||
//none of these scan plotting options make sense if positions>0
|
//none of these scan plotting options make sense if positions exists
|
||||||
bool positionsExist = myDet->getAngularConversion(ang);//myDet->getPositions();
|
bool positionsExist = myDet->getAngularConversion(ang);//myDet->getPositions();
|
||||||
|
|
||||||
//only now enable/disable
|
//only now enable/disable
|
||||||
@ -551,7 +551,7 @@ void qTabPlot::EnableScanBox(){
|
|||||||
if((positionsExist)&&(chkSuperimpose->isChecked())) chkSuperimpose->setChecked(false);
|
if((positionsExist)&&(chkSuperimpose->isChecked())) chkSuperimpose->setChecked(false);
|
||||||
chkSuperimpose->setEnabled(!positionsExist);
|
chkSuperimpose->setEnabled(!positionsExist);
|
||||||
//box frequency should be enabled cuz its a normal 1d plot
|
//box frequency should be enabled cuz its a normal 1d plot
|
||||||
boxFrequency->setEnabled(positionsExist);
|
//boxFrequency->setEnabled(positionsExist);
|
||||||
myPlot->EnableAnglePlot(positionsExist);
|
myPlot->EnableAnglePlot(positionsExist);
|
||||||
|
|
||||||
|
|
||||||
@ -688,8 +688,8 @@ void qTabPlot::Refresh(){
|
|||||||
#endif
|
#endif
|
||||||
if(!myPlot->isRunning()){
|
if(!myPlot->isRunning()){
|
||||||
connect(boxScan, SIGNAL(toggled(bool)), this, SLOT(EnableScanBox()));
|
connect(boxScan, SIGNAL(toggled(bool)), this, SLOT(EnableScanBox()));
|
||||||
SetFrequency();
|
|
||||||
EnableScanBox();
|
EnableScanBox();
|
||||||
|
SetFrequency();
|
||||||
}else{
|
}else{
|
||||||
disconnect(boxScan, SIGNAL(toggled(bool)), this, SLOT(EnableScanBox()));
|
disconnect(boxScan, SIGNAL(toggled(bool)), this, SLOT(EnableScanBox()));
|
||||||
boxScan->setEnabled(false);
|
boxScan->setEnabled(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user