2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiCommandEdit.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUICOMMANDEDIT_H
|
|
|
|
#define GUICOMMANDEDIT_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QKeyEvent>
|
|
|
|
#include <QEvent>
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
class GuiCommandEdit : public QLineEdit
|
|
|
|
{
|
2006-03-05 17:24:44 +00:00
|
|
|
Q_OBJECT
|
2007-08-31 22:16:11 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
public:
|
2007-08-31 05:53:55 +00:00
|
|
|
GuiCommandEdit(QWidget * parent);
|
2007-08-31 22:16:11 +00:00
|
|
|
|
2006-06-30 14:37:33 +00:00
|
|
|
Q_SIGNALS:
|
2006-03-05 17:24:44 +00:00
|
|
|
/// cancel
|
|
|
|
void escapePressed();
|
|
|
|
/// up history
|
|
|
|
void upPressed();
|
|
|
|
/// down history
|
|
|
|
void downPressed();
|
|
|
|
/// complete
|
|
|
|
void tabPressed();
|
|
|
|
|
|
|
|
protected:
|
2006-10-22 14:37:32 +00:00
|
|
|
///
|
2006-03-05 17:24:44 +00:00
|
|
|
virtual bool event(QEvent * e);
|
2006-10-22 14:37:32 +00:00
|
|
|
///
|
2006-03-05 17:24:44 +00:00
|
|
|
virtual void keyPressEvent(QKeyEvent * e);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUICOMMANDEDIT_H
|