KTextAddons

translatordebugdialog.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QDialog>
10#include <QUrl>
11
12class QPlainTextEdit;
13namespace TextTranslator
14{
15class TranslatorDebugDialog : public QDialog
16{
18public:
19 explicit TranslatorDebugDialog(QWidget *parent = nullptr);
20 ~TranslatorDebugDialog() override;
21
22 void setDebug(const QString &debugStr);
23
24private:
25 void slotSaveAs();
26 void readConfig();
27 void saveTextAs(const QString &text, const QString &filter, QWidget *parent, const QUrl &url = {}, const QString &caption = {});
28 [[nodiscard]] bool saveToFile(const QString &filename, const QString &text);
29 void writeConfig();
30 QPlainTextEdit *const mEdit;
31 QPushButton *const mUser1Button;
32};
33}
Q_OBJECTQ_OBJECT
QObject * parent() const const
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.