lyx_mirror/src/frontends/qt4/GuiCommandBuffer.h
André Pönitz c9ea6e6eef the fun begins....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20077 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-05 20:33:29 +00:00

61 lines
1.0 KiB
C++

// -*- C++ -*-
/**
* \file GuiCommandBuffer.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 GUICOMMANDBUFFER_H
#define GUICOMMANDBUFFER_H
#include "ControlCommandBuffer.h"
#include <QWidget>
class QListWidgetItem;
namespace lyx {
namespace frontend {
class GuiCommandEdit;
class GuiCommandBuffer : public QWidget
{
Q_OBJECT
public:
GuiCommandBuffer(GuiViewBase * view);
public Q_SLOTS:
/// cancel command compose
void cancel();
/// dispatch a command
void dispatch();
/// tab-complete
void complete();
/// select-complete
void complete_selected(QListWidgetItem *);
/// up
void up();
/// down
void down();
/// leave and hide the command buffer
void hideParent();
private:
/// owning view
GuiViewBase * view_;
/// controller
ControlCommandBuffer controller_;
/// command widget
GuiCommandEdit * edit_;
};
} // namespace frontend
} // namespace lyx
#endif // GUICOMMANDBUFFER_H