Messagelib

imagescalingwidget.h
1 /*
2  SPDX-FileCopyrightText: 2012-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 #include "messagecomposer_export.h"
9 #include <QWidget>
10 
11 class QComboBox;
12 class QAbstractButton;
13 namespace Ui
14 {
15 class ImageScalingWidget;
16 }
17 
18 namespace MessageComposer
19 {
20 class ImageScalingWidgetPrivate;
21 /**
22  * @brief The ImageScalingWidget class
23  * @author Laurent Montel <[email protected]>
24  */
25 class MESSAGECOMPOSER_EXPORT ImageScalingWidget : public QWidget
26 {
27  Q_OBJECT
28 public:
29  explicit ImageScalingWidget(QWidget *parent = nullptr);
30  ~ImageScalingWidget() override;
31 
32  void loadConfig();
33  void writeConfig();
34  void resetToDefault();
35 
36 Q_SIGNALS:
37  void changed();
38 
39 private 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 
45 private:
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 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The ImageScalingWidget class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 03:53:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.