Source Code (Use browser search to find items of interest.)

Class Index

khexedit'SDisplayLine (./kdeutils/khexedit/hexeditstate.h:28)

struct SDisplayLine
{
  enum EViewMode
  {
    hexadecimal = 0,
    decimal,
    octal,
    binary,
    textOnly
  };

  SDisplayLine( void )
  {
    lineSize[hexadecimal] = 16;
    lineSize[decimal]     = 16;
    lineSize[octal]       = 16;
    lineSize[binary]      = 8;
    lineSize[textOnly]    = 64;

    columnSize[hexadecimal] = 1;
    columnSize[decimal]     = 1;
    columnSize[octal]       = 1;
    columnSize[binary]      = 1;
    columnSize[textOnly]    = 64;
  }

  uint getLineSize( int index )
  {
    return( lineSize[ index > textOnly ? 0 : index ] );
  }

  uint getColumnSize( int index )
  {
    return( columnSize[ index > textOnly ? 0 : index ] );
  }
 
  void setLineSize( int index, uint value )
  {
    if( index <= textOnly ) { lineSize[ index ] = value; }
  }

  void setColumnSize( int index, uint value )
  {
    if( index <= textOnly ) { columnSize[ index ] = value; }
  }

  uint lineSize[5];
  uint columnSize[5];
};