Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions

CharacterView Class Reference

Class representing the character view in hes editor. More...

#include <CharacterView.h>

Inheritance diagram for CharacterView:
Inheritance graph
Collaboration diagram for CharacterView:
Collaboration graph

List of all members.

Public Types

typedef FileContentBase::OffsetT OffsetT

Public Member Functions

void CalculateBlockSize (OffsetT screenStartOffset, OffsetT currentOffset, OffsetT &blockStart, OffsetT &blockEnd)
 Calculate size of block at current offset's position.
 CharacterView (HexEditPanel *panel)
bool GetActive ()
 Get the active state.
OffsetT GetBlockEndOffset ()
 Get block end offset.
void GetBlockSizes (int &blockLength, int &blockBytes, int &spacing)
 Get block sizez.
OffsetT GetBlockStartOffset ()
 Get block start offset.
OffsetT GetCurrentOffset ()
 Get current position offset.
int GetCurrentPositionFlags ()
 Get flags for current offset.
int GetOffsetFromColumn (int column, int &positionFlags)
 Detect offset from position in line.
OffsetT GetScreenStartOffset ()
 Get scrren start offset.
void JumpToOffset (OffsetT screenStartOffset, OffsetT currentOffset, OffsetT blockStart, OffsetT blockEnd, int positionFlags)
 Jump to given offset and calculate range for current data block.
void MoveDown ()
 Move cursor down.
void MoveLeft ()
 Move cursor left.
void MoveRight ()
 Move cursor right.
void MoveUp ()
 Move cursor up.
void PutChar (wxChar ch)
 Drop a character into this view.
void PutLine (OffsetT lineStartOffset, HexEditLineBuffer &buffer, char *content, int bytes)
 Put given line into line buffer.
bool SetActive (bool makeMeActive=true)
 Activate this view.

Protected Member Functions

void ContentChange ()
 Notify about content change.
FileContentBaseGetContent ()
 Fetch assigned file content.
unsigned int GetLineBytes ()
 Get length of one line.
void OffsetChange (OffsetT currentOffset)
 Notify about offset change.
virtual void OnActivate (bool becomesActive)
 Called when switching the active state.
virtual void OnCalculateBlockSize (OffsetT &blockStart, OffsetT &blockEnd)
 Detect block start and end at given offset.
virtual void OnGetBlockSizes (int &blockLength, int &blockBytes, int &spacing)
 Get block sizes.
virtual int OnGetCurrentPositionFlags ()
 Called when fetching current position flags.
virtual int OnGetOffsetFromColumn (int column, int &positionFlags)
 Calculate offset from the beginning of the line at given position.
virtual void OnMoveDown ()
 Called when moving down.
virtual void OnMoveLeft ()
 Called when moving left.
virtual void OnMoveRight ()
 Called when moving right.
virtual void OnMoveUp ()
 Called when moving up.
virtual void OnOffsetChange (OffsetT screenStartOffset, OffsetT currentOffset, OffsetT blockStart, OffsetT blockEnd)
 Called when changing current cursor offset.
virtual void OnOffsetChange (int positionFlags)
 Called when changing current cursor offset.
virtual void OnProcessChar (wxChar ch)
 Called when character is sent to this view.
virtual void OnPutLine (OffsetT startOffset, HexEditLineBuffer &buff, char *content, int bytes)
 Called when there's need to fill line buffer for this content.
char Strip (char ch)
 Convert character for the one that will be displayable for sure.

Detailed Description

Class representing the character view in hes editor.

Definition at line 29 of file CharacterView.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index