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

Last change on this file since 10591 was 10584, checked in by tbretz, 14 years ago
Fixed some slot names.
File size: 2.7 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
17protected:
18 QPushButton *fFtuLED[40];
19
20public:
21 MainWindow(QWidget *p=0);
22
23private slots:
24 // System status
25 void on_fShutdown_clicked();
26 void on_fShutdownAll_clicked();
27
28 // Status LEDs signals
29 void on_fStatusFTULed_clicked();
30 void on_fStatusFTMLed_clicked();
31 void on_fStatusLoggerLed_clicked();
32 void on_fStatusChatLed_clicked();
33 //void on_fStatusFTMEnable_stateChanged(int state);
34
35 // Tab Widget
36 void on_fTabWidget_tabCloseRequested(int which);
37 virtual void on_fTabWidget_currentChanged(int) { }
38
39 // Tab: FTM
40 void on_fEnablePedestal_clicked(bool) { }
41 void on_fEnableLPint_clicked(bool) { }
42 void on_fEnableLPext_clicked(bool) { }
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) { }
50 void on_fTriggerSeqLPint_valueChanged(int) { }
51 void on_fTriggerSeqLPext_valueChanged(int) { }
52
53
54 void on_fPhysicsCoincidence_valueChanged(int) { }
55 void on_fCalibCoincidence_valueChanged(int) { }
56
57 void on_fPhysicsWindow_valueChanged(int) { }
58 void on_fCalibWindow_valueChanged(int) { }
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
98#endif
Note: See TracBrowser for help on using the repository browser.