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

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends

HexEditPanel Class Reference

Inheritance diagram for HexEditPanel:
Inheritance graph
Collaboration diagram for HexEditPanel:
Collaboration graph

List of all members.

Public Member Functions

virtual void Activate ()
 Activate this editor.
virtual bool CanPaste () const
virtual bool CanSelectAll () const
virtual void ClearHistory ()
virtual bool Close ()
 Close this editor.
virtual void Copy ()
virtual void Cut ()
virtual void DisplayContextMenu (const wxPoint &position, ModuleType type=mtUnknown)
 Display context menu.
virtual const wxString & GetFilename () const
 Get the editor's filename (if applicable).
virtual const wxString & GetShortName () const
 Returns the editor's short name.
virtual const wxString & GetTitle ()
 The editor's title.
virtual void GotoLine (int line, bool centerOnScreen=true)
virtual void GotoNextBookmark ()
virtual void GotoNextBreakpoint ()
virtual void GotoNextChanged ()
virtual void GotoPreviousBookmark ()
virtual void GotoPreviousBreakpoint ()
virtual void GotoPreviousChanged ()
virtual bool HasBookmark (int line) const
virtual bool HasBreakpoint (int line) const
virtual bool HasSelection () const
 HexEditPanel (const wxString &fileName, const wxString &title)
virtual bool IsBuiltinEditor () const
 Is this a built-in editor?
virtual bool IsContextMenuOpened () const
virtual bool IsReadOnly () const
virtual void Paste ()
virtual bool QueryClose ()
 Can this be closed (destroyed)?
virtual void SelectAll ()
virtual void SetChangeCollection (bool collectChange)
virtual void SetDebugLine (int line)
 Mark the debugger's active line.
virtual void SetErrorLine (int line)
 Mark line as error.
virtual void SetTitle (const wxString &newTitle)
 Set the editor's title.
virtual bool ThereAreOthers () const
 Are there other editors besides this?
virtual void ToggleBookmark (int line=-1)
virtual void ToggleBreakpoint (int line=-1, bool notifyDebugger=true)
virtual bool VisibleToTree () const

Static Public Member Functions

static void CloseAllEditors ()
 Close all editors.
static bool IsHexEditor (EditorBase *editor)
 Check if given editor is HexEditor.

Protected Member Functions

virtual void AddToContextMenu (wxMenu *popup, ModuleType type, bool pluginsdone)
virtual wxMenu * CreateContextSubMenu (int id)
virtual wxString CreateUniqueFilename ()
virtual bool GetModified () const
 Is it modified?
virtual void InitFilename (const wxString &filename)
virtual void OnAfterBuildContextMenu (ModuleType type)
virtual bool OnBeforeBuildContextMenu (const wxPoint &position, ModuleType type)
virtual bool Save ()
 Save contents.
virtual bool SaveAs ()
 Save editor contents under a different filename.
virtual void SetFilename (const wxString &filename)
 Sets the editor's filename.
virtual void SetModified (bool modified)
 Set the modification status.

Protected Attributes

wxString m_Filename
bool m_IsBuiltinEditor
 Use this to add new vars/functions w/out breaking the ABI.
wxString m_Shortname

Private Types

typedef std::set< EditorBase * > EditorsSet
typedef FileContentBase::OffsetT OffsetT

Private Member Functions

void ActivateView (HexEditViewBase *view)
 Activate view at given index.
virtual bool CanRedo () const
virtual bool CanUndo () const
void ClampCursorToVisibleArea ()
 Adjust the m_Current position to make sure that it points to some byte shown on the screen.
void ColsMode (int mode, int value)
 Called to set columns mode.
void CreateViews ()
 Create views of the editor.
FileContentBase::OffsetT DetectStartOffset ()
 Returns offset of first byte displayed on the screen from the scroll bar.
void DisplayChanged ()
 Called to adjust views due to display settings change.
void EnsureCarretVisible ()
 Adjust the scrollbar to make sure that m_Current byte is shown on the screen.
bool MatchColumnsCount (int colsCount)
 Check if given columns count matches column setting mode.
