Change-Id: I522ab97e434d754723d3ed5bca3275f5e6d8e284
// TODO - Remove this if nothing is active
CreateActiveLayer();
// TODO - Remove this if nothing is active
CreateActiveLayer();
// Show or hide the cursors
CreateCursors();
if( mPrimaryCursor )
// Show or hide the cursors
CreateCursors();
if( mPrimaryCursor )
}
mSecondaryCursor.SetVisible( mSecondaryCursorVisible );
}
}
mSecondaryCursor.SetVisible( mSecondaryCursorVisible );
}
// Show or hide the grab handle
HandleImpl& grabHandle = mHandle[GRAB_HANDLE];
if( grabHandle.active )
// Show or hide the grab handle
HandleImpl& grabHandle = mHandle[GRAB_HANDLE];
if( grabHandle.active )
// Add or Remove cursor(s) from parent
void CreateCursors()
{
// Add or Remove cursor(s) from parent
void CreateCursors()
{
if( mActiveCursor == ACTIVE_CURSOR_NONE )
{
UnparentAndReset( mPrimaryCursor );
if( mActiveCursor == ACTIVE_CURSOR_NONE )
{
UnparentAndReset( mPrimaryCursor );
UnparentAndReset( mSecondaryCursor );
}
}
UnparentAndReset( mSecondaryCursor );
}
}
}
bool OnCursorBlinkTimerTick()
{
}
bool OnCursorBlinkTimerTick()
{
// Cursor blinking
if ( mPrimaryCursor )
{
// Cursor blinking
if ( mPrimaryCursor )
{
}
mCursorBlinkStatus = !mCursorBlinkStatus;
}
mCursorBlinkStatus = !mCursorBlinkStatus;
{
float alternativePosition=0.0f;;
{
float alternativePosition=0.0f;;
if ( mPrimaryCursor ) // Secondary cursor not used for paste
{
Cursor cursor = PRIMARY_CURSOR;
alternativePosition = mCursor[cursor].position.y;
}
if ( mPrimaryCursor ) // Secondary cursor not used for paste
{
Cursor cursor = PRIMARY_CURSOR;
alternativePosition = mCursor[cursor].position.y;
}
const float popupHeight = 120.0f; // todo Set as a MaxSize Property in Control or retrieve from CopyPastePopup class.
if( mHandle[GRAB_HANDLE].active )
const float popupHeight = 120.0f; // todo Set as a MaxSize Property in Control or retrieve from CopyPastePopup class.
if( mHandle[GRAB_HANDLE].active )
Timer mScrollTimer; ///< Timer used to scroll the text when the grab handle is moved close to the edges.
Layer mActiveLayer; ///< Layer for active handles and alike that ensures they are above all else.
Timer mScrollTimer; ///< Timer used to scroll the text when the grab handle is moved close to the edges.
Layer mActiveLayer; ///< Layer for active handles and alike that ensures they are above all else.
+ ImageActor mPrimaryCursor;
+ ImageActor mSecondaryCursor;
Actor mHighlightActor; ///< Actor to display highlight
Renderer mHighlightRenderer;
Actor mHighlightActor; ///< Actor to display highlight
Renderer mHighlightRenderer;