internetradio2.0/resources/internetradio.rh
changeset 0 09774dfdd46b
equal deleted inserted replaced
-1:000000000000 0:09774dfdd46b
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Resource headers for project S60VisualRAdio
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VISUALRADIO_RH
       
    20 #define VISUALRADIO_RH
       
    21 
       
    22 #include <avkon.hrh>
       
    23 #include <aknsconstants.hrh>
       
    24 #include "ir.hrh"
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // Visual Radio layout guide specific struct.
       
    28 // The layout rect is defined by giving four of the positioning or size values.
       
    29 // For initializing TAknTextComponentLayout, which can be
       
    30 // used to layout CEikLabel with CAknLayoutUtils::LayoutLabel
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 STRUCT IR_TEXT_LAYOUT
       
    34     {
       
    35     WORD C = 215;			// color, default is black
       
    36     WORD l = ELayoutEmpty;	// left
       
    37     WORD t = ELayoutEmpty;	// top
       
    38     WORD r = ELayoutEmpty;	// right
       
    39     WORD b = ELayoutEmpty;	// bottom
       
    40     WORD H = ELayoutEmpty;	// height
       
    41     WORD W = ELayoutEmpty;	// width
       
    42     WORD J;					// justification
       
    43     WORD font;				// font ID
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // Struct for defining the bitmap button control
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 STRUCT IR_BITMAPBUTTON_CONTROL_DATA
       
    51     {
       
    52     LTEXT bmpfile;
       
    53     STRUCT items[];
       
    54     }
       
    55 
       
    56 // ---------------------------------------------------------------------------
       
    57 // Struct for defining the layout and key to react on for bitmap button
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 STRUCT IR_BITMAP_BUTTON_LAYOUT
       
    61     {
       
    62     WORD keys; // The keys on which this button reacts on.
       
    63     DOUBLE relative_x; // Relative value for x coordinate
       
    64     DOUBLE relative_y; // Relative value for y coordinate
       
    65     DOUBLE relative_width; // Relative value for width in relation to parent layout's width
       
    66     DOUBLE relative_height; // Relative value for height in relation to parent layout's height
       
    67     }
       
    68 
       
    69 // ---------------------------------------------------------------------------
       
    70 // Struct for defining a bitmap button item
       
    71 // ---------------------------------------------------------------------------
       
    72 //
       
    73 STRUCT IR_BITMAPBUTTON_ITEM
       
    74     {
       
    75     LONG cmdid; // Command to execute when the button is pressed
       
    76     LTEXT bmpfile;
       
    77     LONG enabledbmpid;
       
    78     LONG enabledmaskid;
       
    79     LONG disabledbmpid;
       
    80     LONG disabledmaskid;
       
    81     LONG pressedbmpid;
       
    82     LONG pressedmaskid;
       
    83     STRUCT portrait_layout; // IR_BITMAP_BUTTON_LAYOUT
       
    84     STRUCT landscape_layout; // IR_BITMAP_BUTTON_LAYOUT
       
    85     }
       
    86 
       
    87 // ---------------------------------------------------------------------------
       
    88 // Layouts for the bitmap buttons
       
    89 // ---------------------------------------------------------------------------
       
    90 //
       
    91 STRUCT IR_BITMAPBUTTON_LAYOUT_ARRAY
       
    92     {
       
    93     LLINK layouts[];
       
    94     }
       
    95 
       
    96 // ---------------------------------------------------------------------------
       
    97 // Frequency editor struct
       
    98 // ---------------------------------------------------------------------------
       
    99 //
       
   100 STRUCT IR_FREQUENCY_EDITOR
       
   101     {
       
   102     BYTE flags = 0;
       
   103     }
       
   104 
       
   105 // ---------------------------------------------------------------------------
       
   106 // Struct for defining a fadable icon
       
   107 // ---------------------------------------------------------------------------
       
   108 //
       
   109 STRUCT IR_FADABLE_ICON
       
   110     {
       
   111     LTEXT bmpfile;
       
   112     LONG bitmap;
       
   113     LONG mask;
       
   114     WORD fadetime = 1000; // fading time in milliseconds, defaults to one second
       
   115     BYTE invisible_percentage = 0; // Percentage how much the icon is shown when it is faded out
       
   116     }
       
   117 
       
   118 // ---------------------------------------------------------------------------
       
   119 // Struct for defining a bitmap animation composed of fadable icons.
       
   120 // ---------------------------------------------------------------------------
       
   121 //
       
   122 STRUCT IR_BITMAP_ANIMATION
       
   123     {
       
   124     LONG frameInterval;         // Interval between frames.
       
   125     STRUCT frames[];            // Bitmap animation frames of type IR_FADABLE_ICON.
       
   126     }
       
   127     STRUCT PBK2_ICON_INFO
       
   128     {
       
   129     /// Version number
       
   130     BYTE version = 0;
       
   131 
       
   132     /// Icon info id
       
   133     /// @see PHONEBOOK2_ICON_ID
       
   134     STRUCT pbk2IconInfoId;
       
   135 
       
   136     /// MBM file name
       
   137     LTEXT mbmFileName;
       
   138 
       
   139     /// Icon bitmap id
       
   140     LONG iconId;
       
   141 
       
   142     /// Mask bitmap id
       
   143     LONG maskId;
       
   144 
       
   145     /// Major skin id of the icon
       
   146     LONG skinIdMajor = EAknsMajorNone;
       
   147 
       
   148     /// Minor skin id of the icon
       
   149     LONG skinIdMinor = EAknsMinorNone;
       
   150 
       
   151     /// Major color table id of the icon
       
   152     LONG colorIdMajor = EAknsMajorNone;
       
   153 
       
   154     /// Minor color table id of the icon
       
   155     LONG colorIdMinor = EAknsMinorNone;
       
   156 
       
   157     /// Index of the icon color in color table
       
   158     LONG colorIndex = 0;
       
   159 
       
   160     /// Index of the default color
       
   161     LONG defaultColorIndex = 0;
       
   162     }
       
   163 
       
   164     
       
   165     // --------------------------------------------------------------------------
       
   166 // PBK2_ICON_ARRAY resource structure
       
   167 // --------------------------------------------------------------------------
       
   168 //
       
   169 STRUCT PBK2_ICON_ARRAY
       
   170     {
       
   171     /// An id for the icon array
       
   172     /// @see TPbk2IconArrayId
       
   173     BYTE arrayId = ENow2NullIconArrayId;//EPbk2NullIconArrayId
       
   174 
       
   175     /// Array of PHONEBOOK2_ICON_ID structures
       
   176     /// @see PHONEBOOK2_ICON_ID
       
   177     STRUCT icons[];
       
   178     }
       
   179 
       
   180     STRUCT PHONEBOOK2_ICON_ID
       
   181     {
       
   182     /// The UID that specifies whose icon this is. It is used to identify
       
   183     // icons from different components that are used in the same data
       
   184     // structure. The UID could be e.g a Phonebook 2 UID for application
       
   185     // defined icons and an ECom implementation UID for UI extension icons.
       
   186     LONG ownerUid = KPbk2NullIconIdOwnerUid;
       
   187 
       
   188     /// The id of the icon inside the component.
       
   189     BYTE id = EPbk2NullIconId;
       
   190     }
       
   191 
       
   192     
       
   193     
       
   194 
       
   195 #endif // VISUALRADIO_RH