File indexing completed on 2022-09-27 16:29:05

0001 /**
0002  * SPDX-FileCopyrightText: (C) 2003 by Sébastien Laoût <slaout@linux62.org>
0003  * SPDX-License-Identifier: GPL-2.0-or-later
0004  */
0005 
0006 #ifndef BASKETPROPERTIES_H
0007 #define BASKETPROPERTIES_H
0008 
0009 #include <KIconButton>
0010 #include <QDialog>
0011 #include <QtCore/QMap>
0012 
0013 #include "ui_basketproperties.h"
0014 
0015 class KIconButton;
0016 class QLineEdit;
0017 class QGroupBox;
0018 class QVBoxLayout;
0019 class QRadioButton;
0020 class QString;
0021 
0022 class KComboBox;
0023 class KShortcutWidget;
0024 class QKeySequence;
0025 class KColorCombo2;
0026 
0027 class BasketScene;
0028 
0029 /** The dialog that hold basket settings.
0030  * @author Sébastien Laoût
0031  */
0032 class BasketPropertiesDialog : public QDialog, private Ui::BasketPropertiesUi
0033 {
0034     Q_OBJECT
0035 public:
0036     explicit BasketPropertiesDialog(BasketScene *basket, QWidget *parent = nullptr);
0037     ~BasketPropertiesDialog() override;
0038     void ensurePolished();
0039 
0040 public Q_SLOTS:
0041     void applyChanges();
0042 
0043 protected Q_SLOTS:
0044     void capturedShortcut(const QList<QKeySequence> &shortcut);
0045     void selectColumnsLayout();
0046 
0047 private:
0048     BasketScene *m_basket;
0049     KColorCombo2 *m_backgroundColor;
0050     KColorCombo2 *m_textColor;
0051 
0052     QMap<int, QString> m_backgroundImagesMap;
0053 };
0054 
0055 #endif // BASKETPROPERTIES_H