File indexing completed on 2025-01-05 03:57:53
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2021-08-27 0007 * Description : Showfoto folder view bookmark edit dialog 0008 * 0009 * SPDX-FileCopyrightText: 2021-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 SHOWFOTO_FOLDER_VIEW_BOOKMARK_DLG_H 0016 #define SHOWFOTO_FOLDER_VIEW_BOOKMARK_DLG_H 0017 0018 // Qt includes 0019 0020 #include <QString> 0021 #include <QDialog> 0022 0023 // Local includes 0024 0025 #include "digikam_config.h" 0026 0027 namespace ShowFoto 0028 { 0029 0030 class ShowfotoFolderViewBookmarkList; 0031 0032 class ShowfotoFolderViewBookmarkDlg : public QDialog 0033 { 0034 Q_OBJECT 0035 0036 public: 0037 0038 explicit ShowfotoFolderViewBookmarkDlg(ShowfotoFolderViewBookmarkList* const parent, 0039 bool create = false); 0040 ~ShowfotoFolderViewBookmarkDlg() override; 0041 0042 void setTitle(const QString& title); 0043 QString title() const; 0044 0045 void setIcon(const QString& icon); 0046 QString icon() const; 0047 0048 void setPath(const QString& path); 0049 QString path() const; 0050 0051 public: 0052 0053 static bool bookmarkDialog(ShowfotoFolderViewBookmarkList* const parent, 0054 QString& title, 0055 QString& icon, 0056 QString& path, 0057 bool create = false); 0058 0059 private Q_SLOTS: 0060 0061 void slotIconChanged(); 0062 void slotIconResetClicked(); 0063 void slotAccept(); 0064 void slotModified(); 0065 void slotHelp(); 0066 0067 private: 0068 0069 bool canAccept() const; 0070 0071 private: 0072 0073 class Private; 0074 Private* const d; 0075 }; 0076 0077 } // namespace ShowFoto 0078 0079 #endif // SHOWFOTO_FOLDER_VIEW_BOOKMARK_DLG_H