#ifndef GUICOMPLETER_H
#define GUICOMPLETER_H
-#include "frontends/WorkArea.h"
-
#include "DocIterator.h"
-#include "qt_helpers.h"
#include "support/docstring.h"
-#include <QAbstractItemModel>
#include <QCompleter>
-#include <QStringListModel>
#include <QTimer>
namespace lyx {
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);
///
- 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);