Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Probability::CalculationController Class Reference

#include <calculation_controller.h>

Inheritance diagram for Probability::CalculationController:
ViewController TableViewDataSource SelectableTableViewDataSource Shared::ParameterTextFieldDelegate Responder ScrollViewDataSource Shared::TextFieldDelegate TextFieldDelegate TextInputDelegate

Public Member Functions

 CalculationController (Responder *parentResponder, Law *law, Calculation *calculation)
 
void didEnterResponderChain (Responder *previousResponder) override
 
void didBecomeFirstResponder () override
 
bool handleEvent (Ion::Events::Event event) override
 
Viewview () override
 
const char * title () override
 
void viewWillAppear () override
 
void viewDidDisappear () override
 
int numberOfRows () override
 
int numberOfColumns () override
 
KDCoordinate columnWidth (int i) override
 
KDCoordinate rowHeight (int j) override
 
KDCoordinate cumulatedWidthFromIndex (int i) override
 
KDCoordinate cumulatedHeightFromIndex (int j) override
 
int indexFromCumulatedWidth (KDCoordinate offsetX) override
 
int indexFromCumulatedHeight (KDCoordinate offsetY) override
 
HighlightCellreusableCell (int index, int type) override
 
int reusableCellCount (int type) override
 
int typeAtLocation (int i, int j) override
 
void willDisplayCellAtLocation (HighlightCell *cell, int i, int j) override
 
bool textFieldDidHandleEvent (TextField *textField, bool returnValue, bool textHasChanged) override
 
bool textFieldShouldFinishEditing (TextField *textField, Ion::Events::Event event) override
 
bool textFieldDidFinishEditing (TextField *textField, const char *text, Ion::Events::Event event) override
 
void reloadLawCurveView ()
 
void reload ()
 
void setCalculationAccordingToIndex (int index, bool forceReinitialisation=false)
 
- Public Member Functions inherited from ViewController
 ViewController (Responder *parentResponder)
 
virtual DisplayParameter displayParameter ()
 
- Public Member Functions inherited from Responder
 Responder (Responder *parentResponder)
 
virtual void willResignFirstResponder ()
 
virtual void willExitResponderChain (Responder *nextFirstResponder)
 
ResponderparentResponder () const
 
RespondercommonAncestorWith (Responder *responder)
 
void setParentResponder (Responder *responder)
 
Appapp ()
 
virtual Toolboxtoolbox ()
 
- Public Member Functions inherited from SelectableTableViewDataSource
 SelectableTableViewDataSource ()
 
int selectedRow ()
 
int selectedColumn ()
 
void selectRow (int j)
 
void selectColumn (int i)
 
void selectCellAtLocation (int i, int j)
 
- Public Member Functions inherited from ScrollViewDataSource
 ScrollViewDataSource ()
 
KDPoint offset () const
 
bool setOffset (KDPoint offset)
 
- Public Member Functions inherited from Shared::ParameterTextFieldDelegate
bool textFieldDidReceiveEvent (TextField *textField, Ion::Events::Event event) override
 
- Public Member Functions inherited from Shared::TextFieldDelegate
bool textFieldShouldFinishEditing (TextField *textField, Ion::Events::Event event) override
 
bool textFieldDidReceiveEvent (TextField *textField, Ion::Events::Event event) override
 
ToolboxtoolboxForTextInput (TextInput *textInput) override
 
- Public Member Functions inherited from TextFieldDelegate
virtual bool textFieldDidAbortEditing (TextField *textField, const char *text)
 

Additional Inherited Members

- Public Types inherited from ViewController
enum  DisplayParameter { DisplayParameter::Default, DisplayParameter::DoNotShowOwnTitle, DisplayParameter::WantsMaximumSpace }
 

Detailed Description

Definition at line 14 of file calculation_controller.h.

Constructor & Destructor Documentation

◆ CalculationController()

Probability::CalculationController::CalculationController ( Responder parentResponder,
Law law,
Calculation calculation 
)

Definition at line 55 of file calculation_controller.cpp.

Member Function Documentation

◆ columnWidth()

KDCoordinate Probability::CalculationController::columnWidth ( int  i)
overridevirtual

Implements TableViewDataSource.

Definition at line 132 of file calculation_controller.cpp.

◆ cumulatedHeightFromIndex()

KDCoordinate Probability::CalculationController::cumulatedHeightFromIndex ( int  j)
overridevirtual

Implements TableViewDataSource.

Definition at line 161 of file calculation_controller.cpp.

◆ cumulatedWidthFromIndex()

KDCoordinate Probability::CalculationController::cumulatedWidthFromIndex ( int  i)
overridevirtual

Implements TableViewDataSource.

Definition at line 144 of file calculation_controller.cpp.

