wxMaxima
Data Structures | Public Member Functions | Data Fields
CellPointers Class Reference

The storage for pointers to cells. More...

#include <CellPointers.h>

Collaboration diagram for CellPointers:
[legend]

Data Structures

class  ErrorList
 A list of editor cells containing error messages. More...
 

Public Member Functions

void ScrollToCell (Cell *cell)
 
CellCellToScrollTo ()
 
 CellPointers (wxScrolledCanvas *worksheet)
 
GroupCellGetWorkingGroup (bool resortToLast=false) const
 Returns the cell maxima currently works on. More...
 
void SetWorkingGroup (GroupCell *group)
 Sets the cell maxima currently works on. NULL if there isn't such a cell.
 
void WXMXResetCounter ()
 
wxString WXMXGetNewFileName ()
 
std::size_t WXMXImageCount () const
 
bool HasCellsSelected () const
 
void ResetSearchStart ()
 Forget where the search was started.
 
void ResetMouseSelectionStart ()
 Forget where the mouse selection was started.
 
void ResetKeyboardSelectionStart ()
 Forget where the keyboard selection was started.
 
void SetTimerIdForCell (Cell *cell, int timerId)
 
int GetTimerIdForCell (Cell *cell) const
 
CellGetCellForTimerId (int timerId) const
 
void RemoveTimerIdForCell (const Cell *const cell)
 
wxScrolledCanvasGetWorksheet ()
 

Data Fields

ErrorList m_errorList
 The list of cells maxima has complained about errors in.
 
CellPtr< EditorCellm_cellMouseSelectionStartedIn
 The EditorCell the mouse selection has started in.
 
CellPtr< EditorCellm_cellKeyboardSelectionStartedIn
 The EditorCell the keyboard selection has started in.
 
CellPtr< EditorCellm_cellSearchStartedIn
 The EditorCell the search was started in.
 
int m_indexSearchStartedAt = -1
 Which cursor position incremental search has started at?
 
CellPtr< EditorCellm_activeCell
 Which EditCell the blinking cursor is in?
 
CellPtr< GroupCellm_groupCellUnderPointer
 The GroupCell that is under the mouse pointer.
 
CellPtr< EditorCellm_answerCell
 The EditorCell that contains the currently active question from maxima.
 
CellPtr< GroupCellm_lastWorkingGroup
 The last group cell maxima was working on.
 
CellPtr< TextCellm_currentTextCell
 The textcell the text maxima is sending us was ending in.
 
CellPtr< GroupCellm_workingGroup
 The group cell maxima is currently working on. More...
 
wxString m_selectionString
 The currently selected string. More...
 
CellPtr< Cellm_selectionStart
 The first cell of the currently selected range of Cells. More...
 
CellPtr< Cellm_cellUnderPointer
 The last cell of the currently selected range of groupCells. More...
 
CellPtr< Cellm_selectionEnd
 The last cell of the currently selected range of Cells. More...
 
bool m_scrollToCell = false
 Is scrolling to a cell scheduled?
 

Detailed Description

The storage for pointers to cells.

If a cell is deleted it is necessary to remove all pointers that might allow to access the now-defunct cell. These pointers are kept in this per-worksheet structure.

Member Function Documentation

◆ GetWorkingGroup()

GroupCell * CellPointers::GetWorkingGroup ( bool  resortToLast = false) const

Returns the cell maxima currently works on.

NULL if there isn't such a cell.

Parameters
resortToLasttrue = if we already have set the cell maxima works on to NULL use the last cell maxima was known to work on.

Field Documentation

◆ m_cellUnderPointer

CellPtr<Cell> CellPointers::m_cellUnderPointer

The last cell of the currently selected range of groupCells.

NULL, when no GroupCells are selected and NULL, if only stuff inside a GroupCell is selected and therefore the selection is handled by EditorCell; This cell is always below m_selectionStart.

See also m_hCaretPositionEnd The cell currently under the mouse pointer

◆ m_selectionEnd

CellPtr<Cell> CellPointers::m_selectionEnd

The last cell of the currently selected range of Cells.

NULL, when no Cells are selected and NULL, if only stuff inside a EditorCell is selected and therefore the selection is handled by EditorCell; This cell is always above m_selectionEnd.

See also m_hCaretPositionStart, m_hCaretPositionEnd and m_selectionStart.

◆ m_selectionStart

CellPtr<Cell> CellPointers::m_selectionStart

The first cell of the currently selected range of Cells.

NULL, when no Cells are selected and NULL, if only stuff inside a EditorCell is selected and therefore the selection is handled by EditorCell; This cell is always above m_selectionEnd.

See also m_hCaretPositionStart and m_selectionEnd

◆ m_selectionString

wxString CellPointers::m_selectionString

The currently selected string.

Since this string is defined here it is available in every editor cell for highlighting other instances of the selected string.

◆ m_workingGroup

CellPtr<GroupCell> CellPointers::m_workingGroup

The group cell maxima is currently working on.

NULL means that maxima isn't currently evaluating a cell.


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