homescreenapp/hsdomainmodel/inc/hspagenewwidgetlayout.h
changeset 69 87476091b3f5
parent 62 341166945d65
child 90 3ac3aaebaee5
equal deleted inserted replaced
67:474929a40a0f 69:87476091b3f5
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    33     int count() const;
    33     int count() const;
    34     QGraphicsLayoutItem *itemAt(int i) const;
    34     QGraphicsLayoutItem *itemAt(int i) const;
    35     void removeAt(int index);
    35     void removeAt(int index);
    36     QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const;
    36     QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const;
    37     void setGeometry(const QRectF &rect);
    37     void setGeometry(const QRectF &rect);
    38     
       
    39     void addItem(HsWidgetHost *item);
    38     void addItem(HsWidgetHost *item);
    40     
    39     enum sortOrder { height, width};
       
    40 
       
    41 private:
       
    42 #ifdef HSWIDGETORGANIZER_ALGORITHM
       
    43     QList<HsWidgetHost*> sortWidgets(sortOrder order);
       
    44 #endif    
    41 private:
    45 private:
    42     QSizeF mSize;
    46     QSizeF mSize;
    43     QList<HsWidgetHost*> mNewWidgets;
    47     QList<HsWidgetHost*> mNewWidgets;
    44     QPointF mTouchPoint;
    48     QPointF mTouchPoint;
    45 
    49 
    46     HOMESCREEN_TEST_FRIEND_CLASS(TestHsDomainModel)
    50     HOMESCREEN_TEST_FRIEND_CLASS(TestHsDomainModel)
    47 };
    51 };
    48 
    52 
    49 
       
    50 #endif
    53 #endif