mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-12 15:32:13 +02:00
removed compression from gui in expert mode
This commit is contained in:
parent
409519a3db
commit
52a9303a5e
@ -57,7 +57,7 @@
|
|||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QCheckBox" name="chkTenGiga">
|
<widget class="QCheckBox" name="chkUnused">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -69,21 +69,7 @@ Compression using Root. Available only for Gotthard in Expert Mode.
|
|||||||
</nobr></string>
|
</nobr></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>10GbE</string>
|
<string>Unused</string>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QCheckBox" name="chkCompression">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string><nobr>
|
|
||||||
Compression using Root. Available only for Gotthard in Expert Mode.
|
|
||||||
</nobr><br><nobr>
|
|
||||||
#r_compression#
|
|
||||||
</nobr></string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Compression</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -104,6 +90,23 @@ Compression using Root. Available only for Gotthard in Expert Mode.
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QCheckBox" name="chkTenGiga">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><nobr>
|
||||||
|
Compression using Root. Available only for Gotthard in Expert Mode.
|
||||||
|
</nobr><br><nobr>
|
||||||
|
#r_compression#
|
||||||
|
</nobr></string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>10GbE</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="gridLayoutWidget_2">
|
<widget class="QWidget" name="gridLayoutWidget_2">
|
||||||
|
@ -45,12 +45,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
int VerifyOutputDirectory();
|
int VerifyOutputDirectory();
|
||||||
|
|
||||||
/** To enable expert mode
|
|
||||||
* @param enable to enable if true
|
|
||||||
*/
|
|
||||||
void SetExpertMode(bool enable);
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/** The sls detector object */
|
/** The sls detector object */
|
||||||
multiSlsDetector *myDet;
|
multiSlsDetector *myDet;
|
||||||
@ -86,9 +80,6 @@ private:
|
|||||||
*/
|
*/
|
||||||
void PopulateDetectors();
|
void PopulateDetectors();
|
||||||
|
|
||||||
/** Get Compression */
|
|
||||||
void GetCompression();
|
|
||||||
|
|
||||||
/** update speed */
|
/** update speed */
|
||||||
void UpdateSpeedFromServer();
|
void UpdateSpeedFromServer();
|
||||||
|
|
||||||
@ -140,9 +131,6 @@ void SetOutputDir();
|
|||||||
/** set output directory*/
|
/** set output directory*/
|
||||||
void GetOutputDir();
|
void GetOutputDir();
|
||||||
|
|
||||||
/** set compression */
|
|
||||||
void SetCompression(bool enable);
|
|
||||||
|
|
||||||
/** enable 10GbE */
|
/** enable 10GbE */
|
||||||
void EnableTenGigabitEthernet(bool enable, int get=0);
|
void EnableTenGigabitEthernet(bool enable, int get=0);
|
||||||
|
|
||||||
|
@ -417,7 +417,6 @@ void qDetectorMain::EnableModes(QAction *action){
|
|||||||
actionSaveCalibration->setVisible(enable);
|
actionSaveCalibration->setVisible(enable);
|
||||||
tab_measurement->SetExpertMode(enable);
|
tab_measurement->SetExpertMode(enable);
|
||||||
tab_settings->SetExpertMode(enable);
|
tab_settings->SetExpertMode(enable);
|
||||||
tab_dataoutput->SetExpertMode(enable);
|
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "Setting Expert Mode to " << enable << endl;
|
cout << "Setting Expert Mode to " << enable << endl;
|
||||||
#endif
|
#endif
|
||||||
|
@ -80,8 +80,8 @@ void qTabDataOutput::SetupWidgetWindow(){
|
|||||||
outDirTip = lblOutputDir->toolTip();
|
outDirTip = lblOutputDir->toolTip();
|
||||||
|
|
||||||
|
|
||||||
//expert mode is not enabled initially
|
//not used at all, later used for gappixels
|
||||||
chkCompression->setEnabled(false);
|
chkUnused->setEnabled(false);
|
||||||
|
|
||||||
//enabling file format depending on detector type
|
//enabling file format depending on detector type
|
||||||
SetupFileFormat();
|
SetupFileFormat();
|
||||||
@ -167,8 +167,6 @@ void qTabDataOutput::Initialization(){
|
|||||||
connect(chkAngular, SIGNAL(toggled(bool)), this, SLOT(SetAngularCorrection()));
|
connect(chkAngular, SIGNAL(toggled(bool)), this, SLOT(SetAngularCorrection()));
|
||||||
//discard bad channels
|
//discard bad channels
|
||||||
connect(chkDiscardBad, SIGNAL(toggled(bool)), this, SLOT(DiscardBadChannels()));
|
connect(chkDiscardBad, SIGNAL(toggled(bool)), this, SLOT(DiscardBadChannels()));
|
||||||
//compression
|
|
||||||
connect(chkCompression, SIGNAL(toggled(bool)), this, SLOT(SetCompression(bool)));
|
|
||||||
//10GbE
|
//10GbE
|
||||||
connect(chkTenGiga, SIGNAL(toggled(bool)), this, SLOT(EnableTenGigabitEthernet(bool)));
|
connect(chkTenGiga, SIGNAL(toggled(bool)), this, SLOT(EnableTenGigabitEthernet(bool)));
|
||||||
|
|
||||||
@ -186,18 +184,6 @@ void qTabDataOutput::Initialization(){
|
|||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::SetExpertMode(bool enable){
|
|
||||||
if((detType == slsDetectorDefs::GOTTHARD) || (detType == slsDetectorDefs::MOENCH)){
|
|
||||||
chkCompression->setEnabled(enable);
|
|
||||||
GetCompression();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::BrowseOutputDir()
|
void qTabDataOutput::BrowseOutputDir()
|
||||||
{
|
{
|
||||||
QString directory = QFileDialog::getExistingDirectory(this,tr("Choose Output Directory "),dispOutputDir->text());
|
QString directory = QFileDialog::getExistingDirectory(this,tr("Choose Output Directory "),dispOutputDir->text());
|
||||||
@ -737,34 +723,6 @@ void qTabDataOutput::SetOutputDir(){
|
|||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::GetCompression(){
|
|
||||||
disconnect(chkCompression, SIGNAL(toggled(bool)), this, SLOT(SetCompression(bool)));
|
|
||||||
int ret = myDet->enableReceiverCompression();
|
|
||||||
if(ret > 0) chkCompression->setChecked(true);
|
|
||||||
else chkCompression->setChecked(false);
|
|
||||||
connect(chkCompression, SIGNAL(toggled(bool)), this, SLOT(SetCompression(bool)));
|
|
||||||
|
|
||||||
qDefs::checkErrorMessage(myDet,"qTabDataOutput::GetCompression");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::SetCompression(bool enable){
|
|
||||||
disconnect(chkCompression, SIGNAL(toggled(bool)), this, SLOT(SetCompression(bool)));
|
|
||||||
int ret = myDet->enableReceiverCompression(enable);
|
|
||||||
if(ret > 0) chkCompression->setChecked(true);
|
|
||||||
else chkCompression->setChecked(false);
|
|
||||||
connect(chkCompression, SIGNAL(toggled(bool)), this, SLOT(SetCompression(bool)));
|
|
||||||
|
|
||||||
qDefs::checkErrorMessage(myDet,"qTabDataOutput::SetCompression");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
void qTabDataOutput::EnableTenGigabitEthernet(bool enable,int get){
|
void qTabDataOutput::EnableTenGigabitEthernet(bool enable,int get){
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << endl << "Enabling/Disabling 10GbE" << endl;
|
cout << endl << "Enabling/Disabling 10GbE" << endl;
|
||||||
@ -1102,14 +1060,6 @@ void qTabDataOutput::Refresh(){
|
|||||||
btnOutputBrowse->setToolTip(dispOutputDir->toolTip());
|
btnOutputBrowse->setToolTip(dispOutputDir->toolTip());
|
||||||
}
|
}
|
||||||
|
|
||||||
//getting compression
|
|
||||||
if(chkCompression->isEnabled()){
|
|
||||||
#ifdef VERBOSE
|
|
||||||
cout << "Getting compression" << endl;
|
|
||||||
#endif
|
|
||||||
GetCompression();
|
|
||||||
}
|
|
||||||
|
|
||||||
//getting 10GbE
|
//getting 10GbE
|
||||||
if(chkTenGiga->isEnabled()){
|
if(chkTenGiga->isEnabled()){
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user