imageeditor/plugins/DrawPlugin/src/imageeditordrawcontrol.cpp
changeset 9 a5c0fe6456b2
parent 8 18b321db4884
child 10 e7871f3699e6
equal deleted inserted replaced
8:18b321db4884 9:a5c0fe6456b2
   258 	iLabels[1]->SetTooltip(_L("Palette"));
   258 	iLabels[1]->SetTooltip(_L("Palette"));
   259 
   259 
   260 	iLabels[2]->SetImage(svgFile, EMbmIcons_doodleUndo);
   260 	iLabels[2]->SetImage(svgFile, EMbmIcons_doodleUndo);
   261 	iLabels[2]->SetTooltip(_L("Undo"));
   261 	iLabels[2]->SetTooltip(_L("Undo"));
   262 
   262 
   263 	iLabels[3]->SetImage(svgFile, EMbmIcons_doodleSave);
   263 	iLabels[3]->SetImage(svgFile, EMbmIcons_doodlePalette);
   264 	iLabels[3]->SetTooltip(_L("Save"));
   264 	iLabels[3]->SetTooltip(_L("Redo"));
   265 
   265 
   266 	iLabels[4]->SetImage(svgFile, EMbmIcons_doodleMenu);
   266 	iLabels[4]->SetImage(svgFile, EMbmIcons_doodleSave);
   267 	iLabels[4]->SetTooltip(_L("About"));
   267 	iLabels[4]->SetTooltip(_L("Save"));
   268 
   268 
   269 	iLabels[5]->SetImage(svgFile, EMbmIcons_doodlePalette);
   269 	iLabels[5]->SetImage(svgFile, EMbmIcons_doodleMenu);
   270 	iLabels[5]->SetTooltip(_L("Redo"));
   270 	iLabels[5]->SetTooltip(_L("About"));
   271 
   271 
   272 	iLabels[6]->SetImage(svgFile, EMbmIcons_doodlePensize);
   272 	iLabels[6]->SetImage(svgFile, EMbmIcons_doodlePensize);
   273 	iLabels[6]->SetTooltip(_L("Null"));
   273 	iLabels[6]->SetTooltip(_L("Null"));
   274 
   274 
   275 	iAnimationAO = CAnimationAO::NewL();
   275 	iAnimationAO = CAnimationAO::NewL();
  1329 		iUndo = ETrue;
  1329 		iUndo = ETrue;
  1330 		StoreParameters(EFalse, EFalse);
  1330 		StoreParameters(EFalse, EFalse);
  1331 		iEditorView->HandleCommandL(EImageEditorCmdRender);
  1331 		iEditorView->HandleCommandL(EImageEditorCmdRender);
  1332 		iUndo = EFalse;
  1332 		iUndo = EFalse;
  1333 		}
  1333 		}
  1334 	//save and quit
  1334 	//redo
  1335 	else if (iLabels[3] == dynamic_cast<CImageLabel*> (aComponent))
  1335 	else if (iLabels[3] == dynamic_cast<CImageLabel*> (aComponent))
  1336 		{
       
  1337 		iPopupController->HideInfoPopupNote();
       
  1338 		StoreParameters(EFalse, ETrue);
       
  1339 		iEditorView->HandleCommandL(EImageEditorApplyPlugin);
       
  1340 		}
       
  1341 	else if (iLabels[4] == dynamic_cast<CImageLabel*> (aComponent))
       
  1342 		{
       
  1343 		
       
  1344 		}
       
  1345 	else if (iLabels[5] == dynamic_cast<CImageLabel*> (aComponent))
       
  1346 		{
  1336 		{
  1347 		iRedo = ETrue;
  1337 		iRedo = ETrue;
  1348 		RedoDrawPath();
  1338 		RedoDrawPath();
  1349 		StoreParameters(EFalse, EFalse);
  1339 		StoreParameters(EFalse, EFalse);
  1350 		iEditorView->HandleCommandL(EImageEditorCmdRender);
  1340 		iEditorView->HandleCommandL(EImageEditorCmdRender);
  1351 		iRedo = EFalse;
  1341 		iRedo = EFalse;
       
  1342 		}
       
  1343 	//save and exit
       
  1344 	else if (iLabels[4] == dynamic_cast<CImageLabel*> (aComponent))
       
  1345 		{
       
  1346 		iPopupController->HideInfoPopupNote();
       
  1347 		StoreParameters(EFalse, ETrue);
       
  1348 		iEditorView->HandleCommandL(EImageEditorApplyPlugin);
       
  1349 		}
       
  1350 	else if (iLabels[5] == dynamic_cast<CImageLabel*> (aComponent))
       
  1351 		{
       
  1352 
  1352 		}
  1353 		}
  1353 	else if (iLabels[6] == dynamic_cast<CImageLabel*> (aComponent))
  1354 	else if (iLabels[6] == dynamic_cast<CImageLabel*> (aComponent))
  1354 		{
  1355 		{
  1355 
  1356 
  1356 		}
  1357 		}