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 #ifndef LAUNCHERVIEW_H 00020 #define LAUNCHERVIEW_H 00021 00022 #include <mextendingbackgroundview.h> 00023 #include "launcherstyle.h" 00024 #include "launchermodel.h" 00025 00026 class Launcher; 00027 class PagedViewport; 00028 class MLayout; 00029 class MLinearLayoutPolicy; 00030 00034 class LauncherView : public MWidgetView 00035 { 00036 Q_OBJECT 00037 M_VIEW(LauncherModel, LauncherStyle) 00038 00039 public: 00045 LauncherView(Launcher *container); 00046 00050 virtual ~LauncherView(); 00051 00052 protected slots: 00054 virtual void updateData(const QList<const char *>& modifications); 00056 00057 private slots: 00063 void panToPage(uint page); 00064 00068 void focusToPage(uint page); 00069 00073 void focusToButton(const QString &desktopFileEntry); 00074 00075 private: 00081 void updateLayoutFromModel(); 00082 00090 void removePageFromLayout(LauncherPage *page); 00091 00093 MLayout *layout; 00095 MLinearLayoutPolicy *policy; 00097 MWidget* pannedWidget; 00099 PagedViewport* pagedViewport; 00100 00101 #ifdef UNIT_TEST 00102 friend class Ut_LauncherView; 00103 #endif 00104 }; 00105 00106 #endif // LAUNCHERVIEW_H
Copyright © 2011 Nokia Corporation | Generated on Thu Jul 7 2011 22:14:50 Doxygen 1.7.1 |
MeeGo Touch |