KTextEditor

kateargumenthinttree.h
1/*
2 SPDX-FileCopyrightText: 2024 Waqar Ahmed <waqar.17a@gmail.com>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KATEARGUMENTHINTTREE_H
7#define KATEARGUMENTHINTTREE_H
8
9#include <QFrame>
10
12class KateArgumentHintModel;
13class QPlainTextEdit;
14class QLabel;
15class QFont;
16class ArgumentHighlighter;
17
18class ArgumentHintWidget : public QFrame
19{
20public:
21 explicit ArgumentHintWidget(KateArgumentHintModel *model, const QFont &font, KateCompletionWidget *completion, QWidget *parent);
22
23 void positionAndShow();
24 void clearAndHide();
25
26 void selectNext();
27 void selectPrevious();
28
29 void updateGeometry();
30
31private:
32 void activateHint(int i, int rowCount);
33
34 KateCompletionWidget *const m_completionWidget;
35 QPlainTextEdit *const m_view;
36 QLabel *const m_currentIndicator;
37 int m_current = -1;
38 KateArgumentHintModel *const m_model;
39 ArgumentHighlighter *const m_highlighter;
40 QWidget *const m_leftSide;
41};
42
43#endif
This is the code completion's main widget, and also contains the core interface logic.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.