digiKam
wsnewalbumdialog.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-08-01
7  * Description : new album creation dialog for remote web service.
8  *
9  * Copyright (C) 2010 by Jens Mueller <tschenser at gmx dot de>
10  * Copyright (C) 2015 by Shourya Singh Gupta <shouryasgupta at gmail dot com>
11  * Copyright (C) 2018 by Thanh Trung Dinh <dinhthanhtrung1996 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_NEW_ALBUM_DIALOG_H
26 #define DIGIKAM_WS_NEW_ALBUM_DIALOG_H
27 
28 // Qt includes
29 
30 #include <QRadioButton>
31 #include <QDateTimeEdit>
32 #include <QDialog>
33 #include <QLineEdit>
34 #include <QTextEdit>
35 #include <QComboBox>
36 #include <QCloseEvent>
37 #include <QGridLayout>
38 #include <QGroupBox>
39 #include <QLabel>
40 #include <QVBoxLayout>
41 #include <QDialogButtonBox>
42 
43 // Local includes
44 
45 #include "digikam_export.h"
46 #include "wsitem.h"
47 
48 namespace Digikam
49 {
50 
51 class DIGIKAM_EXPORT WSNewAlbumDialog : public QDialog
52 {
53  Q_OBJECT
54 
55 public:
56 
57  explicit WSNewAlbumDialog(QWidget* const parent, const QString& toolName);
58  ~WSNewAlbumDialog() override;
59 
60  void hideDateTime();
61  void hideDesc();
62  void hideLocation();
63 
64  QWidget* getMainWidget() const;
65  QGroupBox* getAlbumBox() const;
66 
67  QLineEdit* getTitleEdit() const;
68  QTextEdit* getDescEdit() const;
69  QLineEdit* getLocEdit() const;
70  QDateTimeEdit* getDateTimeEdit() const;
71  QDialogButtonBox* getButtonBox() const;
72 
73  void addToMainLayout(QWidget* const widget);
74 
75 private Q_SLOTS:
76 
77  void slotTextChanged(const QString& text);
78 
79 protected:
80 
81  void getBaseAlbumProperties(WSAlbum& baseAlbum);
82 
83 private:
84 
85  class Private;
86  Private* const d;
87 };
88 
89 } // namespace Digikam
90 
91 #endif // DIGIKAM_WS_NEW_ALBUM_DIALOG_H
Definition: wsitem.h:39
Definition: wsnewalbumdialog.h:52
Definition: datefolderview.cpp:43