Package peppy :: Package plugins :: Module hexedit_mode :: Class HugeTable
[frames] | no frames]

Class HugeTable

       object --+            
                |            
  wx._core.Object --+        
                    |        
wx.grid.GridTableBase --+    
                        |    
  wx.grid.PyGridTableBase --+
                            |
               object --+   |
                        |   |
         debug.debugmixin --+
                            |
                           HugeTable

Instance Methods
PyGridTableBase
__init__(self, stc, format='16c')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
setFormat(self, format)
 
parseFormat(self, format)
Given a format specifier, parse the string into individual cell formats.
 
setSTC(self, stc)
 
getTextCol(self, col)
 
getTextColPreferredWidth(self, col)
 
getHexColPreferredWidth(self)
 
showHexDigits(self, grid, state, refresh=True)
 
showRecordNumbers(self, grid, state, refresh=True)
 
getLoc(self, row, col)
Get the byte offset from start of file given row, col position.
 
getNumberHexCols(self)
 
getNumberTextCols(self)
 
getCursorPosition(self, loc, refcol=0)
Get cursor position from byte offset from start of file.
 
getNextCursorPosition(self, row, col)
 
getPrevCursorPosition(self, row, col)
int
GetNumberRows(self)
 
GetRowLabelValue(self, row)
GetRowLabelValue(self, int row) -> String
int
GetNumberCols(self)
 
GetColLabelValue(self, col)
GetColLabelValue(self, int col) -> String
 
IsEmptyCell(self, row, col)
IsEmptyCell(self, int row, int col) -> bool
 
GetValue(self, row, col)
GetValue(self, int row, int col) -> String
 
SetValue(self, row, col, value)
SetValue(self, int row, int col, String value)
 
ResetView(self, grid, stc, format=None, col_labels=None)
(Grid) -> Reset the grid view.
 
UpdateValues(self, grid)
Update all displayed values

Inherited from wx.grid.PyGridTableBase: Destroy, __repr__, base_AppendCols, base_AppendRows, base_CanGetValueAs, base_CanHaveAttributes, base_CanSetValueAs, base_Clear, base_DeleteCols, base_DeleteRows, base_GetAttr, base_GetColLabelValue, base_GetRowLabelValue, base_GetTypeName, base_InsertCols, base_InsertRows, base_SetAttr, base_SetColAttr, base_SetColLabelValue, base_SetRowAttr, base_SetRowLabelValue

Inherited from wx.grid.GridTableBase: AppendCols, AppendRows, CanGetValueAs, CanHaveAttributes, CanSetValueAs, Clear, DeleteCols, DeleteRows, GetAttr, GetAttrProvider, GetTypeName, GetValueAsBool, GetValueAsDouble, GetValueAsLong, GetView, InsertCols, InsertRows, SetAttr, SetAttrProvider, SetColAttr, SetColLabelValue, SetRowAttr, SetRowLabelValue, SetValueAsBool, SetValueAsDouble, SetValueAsLong, SetView, __del__, __swig_destroy__

Inherited from wx._core.Object: GetClassName, IsSameAs

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables

Inherited from debug.debugmixin: debuglevel

Properties

Inherited from wx.grid.PyGridTableBase: thisown

Inherited from wx.grid.GridTableBase: AttrProvider, NumberCols, NumberRows, View

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

Method Details

__init__(self, stc, format='16c')
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns: PyGridTableBase
Overrides: object.__init__
(inherited documentation)

parseFormat(self, format)

 

Given a format specifier, parse the string into individual cell formats. A format specifier may have a repeat count, but we have to break this down into the format specifiers for each cell on the value side.

Parameters:
  • format - text string specifying the format characters

getCursorPosition(self, loc, refcol=0)

 

Get cursor position from byte offset from start of file. Optionally take a column parameter that tells us which side of the grid we're on, the hex side or the calculated side.

GetNumberRows(self)

 
Returns: int
Overrides: wx.grid.GridTableBase.GetNumberRows
(inherited documentation)

GetRowLabelValue(self, row)

 

GetRowLabelValue(self, int row) -> String

Overrides: wx.grid.GridTableBase.GetRowLabelValue
(inherited documentation)

GetNumberCols(self)

 
Returns: int
Overrides: wx.grid.GridTableBase.GetNumberCols
(inherited documentation)

GetColLabelValue(self, col)

 

GetColLabelValue(self, int col) -> String

Overrides: wx.grid.GridTableBase.GetColLabelValue
(inherited documentation)

IsEmptyCell(self, row, col)

 

IsEmptyCell(self, int row, int col) -> bool

Overrides: wx.grid.GridTableBase.IsEmptyCell
(inherited documentation)

GetValue(self, row, col)

 

GetValue(self, int row, int col) -> String

Overrides: wx.grid.GridTableBase.GetValue
(inherited documentation)

SetValue(self, row, col, value)

 

SetValue(self, int row, int col, String value)

Overrides: wx.grid.GridTableBase.SetValue
(inherited documentation)

ResetView(self, grid, stc, format=None, col_labels=None)

 

(Grid) -> Reset the grid view. Call this to update the grid if rows and columns have been added or deleted