mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
b0b7aa2bf5
* src/frontends/controllers/ControlCommandBuffer.{cpp,h}: - new member hide() * src/frontends/qt4QCommandEdit.{cpp,h}: - new signal hidePressed(), emit it on M-x/Alt-x * src/frontends/qt4/QCommandBuffer.{cpp,h}: - new slot hideParent(), connected to QCommandEdit::hidePressed() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18081 a592a061-630c-0410-9148-cb99ea01b6c8
63 lines
1.1 KiB
C++
63 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>
|
|
|
|
class QListWidgetItem;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class QCommandEdit;
|
|
class GuiView;
|
|
class ControlCommandBuffer;
|
|
|
|
class QCommandBuffer : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
QCommandBuffer(GuiView * view, ControlCommandBuffer & control);
|
|
|
|
/// focus the edit widget
|
|
void focus_command();
|
|
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
|