Messagelib

imagescalingwidget.h
1 /*
2  SPDX-FileCopyrightText: 2012-2021 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  void slotComboboxChanged(int index);
41  void slotSourceFilterClicked(int);
42  void slotRecipientFilterClicked(int);
43  void slotHelpLinkClicked(const QString &);
44 
45 private:
46  void slotRecipientFilterAbstractClicked(QAbstractButton *button);
47  void slotSourceFilterAbstractButtonClicked(QAbstractButton *button);
48  void updateFilterSourceTypeSettings();
49  void initComboBox(QComboBox *combo);
50  void initWriteImageFormat();
51  void updateEmailsFilterTypeSettings();
52  void updateSettings();
53  std::unique_ptr<ImageScalingWidgetPrivate> const d;
54 };
55 }
56 
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-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.