Source Code (Use browser search to find items of interest.)
Class Index
khexedit'SDisplayCursor (./kdeutils/khexedit/hexeditstate.h:292)
struct SDisplayCursor
{
enum EFocusMode
{
stopBlinking = 0,
hide,
ignore
};
SDisplayCursor( void )
{
focusMode = hide;
interval = 500;
alwaysVisible = false;
alwaysBlockShape = false;
thickInsertShape = true;
}
const char *modeStrings( uint index )
{
static const char *str[3] =
{
"stopBlinking",
"hide",
"ignore"
};
return( str[index] );
}
const char *focusModeString( void )
{
return( modeStrings( focusMode > ignore ? stopBlinking : focusMode ));
}
void setFocusMode( const char *str )
{
if( str == 0 || strcmp( str, "hide" ) == 0 )
{
focusMode = hide;
}
else if( strcmp( str, "stopBlinking" ) == 0 )
{
focusMode = stopBlinking;
}
else
{
focusMode = ignore;
}
}
EFocusMode focusMode;
uint interval;
bool alwaysVisible;
bool alwaysBlockShape;
bool thickInsertShape;
};