◆ didBecomeFirstResponder()

void Probability::CalculationController::didBecomeFirstResponder ( )
overridevirtual

Reimplemented from Responder.

Definition at line 87 of file calculation_controller.cpp.

◆ didEnterResponderChain()

void Probability::CalculationController::didEnterResponderChain ( Responder previousResponder)
overridevirtual

Reimplemented from Responder.

Definition at line 79 of file calculation_controller.cpp.

◆ handleEvent()

bool Probability::CalculationController::handleEvent ( Ion::Events::Event  event)
overridevirtual

Reimplemented from Responder.

Definition at line 91 of file calculation_controller.cpp.

◆ indexFromCumulatedHeight()

int Probability::CalculationController::indexFromCumulatedHeight ( KDCoordinate  offsetY)
overridevirtual

Implements TableViewDataSource.

Definition at line 165 of file calculation_controller.cpp.

◆ indexFromCumulatedWidth()

int Probability::CalculationController::indexFromCumulatedWidth ( KDCoordinate  offsetX)
overridevirtual

Implements TableViewDataSource.

Definition at line 152 of file calculation_controller.cpp.

◆ numberOfColumns()

int Probability::CalculationController::numberOfColumns ( )
overridevirtual

Implements TableViewDataSource.

Definition at line 122 of file calculation_controller.cpp.

◆ numberOfRows()

int Probability::CalculationController::numberOfRows ( )
overridevirtual

Implements TableViewDataSource.

Definition at line 118 of file calculation_controller.cpp.

◆ reload()

void Probability::CalculationController::reload ( )

Definition at line 265 of file calculation_controller.cpp.

◆ reloadLawCurveView()

void Probability::CalculationController::reloadLawCurveView ( )

Definition at line 261 of file calculation_controller.cpp.

◆ reusableCell()

HighlightCell * Probability::CalculationController::reusableCell ( int  index,
int  type 
)
overridevirtual

Implements TableViewDataSource.

Definition at line 173 of file calculation_controller.cpp.

◆ reusableCellCount()

int Probability::CalculationController::reusableCellCount ( int  type)
overridevirtual

Implements TableViewDataSource.

Definition at line 183 of file calculation_controller.cpp.

◆ rowHeight()

KDCoordinate Probability::CalculationController::rowHeight ( int  j)
overridevirtual

Implements TableViewDataSource.

Definition at line 140 of file calculation_controller.cpp.

◆ setCalculationAccordingToIndex()

void Probability::CalculationController::setCalculationAccordingToIndex ( int  index,
bool  forceReinitialisation = false 
)

Definition at line 270 of file calculation_controller.cpp.

◆ textFieldDidFinishEditing()

bool Probability::CalculationController::textFieldDidFinishEditing ( TextField textField,
const char *  text,
Ion::Events::Event  event 
)
overridevirtual

Reimplemented from TextFieldDelegate.

Definition at line 234 of file calculation_controller.cpp.

◆ textFieldDidHandleEvent()

bool Probability::CalculationController::textFieldDidHandleEvent ( TextField textField,
bool  returnValue,
bool  textHasChanged 
)
overridevirtual

Reimplemented from TextFieldDelegate.

Definition at line 215 of file calculation_controller.cpp.

◆ textFieldShouldFinishEditing()

bool Probability::CalculationController::textFieldShouldFinishEditing ( TextField textField,
Ion::Events::Event  event 
)
overridevirtual

Implements TextFieldDelegate.

Definition at line 228 of file calculation_controller.cpp.

◆ title()

const char * Probability::CalculationController::title ( )
overridevirtual

Reimplemented from ViewController.

Definition at line 104 of file calculation_controller.cpp.

◆ typeAtLocation()

int Probability::CalculationController::typeAtLocation ( int  i,
int  j 
)
overridevirtual

Implements TableViewDataSource.

Definition at line 187 of file calculation_controller.cpp.

◆ view()

View * Probability::CalculationController::view ( )
overridevirtual

Implements ViewController.

Definition at line 100 of file calculation_controller.cpp.

◆ viewDidDisappear()

void Probability::CalculationController::viewDidDisappear ( )
overridevirtual

Reimplemented from ViewController.

Definition at line 113 of file calculation_controller.cpp.

◆ viewWillAppear()

void Probability::CalculationController::viewWillAppear ( )
overridevirtual

Reimplemented from ViewController.

Definition at line 108 of file calculation_controller.cpp.

◆ willDisplayCellAtLocation()

void Probability::CalculationController::willDisplayCellAtLocation ( HighlightCell cell,
int  i,
int  j 
)
overridevirtual

Reimplemented from TableViewDataSource.

Definition at line 191 of file calculation_controller.cpp.


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