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

Last change on this file since 10666 was 10641, checked in by tbretz, 14 years ago
Added clock showing UTC of local machine.
File size: 2.8 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
23public:
24 MainWindow(QWidget *p=0);
25
26private slots:
27 // System status
28 void on_fShutdown_clicked();
29 void on_fShutdownAll_clicked();
30
31 // Status LEDs signals
32 void on_fStatusFTULed_clicked();
33 void on_fStatusFTMLed_clicked();
34 void on_fStatusLoggerLed_clicked();
35 void on_fStatusChatLed_clicked();
36 //void on_fStatusFTMEnable_stateChanged(int state);
37
38 // Tab Widget
39 void on_fTabWidget_tabCloseRequested(int which);
40 virtual void on_fTabWidget_currentChanged(int) { }
41
42 // Tab: FTM
43 void on_fEnableTrigger_clicked(bool) { }
44 void on_fEnableExt1_clicked(bool) { }
45 void on_fEnableExt2_clicked(bool) { }
46 void on_fEnableTimeMarker_clicked(bool) { }
47 void on_fEnableVeto_clicked(bool) { }
48
49 void on_fTriggerSeqPed_valueChanged(int) { SetTriggerSequence(); }
50 void on_fTriggerSeqLPint_valueChanged(int) { SetTriggerSequence(); }
51 void on_fTriggerSeqLPext_valueChanged(int) { SetTriggerSequence(); }
52
53
54 void on_fPhysicsCoincidence_valueChanged(int) { SetTriggerCoincidence(); }
55 void on_fPhysicsWindow_valueChanged(int) { SetTriggerCoincidence(); }
56
57 void on_fCalibCoincidence_valueChanged(int) { SetCalibCoincidence(); }
58 void on_fCalibWindow_valueChanged(int) { SetCalibCoincidence(); }
59
60 void on_fTriggerInterval_valueChanged(int);
61 void on_fTriggerDelay_valueChanged(int);
62 void on_fTimeMarkerDelay_valueChanged(int);
63 void on_fDeadTime_valueChanged(int);
64
65 void on_fClockCondR0_valueChanged(int) { }
66 void on_fClockCondR1_valueChanged(int) { }
67 void on_fClockCondR8_valueChanged(int) { }
68 void on_fClockCondR9_valueChanged(int) { }
69 void on_fClockCondR11_valueChanged(int) { }
70 void on_fClockCondR13_valueChanged(int) { }
71 void on_fClockCondR14_valueChanged(int) { }
72 void on_fClockCondR15_valueChanged(int) { }
73
74 void on_fPrescalingVal_valueChanged(int);
75
76 // Tab: FTUs
77 void slot_fFtuLED_clicked();
78 void on_fPing_toggled(bool);
79
80 // Tab: Rates
81 void on_fThresholdVal_valueChanged(int v);
82 virtual void on_fThresholdIdx_valueChanged(int) { }
83
84 // Tab: Chat
85 void on_fChatSend_clicked();
86
87 // Tab: Commands
88 /// Needs access to DimNetwork thus it is implemented in the derived class
89 virtual void on_fDimCmdSend_clicked() { }
90
91 // Main menu
92 // void on_fMenuLogSaveAs_triggered(bool)
93
94 virtual void slot_RootEventProcessed(TObject *, unsigned int, TCanvas *) { }
95 virtual void slot_RootUpdate() { }
96
97 void slot_TimeUpdate();
98};
99
100#endif
Note: See TracBrowser for help on using the repository browser.