GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4UserCommands.h
Go to the documentation of this file.
1 // $Id: TGo4UserCommands.h 3341 2021-10-18 13:18:09Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4USERCOMMANDS_H
15 #define TGO4USERCOMMANDS_H
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 #include "ui_TGo4UserCommands.h"
26 #include <vector>
27 
28 class TGo4UserCommands : public QGo4Widget, public Ui::TGo4UserCommands
29 {
30  Q_OBJECT
31 
32 protected:
33 
35  std::vector<QToolButton*> fAnalysisMacroButtons;
36 
38  std::vector<QString> fAnalysisMacroCommands;
39 
41  std::vector<bool> fAnalysisMacroAutoExecute;
42 
44 
45  public:
46  TGo4UserCommands( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = Qt::Widget );
47 
48  void AssignShortcuts();
49 
50  public slots:
51 
53 
54  // default slots for macro buttons:
55 
65 
66 
67  void ExecuteAnalysisMacro(int id);
68  //void DefineAnalysisMacro(int id);
69 
71  void SetAutoExecute(int id, bool on);
72 
75 
76 };
77 
78 #endif
void SetAutoExecute(int id, bool on)
void AnalysisMacroMonitorBtn_clicked()
TGo4UserCommands(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=Qt::Widget)
std::vector< bool > fAnalysisMacroAutoExecute
void ExecuteAnalysisMacro(int id)
void AnalysisMacroMonitorTimeout()
std::vector< QString > fAnalysisMacroCommands
std::vector< QToolButton * > fAnalysisMacroButtons
QTimer * fAnalysisMacroTimer