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

MSceneWindowView Class Reference

This is a default view class for MSceneWindow. More...

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

List of all members.

Signals

void geometryAttributesChanged ()

Public Member Functions

 MSceneWindowView (MSceneWindow *controller)
virtual ~MSceneWindowView ()
Qt::Alignment alignment () const
QPointF offset () const

Protected Member Functions

 MSceneWindowView (MSceneWindowViewPrivate &dd, MSceneWindow *controller)

Properties

Qt::Alignment alignment
QPointF offset

Detailed Description

This is a default view class for MSceneWindow.

The MSceneWindowView provides an interface to notify the scene manager about changes in scene window's geometry-related style attributes. It is the preferred base class for views of all types of scene windows. Once its style changes, it emits a geometryAttributesChanged() signal, which is propagated to the MSceneManager instance, causing the window geometry and position to be recalculated.

Definition at line 42 of file views/mscenewindowview.h.


Constructor & Destructor Documentation

MSceneWindowView::MSceneWindowView ( MSceneWindow controller  ) 

Creates a new instance of the view for the given /a controller.

Definition at line 45 of file mscenewindowview.cpp.

                                                           :
    MWidgetView(*new MSceneWindowViewPrivate, controller)
{
    Q_D(MSceneWindowView);

    d->controller = controller;
    connect(this, SIGNAL(geometryAttributesChanged()), controller, SIGNAL(repositionNeeded()));
    connect(controller, SIGNAL(appearing()), this, SLOT(_q_playSceneWindowAppearingFeedback()));
}

Here is the call graph for this function:

MSceneWindowView::~MSceneWindowView (  )  [virtual]

A destructor.

Definition at line 65 of file mscenewindowview.cpp.

{
}

MSceneWindowView::MSceneWindowView ( MSceneWindowViewPrivate &  dd,
MSceneWindow controller 
) [protected]

Definition at line 55 of file mscenewindowview.cpp.

                                                                                        :
    MWidgetView(dd, controller)
{
    Q_D(MSceneWindowView);

    d->controller = controller;
    connect(this, SIGNAL(geometryAttributesChanged()), controller, SIGNAL(repositionNeeded()));
    connect(controller, SIGNAL(appearing()), this, SLOT(_q_playSceneWindowAppearingFeedback()));
}

Here is the call graph for this function:


Member Function Documentation

Qt::Alignment MSceneWindowView::alignment (  )  const

Returns the current alignment. Alignment defines how scene manager will position the window on the screen.

Returns:
The current alignment.
void MSceneWindowView::geometryAttributesChanged (  )  [signal]

Emitted every time when the style of the scene window changes.

QPointF MSceneWindowView::offset (  )  const

Returns the current offset.

Returns:
The current offset.

Property Documentation

Qt::Alignment MSceneWindowView::alignment [read]

Definition at line 46 of file views/mscenewindowview.h.

QPointF MSceneWindowView::offset [read]

Definition at line 47 of file views/mscenewindowview.h.


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