File indexing completed on 2025-01-19 03:50:48

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2013-03-02
0007  * Description : Table view: Column cpp dialog
0008  *
0009  * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2013      by Michael G. Hansen <mike at mghansen dot de>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_TABLE_VIEW_COLUMN_CONFIGURATION_DIALOG_H
0017 #define DIGIKAM_TABLE_VIEW_COLUMN_CONFIGURATION_DIALOG_H
0018 
0019 // KDE includes
0020 
0021 #include <QDialog>
0022 
0023 // Local includes
0024 
0025 #include "tableview_columnfactory.h"
0026 #include "tableview_shared.h"
0027 
0028 class QMenu;
0029 class QContextMenuEvent;
0030 
0031 namespace Digikam
0032 {
0033 
0034 class TableViewConfigurationDialog : public QDialog
0035 {
0036     Q_OBJECT
0037 
0038 public:
0039 
0040     explicit TableViewConfigurationDialog(TableViewShared* const sharedObject,
0041                                           const int columnIndex,
0042                                           QWidget* const parentWidget);
0043     ~TableViewConfigurationDialog() override;
0044 
0045     TableViewColumnConfiguration getNewConfiguration() const;
0046 
0047 private:
0048 
0049     class Private;
0050 
0051     const QScopedPointer<Private> d;
0052     TableViewShared* const        s;
0053 };
0054 
0055 } // namespace Digikam
0056 
0057 #endif // DIGIKAM_TABLE_VIEW_COLUMN_CONFIGURATION_DIALOG_H