Home · All Classes · Main Classes · Deprecated
Public Slots | Signals | Public Member Functions | Protected Member Functions

MContainerView Class Reference

MContainerView implements a view for the MContainer. More...

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

List of all members.

Public Slots

void headerPressed ()
void headerReleased ()
void headerCanceled ()
void headerMoved ()

Signals

void headerClicked ()

Public Member Functions

 MContainerView (MContainer *controller)
virtual ~MContainerView ()

Protected Member Functions

 MContainerView (MContainerViewPrivate &dd, MContainer *controller)

Detailed Description

MContainerView implements a view for the MContainer.

Overview

A Container has a minimum width of 18mm, it's maximum width is the width of the screen. By default, the user can set it to a value between these boundaries. The minimum height is the minimum height of the header which is 5.06mm. There is no maximum height of the container.

Interactions

Supported interactions: Long tap. User of the component can specify object menu for content items in native application views. Long tap for applet's content items, not currently implemented.

See also:
MContainer, MContainerModel

Definition at line 48 of file views/mcontainerview.h.


Constructor & Destructor Documentation

MContainerView::MContainerView ( MContainer controller  ) 

Constructor.

Parameters:
controller Pointer to the container's controller

Definition at line 189 of file mcontainerview.cpp.

                                                     :
    MWidgetView(*new MContainerViewPrivate, controller)
{
    Q_D(MContainerView);
    d->controller = controller;

    // setup main infrastructure
    d->init();

    connect(this, SIGNAL(headerClicked()), controller, SIGNAL(headerClicked()));
}

Here is the call graph for this function:

MContainerView::~MContainerView (  )  [virtual]

Destructor.

Definition at line 212 of file mcontainerview.cpp.

{
}

MContainerView::MContainerView ( MContainerViewPrivate &  dd,
MContainer controller 
) [protected]

Definition at line 201 of file mcontainerview.cpp.

                                                                                :
    MWidgetView(dd, controller)
{
    Q_D(MContainerView);
    d->controller = controller;

    d->init();

    connect(this, SIGNAL(headerClicked()), controller, SIGNAL(headerClicked()));
}

Here is the call graph for this function:


Member Function Documentation

void MContainerView::headerCanceled (  )  [slot]

Definition at line 364 of file mcontainerview.cpp.

{
    Q_D(MContainerView);

    if (d->headerPressed) {
        d->headerPressed = false;
        update();
    }
}

Here is the call graph for this function:

void MContainerView::headerClicked (  )  [signal]

Signal for informing that the header was clicked.

void MContainerView::headerMoved (  )  [slot]

Definition at line 354 of file mcontainerview.cpp.

{
    Q_D(MContainerView);

    if (d->headerPressed) {
        d->headerPressed = false;
        update();
    }
}

Here is the call graph for this function:

void MContainerView::headerPressed (  )  [slot]

Definition at line 374 of file mcontainerview.cpp.

{
    Q_D(MContainerView);
    d->headerPressed = true;
}

void MContainerView::headerReleased (  )  [slot]

Definition at line 380 of file mcontainerview.cpp.

{
    Q_D(MContainerView);

    if (d->headerPressed) {
        emit headerClicked();
        d->headerPressed = false;
        update();
    }
}

Here is the call graph for this function:


Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:14:24 (PDT)
Doxygen 1.7.1
MeeGo Touch