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
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* 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
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
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
|
2003-04-05 21:10:34 +00:00
|
|
|
void tabPressed();
|
|
|
|
|
2002-07-19 23:05:24 +00:00
|
|
|
protected:
|
2003-04-05 21:59:40 +00:00
|
|
|
virtual bool event(QEvent * e);
|
2003-04-05 21:10:34 +00:00
|
|
|
|
2003-04-05 21:59:40 +00:00
|
|
|
virtual void keyPressEvent(QKeyEvent * e);
|
2002-07-19 23:05:24 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2002-07-19 23:05:24 +00:00
|
|
|
#endif // QCOMMANDEDIT_H
|