Home · All Namespaces · All Classes
Public Member Functions | Protected Slots | Protected Member Functions

LauncherPageView Class Reference

#include <launcherpageview.h>

Inheritance diagram for LauncherPageView:
Inheritance graph
[legend]
Collaboration diagram for LauncherPageView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LauncherPageView (LauncherPage *controller)
virtual ~LauncherPageView ()

Protected Slots

virtual void updateData (const QList< const char * > &modifications)
 

Protected Member Functions

virtual void setupModel ()
 REIMPLEMENTATION

Detailed Description

Definition at line 34 of file launcherpageview.h.


Constructor & Destructor Documentation

LauncherPageView::LauncherPageView ( LauncherPage controller  ) 

Constructs an LauncherPageView.

Parameters:
container the LauncherPage controller to be used

Definition at line 28 of file launcherpageview.cpp.

                                                           :
    MWidgetView(controller),
    layout(new MLayout),
    policy(new MFlowLayoutPolicy(layout))
{
    policy->setObjectName("LauncherPageFlowLayoutPolicy");
    controller->setLayout(layout);
}

LauncherPageView::~LauncherPageView (  )  [virtual]

Destroys the LauncherPageView.

Definition at line 37 of file launcherpageview.cpp.

{
    // remove buttons from layout to avoid multi deletion (buttons are in model as QSharedPointer's)
    foreach (QSharedPointer<LauncherButton> button, model()->launcherButtons()) {
        removeButtonFromLayout(button.data());
    }
}


Member Function Documentation

void LauncherPageView::setupModel (  )  [protected, virtual]

REIMPLEMENTATION

Definition at line 94 of file launcherpageview.cpp.

{
    MWidgetView::setupModel();

    QList<const char *> modifications;
    modifications << LauncherPageModel::LauncherButtons;
    updateData(modifications);
}

Here is the call graph for this function:

void LauncherPageView::updateData ( const QList< const char * > &  modifications  )  [protected, virtual, slot]

REIMPLEMENTATION

Definition at line 45 of file launcherpageview.cpp.

{
    MWidgetView::updateData(modifications);
    const char *member;
    foreach(member, modifications) {
        if (member == LauncherPageModel::LauncherButtons) {
            updateLayoutFromModel();
        }
    }
}


The documentation for this class was generated from the following files:

Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:20:42
Doxygen 1.7.1
MeeGo Touch