Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Calculation::HistoryViewCell Class Reference

#include <history_view_cell.h>

Inheritance diagram for Calculation::HistoryViewCell:
EvenOddCell Responder HighlightCell View

Public Types

enum  SubviewType { SubviewType::Input, SubviewType::Output }
 

Public Member Functions

 HistoryViewCell (Responder *parentResponder)
 
void reloadCell () override
 
void reloadScroll ()
 
void setEven (bool even) override
 
void setHighlighted (bool highlight) override
 
Responderresponder () override
 
KDColor backgroundColor () const override
 
void setCalculation (Calculation *calculation)
 
int numberOfSubviews () const override
 
ViewsubviewAtIndex (int index) override
 
void layoutSubviews () override
 
void didBecomeFirstResponder () override
 
bool handleEvent (Ion::Events::Event event) override
 
SubviewType selectedSubviewType ()
 
void setSelectedSubviewType (HistoryViewCell::SubviewType subviewType)
 
OutputExpressionsViewoutputView ()
 
- Public Member Functions inherited from EvenOddCell
 EvenOddCell ()
 
void drawRect (KDContext *ctx, KDRect rect) const override
 
- Public Member Functions inherited from HighlightCell
 HighlightCell ()
 
bool isHighlighted () const
 
- Public Member Functions inherited from View
 View ()
 
virtual ~View ()
 
 View (const View &other)=delete
 
 View (View &&other)=delete
 
Viewoperator= (const View &other)=delete
 
Viewoperator= (View &&other)=delete
 
void resetSuperview ()
 
void setSize (KDSize size)
 
void setFrame (KDRect frame)
 
KDPoint pointFromPointInView (View *view, KDPoint point)
 
KDRect bounds () const
 
Viewsubview (int index)
 
virtual KDSize minimalSizeForOptimalDisplay () const
 
- Public Member Functions inherited from Responder
 Responder (Responder *parentResponder)
 
virtual void willResignFirstResponder ()
 
virtual void didEnterResponderChain (Responder *previousFirstResponder)
 
virtual void willExitResponderChain (Responder *nextFirstResponder)
 
ResponderparentResponder () const
 
RespondercommonAncestorWith (Responder *responder)
 
void setParentResponder (Responder *responder)
 
Appapp ()
 
virtual Toolboxtoolbox ()
 

Static Public Attributes

static constexpr KDCoordinate k_digitVerticalMargin = 5
 

Additional Inherited Members

- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 
- Protected Attributes inherited from EvenOddCell
bool m_even
 
- Protected Attributes inherited from HighlightCell
bool m_highlighted
 
- Protected Attributes inherited from View
KDRect m_frame
 

Detailed Description

Definition at line 11 of file history_view_cell.h.

Member Enumeration Documentation

◆ SubviewType

Enumerator
Input 
Output 

Definition at line 13 of file history_view_cell.h.

Constructor & Destructor Documentation

◆ HistoryViewCell()

Calculation::HistoryViewCell::HistoryViewCell ( Responder parentResponder)

Definition at line 10 of file history_view_cell.cpp.

Member Function Documentation

◆ backgroundColor()

KDColor Calculation::HistoryViewCell::backgroundColor ( ) const
overridevirtual

Reimplemented from EvenOddCell.

Definition at line 53 of file history_view_cell.cpp.

◆ didBecomeFirstResponder()

void Calculation::HistoryViewCell::didBecomeFirstResponder ( )
overridevirtual

Reimplemented from Responder.

Definition at line 97 of file history_view_cell.cpp.

◆ handleEvent()

bool Calculation::HistoryViewCell::handleEvent ( Ion::Events::Event  event)
overridevirtual

Reimplemented from Responder.

Definition at line 114 of file history_view_cell.cpp.

◆ layoutSubviews()

void Calculation::HistoryViewCell::layoutSubviews ( )
overridevirtual

Reimplemented from View.

Definition at line 68 of file history_view_cell.cpp.

◆ numberOfSubviews()

int Calculation::HistoryViewCell::numberOfSubviews ( ) const
overridevirtual

Reimplemented from View.

Definition at line 59 of file history_view_cell.cpp.

◆ outputView()

OutputExpressionsView * Calculation::HistoryViewCell::outputView ( )

Definition at line 18 of file history_view_cell.cpp.

◆ reloadCell()

void Calculation::HistoryViewCell::reloadCell ( )
overridevirtual

Reimplemented from HighlightCell.

Definition at line 42 of file history_view_cell.cpp.

◆ reloadScroll()

void Calculation::HistoryViewCell::reloadScroll ( )

Definition at line 48 of file history_view_cell.cpp.

◆ responder()

Responder* Calculation::HistoryViewCell::responder ( )
inlineoverridevirtual

Reimplemented from HighlightCell.

Definition at line 22 of file history_view_cell.h.

◆ selectedSubviewType()

HistoryViewCell::SubviewType Calculation::HistoryViewCell::selectedSubviewType ( )

Definition at line 105 of file history_view_cell.cpp.

◆ setCalculation()

void Calculation::HistoryViewCell::setCalculation ( Calculation calculation)

Definition at line 85 of file history_view_cell.cpp.

◆ setEven()

void Calculation::HistoryViewCell::setEven ( bool  even)
overridevirtual

Reimplemented from EvenOddCell.

Definition at line 22 of file history_view_cell.cpp.

◆ setHighlighted()

void Calculation::HistoryViewCell::setHighlighted ( bool  highlight)
overridevirtual

Reimplemented from HighlightCell.

Definition at line 28 of file history_view_cell.cpp.

◆ setSelectedSubviewType()

void Calculation::HistoryViewCell::setSelectedSubviewType ( HistoryViewCell::SubviewType  subviewType)

Definition at line 109 of file history_view_cell.cpp.

◆ subviewAtIndex()

View * Calculation::HistoryViewCell::subviewAtIndex ( int  index)
overridevirtual

Reimplemented from View.

Definition at line 63 of file history_view_cell.cpp.

Member Data Documentation

◆ k_digitVerticalMargin

constexpr KDCoordinate Calculation::HistoryViewCell::k_digitVerticalMargin = 5
static

Definition at line 32 of file history_view_cell.h.


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