GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QGo4CommandsHistory.h
Go to the documentation of this file.
1 // $Id: QGo4CommandsHistory.h 2627 2019-10-01 08:02:45Z 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 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* w, const char* name = 0);
32  virtual ~QGo4CommandsHistory();
33 
34  QStringList getHistory(int max = 50);
35 
36 Q_SIGNALS:
37  void enterPressedSingal();
38 
39  protected:
40  virtual void keyPressEvent(QKeyEvent* e);
41 };
42 
43 #endif