GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4UserCommands.h
Go to the documentation of this file.
1// $Id$
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
28class TGo4UserCommands : public QGo4Widget, public Ui::TGo4UserCommands
29{
30 Q_OBJECT
31
32protected:
33
35 std::vector<QToolButton*> fAnalysisMacroButtons;
36
38 std::vector<QString> fAnalysisMacroCommands;
39
41 std::vector<bool> fAnalysisMacroAutoExecute;
42
43 QTimer* fAnalysisMacroTimer{nullptr};
44
45 public:
46 TGo4UserCommands( QWidget *parent = nullptr, const char *name = nullptr, Qt::WindowFlags fl = Qt::Widget );
47
48 void AssignShortcuts();
49
50 public slots:
51
53
54 // default slots for macro buttons:
55
65
66 void ExecuteAnalysisMacro(int id);
67 //void DefineAnalysisMacro(int id);
68
70 void SetAutoExecute(int id, bool on);
71
74};
75
76#endif
QGo4Widget(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget)
void AnalysisMacroMonitorBtn_clicked()
std::vector< QString > fAnalysisMacroCommands
command strings to execute
void ExecuteAnalysisMacro(int id)
std::vector< QToolButton * > fAnalysisMacroButtons
array to Qt designer buttons
TGo4UserCommands(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags fl=Qt::Widget)
void SetAutoExecute(int id, bool on)
activate auto execution state for command of id
std::vector< bool > fAnalysisMacroAutoExecute
here we remember if we want automatic timer execution
QTimer * fAnalysisMacroTimer