--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hgwidgets_pub/ganeswidgets_api/inc/hggrid.h Wed Oct 06 14:53:41 2010 +0300
@@ -0,0 +1,64 @@
+/*
+* 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:
+*
+*/
+
+#ifndef HGGRID_H
+#define HGGRID_H
+
+#include <hgwidgets/hgwidgets.h>
+
+class HgGridPrivate;
+
+class HG_WIDGETS_EXPORT HgGrid : public HgWidget
+{
+ Q_OBJECT
+ Q_PROPERTY(bool effect3dEnabled READ effect3dEnabled WRITE setEffect3dEnabled )
+ Q_PROPERTY(bool pinchEnabled READ pinchEnabled WRITE setPinchEnabled )
+ Q_PROPERTY(bool reflectionsEnabled READ reflectionsEnabled WRITE setReflectionsEnabled)
+public:
+
+ explicit HgGrid(Qt::Orientation scrollDirection, QGraphicsItem *parent = 0 );
+ virtual ~HgGrid();
+
+ bool effect3dEnabled() const;
+ void setEffect3dEnabled(bool effect3dEnabled);
+
+ bool pinchEnabled() const;
+ void setPinchEnabled(bool pinchEnabled);
+
+ void setPinchLevels(QPair<int,int> levels, Qt::Orientation scrollDirection);
+ QPair<int,int> pinchLevels(Qt::Orientation scrollDirection) const;
+
+ void setRowCount(int count, Qt::Orientation scrollDirection = Qt::Horizontal);
+ int rowCount(Qt::Orientation scrollDirection = Qt::Horizontal) const;
+
+ void setReflectionsEnabled(bool reflectionsEnabled);
+ bool reflectionsEnabled() const;
+
+signals:
+
+ void emptySpacePressed();
+
+protected:
+ HgGrid(Qt::Orientation scrollDirection, HgGridPrivate &dd, QGraphicsItem *parent);
+
+private:
+ Q_DECLARE_PRIVATE_D(p_ptr, HgGrid)
+ Q_DISABLE_COPY(HgGrid)
+};
+
+#endif //HGGRID_H
+