File indexing completed on 2025-01-05 03:53:13
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2017-05-25 0007 * Description : a tool to print images 0008 * 0009 * SPDX-FileCopyrightText: 2017-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_ADV_PRINT_CROP_PAGE_H 0016 #define DIGIKAM_ADV_PRINT_CROP_PAGE_H 0017 0018 // Qt includes 0019 0020 #include <QString> 0021 #include <QUrl> 0022 0023 // Local includes 0024 0025 #include "dwizardpage.h" 0026 #include "ditemslist.h" 0027 #include "ui_advprintcroppage.h" 0028 0029 using namespace Digikam; 0030 0031 namespace DigikamGenericPrintCreatorPlugin 0032 { 0033 0034 class AdvPrintCropPage : public DWizardPage 0035 { 0036 Q_OBJECT 0037 0038 public: 0039 0040 explicit AdvPrintCropPage(QWizard* const wizard, const QString& title); 0041 ~AdvPrintCropPage() override; 0042 0043 Ui_AdvPrintCropPage* ui() const; 0044 0045 void setBtnCropEnabled(); 0046 0047 void initializePage() override; 0048 bool validatePage() override; 0049 0050 private Q_SLOTS: 0051 0052 void slotCropSelection(int); 0053 void slotBtnCropPrevClicked(); 0054 void slotBtnCropNextClicked(); 0055 void slotBtnCropRotateLeftClicked(); 0056 void slotBtnCropRotateRightClicked(); 0057 0058 private: 0059 0060 class Private; 0061 Private* const d; 0062 }; 0063 0064 } // namespace DigikamGenericPrintCreatorPlugin 0065 0066 #endif // DIGIKAM_ADV_PRINT_CROP_PAGE_H