tabmaroc.h 1.77 KB
Newer Older
Alexander Steffens's avatar
Alexander Steffens committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
#ifndef TABMAROC_H
#define TABMAROC_H

#include <QDialog>
#include <QVariant>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QGroupBox>
#include <QCheckBox>
#include <QFrame>
#include <QTabWidget>
#include <QPointer>
#include <QPushButton>
#include <QLabel>
#include "maroc_def.h"
#include "maroc.h"
#include "dlglog.h"
#include "dlgcharge.h"
#include "dlgmask.h"
#include "dlggain.h"
#include "qmaroc.h"
#include "mttrigger.h"
#include "mtsetup.h"
#include "mtdaq.h"
#include "mtinfo.h"
#include "dlggrafik.h"
#include "tabclkrst.h"

namespace Ui {
class TabMaroc;
}

class mtTrigger;
class mtDaq;
class mtInfo;
class DlgGrafik;
class tabclkrst;

class TabMaroc : public QWidget
{
    Q_OBJECT

public:
    explicit        TabMaroc(QWidget *parent, int DeviceNo, QObject *part, int MarocNo, tabclkrst *clkrst);
                    ~TabMaroc();

signals:
    void OSetValue(int id, int idx, QVariant v);
    void OGetValue(int id, int idx);
    void OLockTabs(int tab);
    void OUnlockTabs();
    void OMLockTabs(int ignore);
    void OMUnlockTabs();

public slots:
    void ISubSetValue(int id, int idx, QVariant val);
    void ILockTabs(int tab);
    void IUnlockTabs();


private slots:
    void TabChanged(int index);

private:
    bool                _Init;
    int                 _DeviceNo;
    int                 _ConcentratorAvail;
    QMaroc              *_QMaroc;

    QGridLayout         *_TopLayout;
    QTabWidget          *_MTab;
    tabclkrst       *_ClkRst;

    mtInfo              *_MTInfo;
    mtSetup             *_MTSetup;
    mtTrigger           *_MTTrigger;
    mtDaq               *_MTDaq;

    friend class wMarocSetup;
    friend class wTrigger;
    friend class wDaq;
};

#endif // TABMAROC_H