class QListWidgetItem;
namespace lyx {
+
+class DispatchResult;
+
namespace frontend {
class GuiView;
GuiCommandBuffer(GuiView * view);
public Q_SLOTS:
- /// cancel command compose
- void cancel();
/// dispatch a command
void dispatch();
/// tab-complete
/// return the next history entry if any
std::string const historyDown();
- /// return the font and depth in the active BufferView as a message.
- docstring const getCurrentState() const;
-
- /// hide the command buffer.
- void hide() const;
-
/// open a listbox and show the contents of the list. When reversed
/// is true, the contents of the list is filled bottom-up.
- void showList(std::vector<std::string> const & list,
+ void showList(std::vector<std::string> const & list,
QPoint const & pos, bool reversed = false) const;
/// return the possible completions
std::string & new_prefix);
/// dispatch a command
- void dispatch(std::string const & str);
+ DispatchResult const & dispatch(std::string const & str);
/// available command names
std::vector<std::string> commands_;