Source Code (Use browser search to find items of interest.)
Class Index
khexedit'SDisplayMisc (./kdeutils/khexedit/hexeditstate.h:435)
struct SDisplayMisc
{
enum EOpenFile
{
none = 0,
mostRecent,
allRecent
};
SDisplayMisc( void )
{
undoLevel = 100;
openFile = none;
inputSound = false;
fatalSound = false;
autoCopyToClipboard = true;
insertMode = false;
writeProtect = false;
confirmWrap = true;
cursorJump = true;
makeBackup = false;
confirmThreshold = true;
thresholdValue = 30;
discardRecent = false;
gotoOnStartup = false;
gotoOnReload = true;
}
const char *fileStrings( uint index )
{
static const char *str[3] =
{
"none",
"mostRecent",
"allRecent",
};
return( str[index] );
}
const char *openFileString( void )
{
return( fileStrings( openFile > allRecent ? none : openFile ));
}
void setOpenFile( const QString &str )
{
if( str.isNull() == true || str == "none" )
{
openFile = none;
}
else if( str == "mostRecent" )
{
openFile = mostRecent;
}
else if( str == "allRecent" )
{
openFile = allRecent;
}
else
{
openFile = none;
}
}
uint undoLevel;
EOpenFile openFile;
bool inputSound;
bool fatalSound;
bool autoCopyToClipboard;
bool insertMode;
bool writeProtect;
bool confirmWrap;
bool cursorJump;
bool makeBackup;
bool confirmThreshold;
uint thresholdValue;
bool discardRecent;
bool gotoOnStartup;
bool gotoOnReload;
};