| Home · All Classes · Main Classes · Deprecated |


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) | |
A view class for the MMashupCanvas.
Definition at line 35 of file mmashupcanvasview.h.
| MMashupCanvasView::MMashupCanvasView | ( | MMashupCanvas * | controller | ) |
Constructs a new view for MMashupCanvas.
| 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);
}

| MMashupCanvasView::~MMashupCanvasView | ( | ) | [virtual] |
| MMashupCanvasView::MMashupCanvasView | ( | MMashupCanvasViewPrivate & | dd, | |
| MMashupCanvas * | controller | |||
| ) | [protected] |
Constructs a new view for MMashupCanvas.
| dd | the MMashupCanvasViewPrivate private class instance to be used. | |
| controller | the MMashupCanvas controller for the view. |
Definition at line 159 of file mmashupcanvasview.cpp.
:
MExtensionAreaView(&dd, controller)
{
init(controller);
}

| MMashupCanvasView::MMashupCanvasView | ( | MMashupCanvasViewPrivate * | dd, | |
| MMashupCanvas * | controller | |||
| ) | [protected] |
Constructs a new view for MMashupCanvas.
| 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);
}

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

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

| 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 |