kdgantt
kdganttstyleoptionganttitem.h
Go to the documentation of this file.00001 /**************************************************************************** 00002 ** Copyright (C) 2001-2006 Klarälvdalens Datakonsult AB. All rights reserved. 00003 ** 00004 ** This file is part of the KD Gantt library. 00005 ** 00006 ** This file may be used under the terms of the GNU General Public 00007 ** License versions 2.0 or 3.0 as published by the Free Software 00008 ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 00009 ** included in the packaging of this file. Alternatively you may (at 00010 ** your option) use any later version of the GNU General Public 00011 ** License if such license has been publicly approved by 00012 ** Klarälvdalens Datakonsult AB (or its successors, if any). 00013 ** 00014 ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, 00015 ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR 00016 ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights 00017 ** not expressly granted herein. 00018 ** 00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00021 ** 00022 **********************************************************************/ 00023 #ifndef KDGANTTSTYLEOPTIONGANTTITEM_H 00024 #define KDGANTTSTYLEOPTIONGANTTITEM_H 00025 00026 #include "kdgantt_export.h" 00027 00028 #include <QStyleOptionViewItem> 00029 #include <QRectF> 00030 #include <QDebug> 00031 00032 namespace KDGantt { 00033 class AbstractGrid; 00034 class KDGANTT_EXPORT StyleOptionGanttItem : public QStyleOptionViewItem { 00035 public: 00036 enum Position { Left, Right, Center }; 00037 00038 StyleOptionGanttItem(); 00039 StyleOptionGanttItem( const StyleOptionGanttItem& other ); 00040 StyleOptionGanttItem& operator=( const StyleOptionGanttItem& other ); 00041 00042 QRectF boundingRect; 00043 QRectF itemRect; 00044 Position displayPosition; 00045 AbstractGrid* grid; 00046 QString text; 00047 }; 00048 } 00049 00050 #ifndef QT_NO_DEBUG_STREAM 00051 00052 QDebug operator<<( QDebug dbg, const KDGantt::StyleOptionGanttItem& s ); 00053 00054 #endif /* QT_NO_DEBUG_STREAM */ 00055 00056 00057 #endif /* KDGANTTSTYLEOPTIONGANTTITEM_H */ 00058
KDE 4.2 API Reference