mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
WIP
This commit is contained in:
@ -1,91 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include "qDefs.h"
|
||||
|
||||
#include "ui_form_tab_settings.h"
|
||||
|
||||
class multiSlsDetector;
|
||||
|
||||
/**
|
||||
*@short sets up the Settings parameters
|
||||
*/
|
||||
class qTabSettings: public QWidget, private Ui::TabSettingsObject{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/**
|
||||
* The constructor
|
||||
* @param parent is the parent tab widget
|
||||
* @param detector is the detector returned from the detector tab
|
||||
*/
|
||||
qTabSettings(QWidget *parent, multiSlsDetector* detector);
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
~qTabSettings();
|
||||
|
||||
/**
|
||||
* Refresh and update widgets
|
||||
*/
|
||||
void Refresh();
|
||||
|
||||
|
||||
private slots:
|
||||
/**
|
||||
* Set settings according to selection
|
||||
* @param index index of selection
|
||||
*/
|
||||
void SetSettings(int index);
|
||||
|
||||
/**
|
||||
* Set dynamic range if possible
|
||||
* @param index selection
|
||||
*/
|
||||
void SetDynamicRange(int index);
|
||||
|
||||
/**
|
||||
* Set threshold energy
|
||||
* @param index selection
|
||||
*/
|
||||
void SetThresholdEnergy(int index);
|
||||
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* Sets up the widget
|
||||
*/
|
||||
void SetupWidgetWindow();
|
||||
|
||||
/**
|
||||
* Sets up the detector settings
|
||||
*/
|
||||
void SetupDetectorSettings();
|
||||
|
||||
/**
|
||||
* Sets up all the slots and signals
|
||||
*/
|
||||
void Initialization();
|
||||
|
||||
/**
|
||||
* Get Settings
|
||||
*/
|
||||
void GetSettings();
|
||||
|
||||
/**
|
||||
* Gets the dynamic range and sets it on the gui
|
||||
*/
|
||||
void GetDynamicRange();
|
||||
|
||||
/**
|
||||
* Gets the threshold energy and update widget
|
||||
*/
|
||||
void GetThresholdEnergy();
|
||||
|
||||
/** The sls detector object */
|
||||
multiSlsDetector *myDet;
|
||||
|
||||
enum {
|
||||
STANDARD,
|
||||
FAST,
|
||||
@ -104,7 +45,6 @@ private:
|
||||
UNINITIALIZED,
|
||||
NUMSETTINGS
|
||||
};
|
||||
|
||||
enum {
|
||||
DYNAMICRANGE_32,
|
||||
DYNAMICRANGE_16,
|
||||
|
Reference in New Issue
Block a user