| Home · All Classes · Main Classes · Deprecated |
MContainerView implements a view for the MContainer. More...


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) | |
MContainerView implements a view for the MContainer.
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.
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.
Definition at line 48 of file views/mcontainerview.h.
| MContainerView::MContainerView | ( | MContainer * | controller | ) |
Constructor.
| 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()));
}

| MContainerView::~MContainerView | ( | ) | [virtual] |
| 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()));
}

| void MContainerView::headerCanceled | ( | ) | [slot] |
Definition at line 364 of file mcontainerview.cpp.
{
Q_D(MContainerView);
if (d->headerPressed) {
d->headerPressed = false;
update();
}
}

| 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();
}
}

| 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();
}
}

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