File indexing completed on 2024-05-19 04:48:57
0001 /*************************************************************************** 0002 * Copyright (c) 2008 Jeff Mitchell <mitchell@kde.org> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify * 0005 * it under the terms of the GNU General Public License as published by * 0006 * the Free Software Foundation; either version 2 of the License, or * 0007 * (at your option) any later version. * 0008 * * 0009 * This program is distributed in the hope that it will be useful, * 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0012 * GNU General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU General Public License * 0015 * along with this program; if not, write to the * 0016 * Free Software Foundation, Inc., * 0017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 0018 ***************************************************************************/ 0019 0020 #ifndef POPUPDROPPER_ITEM_P_H 0021 #define POPUPDROPPER_ITEM_P_H 0022 0023 #include <QtDebug> 0024 #include <QColor> 0025 #include <QFont> 0026 #include <QPen> 0027 #include <QTimeLine> 0028 0029 #include "PopupDropperItem.h" 0030 0031 class PopupDropperItemPrivate 0032 { 0033 0034 public: 0035 0036 explicit PopupDropperItemPrivate( PopupDropperItem* parent ); 0037 0038 ~PopupDropperItemPrivate(); 0039 0040 QAction* action; 0041 QString text; 0042 QTimeLine hoverTimer; 0043 QString elementId; 0044 QGraphicsTextItem* textItem; 0045 QGraphicsRectItem* borderRectItem; 0046 QGraphicsSvgItem* svgItem; 0047 QGraphicsRectItem* hoverIndicatorRectItem; 0048 QGraphicsRectItem* hoverIndicatorRectFillItem; 0049 int borderWidth; 0050 int hoverIndicatorRectWidth; 0051 QFont font; 0052 bool submenuTrigger; 0053 QColor baseTextColor; 0054 QColor hoveredTextColor; 0055 QPen hoveredBorderPen; 0056 QBrush hoveredFillBrush; 0057 QBrush hoverIndicatorRectFillBrush; 0058 bool hoveredOver; 0059 bool customBaseTextColor; 0060 bool customHoveredTextColor; 0061 bool customHoveredBorderPen; 0062 bool customHoveredFillBrush; 0063 qreal subitemOpacity; 0064 QString file; 0065 QRect svgElementRect; 0066 QSvgRenderer* sharedRenderer; 0067 int horizontalOffset; 0068 int textOffset; 0069 bool separator; 0070 bool hasLineSeparatorPen; 0071 QPen lineSeparatorPen; 0072 PopupDropperItem::HoverIndicatorShowStyle hoverIndicatorShowStyle; 0073 PopupDropperItem::Orientation orientation; 0074 PopupDropperItem::TextProtection textProtection; 0075 PopupDropperItem::SeparatorStyle separatorStyle; 0076 PopupDropper* pd; 0077 0078 private: 0079 PopupDropperItem* q; 0080 }; 0081 0082 #endif 0083