source: trunk/FACT++/gui/MainWindow.h@ 10824

Last change on this file since 10824 was 10752, checked in by tbretz, 14 years ago
Connected output lines of FTM, enable/disable pixel and some first FAD stuff.
File size: 3.1 KB
Line 
1#ifndef FACT_MainWindow
2#define FACT_MainWindow
3
4#include "design.h"
5
6#include <QMainWindow>
7
8class TObject;
9class TCanvas;
10
11class MainWindow : public QMainWindow, protected Ui::MainWindow
12{
13 Q_OBJECT;
14
15 void SelectTab(const QString &name);
16 void SetTriggerSequence();
17 void SetTriggerCoincidence();
18 void SetCalibCoincidence();
19
20protected:
21 QPushButton *fFtuLED[40];
22
23 bool fInHandler;
24
25public:
26 MainWindow(QWidget *p=0);
27
28private slots:
29 // System status
30 void on_fShutdown_clicked();
31 void on_fShutdownAll_clicked();
32
33 // Status LEDs signals
34 void on_fStatusFTULed_clicked();
35 void on_fStatusFTMLed_clicked();
36 void on_fStatusFADLed_clicked();
37 void on_fStatusLoggerLed_clicked();
38 void on_fStatusChatLed_clicked();
39 //void on_fStatusFTMEnable_stateChanged(int state);
40
41 // Tab Widget
42 void on_fTabWidget_tabCloseRequested(int which);
43 virtual void on_fTabWidget_currentChanged(int) { }
44
45 // Tab: FTM
46 void on_fEnableTrigger_stateChanged(int);
47 void on_fEnableExt1_stateChanged(int);
48 void on_fEnableExt2_stateChanged(int);
49 void on_fEnableClockCond_stateChanged(int);
50 void on_fEnableVeto_stateChanged(int);
51
52 void on_fTriggerSeqPed_valueChanged(int) { SetTriggerSequence(); }
53 void on_fTriggerSeqLPint_valueChanged(int) { SetTriggerSequence(); }
54 void on_fTriggerSeqLPext_valueChanged(int) { SetTriggerSequence(); }
55
56 void on_fPhysicsCoincidence_valueChanged(int);
57 void on_fPhysicsWindow_valueChanged(int);
58 void on_fCalibCoincidence_valueChanged(int);
59 void on_fCalibWindow_valueChanged(int);
60
61 void on_fTriggerInterval_valueChanged(int);
62 void on_fTriggerDelay_valueChanged(int);
63 void on_fTimeMarkerDelay_valueChanged(int);
64 void on_fDeadTime_valueChanged(int);
65
66 void on_fClockCondR0_valueChanged(int) { }
67 void on_fClockCondR1_valueChanged(int) { }
68 void on_fClockCondR8_valueChanged(int) { }
69 void on_fClockCondR9_valueChanged(int) { }
70 void on_fClockCondR11_valueChanged(int) { }
71 void on_fClockCondR13_valueChanged(int) { }
72 void on_fClockCondR14_valueChanged(int) { }
73 void on_fClockCondR15_valueChanged(int) { }
74
75 void on_fPrescalingVal_valueChanged(int);
76
77 // Tab: FTUs
78 void slot_fFtuLED_clicked();
79 void on_fPing_toggled(bool);
80
81 // Tab: Rates
82 void on_fPixelEnable_stateChanged(int);
83 void on_fThresholdVal_valueChanged(int);
84 virtual void on_fThresholdIdx_valueChanged(int) { }
85 virtual void on_fPixelIdx_valueChanged(int) { }
86
87 virtual void on_fRatePatch1_valueChanged(int) { }
88 virtual void on_fRatePatch2_valueChanged(int) { }
89 virtual void on_fRateBoard1_valueChanged(int) { }
90 virtual void on_fRateBoard2_valueChanged(int) { }
91
92 // Tab: Chat
93 void on_fChatSend_clicked();
94
95 // Tab: Commands
96 /// Needs access to DimNetwork thus it is implemented in the derived class
97 virtual void on_fDimCmdSend_clicked() { }
98
99 // Main menu
100 // void on_fMenuLogSaveAs_triggered(bool)
101
102 virtual void slot_RootEventProcessed(TObject *, unsigned int, TCanvas *) { }
103 virtual void slot_RootUpdate() { }
104
105 void slot_TimeUpdate();
106};
107
108#endif
Note: See TracBrowser for help on using the repository browser.