KTextAddons

textgotolinewidget.h
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "textcustomeditor_export.h"
10#include <QWidget>
11
12namespace TextCustomEditor
13{
14class TextGoToLineWidgetPrivate;
15/**
16 * @brief The TextGoToLineWidget class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class TEXTCUSTOMEDITOR_EXPORT TextGoToLineWidget : public QWidget
20{
21 Q_OBJECT
22public:
23 explicit TextGoToLineWidget(QWidget *parent = nullptr);
24 ~TextGoToLineWidget() override;
25
26 void goToLine();
27
28 void setMaximumLineCount(int max);
29Q_SIGNALS:
30 void moveToLine(int);
31 void hideGotoLine();
32
33protected:
34 bool event(QEvent *e) override;
35 void showEvent(QShowEvent *e) override;
36 bool eventFilter(QObject *obj, QEvent *event) override;
37
38public Q_SLOTS:
39 void slotBlockCountChanged(int numberBlockCount);
40
41private:
42 TEXTCUSTOMEDITOR_NO_EXPORT void slotCloseBar();
43 TEXTCUSTOMEDITOR_NO_EXPORT void slotGoToLine();
44 std::unique_ptr<TextGoToLineWidgetPrivate> const d;
45};
46}
The TextGoToLineWidget class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.