1 /*************************************************************************** 2 * Copyright (C) 2003 by Sébastien Laoût * 3 * slaout@linux62.org * 4 * * 5 * This program is free software; you can redistribute it and/or modify * 6 * it under the terms of the GNU General Public License as published by * 7 * the Free Software Foundation; either version 2 of the License, or * 8 * (at your option) any later version. * 9 * * 10 * This program is distributed in the hope that it will be useful, * 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 13 * GNU General Public License for more details. * 14 * * 15 * You should have received a copy of the GNU General Public License * 16 * along with this program; if not, write to the * 17 * Free Software Foundation, Inc., * 18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 19 ***************************************************************************/ 20 21 #ifndef BASKETPROPERTIES_H 22 #define BASKETPROPERTIES_H 23 24 #include <QDialog> 25 #include <QtCore/QMap> 26 #include <KIconButton> 27 28 #include "ui_basketproperties.h" 29 30 class KIconButton; 31 class QLineEdit; 32 class QGroupBox; 33 class QVBoxLayout; 34 class QRadioButton; 35 class QString; 36 37 class KComboBox; 38 class KShortcutWidget; 39 class QKeySequence; 40 class KColorCombo2; 41 42 class BasketScene; 43 44 /** The dialog that hold basket settings. 45 * @author Sébastien Laoût 46 */ 47 class BasketPropertiesDialog : public QDialog, private Ui::BasketPropertiesUi 48 { 49 Q_OBJECT 50 public: 51 explicit BasketPropertiesDialog(BasketScene *basket, QWidget *parent = 0); 52 ~BasketPropertiesDialog(); 53 void ensurePolished(); 54 55 public slots: 56 void applyChanges(); 57 58 protected slots: 59 void capturedShortcut(const QList<QKeySequence>& shortcut); 60 void selectColumnsLayout(); 61 62 private: 63 BasketScene *m_basket; 64 KColorCombo2 *m_backgroundColor; 65 KColorCombo2 *m_textColor; 66 67 QMap<int, QString> m_backgroundImagesMap; 68 }; 69 70 #endif // BASKETPROPERTIES_H 71