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

LauncherView Class Reference

#include <launcherview.h>

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

List of all members.

Public Member Functions

 LauncherView (Launcher *container)
virtual ~LauncherView ()

Protected Slots

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

Detailed Description

The launcher manages a layout for the launcher pages.

Definition at line 34 of file launcherview.h.


Constructor & Destructor Documentation

LauncherView::LauncherView ( Launcher container  ) 

Constructs a LauncherView.

Parameters:
container the Launcher controller to be used

Definition at line 35 of file launcherview.cpp.

                                               :
    MWidgetView(controller),
    layout(new MLayout),
    policy(new MLinearLayoutPolicy(layout, Qt::Horizontal)),
    pannedWidget(new MWidget)
{
    layout->setContentsMargins(0, 0, 0, 0);
    pannedWidget->setLayout(layout);

    pagedViewport = new PagedViewport(controller);

    pagedViewport->positionIndicator()->setObjectName("LauncherPageIndicator");

    pagedViewport->setWidget(pannedWidget);
    pagedViewport->setObjectName("LauncherPagedViewport");
    pagedViewport->setPanDirection(Qt::Horizontal);

    connect(controller, SIGNAL(panningRequested(uint)), this, SLOT(panToPage(uint)));
    connect(controller, SIGNAL(focusToPageRequested(uint)), this, SLOT(focusToPage(uint)));
    connect(controller, SIGNAL(focusToButtonRequested(const QString &)), this, SLOT(focusToButton(const QString&)));
}

Here is the call graph for this function:

LauncherView::~LauncherView (  )  [virtual]

Destroys the LauncherView.

Definition at line 57 of file launcherview.cpp.

{
    // remove pages from layout to avoid multi deletion (pages are in model as QSharedPointer's)
    foreach (QSharedPointer<LauncherPage> page, model()->launcherPages()) {
        removePageFromLayout(page.data());
    }
}


Member Function Documentation

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

REIMPLEMENTATION

Definition at line 65 of file launcherview.cpp.

{
    MWidgetView::updateData(modifications);
    const char *member;
    foreach(member, modifications) {
        if (member == LauncherModel::LauncherPages) {
            updateLayoutFromModel();

            pagedViewport->updatePageCount(model()->launcherPages().count());
        }
    }
}

Here is the call graph for this function:


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