]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCompleter.h
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / GuiCompleter.h
index 46f9a15878a16c5c3a115564fc3a0809d280b56c..a02a2c5dd6ea2aeb4dccbb134070fa412497e0ea 100644 (file)
 #ifndef GUICOMPLETER_H
 #define GUICOMPLETER_H
 
-#include "frontends/WorkArea.h"
-
 #include "DocIterator.h"
-#include "FuncRequest.h"
-#include "qt_helpers.h"
 #include "support/docstring.h"
 
-#include <QAbstractItemModel>
 #include <QCompleter>
-#include <QStringListModel>
 #include <QTimer>
 
 namespace lyx {
@@ -62,7 +56,7 @@ public:
        /// Update the visibility of the popup and the inline completion.
        /// This method might set the update flags of the cursor to request
        /// a redraw.
-       void updateVisibility(Cursor & cur, bool start, bool keep, bool cursorInView = true);
+       void updateVisibility(Cursor & cur, bool start, bool keep);
        /// Update the visibility of the popup and the inline completion.
        /// This method handles the redraw if needed.
        void updateVisibility(bool start, bool keep);
@@ -70,6 +64,8 @@ public:
        QString currentCompletion() const;
        ///
        docstring longestUniqueCompletion() const;
+       ///
+       bool uniqueCompletionAvailable() const;
        
 public Q_SLOTS:
        /// Show the popup.
@@ -100,21 +96,19 @@ private:
        ///
        void setCurrentCompletion(QString const & s);
        ///
-       void showPopup(Cursor & cur);
-       ///
-       void showInline(Cursor & cur);
+       void showPopup(Cursor const & cur);
        ///
-       void hidePopup(Cursor & cur);
+       void showInline(Cursor const & cur);
        ///
-       void hideInline(Cursor & cur);
+       void hideInline(Cursor const & cur);
        ///
-       void updatePopup(Cursor & cur);
+       void updatePopup(Cursor const & cur);
        ///
-       void updateInline(Cursor & cur, QString const & completion);
+       void updateInline(Cursor const & cur, QString const & completion);
        ///
-       void updatePrefix(Cursor & cur);
+       void updatePrefix(Cursor const & cur);
        ///
-       void updateModel(Cursor & cur, bool popupUpdate, bool inlineUpdate);
+       void updateModel(Cursor const & cur, bool popupUpdate, bool inlineUpdate);
        ///
        bool eventFilter(QObject * watched, QEvent * event);