phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetlayoutmanager.h
changeset 27 2f8f8080a020
parent 22 6bb1b21d2484
child 30 ebdbd102c78a
--- a/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetlayoutmanager.h	Fri Apr 16 14:58:25 2010 +0300
+++ b/phoneplugins/infowidgetplugin/infowidgetprovider/infowidget/inc/infowidgetlayoutmanager.h	Mon May 03 12:31:11 2010 +0300
@@ -54,21 +54,19 @@
         // Content widget, the main widget from document 
         RoleContent,
         // Marquee items 
-        RoleMcnMarqueeItem, 
+        RoleMcnMarqueeItem,
+        RoleSatMarqueeItem,
         // Labels 
-        RoleHomeZoneLabel, 
+        RoleSpnLabel,
         RoleMcnLabel, 
-        RoleActiveLineLabel, 
         RoleSatTextLabel,
-        // Icons 
-        RoleHomeZoneIcon, 
+        // Icons
+        RoleSpnIcon, 
         RoleMcnIcon, 
-        RoleActiveLineIcon, 
         RoleSatTextIcon, 
         // Check boxes 
-        RoleHomeZoneCheckBox, 
+        RoleSpnCheckBox,
         RoleMcnCheckBox, 
-        RoleActiveLineCheckBox, 
         RoleSatTextCheckBox,
         // Buttons 
         RoleOkButton,
@@ -91,17 +89,19 @@
     QList<LayoutItemRole> currentWidgetRoles(); 
     
     int layoutRows() const; 
-    void setLayoutRows(int rows); 
+    void setLayoutRows(int rows);
+    qreal rowHeight() const; 
     
     QGraphicsLayout* layoutInfoDisplay();
     QGraphicsLayout* layoutSettingsDisplay(); 
     
     const QList<InfoWidgetLayoutManager::LayoutItemRole> widgetRoles(
             DisplayRole displayRole) const; 
-    
+
     bool loadWidgets(const DisplayRole displayRole, 
             const QList<LayoutItemRole> &displayWidgets,
             QMap<LayoutItemRole, QGraphicsWidget *> &widgetMap);
+    bool reloadWidgets(const DisplayRole displayRole);
     
     QGraphicsWidget* loadWidget(InfoWidgetDocumentLoader &loader, 
             DisplayRole displayRole, 
@@ -110,10 +110,12 @@
     QGraphicsWidget* getWidget(LayoutItemRole itemRole);
     QGraphicsWidget* contentWidget();
     
+    void removeWidget(LayoutItemRole itemRole);
     void hideWidget(LayoutItemRole itemRole);
     void hideAll();
     void showAll();
     
+    
 private:
     QMap<LayoutItemRole, QGraphicsWidget *> m_widgets; 
     QMap<LayoutItemRole, QGraphicsWidget *> m_infoDisplayWidgets;