extras/calcsoft/inc/CalcEnv.inl
branchRCL_3
changeset 22 0f21a5ec0db7
parent 0 3ee3dfdd8d69
equal deleted inserted replaced
21:a7d8840c0b8c 22:0f21a5ec0db7
    37 // ---------------------------------------------------------
    37 // ---------------------------------------------------------
    38 //
    38 //
    39 inline const TPtrC CCalcAppEnv::EditorOperator(
    39 inline const TPtrC CCalcAppEnv::EditorOperator(
    40             const TCalcEditLine::TCalcOperatorType aType ) const
    40             const TCalcEditLine::TCalcOperatorType aType ) const
    41     {
    41     {
    42     if ( ( aType == TCalcEditLine::ECalcMultiply ||
    42     //'r_calc_editor_operator_array' is operator array for Editor Operator. 
    43         aType == TCalcEditLine::ECalcDivide ) &&
    43     if ( ( aType == TCalcEditLine::ECalcDivide ) &&
    44         AknLayoutUtils::PenEnabled() )
    44         AknLayoutUtils::PenEnabled() )
    45         {
    45         {
       
    46         //show operator '/' instead of division operator 
       
    47         //division move 6 is '/' in Editor Operator array
    46         return ( *iEditorOperArray )[( TInt ) aType + 6];
    48         return ( *iEditorOperArray )[( TInt ) aType + 6];
    47         }
    49         }
    48     return ( *iEditorOperArray )[(TInt) aType];
    50     return ( *iEditorOperArray )[(TInt) aType];
    49     }
    51     }
    50 
    52 
    55 // ---------------------------------------------------------
    57 // ---------------------------------------------------------
    56 //
    58 //
    57 inline const TPtrC CCalcAppEnv::OutSheetOperator(
    59 inline const TPtrC CCalcAppEnv::OutSheetOperator(
    58             const TCalcEditLine::TCalcOperatorType aType ) const
    60             const TCalcEditLine::TCalcOperatorType aType ) const
    59     {
    61     {
    60     if ( ( aType == TCalcEditLine::ECalcMultiply ||
    62     //'r_calc_outsheet_operator_array' is operator array for OutSheet Operator. 
    61         aType == TCalcEditLine::ECalcDivide ) &&
    63     if ( ( aType == TCalcEditLine::ECalcDivide ) &&
    62         AknLayoutUtils::PenEnabled() )
    64         AknLayoutUtils::PenEnabled() )
    63         {
    65         {
       
    66         //show operator '/' instead of division operator
       
    67         //division move 6 is '/' in OutSheet Operator array
    64         return (*iOutSheetOperArray)[( TInt ) aType + 6];
    68         return (*iOutSheetOperArray)[( TInt ) aType + 6];
    65         }
    69         }
    66     return (*iOutSheetOperArray)[( TInt ) aType];
    70     return (*iOutSheetOperArray)[( TInt ) aType];
    67     }
    71     }
    68 
    72