wxMaxima
Loading...
Searching...
No Matches
GroupCell.h
Go to the documentation of this file.
1// -*- mode: c++; c-file-style: "linux"; c-basic-offset: 2; indent-tabs-mode: nil -*-
2//
3// Copyright (C) 2008-2015 Andrej Vodopivec <andrej.vodopivec@gmail.com>
4// (C) 2012 Doug Ilijev <doug.ilijev@gmail.com>
5// (C) 2014-2015 Gunter Königsmann <wxMaxima@physikbuch.de>
6//
7// This program is free software; you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation; either version 2 of the License, or
10// (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21//
22// SPDX-License-Identifier: GPL-2.0+
23
30#ifndef GROUPCELL_H
31#define GROUPCELL_H
32
33#include <utility>
34#include <memory>
35#include <vector>
36#include "Cell.h"
37#include "EditorCell.h"
38#include <unordered_map>
39
41// This enum's elements must be synchronized with (WXMFormat.h) WXMHeaderId.
42enum GroupType : int8_t
43{
44 GC_TYPE_INVALID = -1,
45 GC_TYPE_CODE = 0,
46 GC_TYPE_TITLE,
47 GC_TYPE_SECTION,
48 GC_TYPE_SUBSECTION,
49 GC_TYPE_SUBSUBSECTION,
50 GC_TYPE_HEADING5,
51 GC_TYPE_HEADING6,
52 GC_TYPE_TEXT,
53 GC_TYPE_IMAGE,
54 GC_TYPE_PAGEBREAK
55};
57std::ostream& operator<<(std::ostream& out, const GroupType grouptype);
58
87class GroupCell : public Cell
88{
89public:
92 GroupCell(Configuration *config, GroupType groupType,
93 const wxString &initString = {});
94 GroupCell(GroupCell const &cell);
95 GroupCell(GroupCell *group, const GroupCell &cell);
96 std::unique_ptr<Cell> Copy() const;
97 std::unique_ptr<Cell> Copy(GroupCell *group) const override;
98 const CellTypeInfo &GetInfo() override;
99 std::unique_ptr<GroupCell> CopyList() const;
100 ~GroupCell() override;
101
102 wxCoord GetMaxDrop() const override;
103 wxCoord GetCenterList() const override;
104
105 // cppcheck-suppress duplInheritedMember
106 GroupCell *first() const { return dynamic_cast<GroupCell*>(Cell::first()); }
107 // cppcheck-suppress duplInheritedMember
108 GroupCell *last() const { return dynamic_cast<GroupCell*>(Cell::last()); }
109
110 const wxString &GetAnswer(size_t answer) const;
111 const wxString &GetAnswer(const wxString &question) const;
113 bool ContainsSavedAnswers() const { return !m_knownAnswers.empty(); }
115 bool AutoAnswer() const { return m_autoAnswer; }
116 void SetAutoAnswer(bool autoAnswer);
129 void SetAnswer(const wxString &question, const wxString &answer);
137 void ForgetAnswers();
138
139 size_t GetInnerCellCount() const override { return (m_groupType == GC_TYPE_PAGEBREAK) ? 0 : 2; }
140 Cell *GetInnerCell(size_t index) const override {
141 switch (index) {
142 case 0:
143 return m_inputLabel.get();
144 case 1:
145 return m_output.get();
146 default:
147 return nullptr;
148 }
149 }
150
157
163 void CellUnderPointer(GroupCell *cell);
164
169 const wxString GetToolTip(wxPoint point) const override;
175 wxString GetLinkAt(wxPoint point) override;
176
177 // general methods
178 GroupType GetGroupType() const { return m_groupType; }
179
180 void SetGroupType(GroupType groupType);
181
182 // selection methods
183 Range GetInnerCellsInRect(const wxRect &rect) const override;
184
185 Range GetCellsInOutput() const;
186
187 Range GetCellsInOutputRect(const wxRect &rect, wxPoint one, wxPoint two) const;
188
189 // methods for manipulating GroupCell
190 // cppcheck-suppress functionConst
191 bool SetEditableContent(const wxString &text);
192
193 void AppendOutput(std::unique_ptr<Cell> &&cell);
194
201 void RemoveOutput();
202
212 void RemoveMathOutput();
213
214 AFontSize EditorFontSize() const;
215
218
228 wxString ToTeX(const wxString &imgDir, const wxString &filename, std::size_t *imgCounter) const;
229
230 wxString ToRTF() const override;
231
232 wxString ToTeXCodeCell(const wxString &imgDir, const wxString &filename, std::size_t *imgCounter) const;
233
234 static wxString ToTeXImage(const Cell *tmp, const wxString &imgDir, const wxString &filename, std::size_t *imgCounter);
235
242 static wxString ToTeXAnimation(const Cell *tmp, const wxString &imgDir, const wxString &filename, std::size_t *imgCounter);
243
244 wxString ToTeX() const override;
245
246 wxString ToXML() const override;
247
248 void Hide(bool hide) override;
249 bool FirstLineOnlyEditor() const override;
250 void SwitchHide();
251
252 wxRect HideRect() const;
253
262 wxCoord BracketColumnLeft() const;
263
265 wxCoord ContentColumnRight() const;
266
269 wxCoord label = 0;
270 wxCoord rest = 0;
271 };
272
274 static bool IsOutputLabel(const Cell &cell);
275
281 static std::vector<OutputLineWidths> MeasureOutputLines(Cell *displayed);
282
290 wxPoint CalculateLabelPosition() const;
291
292 // raw manipulation of GC (should be protected)
293 void SetInput(std::unique_ptr<Cell> &&input);
294
295 void SetOutput(std::unique_ptr<Cell> &&output);
296
297 void AppendInput(std::unique_ptr<Cell> &&cell);
298
300 // cppcheck-suppress duplInheritedMember
301 GroupCell *GetPrevious() const { return dynamic_cast<GroupCell *>(Cell::GetPrevious()); }
302
304 // cppcheck-suppress duplInheritedMember
305 GroupCell *GetNext() const { return dynamic_cast<GroupCell *>(Cell::GetNext()); }
306
307 static wxString TexEscapeOutputCell(wxString Input);
308
309 Cell *GetPrompt() const { return m_inputLabel.get(); }
310
311 EditorCell *GetEditable() const
312 { return m_inputLabel ? dynamic_cast<EditorCell *>(m_inputLabel->GetNext()) : nullptr; }
313
318 Cell *GetLabel() const { return m_output.get(); }
319
325 { return m_output ? m_output->GetNext() : nullptr; }
326
333 {
334 Cell *first = nullptr;
335 Cell *last = nullptr;
336 };
342 std::vector<OutputResult> GetOutputResults() const;
343
345 wxRect GetOutputRect() const { return m_outputRect; }
346
355 bool ContainsPointOrOutput(wxPoint point) const
356 { return ContainsPoint(point) || m_outputRect.Contains(point); }
357
364 wxRect GetBracketRect() const;
365
372 void Recalculate(const AFontSize fontsize) const override {
373 if (fontsize.IsValid())
374 m_mathFontSize = fontsize;
375 else
376 m_mathFontSize = m_configuration->GetMathFontSize();
377 m_fontSize = m_mathFontSize;
378 Recalculate();
379 }
380 bool Recalculate() const;
381 bool Reposition() const;
383 bool NeedsRecalculation(AFontSize fontSize) const override;
385 void SetCurrentPoint(wxPoint point) const override;
386 wxPoint CalculateInputPosition() const;
387
389 void RecalculateInput() const;
390 wxRect GetRect(bool all = false) const override;
396 void RecalculateOutput() const;
397
405 Cell *DisplayedOutput() const;
406
408 void BreakLines() const;
409
415 void ResetInputLabel();
416
418 void ResetInputLabelList();
420
422 bool IsFoldable() const;
423
425 GroupCell *GetHiddenTree() const { return m_hiddenTree.get(); }
426
433 bool HideTree(std::unique_ptr<GroupCell> &&tree);
434
436 std::unique_ptr<GroupCell> UnhideTree();
437
444 bool RevealHidden();
445
447 void SetHiddenTreeParent(GroupCell *parent, GroupCell *last = nullptr);
448
454
459 GroupCell *Fold(); // returns pointer to this or nullptr if not successful
464 GroupCell *Unfold();
465
473 GroupCell *FoldAll(std::vector<GroupCell *> *affected = nullptr);
474
482 GroupCell *UnfoldAll(std::vector<GroupCell *> *affected = nullptr);
483
489 bool IsLesserGCType(GroupType comparedTo) const;
490
492 bool IsMainInput(const Cell *active) const;
493
494 bool IsHeading() const;
496 bool SectioningCanMoveIn() const {return IsHeading() && (GetGroupType() != GC_TYPE_HEADING6);};
498 bool SectioningCanMoveOut() const {return IsHeading() && (GetGroupType() != GC_TYPE_TITLE);}
501
503 void Number(int &section, int &subsection, int &subsubsection, int &heading5, int &heading6, int &image) const;
504
516 void Draw(wxDC *dc, wxDC *antialiassingDC) override;
525 bool DrawThisCell();
526
527 bool AddEnding() override;
528
530 void DrawBracket(wxDC *dc, wxDC *antialiassingDC);
531
533 bool Empty() const;
534
536 bool Contains(GroupCell *cell) const;
537
539 wxString ToString() const override;
540
542 void InEvaluationQueue(bool inQueue) { m_inEvaluationQueue = inQueue; }
543
545 void LastInEvaluationQueue(bool last) { m_lastInEvaluationQueue = last; }
546
548 void OnSize();
549
551 void InputHeightChanged();
552
554 void OutputHeightChanged();
555
556 using CmdsAndVariables = std::unordered_map<wxString, int, wxStringHash>;
557
559 std::vector<std::pair<wxString, wxString>> m_knownAnswers;
560
561#if wxUSE_ACCESSIBILITY
562 wxAccStatus GetName (int childId, wxString *name) const override;
563 wxAccStatus GetDescription(int childId, wxString *description) const override;
564 wxAccStatus GetLocation (wxRect &rect, int elementId) override;
565 wxAccStatus GetRole (int childId, wxAccRole *role) const override;
566#endif
567
569 void UpdateYPosition() const;
570
571 void UpdateOutputPositions() const;
572
573 void UpdateYPositionList() const;
574
575 bool GetSuppressTooltipMarker() const { return m_suppressTooltipMarker; }
576 void SetSuppressTooltipMarker(bool suppress) { m_suppressTooltipMarker = suppress; }
577
578protected:
579 wxCoord GetInputIndent() const;
580 void UpdateCellsInGroup();
581
582//** 16-byte objects (16 bytes)
583//**
590 mutable wxRect m_outputRect{-1, -1, 0, 0};
591
592//** 8/4 byte objects (40 bytes)
593//**
594 DocumentCellPointers *const m_documentCellPointers = GetDocumentCellPointers();
595 ViewCellPointers *const m_viewCellPointers = GetViewCellPointers();
596
597 std::unique_ptr<GroupCell> m_hiddenTree;
599
600 // The pointers below point to inner cells and must be kept contiguous.
601 // ** All pointers must be the same: either Cell * or std::unique_ptr<Cell>.
602 // ** NO OTHER TYPES are allowed.
604 std::unique_ptr<Cell> m_inputLabel;
606 std::unique_ptr<Cell> m_output;
607 // The pointers above point to inner cells and must be kept contiguous.
608
618 mutable std::unique_ptr<Cell> m_layoutSuppressedNotice;
624
625//** 4-byte objects (16 bytes)
626//**
629 mutable int m_labelWidth_cached = 0;
632 mutable int m_inputWidth, m_inputHeight;
633protected:
634//** 2-byte objects (6 bytes)
635//**
637 int16_t m_cellsInGroup = 1;
638 mutable int16_t m_numberedAnswersCount = 0;
639
640 mutable AFontSize m_mathFontSize;
641
642//** 1-byte objects (1 byte)
643//**
646
647//** Bitfield objects (1 bytes)
648//**
650 bool m_autoAnswer : 1 = false;
651 bool m_inEvaluationQueue : 1 = false;
652 bool m_lastInEvaluationQueue : 1 = false;
653 bool m_updateConfusableCharWarnings : 1 = true;
655 bool m_suppressTooltipMarker : 1 = false;
658 mutable bool m_cellsAppended : 1 = false;
665 mutable bool m_layoutSuppressed : 1 = false;
666
667 static wxString m_lookalikeChars;
668};
669
670#endif /* GROUPCELL_H */
The definition of the base class of all cells the worksheet consists of.
This file contains the definition of the class EditorCell.
std::ostream & operator<<(std::ostream &out, const GroupType grouptype)
Allow Standard c++ streams to print out our enum values as text.
Definition: GroupCell.cpp:2467
GroupType
All types a GroupCell can be of.
Definition: GroupCell.h:43
int group
Neighbouring sections of the same group aren't separated.
Definition: ToolBarSections.cpp:45
A Type-Safe Fixed-Point Font Size.
Definition: FontAttribs.h:99
A weak non-owning pointer that becomes null whenever the observed object is destroyed.
Definition: CellPtr.h:539
A class that carries information about the type of a cell.
Definition: Cell.h:93
The base class all cell types the worksheet can consist of are derived from.
Definition: Cell.h:148
Cell * GetNext() const
Get the next cell in the list.
Definition: Cell.h:914
bool ContainsPoint(wxPoint point) const
Is a given point inside this cell?
Definition: Cell.h:399
Cell * GetPrevious() const
Returns a pointer to the previous cell in the current cell list.
Definition: Cell.h:911
Cell * last() const
Get the last cell in this list of cells.
Definition: Cell.cpp:1556
AFontSize m_fontSize
The unscaled font size.
Definition: Cell.h:1291
Configuration * m_configuration
A pointer to the configuration responsible for this worksheet.
Definition: Cell.h:1249
DocumentCellPointers * GetDocumentCellPointers() const
The document-model half of the cell-pointer registry this cell uses.
Definition: Cell.cpp:70
virtual void SetCurrentPoint(wxPoint point) const
Pass 2: Arrangement.
Definition: Cell.cpp:532
ViewCellPointers * GetViewCellPointers() const
The transient view-state half of the cell-pointer registry this cell uses.
Definition: Cell.cpp:74
bool NeedsRecalculation() const
True, if something that affects the cell size has changed.
Definition: Cell.h:631
Cell * first() const
Get the first cell in this list of cells.
Definition: Cell.cpp:1547
The configuration storage for the current worksheet.
Definition: Configuration.h:102
The document-model half of the cell-pointer registry.
Definition: CellPointers.h:54
This class defines what the user sees as input cell.
Definition: EditorCell.h:67
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:88
wxCoord GetMaxDrop() const override
Returns the maximum distance between center and bottom of this line.
Definition: GroupCell.cpp:1048
bool ContainsSavedAnswers() const
Does this GroupCell know the answer to any of maxima's questions?
Definition: GroupCell.h:113
void Draw(wxDC *dc, wxDC *antialiassingDC) override
Draw this GroupCell.
Definition: GroupCell.cpp:969
bool Contains(GroupCell *cell) const
Does this tree contain the cell "cell"?
Definition: GroupCell.cpp:2267
void Hide(bool hide) override
Hide this cell. See IsHidden() for details.
Definition: GroupCell.cpp:1976
GroupCell * m_hiddenTreeParent
store linkage to the parent of the fold
Definition: GroupCell.h:598
std::vector< std::pair< wxString, wxString > > m_knownAnswers
A list of answers provided by the user.
Definition: GroupCell.h:559
bool IsFoldable() const
folding and unfolding
Definition: GroupCell.cpp:204
void BreakLines() const
Break this cell into lines.
Definition: GroupCell.cpp:1940
Cell * DisplayedOutput() const
The cell list to lay out and draw as this group's output.
Definition: GroupCell.cpp:711
bool FirstLineOnlyEditor() const override
True, if this GroupCell is folded and its editor shows only its first line.
Definition: GroupCell.cpp:1970
bool RevealHidden()
Unfold all that is needed to make the current cell seen.
Definition: GroupCell.cpp:2040
std::vector< OutputResult > GetOutputResults() const
The results the output consists of, top to bottom.
Definition: GroupCell.cpp:689
void CellUnderPointer(GroupCell *cell)
Marks the cell that is under the mouse pointer.
Definition: GroupCell.cpp:1044
void Number(int &section, int &subsection, int &subsubsection, int &heading5, int &heading6, int &image) const
Return this cell's section- or image number.
Definition: GroupCell.cpp:2187
GroupType m_groupType
Which type this cell is of?
Definition: GroupCell.h:645
wxPoint CalculateLabelPosition() const
Where this group cell's label (the "(%i1)", or a section's number) goes.
Definition: GroupCell.cpp:783
void OutputHeightChanged()
Reset the data when the output size changes.
Definition: GroupCell.cpp:515
wxCoord BracketColumnLeft() const
The left edge of the gutter column the cell bracket is drawn in.
Definition: GroupCell.cpp:777
wxString GetLinkAt(wxPoint point) override
The link at point, if any: in the text cell's text or in the output.
Definition: GroupCell.cpp:1913
bool NeedsRecalculation(AFontSize fontSize) const override
True, if something that affects the cell size has changed.
Definition: GroupCell.cpp:730
wxRect GetBracketRect() const
The on-screen rectangle occupied by this cell's bracket.
Definition: GroupCell.cpp:1056
wxRect m_outputRect
Bounding rectangle of this group's output (results) area, in worksheet coordinates.
Definition: GroupCell.h:590
GroupCell * GetHiddenTree() const
Get the tree of cells that got hidden by folding this cell.
Definition: GroupCell.h:425
std::unique_ptr< GroupCell > UnhideTree()
Unfold the current cell.
Definition: GroupCell.cpp:2026
static bool IsOutputLabel(const Cell &cell)
Is this output cell one of the labels that start a line, like "(%o1)"?
Definition: GroupCell.cpp:830
wxString ToTeX() const override
Convert this cell to its LaTeX representation.
Definition: GroupCell.cpp:1267
bool m_autoAnswer
Does this GroupCell automatically fill in the answer to questions?
Definition: GroupCell.h:650
size_t GetInnerCellCount() const override
The number of inner cells - for use by the iterators.
Definition: GroupCell.h:139
wxString ToRTF() const override
Returns the cell's representation as RTF.
Definition: GroupCell.cpp:1271
void DrawBracket(wxDC *dc, wxDC *antialiassingDC)
Draw the bracket of this cell.
Definition: GroupCell.cpp:1064
CellPtr< Cell > m_lastAppendedOutput
The last cell AppendOutput() appended, to find the end of the output without walking it (GH #2594): a...
Definition: GroupCell.h:623
void RemoveOutput()
Remove all output cells attached to this one.
Definition: GroupCell.cpp:310
Cell * GetLabel() const
Returns the list of cells the output consists of, starting with the label.
Definition: GroupCell.h:318
void MarkNeedsRecalculate()
Mark this group as needing a recalculation.
Definition: GroupCell.cpp:241
const wxString GetToolTip(wxPoint point) const override
Returns the tooltip for the element at the position point.
Definition: GroupCell.cpp:1873
Range GetInnerCellsInRect(const wxRect &rect) const override
Select the cells inside this cell described by the rectangle rect.
Definition: GroupCell.cpp:1815
std::unique_ptr< Cell > m_inputLabel
The input label of this cell. Is followed by the input of the cell.
Definition: GroupCell.h:604
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Create a copy of this cell.
int m_inputWidth
Width and height of this group's input area (input label plus editor), computed by RecalculateInput()...
Definition: GroupCell.h:632
wxRect GetRect(bool all=false) const override
Get the smallest rectangle this cell fits in.
Definition: GroupCell.cpp:1032
GroupCell * SectioningUnitGetEndOf() const
Get the end of this section/subsection/...
void RemoveMathOutput()
Drop a code cell's output, except for its images and animations.
Definition: GroupCell.cpp:344
void UpdateConfusableCharWarnings()
GroupCells warn if they contain both greek and latin lookalike chars.
Definition: GroupCell.cpp:412
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
void RecalculateInput() const
Recalculate the height of the input part of the cell.
Definition: GroupCell.cpp:542
void SetHiddenTreeParent(GroupCell *parent, GroupCell *last=nullptr)
Set the parent cell of hidden cells.
Definition: GroupCell.cpp:2053
void InputHeightChanged()
Reset the data when the input size changes.
Definition: GroupCell.cpp:494
bool m_cellsAppended
Output cells were appended since the last layout, so a recalculation is needed (see NeedsRecalculatio...
Definition: GroupCell.h:658
void ResetInputLabel()
Reset the input label of the current cell.
Definition: GroupCell.cpp:188
static std::vector< OutputLineWidths > MeasureOutputLines(Cell *displayed)
The width of every line of output, so a line can be placed before it is walked.
Definition: GroupCell.cpp:836
wxCoord ContentColumnRight() const
The x just past the right edge of the content column. See the definition.
Definition: GroupCell.cpp:772
void Recalculate(const AFontSize fontsize) const override
Recalculates the size of this GroupCell and all cells inside it if needed.
Definition: GroupCell.h:372
bool Empty() const
Is this list of cells empty?
Definition: GroupCell.cpp:180
bool DrawThisCell()
Does a repaint need this cell drawn?
Definition: GroupCell.cpp:957
wxRect GetOutputRect() const
Determine which rectangle is occupied by this GroupCell.
Definition: GroupCell.h:345
void ForgetAnswers()
Forget all answers this cell remembers from earlier runs (GH #1018)
Definition: GroupCell.cpp:260
bool SectioningCanMoveIn() const
Can this chapter/section/... converted to a 'smaller' cell, e.g. section->subsection,...
Definition: GroupCell.h:496
wxCoord GetCenterList() const override
Returns the maximum distance between top and center of this line.
Definition: GroupCell.cpp:1052
void OnSize()
Called on MathCtrl resize.
Definition: GroupCell.cpp:530
static wxString ToTeXAnimation(const Cell *tmp, const wxString &imgDir, const wxString &filename, std::size_t *imgCounter)
Write an animation's frames as images and emit an \animategraphics for it.
Definition: GroupCell.cpp:1649
GroupCell * Fold()
Fold this cell.
Definition: GroupCell.cpp:2061
void SetAnswer(const wxString &question, const wxString &answer)
Add a new answer to the cell.
Definition: GroupCell.cpp:248
void InEvaluationQueue(bool inQueue)
Is this cell part of the evaluation Queue?
Definition: GroupCell.h:542
int16_t m_cellsInGroup
The number of cells the current group contains (-1, if no GroupCell)
Definition: GroupCell.h:637
GroupCell * UnfoldAll(std::vector< GroupCell * > *affected=nullptr)
Unfold all cells.
Definition: GroupCell.cpp:2126
bool SectioningCanMoveOut() const
Can this chapter/section/... converted to a 'larger' cell, e.g. subsection->section,...
Definition: GroupCell.h:498
void UpdateYPosition() const
Recalculate the cell's y position using the position and height of the last one.
GroupCell * GetHiddenTreeParent() const
The cell this cell is hidden inside, if it is part of a folded subtree.
Definition: GroupCell.h:453
Cell * GetOutput() const
Returns the list of cells the output consists of, starting after the label.
Definition: GroupCell.h:324
bool HideTree(std::unique_ptr< GroupCell > &&tree)
Fold the current cell.
Definition: GroupCell.cpp:2006
int m_labelWidth_cached
Cache of the last width computed by GetInputIndent(); reused as the input indent while the input labe...
Definition: GroupCell.h:629
std::unique_ptr< GroupCell > m_hiddenTree
here hidden (folded) tree of GCs is stored
Definition: GroupCell.h:597
void LastInEvaluationQueue(bool last)
Is this cell the last cell in the evaluation Queue?
Definition: GroupCell.h:545
wxString ToString() const override
A textual representation of this cell.
Definition: GroupCell.cpp:1239
void SetCurrentPoint(wxPoint point) const override
Pass 2 (Arrange): Sets the GroupCell position and triggers child layout.
Definition: GroupCell.cpp:941
bool AutoAnswer() const
Does this GroupCell save the answer to a question?
Definition: GroupCell.h:115
GroupCell * GetLastWorkingGroup() const
Which GroupCell was the last maxima was working on?
Definition: GroupCell.cpp:265
GroupCell * GetPrevious() const
Get the previous GroupCell in the list.
Definition: GroupCell.h:301
std::unique_ptr< Cell > m_layoutSuppressedNotice
Cached placeholder shown instead of the output while layout is suppressed.
Definition: GroupCell.h:618
bool AddEnding() override
Add a semicolon to a code cell, if needed.
Definition: GroupCell.cpp:1028
GroupCell * GetNext() const
Get the next GroupCell in the list.
Definition: GroupCell.h:305
bool m_layoutSuppressed
Laying out this group's output exceeded the configured deadline.
Definition: GroupCell.h:665
Cell * GetInnerCell(size_t index) const override
Retrieve an inner cell with given index which must be less than GetInnerCellCount.
Definition: GroupCell.h:140
wxString ToXML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: GroupCell.cpp:1690
void RecalculateOutput() const
Recalculate the height of the output part of the cell.
Definition: GroupCell.cpp:620
void ResetInputLabelList()
Call ResetInputLabel() on all cells in the list of cells this GroupCell starts with.
Definition: GroupCell.cpp:195
GroupCell * Unfold()
Unfold this cell.
Definition: GroupCell.cpp:2098
GroupCell * FoldAll(std::vector< GroupCell * > *affected=nullptr)
Fold all cells.
Definition: GroupCell.cpp:2109
std::unique_ptr< Cell > m_output
The maxima output this cell contains.
Definition: GroupCell.h:606
bool IsLesserGCType(GroupType comparedTo) const
Document structure: Can this cell type be part of the contents of comparedTo?
Definition: GroupCell.cpp:2141
bool ContainsPointOrOutput(wxPoint point) const
Is this point inside the cell or its output?
Definition: GroupCell.h:355
bool m_suppressTooltipMarker
Suppress the yellow ToolTip marker?
Definition: GroupCell.h:655
The view/interaction half of the cell-pointer registry.
Definition: CellPointers.h:341
The widths of one line of output, split at the label that starts it.
Definition: GroupCell.h:268
One result of this cell's output, as the keyboard steps through it (GH #2382)
Definition: GroupCell.h:333