mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-18 15:57:13 +02:00
Version 1 with the action tab working
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@6 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
84
slsDetectorGui/include/qActionsWidget.h
Normal file
84
slsDetectorGui/include/qActionsWidget.h
Normal file
@ -0,0 +1,84 @@
|
||||
/*
|
||||
* qTabActions.h
|
||||
*
|
||||
* Created on: May 10, 2012
|
||||
* Author: l_maliakal_d
|
||||
*/
|
||||
|
||||
#ifndef QACTIONSWIDGET_H_
|
||||
#define QACTIONSWIDGET_H_
|
||||
#include <QFrame>
|
||||
class QGridLayout;
|
||||
class QComboBox;
|
||||
class QLineEdit;
|
||||
class QPushButton;
|
||||
class QLabel;
|
||||
class QSpinBox;
|
||||
class QGroupBox;
|
||||
class QRadioButton;
|
||||
|
||||
|
||||
class ActionsWidget : public QFrame{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/** \short The constructor
|
||||
* @param parent is the parent tab widget
|
||||
* @param detector is the detector returned from the detector tab
|
||||
*/
|
||||
ActionsWidget(QWidget *parent, int scanType);
|
||||
|
||||
~ActionsWidget();
|
||||
|
||||
private:
|
||||
QGridLayout *layout;
|
||||
QComboBox *comboScript;
|
||||
QLineEdit *dispScript;
|
||||
QPushButton *btnBrowse;
|
||||
QLabel *lblParameter;
|
||||
QLineEdit *dispParameter;
|
||||
QLabel *lblSteps;
|
||||
QSpinBox *spinSteps;
|
||||
QLabel *lblPrecision;
|
||||
QSpinBox *spinPrecision;
|
||||
QGroupBox *group;
|
||||
QRadioButton *radioConstant;
|
||||
QRadioButton *radioSpecific;
|
||||
QRadioButton *radioValue;
|
||||
QLabel *lblFrom;
|
||||
QSpinBox *spinFrom;
|
||||
QLabel *lblTo;
|
||||
QSpinBox *spinTo;
|
||||
QLabel *lblSize;
|
||||
QSpinBox *spinSize;
|
||||
QComboBox *comboSpecific;
|
||||
QLineEdit *dispValues;
|
||||
QPushButton *btnValues;
|
||||
|
||||
/** Sets up the widget
|
||||
* @param scanType 1 if it includes Threshold Scan,Energy Scan and Trimbits Scan, else 0*/
|
||||
void SetupWidgetWindow(int scanType);
|
||||
|
||||
/** Sets up all the slots and signals */
|
||||
void Initialization();
|
||||
|
||||
|
||||
private slots:
|
||||
/** Sets the scan or script. Accordingly enables, disables other widgets
|
||||
* @param index value chosen*/
|
||||
void SetScript(int index);
|
||||
|
||||
/** Enables widgets depending on which size is clicked.
|
||||
* Options: constant size,specific values,values from file */
|
||||
void EnableSizeWidgets();
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* QACTIONSWIDGET_H_ */
|
||||
|
Reference in New Issue
Block a user