Home · All Namespaces · All Classes |
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 mhome. 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 SWITCHERBUTTONWITHTITLEBARVIEW_H 00021 #define SWITCHERBUTTONWITHTITLEBARVIEW_H 00022 00023 #include "switcherbuttonview.h" 00024 #include "switcherbuttonwithtitlebarstyle.h" 00025 00026 class SwitcherButton; 00027 class MButton; 00028 class MLabel; 00029 class QGraphicsLinearLayout; 00030 00036 class SwitcherButtonWithTitleBarView : public SwitcherButtonView 00037 { 00038 Q_OBJECT 00039 M_VIEW(SwitcherButtonModel, SwitcherButtonWithTitleBarStyle) 00040 00041 public: 00047 SwitcherButtonWithTitleBarView(SwitcherButton *controller); 00048 00052 virtual ~SwitcherButtonWithTitleBarView(); 00053 00055 virtual void applyStyle(); 00057 00058 protected slots: 00060 virtual void updateData(const QList<const char *>& modifications); 00062 00063 protected: 00065 virtual void setupModel(); 00066 virtual QPoint thumbnailPosition() const; 00068 00069 private: 00071 MButton *closeButton; 00072 00074 MLabel *titleLabel; 00075 00077 QGraphicsLinearLayout *titleBarLayout; 00078 00079 #ifdef UNIT_TEST 00080 friend class Ut_SwitcherButtonWithTitleBarView; 00081 #endif 00082 00083 Q_DISABLE_COPY(SwitcherButtonWithTitleBarView); 00084 }; 00085 00086 #endif
Copyright © 2011 Nokia Corporation | Generated on Thu Jul 7 2011 22:14:50 Doxygen 1.7.1 |
MeeGo Touch |