GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4UserCommands.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------
2 // The GSI Online Offline Object Oriented (Go4) Project
3 // Experiment Data Processing at EE department, GSI
4 //-----------------------------------------------------------------------
5 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
6 // Planckstr. 1, 64291 Darmstadt, Germany
7 // Contact: http://go4.gsi.de
8 //-----------------------------------------------------------------------
9 // This software can be used under the license agreements as stated
10 // in Go4License.txt file which is part of the distribution.
11 //-----------------------------------------------------------------------
12 
13 #ifndef TGO4USERCOMMANDS_H
14 #define TGO4USERCOMMANDS_H
15 
16 
17 #include "QGo4Widget.h"
18 #include <QString>
19 #include <QToolButton>
20 #include <QCheckBox>
21 #include <QTimer>
22 
23 #define GO4GUI_MAXMACRONUM 9
24 
25 
26 
27 #include "ui_TGo4UserCommands.h"
28 #include <vector>
29 
30 class TGo4UserCommands : public QGo4Widget, public Ui::TGo4UserCommands
31  {
32  Q_OBJECT
33 
34 protected:
35 
37  std::vector<QToolButton*> fAnalysisMacroButtons;
38 
40  std::vector<QString> fAnalysisMacroCommands;
41 
43  std::vector<bool> fAnalysisMacroAutoExecute;
44 
45 
46 
48 
49 
50 
51  public:
52  TGo4UserCommands( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0 );
53 
54  void AssignShortcuts();
55 
56  public slots:
57 
58 
60 
61 
62 
63  // default slots for macro buttons:
64 
74 
75 
76  void ExecuteAnalysisMacro(int id);
77  //void DefineAnalysisMacro(int id);
78 
80  void SetAutoExecute(int id, bool on);
81 
82 
83 
86 
87 
88 
89 
90 
91 };
92 
93 #endif
TGo4UserCommands(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=0)
void SetAutoExecute(int id, bool on)
void AnalysisMacroMonitorBtn_clicked()
std::vector< bool > fAnalysisMacroAutoExecute
void ExecuteAnalysisMacro(int id)
void AnalysisMacroMonitorTimeout()
std::vector< QString > fAnalysisMacroCommands
std::vector< QToolButton * > fAnalysisMacroButtons
QTimer * fAnalysisMacroTimer