mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-03 03:10:04 +02:00
the scans work
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@39 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
parent
ee3a54601c
commit
51e7feb605
@ -232,6 +232,11 @@
|
|||||||
<addaction name="actionOpenConfiguration"/>
|
<addaction name="actionOpenConfiguration"/>
|
||||||
<addaction name="actionSaveConfiguration"/>
|
<addaction name="actionSaveConfiguration"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
|
<addaction name="actionLoadTrimbits"/>
|
||||||
|
<addaction name="actionSaveTrimbits"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
|
<addaction name="actionLoadCalibration"/>
|
||||||
|
<addaction name="actionSaveCalibration"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuModes">
|
<widget class="QMenu" name="menuModes">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
@ -380,7 +385,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
</widget>
|
</widget>
|
||||||
<action name="actionOpenSetup">
|
<action name="actionOpenSetup">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Open Setup</string>
|
<string>Load &Setup</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font/>
|
<font/>
|
||||||
@ -388,7 +393,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionSaveSetup">
|
<action name="actionSaveSetup">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Save Setup</string>
|
<string>Save &Setup</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font/>
|
<font/>
|
||||||
@ -401,12 +406,12 @@ p, li { white-space: pre-wrap; }
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionOpenConfiguration">
|
<action name="actionOpenConfiguration">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Open Configuration</string>
|
<string>Load &Configuration</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionSaveConfiguration">
|
<action name="actionSaveConfiguration">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Save Configuration</string>
|
<string>Save &Configuration</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionEnergyCalibration">
|
<action name="actionEnergyCalibration">
|
||||||
@ -481,6 +486,26 @@ p, li { white-space: pre-wrap; }
|
|||||||
<string>&Dockable Windows</string>
|
<string>&Dockable Windows</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionLoadTrimbits">
|
||||||
|
<property name="text">
|
||||||
|
<string>Load &Trimbits</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionSaveTrimbits">
|
||||||
|
<property name="text">
|
||||||
|
<string>Save &Trimbits</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionLoadCalibration">
|
||||||
|
<property name="text">
|
||||||
|
<string>Load C&alibration</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionSaveCalibration">
|
||||||
|
<property name="text">
|
||||||
|
<string>Save C&alibration</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
|
@ -147,6 +147,10 @@ void qDetectorMain::SetUpWidgetWindow(){
|
|||||||
tabs->setTabEnabled(Debugging,false);
|
tabs->setTabEnabled(Debugging,false);
|
||||||
//beamline mode to false
|
//beamline mode to false
|
||||||
tabs->setTabEnabled(Advanced,false);
|
tabs->setTabEnabled(Advanced,false);
|
||||||
|
actionLoadTrimbits->hide();
|
||||||
|
actionSaveTrimbits->hide();
|
||||||
|
actionLoadCalibration->hide();
|
||||||
|
actionSaveCalibration->hide();
|
||||||
dockWidgetPlot->setFloating(false);
|
dockWidgetPlot->setFloating(false);
|
||||||
dockWidgetPlot->setFeatures(QDockWidget::NoDockWidgetFeatures);
|
dockWidgetPlot->setFeatures(QDockWidget::NoDockWidgetFeatures);
|
||||||
tabs->setTabEnabled(Developer,isDeveloper);
|
tabs->setTabEnabled(Developer,isDeveloper);
|
||||||
@ -271,6 +275,17 @@ void qDetectorMain::EnableModes(QAction *action){
|
|||||||
else if(action==actionExpert){
|
else if(action==actionExpert){
|
||||||
enable = actionExpert->isChecked();
|
enable = actionExpert->isChecked();
|
||||||
tabs->setTabEnabled(Advanced,enable);
|
tabs->setTabEnabled(Advanced,enable);
|
||||||
|
if(enable){
|
||||||
|
actionLoadTrimbits->show();
|
||||||
|
actionSaveTrimbits->show();
|
||||||
|
actionLoadCalibration->show();
|
||||||
|
actionSaveCalibration->show();
|
||||||
|
}else{
|
||||||
|
actionLoadTrimbits->hide();
|
||||||
|
actionSaveTrimbits->hide();
|
||||||
|
actionLoadCalibration->hide();
|
||||||
|
actionSaveCalibration->hide();
|
||||||
|
}
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "Setting Expert Mode to " << enable << endl;
|
cout << "Setting Expert Mode to " << enable << endl;
|
||||||
#endif
|
#endif
|
||||||
@ -299,7 +314,7 @@ void qDetectorMain::ExecuteUtilities(QAction *action){
|
|||||||
|
|
||||||
if(action==actionOpenSetup){
|
if(action==actionOpenSetup){
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "Opening Setup" << endl;
|
cout << "Loading Setup" << endl;
|
||||||
#endif
|
#endif
|
||||||
QString fName = QString(myDet->getFilePath().c_str());
|
QString fName = QString(myDet->getFilePath().c_str());
|
||||||
fName = QFileDialog::getOpenFileName(this,
|
fName = QFileDialog::getOpenFileName(this,
|
||||||
@ -332,7 +347,7 @@ void qDetectorMain::ExecuteUtilities(QAction *action){
|
|||||||
}
|
}
|
||||||
else if(action==actionOpenConfiguration){
|
else if(action==actionOpenConfiguration){
|
||||||
#ifdef VERBOSE
|
#ifdef VERBOSE
|
||||||
cout << "Opening Configuration" << endl;
|
cout << "Loading Configuration" << endl;
|
||||||
#endif
|
#endif
|
||||||
QString fName = QString(myDet->getFilePath().c_str());
|
QString fName = QString(myDet->getFilePath().c_str());
|
||||||
fName = QFileDialog::getOpenFileName(this,
|
fName = QFileDialog::getOpenFileName(this,
|
||||||
@ -477,14 +492,30 @@ void qDetectorMain::EnableTabs(){
|
|||||||
if(enable==false){
|
if(enable==false){
|
||||||
tabs->setTabEnabled(Debugging,enable);
|
tabs->setTabEnabled(Debugging,enable);
|
||||||
tabs->setTabEnabled(Advanced,enable);
|
tabs->setTabEnabled(Advanced,enable);
|
||||||
|
actionLoadTrimbits->hide();
|
||||||
|
actionSaveTrimbits->hide();
|
||||||
|
actionLoadCalibration->hide();
|
||||||
|
actionSaveCalibration->hide();
|
||||||
tabs->setTabEnabled(Developer,enable);
|
tabs->setTabEnabled(Developer,enable);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
// enable these tabs only if they were enabled earlier
|
// enable these tabs only if they were enabled earlier
|
||||||
if(actionDebug->isChecked())
|
if(actionDebug->isChecked())
|
||||||
tabs->setTabEnabled(Debugging,enable);
|
tabs->setTabEnabled(Debugging,enable);
|
||||||
if(actionExpert->isChecked())
|
if(actionExpert->isChecked()){
|
||||||
tabs->setTabEnabled(Advanced,enable);
|
tabs->setTabEnabled(Advanced,enable);
|
||||||
|
if(enable){
|
||||||
|
actionLoadTrimbits->show();
|
||||||
|
actionSaveTrimbits->show();
|
||||||
|
actionLoadCalibration->show();
|
||||||
|
actionSaveCalibration->show();
|
||||||
|
}else{
|
||||||
|
actionLoadTrimbits->hide();
|
||||||
|
actionSaveTrimbits->hide();
|
||||||
|
actionLoadCalibration->hide();
|
||||||
|
actionSaveCalibration->hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
if(isDeveloper)
|
if(isDeveloper)
|
||||||
tabs->setTabEnabled(Developer,enable);
|
tabs->setTabEnabled(Developer,enable);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user