]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCommandBuffer.h
Enable OK/Apply buttons when resetting to class defaults.
[lyx.git] / src / frontends / qt4 / GuiCommandBuffer.h
index d130e2c68a43b196c8fdb47585ae4d039de52cc5..41b39d2644ad51569ed5ab74458964b899581cc9 100644 (file)
@@ -24,6 +24,9 @@
 class QListWidgetItem;
 
 namespace lyx {
+
+class DispatchResult;
+
 namespace frontend {
 
 class GuiView;
@@ -37,8 +40,6 @@ public:
        GuiCommandBuffer(GuiView * view);
 
 public Q_SLOTS:
-       /// cancel command compose
-       void cancel();
        /// dispatch a command
        void dispatch();
        /// tab-complete
@@ -46,7 +47,7 @@ public Q_SLOTS:
        /// show history
        void listHistoryUp();
        /// called when an item in a list is selected
-       void item_selected(QListWidgetItem *);
+       void itemSelected(QListWidgetItem *);
        /// up
        void up();
        /// down
@@ -64,15 +65,9 @@ private:
        /// 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
@@ -80,7 +75,7 @@ private:
                                              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_;