imageeditor/plugins/DrawPlugin/inc/imageeditordrawcontrol.h
changeset 10 e7871f3699e6
parent 8 18b321db4884
equal deleted inserted replaced
9:a5c0fe6456b2 10:e7871f3699e6
   318 	 */
   318 	 */
   319 	void RedoDrawPath();
   319 	void RedoDrawPath();
   320 	
   320 	
   321 private:
   321 private:
   322 	
   322 	
   323 	//@}
       
   324 
       
   325 	/** @name Members:*/
   323 	/** @name Members:*/
   326 	//@{
   324 
   327 
   325 
   328 	/// Ref: to Editor view
   326 	// Ref: to Editor view
   329 	CAknView* iEditorView;
   327 	CAknView* iEditorView;
   330 
   328 
   331 	/// Source image size
   329 	//Source image size
   332 	const CSystemParameters* iSysPars;
   330 	const CSystemParameters* iSysPars;
   333 
   331 
   334 	/// Ref: to Plug-in info
   332 	// Ref: to Plug-in info
   335 	CPluginInfo* iItem;
   333 	CPluginInfo* iItem;
   336 
   334 
   337 	/// Own: Navigation pane text
   335 	//Own: Navigation pane text
   338 	HBufC* iNaviPaneText;
   336 	HBufC* iNaviPaneText;
   339 
   337 
   340 	/// X position
   338 	// X position
   341 	TInt iX;
   339 	TInt iX;
   342 	/// Y position
   340 	// Y position
   343 	TInt iY;
   341 	TInt iY;
   344 
   342 
   345 	/// Timer for fast key events
   343 	// Timer for fast key events
   346 	CJPTimer* iTimer;
   344 	CJPTimer* iTimer;
   347 	TUint32 iKeyCode;
   345 	TUint32 iKeyCode;
   348 
   346 
   349 	/// Pressed key event code
   347 	// Pressed key event code
   350 	TInt iPressedKeyScanCode;
   348 	TInt iPressedKeyScanCode;
   351 
   349 
   352 	/// Number of ticks since timer start
   350 	// Number of ticks since timer start
   353 	TInt iTickCount;
   351 	TInt iTickCount;
   354 
   352 
   355 	/// Multiplier to control the navigation movement speed
   353 	// Multiplier to control the navigation movement speed
   356 	TInt iNaviStepMultiplier;
   354 	TInt iNaviStepMultiplier;
   357 
   355 
   358 	/// Showing Ok options menu, where some items are dimmed
   356 	// Showing Ok options menu, where some items are dimmed
   359 	TBool iDisplayingOkOptionsMenu;
   357 	TBool iDisplayingOkOptionsMenu;
   360 
   358 
   361 	/// Own: State indicator glyph
   359 	// Own: State indicator glyph
   362 	CFbsBitmap* iIndicator;
   360 	CFbsBitmap* iIndicator;
   363 	CFbsBitmap* iIndicatorMask;
   361 	CFbsBitmap* iIndicatorMask;
   364 
   362 
   365 	/// Ready to render
   363 	// Ready to render
   366 	TBool iReadyToRender;
   364 	TBool iReadyToRender;
   367 
   365 
   368 	/// Parameter
   366 	// Parameter
   369 	TBuf<256> iParam;
   367 	TBuf<256> iParam;
   370 
   368 
   371 	// Popup controller
   369 	// Popup controller
   372 	CAknInfoPopupNoteController* iPopupController;
   370 	CAknInfoPopupNoteController* iPopupController;
   373 	// Tooltip texts
   371 	// Tooltip texts
   376 	// Previous pen position. Make touch rotating and resizing possible
   374 	// Previous pen position. Make touch rotating and resizing possible
   377 	TPoint iPointerPosition;
   375 	TPoint iPointerPosition;
   378 	// Multiplier to control the rotating speed by touch
   376 	// Multiplier to control the rotating speed by touch
   379 	TInt iTouchAngleMultiplier;
   377 	TInt iTouchAngleMultiplier;
   380 
   378 
   381 	/// Resource reader
   379 	// Resource reader
   382 	RConeResourceLoader iResLoader;
   380 	RConeResourceLoader iResLoader;
   383 	/// Line size
   381 	// Line size
   384 	TSize& iSize;
   382 	TSize& iSize;
   385 	/// Color
   383 	// Color
   386 	TRgb& iRgb;
   384 	TRgb& iRgb;
   387 	/// Own: drawn paths
   385 	// Own: drawn paths
   388 	RPointerArray<CDrawPath> &iPaths;
   386 	RPointerArray<CDrawPath> &iPaths;
   389 	//bitmap device
   387 	//bitmap device
   390 	CFbsBitmapDevice* iBitmapDev;
   388 	CFbsBitmapDevice* iBitmapDev;
   391 	CGraphicsContext* iGc;
   389 	CGraphicsContext* iGc;
   392 	//@}
   390 
   393 
   391 
   394 private:
   392 private:
   395 	
   393 	//Get and set tool bar status display or hidden
   396     void SetToolBarStatus();
   394     void SetToolBarStatus();
       
   395     //The self define component array for tool bar.
   397 	RPointerArray<CImageLabel> iLabels;
   396 	RPointerArray<CImageLabel> iLabels;
   398 
   397     //The tool bar area.
   399 	TRect iLoopMenuRect;
   398 	TRect iLoopMenuRect;
       
   399 	//Mark the button down event
   400 	TPoint iButtonDownPoint;
   400 	TPoint iButtonDownPoint;
       
   401 	//Mark the tool bar start drag point.
   401 	TPoint iDragStartPoint;
   402 	TPoint iDragStartPoint;
       
   403 	//Prepare drag point.
   402 	TPoint iDragPrePoint;
   404 	TPoint iDragPrePoint;
       
   405 	//Mark Button up point for stop drag event.
   403 	TPoint iDragUpPoint;
   406 	TPoint iDragUpPoint;
   404 
   407     //The total of tool bar compoent 
   405 	TInt iTotalComponent;
   408 	TInt iTotalComponent;
       
   409 	//The param for drag tool bar event.
   406 	TInt iDragOffset;
   410 	TInt iDragOffset;
       
   411 	//The param for drag tool bar event.
   407 	TInt iStartSpeed;
   412 	TInt iStartSpeed;
   408 
   413     //The Active Object for  drag tool bar.
   409 	CAnimationAO* iAnimationAO;
   414 	CAnimationAO* iAnimationAO;
       
   415 	//The Active object for tool bar Automatic moving.
   410 	CRollAO* iRollAo;
   416 	CRollAO* iRollAo;
   411 
   417     //whether the button down point in the tool bar area.
   412 	TBool iPointStartInLoopRect;
   418 	TBool iPointStartInLoopRect;
       
   419 	//Mark for iAnimationAO;
   413 	TBool iDragIsStart;
   420 	TBool iDragIsStart;
   414 	TBool iEnableAnimationEffect;
   421 	//Current screen layout.
   415 	TMainMenuLayout iMainMenuLayout;
   422 	TMainMenuLayout iMainMenuLayout;
   416 	///implement undo and redo functions.
   423 
   417 
   424 
   418 private:
   425 private:
   419 	
   426 	
   420 	RPointerArray<CDrawPath> iUndoPaths;
   427 	RPointerArray<CDrawPath> iUndoPaths;
   421 	TBool iUndo;
   428 	TBool iUndo;
   422 	TBool iRedo;
   429 	TBool iRedo;
   423 	TBool iCanRedo;
   430 	TBool iCanRedo;
   424 	//ETrue: roll in
   431     //The tool bar Automatic moving direction.
   425 	//EFalse:roll out
       
   426 	TBool iRollDirection;
   432 	TBool iRollDirection;
   427 private:
   433 private:
   428 	
   434 	//The compoent use for display and hidden tool bar.
   429 	CCustomerComponet *iCustomComponet;
   435 	CCustomerComponet *iCustomComponet;
       
   436 	//whether the customer compoent was clicked. 
   430 	TBool iCustomComponetClick;
   437 	TBool iCustomComponetClick;
       
   438 	//Mark the customr compoent last pointer event.
   431 	TBool iLastPointEventType;
   439 	TBool iLastPointEventType;
       
   440 	//Mark the tool bar Automatic moving.
   432 	TBool iRollflag;
   441 	TBool iRollflag;
       
   442 	//Mark the tool bar status display or hidden.
   433 	TBool &iDisplayTool;
   443 	TBool &iDisplayTool;
       
   444 	//Mark in the sizechanged function.
   434 	TBool iSizeChangeFlag;
   445 	TBool iSizeChangeFlag;
       
   446 	//Mark last tool bar event.
       
   447 	TBool iFlagDragToolBar;
   435 	};
   448 	};
   436 
   449 
   437 #endif
   450 #endif