| 1 |
/*************************************************************************** |
| 2 |
* Copyright (c) 2008 Jeff Mitchell <[email protected]> * |
| 3 |
* * |
| 4 |
* This program is free software; you can redistribute it and/or modify * |
| 5 |
* it under the terms of the GNU General Public License as published by * |
| 6 |
* the Free Software Foundation; either version 2 of the License, or * |
| 7 |
* (at your option) any later version. * |
| 8 |
* * |
| 9 |
* This program is distributed in the hope that it will be useful, * |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 12 |
* GNU General Public License for more details. * |
| 13 |
* * |
| 14 |
* You should have received a copy of the GNU General Public License * |
| 15 |
* along with this program; if not, write to the * |
| 16 |
* Free Software Foundation, Inc., * |
| 17 |
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * |
| 18 |
***************************************************************************/ |
| 19 |
|
| 20 |
#ifndef POPUPDROPPER_ITEM_P_H |
| 21 |
#define POPUPDROPPER_ITEM_P_H |
| 22 |
|
| 23 |
#include <QtDebug> |
| 24 |
#include <QColor> |
| 25 |
#include <QFont> |
| 26 |
#include <QPen> |
| 27 |
#include <QTimeLine> |
| 28 |
|
| 29 |
#include "PopupDropperItem.h" |
| 30 |
|
| 31 |
class PopupDropperItemPrivate |
| 32 |
{ |
| 33 |
|
| 34 |
public: |
| 35 |
|
| 36 |
explicit PopupDropperItemPrivate( PopupDropperItem* parent ); |
| 37 |
|
| 38 |
~PopupDropperItemPrivate(); |
| 39 |
|
| 40 |
QAction* action; |
| 41 |
QString text; |
| 42 |
QTimeLine hoverTimer; |
| 43 |
QString elementId; |
| 44 |
QGraphicsTextItem* textItem; |
| 45 |
QGraphicsRectItem* borderRectItem; |
| 46 |
QGraphicsSvgItem* svgItem; |
| 47 |
QGraphicsRectItem* hoverIndicatorRectItem; |
| 48 |
QGraphicsRectItem* hoverIndicatorRectFillItem; |
| 49 |
int borderWidth; |
| 50 |
int hoverIndicatorRectWidth; |
| 51 |
QFont font; |
| 52 |
bool submenuTrigger; |
| 53 |
QColor baseTextColor; |
| 54 |
QColor hoveredTextColor; |
| 55 |
QPen hoveredBorderPen; |
| 56 |
QBrush hoveredFillBrush; |
| 57 |
QBrush hoverIndicatorRectFillBrush; |
| 58 |
bool hoveredOver; |
| 59 |
bool customBaseTextColor; |
| 60 |
bool customHoveredTextColor; |
| 61 |
bool customHoveredBorderPen; |
| 62 |
bool customHoveredFillBrush; |
| 63 |
qreal subitemOpacity; |
| 64 |
QString file; |
| 65 |
QRect svgElementRect; |
| 66 |
QSvgRenderer* sharedRenderer; |
| 67 |
int horizontalOffset; |
| 68 |
int textOffset; |
| 69 |
bool separator; |
| 70 |
bool hasLineSeparatorPen; |
| 71 |
QPen lineSeparatorPen; |
| 72 |
PopupDropperItem::HoverIndicatorShowStyle hoverIndicatorShowStyle; |
| 73 |
PopupDropperItem::Orientation orientation; |
| 74 |
PopupDropperItem::TextProtection textProtection; |
| 75 |
PopupDropperItem::SeparatorStyle separatorStyle; |
| 76 |
PopupDropper* pd; |
| 77 |
|
| 78 |
private: |
| 79 |
PopupDropperItem* q; |
| 80 |
}; |
| 81 |
|
| 82 |
#endif |
| 83 |
|