imageeditor/inc/ImageEditorUIDefs.h
changeset 1 edfc90759b9f
equal deleted inserted replaced
0:57d4cdd99204 1:edfc90759b9f
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:  
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef IMAGEEDITORUIDEFS_H
       
    22 #define IMAGEEDITORUIDEFS_H
       
    23 
       
    24 /// CONSTANTS
       
    25 
       
    26 /// The image editor UI icons
       
    27 _LIT(KImageEditorUiMifFile, "\\resource\\apps\\ImageEditorUi.mif");
       
    28 
       
    29 const TInt KStandardCrosshairWidth  = 15;
       
    30 const TInt KStandardCrosshairHeight = 15;
       
    31 const TInt KQVGACrosshairWidth      = 20;
       
    32 const TInt KQVGACrosshairHeight     = 20;
       
    33 const TInt KDoubleCrosshairWidth    = 25;
       
    34 const TInt KDoubleCrosshairHeight   = 25;
       
    35 const TInt KHVGACrosshairWidth      = 24;
       
    36 const TInt KHVGACrosshairHeight     = 24;
       
    37 const TInt KVGACrosshairWidth       = 32;
       
    38 const TInt KVGACrosshairHeight      = 32;
       
    39 
       
    40 /// some common scan codes
       
    41 const TInt  KScanCode_Edit              = EStdKeyRightShift;
       
    42 const TInt  KScanCode_Clear             = EStdKeyBackspace;
       
    43 const TInt  KScanCode_Apps              = EStdKeyApplication0;
       
    44 const TInt  KScanCode_Soft_Left			= EStdKeyDevice0;
       
    45 const TInt  KScanCode_Soft_Right		= EStdKeyDevice1;
       
    46 
       
    47 /// Time that the tooltip is shown in the view
       
    48 const TInt KTimeTooltipInView = 1500; // 1.5s
       
    49 
       
    50 /// INLINE FUNCTIONS
       
    51 
       
    52 /*	min_2 
       
    53 *
       
    54 *   Utility function for getting minimum of two numbers.
       
    55 */
       
    56 inline TInt min_2 (TInt aX, TInt aY)
       
    57 {
       
    58     return (aX < aY) ? (aX) : (aY);
       
    59 }
       
    60 
       
    61 /*	max_2 
       
    62 *
       
    63 *   Utility function for getting maximum of two numbers.
       
    64 */
       
    65 inline TInt max_2 (TInt aX, TInt aY)
       
    66 {
       
    67     return (aX > aY) ? (aX) : (aY);
       
    68 }
       
    69 
       
    70 #endif
       
    71 
       
    72 // End of File