2002-09-24 13:57:09 +00:00
|
|
|
// -*- C++ -*-
|
2002-07-19 23:05:24 +00:00
|
|
|
/**
|
|
|
|
* \file QCommandEdit.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-07-19 23:05:24 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-07-19 23:05:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QCOMMANDEDIT_H
|
|
|
|
#define QCOMMANDEDIT_H
|
|
|
|
|
|
|
|
#include <qlineedit.h>
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2002-07-19 23:05:24 +00:00
|
|
|
class QCommandEdit : public QLineEdit {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
QCommandEdit(QWidget * parent);
|
|
|
|
signals:
|
|
|
|
/// cancel
|
|
|
|
void escapePressed();
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2002-07-19 23:05:24 +00:00
|
|
|
/// up history
|
|
|
|
void upPressed();
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2002-07-19 23:05:24 +00:00
|
|
|
/// down history
|
|
|
|
void downPressed();
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2002-07-19 23:05:24 +00:00
|
|
|
/// complete
|
|
|
|
void rightPressed();
|
|
|
|
protected:
|
|
|
|
virtual void keyPressEvent(QKeyEvent * e);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QCOMMANDEDIT_H
|