File indexing completed on 2025-01-19 03:50:57
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2009-03-04 0007 * Description : assign metadata template batch tool. 0008 * 0009 * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_BQM_ASSIGN_TEMPLATE_H 0016 #define DIGIKAM_BQM_ASSIGN_TEMPLATE_H 0017 0018 // Local includes 0019 0020 #include "batchtool.h" 0021 #include "templateselector.h" 0022 #include "templateviewer.h" 0023 0024 using namespace Digikam; 0025 0026 namespace DigikamBqmAssignTemplatePlugin 0027 { 0028 0029 class AssignTemplate : public BatchTool 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 0035 explicit AssignTemplate(QObject* const parent = nullptr); 0036 ~AssignTemplate() override; 0037 0038 BatchToolSettings defaultSettings() override; 0039 0040 BatchTool* clone(QObject* const parent = nullptr) const override; 0041 0042 void registerSettingsWidget() override; 0043 0044 private: 0045 0046 bool toolOperations() override; 0047 0048 private Q_SLOTS: 0049 0050 void slotAssignSettings2Widget() override; 0051 void slotSettingsChanged() override; 0052 0053 private: 0054 0055 TemplateSelector* m_templateSelector; 0056 TemplateViewer* m_templateViewer; 0057 }; 0058 0059 } // namespace DigikamBqmAssignTemplatePlugin 0060 0061 #endif // DIGIKAM_BQM_ASSIGN_TEMPLATE_H