void OnButton1Click (wxCommandEvent &event)
void OnButton2Click (wxCommandEvent &event)
void OnButton3Click (wxCommandEvent &event)
void OnButton3Click1 (wxCommandEvent &event)
void OnButton4Click (wxCommandEvent &event)
void OnButton4Click1 (wxCommandEvent &event)
void OnButton5Click (wxCommandEvent &event)
void OnButton6Click (wxCommandEvent &event)
void OnCheckBox1Click (wxCommandEvent &event)
void OnContentMouseWheel (wxMouseEvent &event)
void OnContentPaint (wxPaintEvent &event)
void OnContentScroll (wxScrollEvent &event)
void OnContentScrollBottom (wxScrollEvent &event)
void OnContentScrollTop (wxScrollEvent &event)
void OnContentSize (wxSizeEvent &event)
void OnDrawAreaEraseBackground (wxEraseEvent &event)
void OnDrawAreaKeyDown (wxKeyEvent &event)
void OnDrawAreaLeftDown (wxMouseEvent &event)
void OnDrawAreaLeftUp (wxMouseEvent &event)
void OnDrawAreaMouseMove (wxMouseEvent &event)
void OnExpressionTextEnter (wxCommandEvent &event)
void OnForwardFocus (wxFocusEvent &event)
void Onm_BlockSizeClick (wxCommandEvent &event)
void Onm_ColsModeClick (wxCommandEvent &event)
void Onm_EndianessClick (wxCommandEvent &event)
void Onm_ExpressionText (wxCommandEvent &event)
void OnReparseTimerTrigger (wxTimerEvent &event)
void OnSetBaseBin (wxCommandEvent &event)
void OnSetBaseHex (wxCommandEvent &event)
void OnSetBlockSize1 (wxCommandEvent &event)
void OnSetBlockSize2 (wxCommandEvent &event)
void OnSetBlockSize4 (wxCommandEvent &event)
void OnSetBlockSize8 (wxCommandEvent &event)
void OnSetColsMul1 (wxCommandEvent &event)
void OnSetColsMul2 (wxCommandEvent &event)
void OnSetColsMul3 (wxCommandEvent &event)
void OnSetColsMul4 (wxCommandEvent &event)
void OnSetColsMul5 (wxCommandEvent &event)
void OnSetColsMul6 (wxCommandEvent &event)
void OnSetColsMul7 (wxCommandEvent &event)
void OnSetColsMul8 (wxCommandEvent &event)
void OnSetColsMulOther (wxCommandEvent &event)
void OnSetColsPower2 (wxCommandEvent &event)
void OnSetColsPower4 (wxCommandEvent &event)
void OnSetColsPower8 (wxCommandEvent &event)
void OnSetColsPowerOther (wxCommandEvent &event)
void OnSetColsValue1 (wxCommandEvent &event)
void OnSetColsValue2 (wxCommandEvent &event)
void OnSetColsValue3 (wxCommandEvent &event)
void OnSetColsValue4 (wxCommandEvent &event)
void OnSetColsValue5 (wxCommandEvent &event)
void OnSetColsValue6 (wxCommandEvent &event)
void OnSetColsValue7 (wxCommandEvent &event)
void OnSetColsValue8 (wxCommandEvent &event)
void OnSetColsValueOther (wxCommandEvent &event)
void OnSetEndianessBig (wxCommandEvent &event)
void OnSetEndianessLittle (wxCommandEvent &event)
void OnSpecialKeyDown (wxKeyEvent &event)
void ProcessGoto ()
 Process GOTO request.
void ProcessSearch ()
 Process search request.
void PropagateOffsetChange (int flagsForCurrentView=-1)
 Propagate change of the offset to all views.
void ReadContent ()
 Open the file content structure and check for errors.
void RecalculateCoefs ()
 Recalculate all coefficients (width, height, block sizes eetc)
virtual void Redo ()
void RefreshStatus ()
 Refresh status line (position, percentage etc)
void ReparseExpression ()
 Reparse expression entered by the user in preview bar.
void SetFontSize (int size)
 Set font of given size as used font, does not recalculate coefficients nor font size.
virtual void Undo ()
void UpdateModified ()
 Update the state of "modified" document.
