KTextAddons

selectspecialchardialog.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "textaddonswidgets_export.h"
10
11#include <QDialog>
12
13namespace TextAddonsWidgets
14{
15class SelectSpecialCharDialogPrivate;
16/**
17 * @brief The SelectSpecialCharDialog class
18 * @author Laurent Montel <montel@kde.org>
19 */
20class TEXTADDONSWIDGETS_EXPORT SelectSpecialCharDialog : public QDialog
21{
22 Q_OBJECT
23public:
24 explicit SelectSpecialCharDialog(QWidget *parent);
25 ~SelectSpecialCharDialog() override;
26
27 void setCurrentChar(QChar c);
28 [[nodiscard]] QChar currentChar() const;
29
30 void setOkButtonText(const QString &text);
31
32 void showSelectButton(bool show);
33
34 /*
35 * When we double click we call accept
36 */
37 void autoInsertChar();
38
39Q_SIGNALS:
40 void charSelected(QChar);
41
42private:
43 friend class SelectSpecialCharDialogPrivate;
44 std::unique_ptr<SelectSpecialCharDialogPrivate> const d;
45};
46}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.