| Home · All Classes · Main Classes · Deprecated |
00001 /*************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of libmeegotouch. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 00020 #ifndef MBUBBLEITEMVIEW_H__ 00021 #define MBUBBLEITEMVIEW_H__ 00022 00023 #include "mwidgetview.h" 00024 #include <MImageWidget> 00025 #include "mimagewidgetview.h" 00026 #include "mbubbleitemmodel.h" 00027 #include "mbubbleitemstyle.h" 00028 #include "mbubbleitembackgroundstyle.h" 00029 00030 class MBubbleItem; 00031 class MBubbleItemViewPrivate; 00032 00044 class M_VIEWS_EXPORT MBubbleItemView : public MWidgetView 00045 { 00046 Q_OBJECT 00047 M_VIEW(MBubbleItemModel, MBubbleItemStyle) 00048 00049 public: 00050 MBubbleItemView(MBubbleItem *controller); 00051 virtual ~MBubbleItemView(); 00052 00053 protected slots: 00054 virtual void updateData(const QList<const char *> &modifications); 00055 void mousePressEvent(QGraphicsSceneMouseEvent *event); 00056 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); 00057 00058 protected: 00060 virtual void setupModel(); 00061 virtual void applyStyle(); 00062 virtual void setGeometry(const QRectF &rect); 00064 00065 void setSelected(bool selected); 00066 00068 MBubbleItemView(MBubbleItemViewPrivate &dd, MBubbleItem *controller); 00070 00071 private: 00072 Q_DISABLE_COPY(MBubbleItemView) 00073 Q_DECLARE_PRIVATE(MBubbleItemView) 00074 }; 00075 00076 #endif
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:14:20 (PDT) Doxygen 1.7.1 |
MeeGo Touch |