/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Declarative module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercial Usage ** This file contains pre-release code and may not be distributed. ** You may use this file in accordance with the terms and conditions ** contained in the Technology Preview License Agreement accompanying ** this package. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Nokia gives you certain additional ** rights. These rights are described in the Nokia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** If you have questions regarding the use of this file, please contact ** Nokia at qt-info@nokia.com. ** ** ** ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #include "V1/qdeclarativeparticles_p.h" #include "pluginmain.h" #include "spritestate.h" #include "spriteengine.h" #include "particleaffector.h" #include "wanderaffector.h" //#include "rockingaffector.h" //#include "scalingaffector.h" #include "resetaffector.h" #include "gravityaffector.h" #include "driftaffector.h" #include "gravitationalsingularityaffector.h" #include "frictionaffector.h" #include "meanderaffector.h" #include "attractoraffector.h" #include "speedlimitaffector.h" #include "killaffector.h" //#include "zoneaffector.h" //#include "toggleaffector.h" #include "spritegoalaffector.h" #include "swarmaffector.h" #include "turbulenceaffector.h" #include "eternalaffector.h" #include "particlesystem.h" #include "particleemitter.h" //#include "spriteemitter.h" #include "trailsemitter.h" #include "particle.h" #include "coloredparticle.h" #include "spriteparticle.h" #include "modelparticle.h" #include "superparticle.h" #include "ultraparticle.h" //#include "pairedparticle.h" #include "spriteimage.h" #include "followemitter.h" #include "particleextruder.h" #include "ellipseextruder.h" #include "lineextruder.h" #include "maskextruder.h" #include "varyingvector.h" #include "pointvector.h" #include "angledvector.h" #include "directedvector.h" //#include "followaffector.h" #include "deformableparticle.h" #include "pictureaffector.h" QT_BEGIN_NAMESPACE void ParticlesPlugin::registerTypes(const char *uri) { Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt.labs.particles")); qmlRegisterType(uri, 1, 0, "Particles"); qmlRegisterType(uri,1,0,"ParticleMotion"); qmlRegisterType(uri,1,0,"ParticleMotionGravity"); qmlRegisterType(uri,1,0,"ParticleMotionLinear"); qmlRegisterType(uri,1,0,"ParticleMotionWander"); qmlRegisterType(uri, 2, 0, "Sprite"); qmlRegisterType(uri, 2, 0, "SpriteEngine"); qmlRegisterType(uri, 2, 0, "SpriteImage"); qmlRegisterType(uri, 2, 0, "ParticleSystem"); qmlRegisterType(uri, 2, 0, "Particle"); qmlRegisterType(uri, 2, 0, "ColoredParticle"); qmlRegisterType(uri, 2, 0, "SpriteParticle"); qmlRegisterType(uri, 2, 0, "ModelParticle"); //qmlRegisterType(uri, 2, 0, "PairedParticle"); qmlRegisterType(uri, 2, 0, "DeformableParticle"); qmlRegisterType(uri, 2, 0, "SuperParticle"); qmlRegisterType(uri, 2, 0, "UltraParticle"); qmlRegisterType(uri, 2, 0, "ParticleEmitter"); qmlRegisterType(uri, 2, 0, "TrailEmitter"); qmlRegisterType(uri, 2, 0, "FollowEmitter"); qmlRegisterType(uri, 2, 0, "Box"); qmlRegisterType(uri, 2, 0, "Ellipse"); qmlRegisterType(uri, 2, 0, "Line"); qmlRegisterType(uri, 2, 0, "Mask"); qmlRegisterType(uri, 2, 0, "NullVector"); qmlRegisterType(uri, 2, 0, "PointVector"); qmlRegisterType(uri, 2, 0, "AngleVector"); qmlRegisterType(uri, 2, 0, "DirectedVector"); qmlRegisterType(uri, 2, 0, "ParticleAffector"); qmlRegisterType(uri, 2, 0, "Wander"); //qmlRegisterType(uri, 2, 0, "Scale"); //qmlRegisterType(uri, 2, 0, "Rocking"); qmlRegisterType(uri, 2, 0, "Drift"); qmlRegisterType(uri, 2, 0, "Friction"); qmlRegisterType(uri, 2, 0, "GravitationalSingularity"); qmlRegisterType(uri, 2, 0, "Attractor"); qmlRegisterType(uri, 2, 0, "Meander"); qmlRegisterType(uri, 2, 0, "SpeedLimit"); qmlRegisterType(uri, 2, 0, "Gravity"); qmlRegisterType(uri, 2, 0, "Stasis"); qmlRegisterType(uri, 2, 0, "Reset"); //qmlRegisterType(uri, 2, 0, "Zone"); //qmlRegisterType(uri, 2, 0, "Toggle"); qmlRegisterType(uri, 2, 0, "Kill"); qmlRegisterType(uri, 2, 0, "SpriteGoal"); qmlRegisterType(uri, 2, 0 , "Swarm"); qmlRegisterType(uri, 2, 0 , "Turbulence"); qmlRegisterType(uri, 2, 0, "Picture"); } QT_END_NAMESPACE Q_EXPORT_PLUGIN2(Particles, QT_PREPEND_NAMESPACE(ParticlesPlugin))