void ViewNotifyContentChange ()
 Notification about content change from the view.
void ViewNotifyOffsetChange (OffsetT newOffset)
 Notification about offset change from the view.

Private Attributes

wxBoxSizer * BoxSizer1
wxBoxSizer * BoxSizer2
wxBoxSizer * BoxSizer3
wxBoxSizer * BoxSizer4
wxButton * Button1
wxButton * Button2
wxButton * Button3
wxButton * Button4
wxButton * Button5
wxButton * Button6
wxCheckBox * CheckBox1
wxFlexGridSizer * FlexGridSizer1
 Index of active view.
wxMenu m_BaseMenu
wxButton * m_BlockSize
wxMenu m_BlockSizeMenu
wxStaticText * m_ByteVal
unsigned int m_Cols
 Number of available characters in row in the editor.
int m_ColsCount
int m_ColsMode
wxButton * m_ColsModeBtn
wxMenu m_ColsModeMenu
int m_ColsValue
 Content structure of file being edited.
wxScrollBar * m_ContentScroll
OffsetT m_Current
 Offset of current character.
OffsetT m_CurrentBlockEnd
 Offset of end of current character block.
OffsetT m_CurrentBlockStart
 Offset of start of current character block.
wxButton * m_DigitBits
 Cached pointer to digit view.
wxStaticText * m_DoubleVal
wxPanel * m_DrawArea
wxFont * m_DrawFont
 Font used for drawing.
