emailuis/nmhswidget/inc/nmhswidgetconsts.h
changeset 23 2dc6caa42ec3
parent 20 ecc8def7944a
child 47 f83bd4ae1fe3
child 54 997a02608b3a
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
    16  */
    16  */
    17 
    17 
    18 #ifndef NMHSWIDGETCONSTS_H
    18 #ifndef NMHSWIDGETCONSTS_H
    19 #define NMHSWIDGETCONSTS_H
    19 #define NMHSWIDGETCONSTS_H
    20 
    20 
       
    21 /**************************************************
       
    22  * engine
       
    23  *************************************************/
       
    24 //Maximum amount of envelopes that can be provided to client in getData function
       
    25 //This is also the amount of envelopes that is kept in mData all the time
       
    26 const int KMaxNumberOfEnvelopesProvided = 2;
       
    27 //Maximum value for unread count
       
    28 const int KMaxUnreadCount = 999; 
       
    29 
       
    30 /**************************************************
       
    31  * nmhswidget
       
    32  *************************************************/
    21 /** contents margin/spacing in all layouts / container widgets */
    33 /** contents margin/spacing in all layouts / container widgets */
    22 const int KNmHsWidgetContentsMargin = 0;
    34 const int KNmHsWidgetContentsMargin = 0;
    23 /** radius for container widget's rounded rect */
    35 /** Widget's background image*/
    24 const int KNmHsWidgetShoulderRadius = 10;
    36 const QString KNmHsWidgetBackgroundImage = "qtg_fr_hswidget_normal";
    25 /** background opacity */
    37 /** max number of mails shown in widget */
    26 const qreal KNmHsWidgetBackgroundOpacity = 0.50;
    38 const int KMaxNumberOfMailsShown = KMaxNumberOfEnvelopesProvided;
    27 /** color scheme used in widget background */
    39 /** Widget's localization file name*/
    28 //const QString backgroundColorAttribute = "popupbackground";
    40 const QString KNmHsWidgetLocFileName = "mailwidget_";
    29 #define KBackgroundColorAttribute  "popupbackground"
    41 /** Widget's localization file location*/
       
    42 const QString KNmHsWidgetLocLocation = "z:/resource/qt/translations/";
       
    43 /** Widget's state property values */
       
    44 const QString KNmHsWidgetStateCollapsed = "collapsed";
       
    45 const QString KNmHsWidgetStateExpanded = "expanded";
    30 
    46 
    31 /**************************************************
    47 /**************************************************
    32  * Title row widget
    48  * Title row widget
    33  *************************************************/
    49  *************************************************/
    34 /**  docml file including title row UI definitions */
    50 /**  docml file including title row UI definitions */
    37 #define KNmHsWidgetTitleRowContainer  "titleLayoutWidget"
    53 #define KNmHsWidgetTitleRowContainer  "titleLayoutWidget"
    38 /** mailbox icon */
    54 /** mailbox icon */
    39 #define KNmHsWidgetTitleRowMailboxIcon  "mailboxIcon"
    55 #define KNmHsWidgetTitleRowMailboxIcon  "mailboxIcon"
    40 /** mailbox name label */
    56 /** mailbox name label */
    41 #define KNmHsWidgetTitleRowMailboxNameLabel "mailboxNameLabel"
    57 #define KNmHsWidgetTitleRowMailboxNameLabel "mailboxNameLabel"
       
    58 /** unread count label */
       
    59 #define KNmHsWidgetTitleRowUnreadCountLabel  "unreadCountLabel"
       
    60 /** expand collapse icon */
       
    61 #define KNmHsWidgetTitleRowCollapseExpandIconLabel "collapseExpandIcon"
    42 
    62 
    43 /**************************************************
    63 /**************************************************
    44  * Mail row widget
    64  * Mail row widget
    45  *************************************************/
    65  *************************************************/
    46 /**  docml file including mail row UI definitions */
    66 /**  docml file including mail row UI definitions */