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

MMashupCanvasView Class Reference

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

List of all members.

Public Member Functions

 MMashupCanvasView (MMashupCanvas *controller)
virtual ~MMashupCanvasView ()

Protected Slots

void showAppletInventory ()
void hideAppletInventory ()
void orientationChanged (M::Orientation)

Protected Member Functions

void init (MMashupCanvas *controller)
Q_DECL_DEPRECATED MMashupCanvasView (MMashupCanvasViewPrivate &dd, MMashupCanvas *controller)
 MMashupCanvasView (MMashupCanvasViewPrivate *dd, MMashupCanvas *controller)

Detailed Description

A view class for the MMashupCanvas.

Definition at line 35 of file mmashupcanvasview.h.


Constructor & Destructor Documentation

MMashupCanvasView::MMashupCanvasView ( MMashupCanvas controller  ) 

Constructs a new view for MMashupCanvas.

Parameters:
controller the MMashupCanvas controller for the view.

Definition at line 149 of file mmashupcanvasview.cpp.

                                                              :
    MExtensionAreaView(new MMashupCanvasViewPrivate, controller)
{
    Q_D(MMashupCanvasView);
    d->q_ptr = this;
    d->init();

    init(controller);
}

Here is the call graph for this function:

MMashupCanvasView::~MMashupCanvasView (  )  [virtual]

Destroys the MMashupCanvasView.

Definition at line 171 of file mmashupcanvasview.cpp.

{
}

MMashupCanvasView::MMashupCanvasView ( MMashupCanvasViewPrivate &  dd,
MMashupCanvas controller 
) [protected]

Constructs a new view for MMashupCanvas.

Parameters:
dd the MMashupCanvasViewPrivate private class instance to be used.
controller the MMashupCanvas controller for the view.
Deprecated:
This constructor is deprecated in order to achieve sane lifecycle rules. Use the version taking a pointer to the private instead.

Definition at line 159 of file mmashupcanvasview.cpp.

                                                                                            :
    MExtensionAreaView(&dd, controller)
{
    init(controller);
}

Here is the call graph for this function:

MMashupCanvasView::MMashupCanvasView ( MMashupCanvasViewPrivate *  dd,
MMashupCanvas controller 
) [protected]

Constructs a new view for MMashupCanvas.

Parameters:
dd the MMashupCanvasViewPrivate private class instance to be used. The view takes ownership of the private.
controller the MMashupCanvas controller for the view.

Definition at line 165 of file mmashupcanvasview.cpp.

                                                                                            :
    MExtensionAreaView(dd, controller)
{
    init(controller);
}

Here is the call graph for this function:


Member Function Documentation

void MMashupCanvasView::hideAppletInventory (  )  [protected, slot]

A slot for notifying that the applet inventory should be hidden.

Definition at line 216 of file mmashupcanvasview.cpp.

{
    Q_D(MMashupCanvasView);

    // Disable the applet inventory, so that during the disappear animation of
    // the dialog it's not possible to launch another applet
    d->appletInventory->setEnabled(false);

    d->controller->sceneManager()->disappearSceneWindow(d->appletInventoryWindow);
}

void MMashupCanvasView::init ( MMashupCanvas controller  )  [protected]

Initializes the MMashupCanvasView.

Definition at line 175 of file mmashupcanvasview.cpp.

{
    Q_D(MMashupCanvasView);
    d->controller = controller;
    d->controller->setLayout(d->mainLayout);

    // Set up the applet inventory
    d->appletInventory->setMashupCanvas(*controller);
    connect(d->appletInventory, SIGNAL(hideAppletInventory()), this, SLOT(hideAppletInventory()));
    connect(d->appletInventory, SIGNAL(appletUninstalled(QString)), controller->appletInstanceManager(), SLOT(appletUninstalled(QString)));

    // Connect the applet inventory button clicking signal
    QObject::connect(d->appletInventoryButton, SIGNAL(clicked()), this, SLOT(showAppletInventory()));

    // Get informed about orientation changes
    // TODO: FIXME - this needs to have the scene specified,
    // temporarily uses currently active MWindow's scene.
    connect(MApplication::activeWindow(), SIGNAL(orientationChanged(M::Orientation)), this, SLOT(orientationChanged(M::Orientation)));
}

Here is the call graph for this function:

void MMashupCanvasView::orientationChanged ( M::Orientation   )  [protected, slot]

A slot for getting information about orientation changes.

Definition at line 195 of file mmashupcanvasview.cpp.

{
    Q_D(MMashupCanvasView);

    // TODO: FIXME - this needs to have the scene specified,
    // temporarily uses currently active MWindow's scene.
    QSize sceneSize = MApplication::activeWindow()->visibleSceneSize();

    // Set the applet inventory viewport to the size of the display
    d->appletInventoryViewport->setMinimumSize(sceneSize);
    d->appletInventoryViewport->setMaximumSize(sceneSize);
}

Here is the call graph for this function:

void MMashupCanvasView::showAppletInventory (  )  [protected, slot]

A slot for notifying that the applet inventory should be shown.

Definition at line 208 of file mmashupcanvasview.cpp.

{
    Q_D(MMashupCanvasView);

    d->controller->sceneManager()->appearSceneWindow(d->appletInventoryWindow);
    d->appletInventory->setEnabled(true);
}


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