Messagelib

imagescalingwidget.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "messagecomposer_export.h"
9#include <QWidget>
10
11class QComboBox;
12class QAbstractButton;
13namespace Ui
14{
15class ImageScalingWidget;
16}
17
18namespace MessageComposer
19{
20class ImageScalingWidgetPrivate;
21/**
22 * @brief The ImageScalingWidget class
23 * @author Laurent Montel <montel@kde.org>
24 */
25class MESSAGECOMPOSER_EXPORT ImageScalingWidget : public QWidget
26{
27 Q_OBJECT
28public:
29 explicit ImageScalingWidget(QWidget *parent = nullptr);
30 ~ImageScalingWidget() override;
31
32 void loadConfig();
33 void writeConfig();
34 void resetToDefault();
35
36Q_SIGNALS:
37 void changed();
38
39private Q_SLOTS:
40 MESSAGECOMPOSER_NO_EXPORT void slotComboboxChanged(int index);
41 MESSAGECOMPOSER_NO_EXPORT void slotSourceFilterClicked(int);
42 MESSAGECOMPOSER_NO_EXPORT void slotRecipientFilterClicked(int);
43 MESSAGECOMPOSER_NO_EXPORT void slotHelpLinkClicked(const QString &);
44
45private:
46 MESSAGECOMPOSER_NO_EXPORT void slotRecipientFilterAbstractClicked(QAbstractButton *button);
47 MESSAGECOMPOSER_NO_EXPORT void slotSourceFilterAbstractButtonClicked(QAbstractButton *button);
48 MESSAGECOMPOSER_NO_EXPORT void updateFilterSourceTypeSettings();
49 MESSAGECOMPOSER_NO_EXPORT void initComboBox(QComboBox *combo);
50 MESSAGECOMPOSER_NO_EXPORT void initWriteImageFormat();
51 MESSAGECOMPOSER_NO_EXPORT void updateEmailsFilterTypeSettings();
52 MESSAGECOMPOSER_NO_EXPORT void updateSettings();
53 std::unique_ptr<ImageScalingWidgetPrivate> const d;
54};
55}
The ImageScalingWidget class.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.