calendarwidgetplugin/inc/mainlayouthandler.h
changeset 1 f8e7eccf5f96
parent 0 db1bf15cefff
child 2 a4a7966c042b
equal deleted inserted replaced
0:db1bf15cefff 1:f8e7eccf5f96
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Calendar widget's date icon layout handler
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MAINLAYOUTHANDLER_H_
       
    19 #define MAINLAYOUTHANDLER_H_
       
    20 
       
    21 // System includes
       
    22 #include <QObject>
       
    23 #include <QGraphicsLinearLayout>
       
    24 
       
    25 class HbDocumentLoader;
       
    26 class HbLabel;
       
    27 class HbWidget;
       
    28 class HbFrameItem;
       
    29 
       
    30 class MainLayoutHandler : public QObject, public QGraphicsLinearLayout
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35     MainLayoutHandler();
       
    36     ~MainLayoutHandler();
       
    37 
       
    38 public slots:
       
    39     void initializeLayout(const HbDocumentLoader &layoutLoader, QObject *owner);
       
    40     void updateLayout();
       
    41     void onThemeChange();
       
    42 
       
    43 private:
       
    44     HbWidget* mWidget;
       
    45 
       
    46     //separator
       
    47     HbLabel* mSeparatorLabel;
       
    48 
       
    49     //to paint icon and widget background
       
    50     HbFrameItem* mIconLayoutItem;
       
    51     HbFrameItem* mBackgroundLayoutItem;
       
    52     HbFrameItem* mSeparatorLayoutItem;
       
    53 
       
    54 };
       
    55 
       
    56 #endif // MAINLAYOUTHANDLER_H_