src/hbcore/style/hbstyleoption.h
changeset 0 16d8024aca5e
child 1 f7ac710697a9
equal deleted inserted replaced
-1:000000000000 0:16d8024aca5e
       
     1 /****************************************************************************
       
     2 **
       
     3 ** Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     4 ** All rights reserved.
       
     5 ** Contact: Nokia Corporation (developer.feedback@nokia.com)
       
     6 **
       
     7 ** This file is part of the HbCore module of the UI Extensions for Mobile.
       
     8 **
       
     9 ** GNU Lesser General Public License Usage
       
    10 ** This file may be used under the terms of the GNU Lesser General Public
       
    11 ** License version 2.1 as published by the Free Software Foundation and
       
    12 ** appearing in the file LICENSE.LGPL included in the packaging of this file.
       
    13 ** Please review the following information to ensure the GNU Lesser General
       
    14 ** Public License version 2.1 requirements will be met:
       
    15 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
       
    16 **
       
    17 ** In addition, as a special exception, Nokia gives you certain additional
       
    18 ** rights.  These rights are described in the Nokia Qt LGPL Exception
       
    19 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
       
    20 **
       
    21 ** If you have questions regarding the use of this file, please contact
       
    22 ** Nokia at developer.feedback@nokia.com.
       
    23 **
       
    24 ****************************************************************************/
       
    25 
       
    26 #ifndef HBSTYLEOPTION_H
       
    27 #define HBSTYLEOPTION_H
       
    28 
       
    29 #include <hbglobal.h>
       
    30 #include <QStyleOptionGraphicsItem>
       
    31 
       
    32 class HB_CORE_EXPORT HbStyleOption : public QStyleOptionGraphicsItem
       
    33 {
       
    34 public:
       
    35     HbStyleOption(int type = HbSO_Widget, int version = 1);
       
    36     HbStyleOption(const HbStyleOption& other);
       
    37     ~HbStyleOption();
       
    38 
       
    39     enum OptionType {
       
    40         HbSO_Widget = SO_CustomBase,
       
    41         HbSO_PushButton,
       
    42         HbSO_ToolButton,
       
    43         HbSO_MenuItem,
       
    44         HbSO_Menu,
       
    45         HbSO_Label,
       
    46         HbSO_Combo,
       
    47         HbSO_ScrollBar,
       
    48         HbSO_Slider,
       
    49         HbSO_SliderElement,
       
    50         HbSO_ProgressBar,
       
    51         HbSO_ListViewItem,
       
    52         HbSO_Popup,
       
    53         HbSO_MessageBox,
       
    54         HbSO_RatingSlider,
       
    55         HbSO_ProgressDialog,
       
    56         HbSO_ToolTip,
       
    57         HbSO_AbstractViewItem,
       
    58         HbSO_ToolBarExtension,
       
    59         HbSO_InputPopup,
       
    60         HbSO_GridViewItem,
       
    61         HbSO_CheckBox,
       
    62         HbSO_Decorator,
       
    63         HbSO_TitlePane,
       
    64         HbSO_IndicatorGroup,
       
    65         HbSO_Softkey,
       
    66         HbSO_NavigationButton,
       
    67         HbSO_IndicatorButton,
       
    68         HbSO_SignalIndicator,
       
    69         HbSO_BatteryIndicator,
       
    70         HbSO_IndicatorMenu,
       
    71         HbSO_NotificationDialog,
       
    72         HbSO_TreeViewItem,
       
    73         HbSO_SelectionControl,
       
    74         HbSO_ColorGridViewItem,
       
    75         HbSO_DataForm,
       
    76         HbSO_DataItem,
       
    77         HbSO_DataFormViewItem,
       
    78         HbSO_DataGroup,
       
    79         HbSO_DataGroupHeadingWidget,
       
    80         HbSO_GroupBox,
       
    81         HbSO_IndexFeedback,
       
    82 		HbSO_StatusBar,
       
    83 		HbSO_InputDialog,
       
    84         // ...
       
    85         HbSO_CustomBase = 0xf0000000
       
    86     };
       
    87 
       
    88     enum StyleOptionType { Type = HbSO_Widget };
       
    89     enum StyleOptionVersion { Version = 1 };
       
    90 
       
    91     QFont font;   // DEPRECATED
       
    92     QRectF boundingRect;
       
    93 };
       
    94 
       
    95 #endif // HBSTYLEOPTION_H