File indexing completed on 2025-01-19 03:57:58

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 28/08/2021
0007  * Description : Managing of focus point items on a GraphicsDImgView
0008  *
0009  * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2021 by Phuoc Khanh Le <phuockhanhnk94 at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_FOCUSPOINT_GROUP_P_H
0017 #define DIGIKAM_FOCUSPOINT_GROUP_P_H
0018 
0019 #include "focuspointgroup.h"
0020 
0021 // Local includes
0022 
0023 #include "digikam_debug.h"
0024 #include "focuspointitem.h"
0025 
0026 namespace Digikam
0027 {
0028 
0029 enum FocusPointGroupState
0030 {
0031     NoPoints,
0032     LoadingPoints,
0033     PointsLoaded
0034 };
0035 
0036 class Q_DECL_HIDDEN FocusPointGroup::Private
0037 {
0038 
0039 public:
0040 
0041     explicit Private(FocusPointGroup* const q);
0042 
0043     FocusPointItem* createItem(const FocusPoint& point) const;
0044     FocusPointItem* addItem(const FocusPoint& point);
0045     void applyVisible();
0046 
0047 public:
0048 
0049     GraphicsDImgView*           view;
0050     ItemInfo                    info;
0051     bool                        exifRotate;
0052 
0053     QList<FocusPointItem*>      items;
0054 
0055     ClickDragReleaseItem*       manuallyAddWrapItem;
0056     FocusPointItem*             manuallyAddedItem;
0057 
0058     FocusPointGroupState        state;
0059     ItemVisibilityController*   visibilityController;
0060 
0061     FocusPointGroup* const      q;
0062 };
0063 
0064 } // namespace Digikam
0065 
0066 #endif // DIGIKAM_FOCUSPOINT_GROUP_P_H