diff -r 74c9f037fd5d -r 99ad1390cd33 ui/views/viewbase/src/glxview.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ui/views/viewbase/src/glxview.cpp Fri Apr 16 14:58:46 2010 +0300 @@ -0,0 +1,57 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: ?Description +* +*/ + +//include +#include +#include + +//User Includes +#include "glxview.h" + + +GlxView::GlxView(qint32 id, QGraphicsItem *parent ) : HbView(parent), mId(id) +{ + +} + +bool GlxView::compare (qint32 id) +{ + return mId == id; +} + +QSize GlxView::screenSize() +{ + HbMainWindow *window = hbInstance->allMainWindows().first(); + QSize deviceSize = HbDeviceProfile::current().logicalSize(); + QSize screenSize = ( window->orientation() == Qt::Vertical ) ? QSize( deviceSize.width(), deviceSize.height() ) + : QSize( deviceSize.height(), deviceSize.width() ) ; + return screenSize; +} + +QRect GlxView::screenGeometry() +{ + HbMainWindow *window = hbInstance->allMainWindows().first(); + QSize size = screenSize(); + QRect rect ( window->geometry().x(), window->geometry().y(), size.width(), size.height() ); + return rect; +} + +QGraphicsItem * GlxView::getAnimationItem( GlxEffect transtionEffect ) +{ + Q_UNUSED(transtionEffect) + return NULL; +}