digiKam
faceitem.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 : 2010-09-17
7  * Description : Face tag region item
8  *
9  * Copyright (C) 2010-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_FACE_ITEM_H
25 #define DIGIKAM_FACE_ITEM_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 #include <QGraphicsWidget>
31 
32 // Local includes
33 
34 #include "facetagsiface.h"
35 #include "assignnamewidget.h"
36 #include "regionframeitem.h"
37 
38 namespace Digikam
39 {
40 
41 class HidingStateChanger;
42 
43 class Q_DECL_HIDDEN FaceItem : public RegionFrameItem // clazy:exclude=ctor-missing-parent-argument
44 {
45  Q_OBJECT
46 
47 public:
48 
49  explicit FaceItem(QGraphicsItem* const parent);
50  ~FaceItem() override;
51 
52  void setFace(const FaceTagsIface& face);
53  FaceTagsIface face() const;
54  void setHudWidget(AssignNameWidget* const widget);
55  AssignNameWidget* widget() const;
56  void switchMode(AssignNameWidget::Mode mode);
57  void setEditable(bool allowEdit);
58  void updateCurrentTag();
59 
60 protected:
61 
65 
66 private:
67 
68  // Disable
69  FaceItem() = delete;
70  FaceItem(const FaceItem&) = delete;
71  FaceItem& operator=(const FaceItem&) = delete;
72 };
73 
74 } // namespace Digikam
75 
76 #endif // DIGIKAM_FACE_ITEM_H
Definition: assignnamewidget.h:48
Mode
Definition: assignnamewidget.h:58
Definition: faceitem.h:44
HidingStateChanger * m_changer
Definition: faceitem.h:64
AssignNameWidget * m_widget
Definition: faceitem.h:63
FaceTagsIface m_face
Definition: faceitem.h:62
Definition: facetagsiface.h:44
Definition: itemvisibilitycontroller.h:282
Definition: regionframeitem.h:43
Definition: datefolderview.cpp:43