mobilemessaging/unieditor/application/src/UniEditorAppUi.cpp
branchRCL_3
changeset 12 caea42e26caa
parent 9 1d7827e39b52
child 13 a9c7e5670d17
equal deleted inserted replaced
9:1d7827e39b52 12:caea42e26caa
   197 const TUint KSmsDownwardsArrowLeft = 0x21B2;
   197 const TUint KSmsDownwardsArrowLeft = 0x21B2;
   198 
   198 
   199 const TInt  KSmsEdPDUInfoCalcReplaceCharacterCount = 2;
   199 const TInt  KSmsEdPDUInfoCalcReplaceCharacterCount = 2;
   200 const TUint KSmsEdUnicodeLFSupportedByBasicPhones = 0x000A;
   200 const TUint KSmsEdUnicodeLFSupportedByBasicPhones = 0x000A;
   201 const TUint KSmsEnterCharacter = 0x2029;
   201 const TUint KSmsEnterCharacter = 0x2029;
   202 const TUint KSmsSpaceCharacter = 0x0020;
       
   203 // Unicode char codes for GSM 03.38 7 bit ext table characters 
   202 // Unicode char codes for GSM 03.38 7 bit ext table characters 
   204 const TUint KUniEdEuroSymbol = 0x20ac;
   203 const TUint KUniEdEuroSymbol = 0x20ac;
   205 const TUint KUniEdLeftSquareBracket = 0x5b;
   204 const TUint KUniEdLeftSquareBracket = 0x5b;
   206 const TUint KUniEdReverseSolidus = 0x5c;
   205 const TUint KUniEdReverseSolidus = 0x5c;
   207 const TUint KUniEdRightSquareBracket = 0x5d;
   206 const TUint KUniEdRightSquareBracket = 0x5d;
  1295         TInt maxSmsCharacters = doc->AbsoluteMaxSmsCharacters();
  1294         TInt maxSmsCharacters = doc->AbsoluteMaxSmsCharacters();
  1296         TInt maxSmsParts = doc->AbsoluteMaxSmsParts();
  1295         TInt maxSmsParts = doc->AbsoluteMaxSmsParts();
  1297         
  1296         
  1298         if ( maxSmsCharacters <= 0 )
  1297         if ( maxSmsCharacters <= 0 )
  1299             {                    
  1298             {                    
  1300             maxSmsCharacters = maxSmsParts * lengthMany;
  1299              // maxSmsCharacters is set to minimum lengthOne.            
       
  1300              if( maxSmsParts > 1 )
       
  1301              	{
       
  1302                 maxSmsCharacters = maxSmsParts * lengthMany;
       
  1303                 }
       
  1304              else
       
  1305                 {
       
  1306                 maxSmsCharacters = lengthOne;
       
  1307                 }
  1301             }
  1308             }
  1302             
  1309             
  1303         TInt thisPartChars = 0;
  1310         TInt thisPartChars = 0;
  1304         TInt maxThisPartChars = 0;
  1311         TInt maxThisPartChars = 0;
  1305    
  1312    
  1807                     }
  1814                     }
  1808                 iTapConsumed = EFalse;
  1815                 iTapConsumed = EFalse;
  1809                 }
  1816                 }
  1810             else if ( (!iTapConsumed) && (event->iType == TPointerEvent::EButton1Up) )
  1817             else if ( (!iTapConsumed) && (event->iType == TPointerEvent::EButton1Up) )
  1811                 {
  1818                 {
       
  1819                 iLongTapDetector->CancelAnimationL();
  1812                 iTapConsumed = ETrue;
  1820                 iTapConsumed = ETrue;
  1813                 if ( control && 
  1821                 if ( control && 
  1814                      iFocusedControl == control &&
  1822                      iFocusedControl == control &&
  1815                      ( control->ControlId() == EMsgComponentIdAudio ||
  1823                      ( control->ControlId() == EMsgComponentIdAudio ||
  1816                        control->ControlId() == EMsgComponentIdImage ||
  1824                        control->ControlId() == EMsgComponentIdImage ||
  3976 // ---------------------------------------------------------
  3984 // ---------------------------------------------------------
  3977 //
  3985 //
  3978 void CUniEditorAppUi::DoUserInsertMediaL()
  3986 void CUniEditorAppUi::DoUserInsertMediaL()
  3979     {
  3987     {
  3980     RArray<TInt> disabledItems;
  3988     RArray<TInt> disabledItems;
  3981     CleanupClosePushL( disabledItems );
  3989     CleanupClosePushL( disabledItems );  
  3982     
       
  3983     TBool svgFetchDisabled( EFalse );   
       
  3984     if ( Document()->CreationMode() == EMmsCreationModeRestricted )
       
  3985         {
       
  3986         svgFetchDisabled = ETrue;
       
  3987         }
       
  3988     
       
  3989 //    if ( svgFetchDisabled )
       
  3990 //        {
       
  3991 //        disabledItems.Append( EUniCmdInsertMediaSVG );
       
  3992 //        }
       
  3993     
       
  3994 
  3990 
  3995     if ( !( iSupportedFeatures & EUniFeatureCamcorder ) )
  3991     if ( !( iSupportedFeatures & EUniFeatureCamcorder ) )
  3996         {
  3992         {
  3997         disabledItems.Append( EUniCmdInsertMediaNewVideo );
  3993         disabledItems.Append( EUniCmdInsertMediaNewVideo );
  3998         disabledItems.Append( EUniCmdInsertMediaNewImage );
  3994         disabledItems.Append( EUniCmdInsertMediaNewImage );
  9625 // the Dialog 
  9621 // the Dialog 
  9626 // ---------------------------------------------------------
  9622 // ---------------------------------------------------------
  9627 //
  9623 //
  9628 void CUniEditorAppUi::DoUpdateFixedToolbar()
  9624 void CUniEditorAppUi::DoUpdateFixedToolbar()
  9629     {
  9625     {
  9630      UpdateToolbarL();    
  9626      TRAP_IGNORE(UpdateToolbarL());    
  9631     }
  9627     }
  9632 // ---------------------------------------------------------
  9628 // ---------------------------------------------------------
  9633 // CUniEditorAppUi::DoEnterKeyL
  9629 // CUniEditorAppUi::DoEnterKeyL
  9634 //
  9630 //
  9635 // Performs a special handling for enter key when certain control is
  9631 // Performs a special handling for enter key when certain control is