33 void historyAdd(
const QString& line);
34 bool historySave(
const QString& filename);
35 bool historyLoad(
const QString& filename);
36 void historySetMaxLen(
int len);
38 QStringList historyGetAll()
const {
return m_history; }
40 void lineEntered(
const QString& line)
41 E_SIGNAL(SCORE_LIB_BASE_EXPORT, lineEntered, line);
43 void setCompleter(QCompleter* completer);
44 QCompleter* completer()
const;
46 void setHint(
const QString& hint,
const QColor& color = QColor(),
bool bold =
false);
48 void hintRequested(
const QString& currentText)
49 E_SIGNAL(SCORE_LIB_BASE_EXPORT, hintRequested, currentText);
52 void insertCompletion(
const QString& s);
53 W_SLOT(insertCompletion);
56 void keyPressEvent(QKeyEvent* event)
override;
57 void paintEvent(QPaintEvent* event)
override;
58 void focusInEvent(QFocusEvent* e)
override;
61 void navigateHistory(
bool up);
65 bool proceedCompleterBegin(QKeyEvent* e);
66 void proceedCompleterEnd(QKeyEvent* e);
67 QString wordUnderCursor()
const;
70 QStringList m_history;
71 int m_historyMaxLen{};
73 QString m_historyStash;
76 QCompleter* m_completer{};