homescreenapp/hsdomainmodel/inc/hspage.h
changeset 90 3ac3aaebaee5
parent 69 87476091b3f5
child 101 ba1b7e218624
equal deleted inserted replaced
86:e4f038c420f7 90:3ac3aaebaee5
    62     QRectF contentGeometry();
    62     QRectF contentGeometry();
    63     QRectF contentGeometry(Qt::Orientation orientation);
    63     QRectF contentGeometry(Qt::Orientation orientation);
    64     QRectF contentRect();
    64     QRectF contentRect();
    65     QRectF contentRect(Qt::Orientation orientation);
    65     QRectF contentRect(Qt::Orientation orientation);
    66     HsPageVisual *visual() const;
    66     HsPageVisual *visual() const;
    67 #ifdef HSWIDGETORGANIZER_ALGORITHM
    67 
    68     enum sortOrder { height, width};
       
    69 #endif //HSWIDGETORGANIZER_ALGORITHM
       
    70 public slots:
    68 public slots:
    71     void showWidgets();
    69     void showWidgets();
    72     void hideWidgets();
    70     void hideWidgets();
    73     void setOnline(bool online = true);
    71     void setOnline(bool online = true);
    74     void updateZValues();
    72     void updateZValues();
    77 private:
    75 private:
    78     Q_DISABLE_COPY(HsPage)
    76     Q_DISABLE_COPY(HsPage)
    79   //  void setupTouchArea();
    77   //  void setupTouchArea();
    80     void connectWidget(HsWidgetHost *widget);
    78     void connectWidget(HsWidgetHost *widget);
    81     void disconnectWidget(HsWidgetHost *widget);
    79     void disconnectWidget(HsWidgetHost *widget);
    82 #ifdef HSWIDGETORGANIZER_ALGORITHM
       
    83     void sortWidgets(sortOrder order, QList<HsWidgetHost*> &widgets);
       
    84 #endif //HSWIDGETORGANIZER_ALGORITHM
       
    85 
    80 
    86 private slots:
    81 private slots:
    87     void onWidgetFinished();
    82     void onWidgetFinished();
    88     void onWidgetFaulted();
    83     void onWidgetFaulted();
    89     void onWidgetResized();
    84     void onWidgetResized();