lyx_mirror/src/frontends/qt3/QCommandBuffer.h
Lars Gullik Bjønnes eefc9ad640 * Rename src/frontends/qt2 to src/frontends/qt3,
update users of the dir accordingly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13731 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 13:48:24 +00:00

61 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file QCommandBuffer.h
* 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.
*/
#ifndef QCOMMANDBUFFER_H
#define QCOMMANDBUFFER_H
#include <qwidget.h>
class QListBoxItem;
namespace lyx {
namespace frontend {
class QCommandEdit;
class QtView;
class ControlCommandBuffer;
class QCommandBuffer : public QWidget {
Q_OBJECT
public:
QCommandBuffer(QtView * view, QWidget * parent, ControlCommandBuffer & control);
/// focus the edit widget
void focus_command();
public slots:
/// cancel command compose
void cancel();
/// dispatch a command
void dispatch();
/// tab-complete
void complete();
/// select-complete
void complete_selected(QString const & str);
/// up
void up();
/// down
void down();
private:
/// owning view
QtView * view_;
/// controller
ControlCommandBuffer & controller_;
/// command widget
QCommandEdit * edit_;
};
} // namespace frontend
} // namespace lyx
#endif // QCOMMANDBUFFER_H