wxStaticText * m_DwordVal
wxButton * m_Endianess
wxMenu m_EndianessMenu
wxString m_ErrorString
 String containg error description (if couldn't read the content)
wxTextCtrl * m_Expression
Expression::Preprocessed m_ExpressionCode
 Bytecode of user-defined expression in preview bar.
wxString m_ExpressionError
 Last error reported while compiling user-defined expression in preview bar.
wxStaticText * m_ExpressionVal
wxString m_FileName
 Name of the file being edited.
wxStaticText * m_FloatVal
wxCoord m_FontX
 Width of character.
wxCoord m_FontY
 Height of character.
OffsetT m_LastScrollPos
 Last position of the scroll as offset in file.
int m_LastScrollUnits
 Last position of the scroll (in scroll units)
wxStaticText * m_LDoubleVal
unsigned int m_LineBytes
 Number of bytes shown in a line.
unsigned int m_Lines
 Number of available lines of characters in the editor.
OffsetT m_LinesPerScrollUnit
 Number of lines per one scroll unit.
bool m_MouseDown
wxStaticText * m_Status
bool m_ViewNotifyContentChange
bool m_ViewNotifyOffsetChange
HexEditViewBasem_Views [MAX_VIEWS]
 List of all used views.
unsigned m_ViewsCols [MAX_VIEWS]
 Size of each view in characters.
wxStaticText * m_WordVal
wxMenuItem * MenuItem1
wxMenu * MenuItem10
wxMenuItem * MenuItem11
wxMenuItem * MenuItem12
wxMenuItem * MenuItem13
wxMenuItem * MenuItem14
wxMenuItem * MenuItem15
wxMenuItem * MenuItem16
wxMenuItem * MenuItem17
wxMenuItem * MenuItem18
wxMenu * MenuItem19
wxMenuItem * MenuItem2
wxMenuItem * MenuItem20
wxMenuItem * MenuItem21
wxMenuItem * MenuItem22
wxMenuItem * MenuItem23
wxMenuItem * MenuItem24
wxMenuItem * MenuItem25
wxMenuItem * MenuItem26
wxMenuItem * MenuItem27
wxMenu * MenuItem28
wxMenuItem * MenuItem29
wxMenuItem * MenuItem3
wxMenuItem * MenuItem30
wxMenuItem * MenuItem31
wxMenuItem * MenuItem32
wxMenuItem * MenuItem33
wxMenuItem * MenuItem4
wxMenuItem * MenuItem5
wxMenuItem * MenuItem6
wxMenuItem * MenuItem7
wxMenuItem * MenuItem8
wxMenuItem * MenuItem9
wxBoxSizer * PreviewSizer
wxTimer ReparseTimer
wxStaticLine * StaticLine1
wxStaticLine * StaticLine2
wxStaticText * StaticText1
wxStaticText * StaticText2
wxStaticText * StaticText3
wxStaticText * StaticText4
wxStaticText * StaticText5
wxStaticText * StaticText6
wxStaticText * StaticText8

Static Private Attributes

static const long ID_BUTTON1 = wxNewId()
static const long ID_BUTTON10 = wxNewId()
static const long ID_BUTTON2 = wxNewId()
static const long ID_BUTTON3 = wxNewId()
static const long ID_BUTTON4 = wxNewId()
static const long ID_BUTTON5 = wxNewId()
static const long ID_BUTTON6 = wxNewId()
static const long ID_BUTTON7 = wxNewId()
static const long ID_BUTTON8 = wxNewId()
static const long ID_BUTTON9 = wxNewId()
static const long ID_CHECKBOX1 = wxNewId()
static const long ID_MENUITEM1 = wxNewId()
static const long ID_MENUITEM10 = wxNewId()
static const long ID_MENUITEM11 = wxNewId()
static const long ID_MENUITEM12 = wxNewId()
static const long ID_MENUITEM13 = wxNewId()
static const long ID_MENUITEM14 = wxNewId()
static const long ID_MENUITEM15 = wxNewId()
static const long ID_MENUITEM16 = wxNewId()
static const long ID_MENUITEM17 = wxNewId()
static const long ID_MENUITEM18 = wxNewId()
static const long ID_MENUITEM19 = wxNewId()
static const long ID_MENUITEM2 = wxNewId()
static const long ID_MENUITEM20 = wxNewId()
static const long ID_MENUITEM21 = wxNewId()
static const long ID_MENUITEM22 = wxNewId()
static const long ID_MENUITEM23 = wxNewId()
static const long ID_MENUITEM24 = wxNewId()
static const long ID_MENUITEM25 = wxNewId()
static const long ID_MENUITEM26 = wxNewId()
static const long ID_MENUITEM27 = wxNewId()
static const long ID_MENUITEM28 = wxNewId()
static const long ID_MENUITEM29 = wxNewId()
static const long ID_MENUITEM3 = wxNewId()
static const long ID_MENUITEM30 = wxNewId()
static const long ID_MENUITEM31 = wxNewId()
static const long ID_MENUITEM32 = wxNewId()
static const long ID_MENUITEM33 = wxNewId()
static const long ID_MENUITEM4 = wxNewId()
static const long ID_MENUITEM5 = wxNewId()
static const long ID_MENUITEM6 = wxNewId()
static const long ID_MENUITEM7 = wxNewId()
static const long ID_MENUITEM8 = wxNewId()
static const long ID_MENUITEM9 = wxNewId()
static const long ID_PANEL1 = wxNewId()
static const long ID_SCROLLBAR1 = wxNewId()
static const long ID_STATICLINE1 = wxNewId()
static const long ID_STATICLINE2 = wxNewId()
static const long ID_STATICTEXT1 = wxNewId()
static const long ID_STATICTEXT10 = wxNewId()
static const long ID_STATICTEXT11 = wxNewId()
static const long ID_STATICTEXT12 = wxNewId()
static const long ID_STATICTEXT13 = wxNewId()
static const long ID_STATICTEXT14 = wxNewId()
static const long ID_STATICTEXT15 = wxNewId()
static const long ID_STATICTEXT2 = wxNewId()
static const long ID_STATICTEXT3 = wxNewId()
static const long ID_STATICTEXT4 = wxNewId()
static const long ID_STATICTEXT5 = wxNewId()
static const long ID_STATICTEXT6 = wxNewId()
static const long ID_STATICTEXT7 = wxNewId()
static const long ID_STATICTEXT8 = wxNewId()
static const long ID_STATICTEXT9 = wxNewId()
static const long ID_TEXTCTRL1 = wxNewId()
static const long ID_TIMER1 = wxNewId()
static EditorsSet m_AllEditors
 Set of all opened editors, used to close all editors when plugin is being unloaded.


class HexEditViewBase

Detailed Description

Definition at line 49 of file HexEditPanel.h.

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

Generated by  Doxygen 1.6.0   Back to index