ui/viewutilities/effectplugin/src/glxhelixeffectplugin.cpp
changeset 45 863223ea6961
child 54 0f0f3f26f787
equal deleted inserted replaced
44:aa2fa096cbfb 45:863223ea6961
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "glxhelixeffectplugin.h"
       
    20 #include "glxuistd.h"
       
    21 #include "glxlocalisationstrings.h"
       
    22 
       
    23 GlxHelixEffectPlugin::GlxHelixEffectPlugin() : GlxEffectPluginBase( HELIX_EFFECT )
       
    24 {
       
    25     mEffectFileList.append(QString(":/data/helix.fxml"));
       
    26     mEffectFileList.append(QString(":/data/fadein.fxml"));
       
    27 }
       
    28 
       
    29 void GlxHelixEffectPlugin::setUpItems( QList< QGraphicsItem * > &  items )
       
    30 {
       
    31     if ( items.count() < 2 ) 
       
    32         return;
       
    33    
       
    34     items.at(0)->setPos(0,0);
       
    35     items.at(1)->setPos(0,0);
       
    36 }
       
    37 
       
    38 QString GlxHelixEffectPlugin::effectName() 
       
    39 { 
       
    40     return ( "Helix" ) ; 
       
    41 }
       
    42 
       
    43 GlxHelixEffectPlugin::~GlxHelixEffectPlugin()
       
    44 {
       
    45     mEffectFileList.clear();
       
    46 }
       
    47