digiKam
wssettingswidget.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2015-07-28
7  * Description : Common widgets shared by Web Service tools
8  *
9  * Copyright (C) 2013 by Pankaj Kumar <me at panks dot me>
10  * Copyright (C) 2015 by Shourya Singh Gupta <shouryasgupta at gmail dot com>
11  * Copyright (C) 2016-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_WS_SETTINGS_WIDGET_H
26 #define DIGIKAM_WS_SETTINGS_WIDGET_H
27 
28 //Qt includes
29 
30 #include <QWidget>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 #include "ditemslist.h"
36 #include "dinfointerface.h"
37 #include "dprogresswdg.h"
38 
39 class QLabel;
40 class QSpinBox;
41 class QCheckBox;
42 class QButtonGroup;
43 class QComboBox;
44 class QPushButton;
45 class QGroupBox;
46 class QGridLayout;
47 class QVBoxLayout;
48 class QHBoxLayout;
49 
50 namespace Digikam
51 {
52 
53 class DIGIKAM_EXPORT WSSettingsWidget : public QWidget
54 {
55  Q_OBJECT
56 
57 public:
58 
59  explicit WSSettingsWidget(QWidget* const parent,
60  DInfoInterface* const iface,
61  const QString& toolName);
62  ~WSSettingsWidget() override;
63 
64 public:
65 
66  void replaceImageList(QWidget* const widget);
67  void addWidgetToSettingsBox(QWidget* const widget);
68 
69  QString getDestinationPath() const;
70  DItemsList* imagesList() const;
71  DProgressWdg* progressBar() const;
72 
73  QWidget* getSettingsBox() const;
74  QVBoxLayout* getSettingsBoxLayout() const;
75 
76  QGroupBox* getAlbumBox() const;
77  QGridLayout* getAlbumBoxLayout() const;
78 
79  QGroupBox* getOptionsBox() const;
80  QGridLayout* getOptionsBoxLayout() const;
81 
82  QGroupBox* getUploadBox() const;
83  QVBoxLayout* getUploadBoxLayout() const;
84 
85  QGroupBox* getSizeBox() const;
86  QVBoxLayout* getSizeBoxLayout() const;
87 
88  QGroupBox* getAccountBox() const;
89  QGridLayout* getAccountBoxLayout() const;
90 
91  QLabel* getHeaderLbl() const;
92  QLabel* getUserNameLabel() const;
93  QPushButton* getChangeUserBtn() const;
94  QComboBox* getDimensionCoB() const;
95  QPushButton* getNewAlbmBtn() const;
96  QPushButton* getReloadBtn() const;
97  QCheckBox* getOriginalCheckBox() const;
98  QCheckBox* getResizeCheckBox() const;
99  QCheckBox* getPhotoIdCheckBox() const;
100  QSpinBox* getDimensionSpB() const;
101  QSpinBox* getImgQualitySpB() const;
102  QComboBox* getAlbumsCoB() const;
103 
104 public:
105 
106  virtual void updateLabels(const QString& name = QString(),
107  const QString& url = QString()) = 0;
108 
109 protected Q_SLOTS:
110 
111  void slotResizeChecked();
112 
113 private:
114 
115  class Private;
116  Private* const d;
117 };
118 
119 } // namespace Digikam
120 
121 #endif // DIGIKAM_WS_SETTINGS_WIDGET_H
Definition: dinfointerface.h:56
Definition: ditemslist.h:196
Definition: dprogresswdg.h:39
Definition: wssettingswidget.h:54
virtual void updateLabels(const QString &name=QString(), const QString &url=QString())=0
Definition: datefolderview.cpp:43