GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
QGo4CommandsHistory.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 QGO4COMMANDSHISTORY_H
15 #define QGO4COMMANDSHISTORY_H
16 
17 #include <QComboBox>
18 
19 #include <QtCore/QStringList>
20 
21 #ifdef __GO4DESIGNER__
22 #include <QtDesigner/QDesignerExportWidget>
23 class QDESIGNER_WIDGET_EXPORT QGo4CommandsHistory : public QComboBox {
24 #else
25 class QGo4CommandsHistory : public QComboBox {
26 #endif
27 
28  Q_OBJECT
29 
30  public:
31  QGo4CommandsHistory(QWidget *parent, const char *name = nullptr);
32  virtual ~QGo4CommandsHistory();
33 
34  QStringList getHistory(int max = 50);
35 
36  Q_SIGNALS:
37  void enterPressedSingal();
38 
39  protected:
40  void keyPressEvent(QKeyEvent* e) override;
41 };
42 
43 #endif