Warning, file /office/calligra/libs/widgets/KoColorSetWidget_p.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 Copyright (c) 2007, 2012 C. Boemann <cbo@boemann.dk> 0003 Copyright (c) 2007-2008 Fredy Yanardi <fyanardi@gmail.com> 0004 0005 This library is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU Library General Public 0007 License as published by the Free Software Foundation; either 0008 version 2 of the License, or (at your option) any later version. 0009 0010 This library is distributed in the hope that it will be useful, 0011 but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0013 Library General Public License for more details. 0014 0015 You should have received a copy of the GNU Library General Public License 0016 along with this library; see the file COPYING.LIB. If not, write to 0017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0018 Boston, MA 02110-1301, USA. 0019 */ 0020 #ifndef KoColorSetWidget_p_h 0021 #define KoColorSetWidget_p_h 0022 0023 #include "KoColorSetWidget.h" 0024 0025 #include <QTimer> 0026 #include <QApplication> 0027 #include <QSize> 0028 #include <QToolButton> 0029 #include <QHBoxLayout> 0030 #include <QCheckBox> 0031 #include <QFrame> 0032 #include <QLabel> 0033 #include <QMouseEvent> 0034 #include <QMenu> 0035 #include <QWidgetAction> 0036 #include <QDir> 0037 #include <QPointer> 0038 #include <QScrollArea> 0039 0040 #include <klocalizedstring.h> 0041 #include <WidgetsDebug.h> 0042 0043 #include <KoColorSet.h> 0044 0045 class KoColorPatch; 0046 0047 class Q_DECL_HIDDEN KoColorSetWidget::KoColorSetWidgetPrivate { 0048 public: 0049 KoColorSetWidget *thePublic; 0050 QPointer<KoColorSet> colorSet; 0051 QTimer m_timer; 0052 QVBoxLayout *mainLayout; 0053 bool firstShowOfContainer; 0054 QWidget *colorSetContainer; 0055 QScrollArea *scrollArea; 0056 QGridLayout *colorSetLayout; 0057 QHBoxLayout *recentsLayout; 0058 KoColorPatch *recentPatches[6]; 0059 QToolButton *addRemoveButton; 0060 int numRecents; 0061 0062 void colorTriggered(KoColorPatch *patch); 0063 void addRecent(const KoColor &); 0064 void activateRecent(int i); 0065 void fillColors(); 0066 void addRemoveColors(); 0067 }; 0068 0069 #endif