#ifndef GUICOMPLETER_H
#define GUICOMPLETER_H
-#include "frontends/WorkArea.h"
-
#include "DocIterator.h"
-#include "qt_helpers.h"
#include "support/docstring.h"
#include <QCompleter>
void activate();
/// Do a completion as far as it is unique, but at least one character.
void tab();
-
+
/// Update the visibility of the popup and the inline completion.
/// This method might set the update flags of the cursor to request
/// a redraw.
docstring longestUniqueCompletion() const;
///
bool uniqueCompletionAvailable() const;
-
+
public Q_SLOTS:
/// Show the popup.
void showPopup();
void asyncHidePopup();
/// the asynchronous part of hideInline(cur)
void asyncHideInline();
-
+
private:
///
void setCurrentCompletion(QString const & s);