lyx_mirror/src/frontends/qt4/QCommandBuffer.h
Abdelrazak Younes ebff6bd6fb Transfer command buffer handling to QLToolbar.
* Toolbar::focusCommandBuffer(): new pure virtual method.
* Toolbars::display(): now return the address of the found toolbar.
* GuiView: get rid of command_buffer_, transferred to QLToolbar.
* QCommandBuffer: replace focus_command with setFocusProxy on edit_;



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19767 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-24 07:13:07 +00:00

62 lines
1.0 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 "controllers/ControlCommandBuffer.h"
#include <QWidget>
class QListWidgetItem;
namespace lyx {
namespace frontend {
class QCommandEdit;
class GuiView;
class QCommandBuffer : public QWidget {
Q_OBJECT
public:
QCommandBuffer(GuiView * 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
GuiView * view_;
/// controller
ControlCommandBuffer controller_;
/// command widget
QCommandEdit * edit_;
};
} // namespace frontend
} // namespace lyx
#endif // QCOMMANDBUFFER_H