GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QGo4CommandsHistory.h
Go to the documentation of this file.
1 // $Id: QGo4CommandsHistory.h 1134 2014-01-22 14:53:40Z 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 für 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 WIN32
22 class QGo4CommandsHistory : public QComboBox {
23 
24 #else
25 
26 #include <QtDesigner/QDesignerExportWidget>
27 class QDESIGNER_WIDGET_EXPORT QGo4CommandsHistory : public QComboBox {
28 
29 #endif
30 
31  Q_OBJECT
32 
33  public:
34  QGo4CommandsHistory(QWidget* w, const char* name = 0);
35  virtual ~QGo4CommandsHistory();
36 
37  QStringList getHistory(int max = 50);
38 
39 Q_SIGNALS:
40  void enterPressedSingal();
41 
42  protected:
43  virtual void keyPressEvent(QKeyEvent* e);
44 };
45 
46 #endif
QStringList getHistory(int max=50)
QGo4CommandsHistory(QWidget *w, const char *name=0)
virtual void keyPressEvent(QKeyEvent *e)