l_maliakal_d 69e6500522 All the ranges of the axes work properly without zooming in and out each time
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@11 af1100a4-978c-4157-bff7-07162d2ba061
2012-06-19 15:01:40 +00:00

71 lines
1.3 KiB
C++

/*
* qTabActions.h
*
* Created on: May 10, 2012
* Author: l_maliakal_d
*/
#ifndef QTABACTIONS_H_
#define QTABACTIONS_H_
/** Project Class Headers */
class slsDetectorUtils;
class ActionsWidget;
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QScrollArea>
#include <QGridLayout>
#include <QPalette>
/**
*@short sets up the acions parameters
*/
class qTabActions:public QWidget{
Q_OBJECT
public:
/** \short The constructor
* @param parent is the parent tab widget
* @param detector is the detector returned from the detector tab
*/
qTabActions(QWidget *parent,slsDetectorUtils*& detector);
/** Destructor
*/
~qTabActions();
private:
/** The sls detector object */
slsDetectorUtils *myDet;
static const int NUM_ACTION_WIDGETS = 9;
QGridLayout *gridLayout;
QButtonGroup *group;
QPalette *palette;
/** action widget objects */
ActionsWidget *actionWidget[NUM_ACTION_WIDGETS];
QPushButton *btnExpand[NUM_ACTION_WIDGETS];
QLabel *lblName[NUM_ACTION_WIDGETS];
/** Sets up the widget */
void SetupWidgetWindow();
/** Sets up all the slots and signals */
void Initialization();
private slots:
/** To Expand the Action Widget */
void Expand(QAbstractButton *button);
};
#endif /* QTABACTIONS_H_ */