Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Shared::StoreController Class Referenceabstract

#include <store_controller.h>

Inheritance diagram for Shared::StoreController:
Shared::EditableCellTableViewController ButtonRowDelegate Shared::TabTableController Shared::RegularTableViewDataSource Shared::TextFieldDelegate DynamicViewController SelectableTableViewDataSource TableViewDataSource TextFieldDelegate ViewController ScrollViewDataSource TextInputDelegate Responder Regression::StoreController Statistics::StoreController

Public Member Functions

 StoreController (Responder *parentResponder, FloatPairStore *store, ButtonRowController *header)
 
const char * title () override
 
int numberOfColumns () override
 
KDCoordinate columnWidth (int i) override
 
KDCoordinate cumulatedWidthFromIndex (int i) override
 
int indexFromCumulatedWidth (KDCoordinate offsetX) 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 handleEvent (Ion::Events::Event event) override
 
void didBecomeFirstResponder () override
 
- Public Member Functions inherited from Shared::EditableCellTableViewController
 EditableCellTableViewController (Responder *parentResponder)
 
bool textFieldShouldFinishEditing (TextField *textField, Ion::Events::Event event) override
 
bool textFieldDidFinishEditing (TextField *textField, const char *text, Ion::Events::Event event) override
 
int numberOfRows () override
 
void willDisplayCellAtLocationWithDisplayMode (HighlightCell *cell, int i, int j, Poincare::PrintFloat::Mode mode)
 
KDCoordinate rowHeight (int j) override
 
void viewWillAppear () override
 
- Public Member Functions inherited from Shared::TabTableController
 TabTableController (Responder *parentResponder, TableViewDataSource *dataSource)
 
void didBecomeFirstResponder () override
 
void viewWillAppear () override
 
void willExitResponderChain (Responder *nextFirstResponder) override
 
- Public Member Functions inherited from DynamicViewController
 DynamicViewController (Responder *parentResponder)
 
 ~DynamicViewController ()
 
 DynamicViewController (const DynamicViewController &other)=delete
 
 DynamicViewController (DynamicViewController &&other)=delete
 
DynamicViewControlleroperator= (const DynamicViewController &other)=delete
 
DynamicViewControlleroperator= (DynamicViewController &&other)=delete
 
Viewview () override
 
void viewWillAppear () override
 
void viewDidDisappear () override
 
- 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 didEnterResponderChain (Responder *previousFirstResponder)
 
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::RegularTableViewDataSource
KDCoordinate cumulatedHeightFromIndex (int j) override
 
int indexFromCumulatedHeight (KDCoordinate offsetY) 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)
 
virtual bool textFieldDidHandleEvent (TextField *textField, bool returnValue, bool textHasChanged)
 
- Public Member Functions inherited from ButtonRowDelegate
 ButtonRowDelegate (ButtonRowController *header, ButtonRowController *footer)
 
virtual int numberOfButtons (ButtonRowController::Position position) const
 
virtual ButtonbuttonAtIndex (int index, ButtonRowController::Position position) const
 
ButtonRowControllerheader ()
 
ButtonRowControllerfooter ()
 

Protected Member Functions

RespondertabController () const override
 
ViewloadView () override
 
void unloadView (View *view) override
 
bool cellAtLocationIsEditable (int columnIndex, int rowIndex) override
 
bool setDataAtLocation (double floatBody, int columnIndex, int rowIndex) override
 
double dataAtLocation (int columnIndex, int rowIndex) override
 
int numberOfElements () override
 
int maxNumberOfElements () const override
 
virtual HighlightCelltitleCells (int index)=0
 
- Protected Member Functions inherited from Shared::TabTableController
SelectableTableViewselectableTableView ()
 
void unloadView (View *view) override
 

Protected Attributes

char m_draftTextBuffer [TextField::maxBufferSize()]
 
EvenOddEditableTextCellm_editableCells [k_maxNumberOfEditableCells]
 
FloatPairStorem_store
 
StoreParameterController m_storeParameterController
 

Static Protected Attributes

static constexpr KDCoordinate k_cellWidth = Ion::Display::Width/2 - Metric::CommonRightMargin/2 - Metric::CommonLeftMargin/2
 
static constexpr int k_maxNumberOfEditableCells = 22
 
static constexpr int k_numberOfTitleCells = 2
 

Additional Inherited Members

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

Detailed Description

Definition at line 11 of file store_controller.h.

Constructor & Destructor Documentation

◆ StoreController()

Shared::StoreController::StoreController ( Responder parentResponder,
FloatPairStore store,
ButtonRowController header 
)

Definition at line 10 of file store_controller.cpp.

Member Function Documentation

◆ cellAtLocationIsEditable()

bool Shared::StoreController::cellAtLocationIsEditable ( int  columnIndex,
int  rowIndex 
)
overrideprotectedvirtual

Implements Shared::EditableCellTableViewController.

Definition at line 104 of file store_controller.cpp.

◆ columnWidth()

KDCoordinate Shared::StoreController::columnWidth ( int  i)
overridevirtual

Implements TableViewDataSource.

Definition at line 27 of file store_controller.cpp.

◆ cumulatedWidthFromIndex()

KDCoordinate Shared::StoreController::cumulatedWidthFromIndex ( int  i)
overridevirtual

Reimplemented from Shared::RegularTableViewDataSource.

Definition at line 31 of file store_controller.cpp.

◆ dataAtLocation()

double Shared::StoreController::dataAtLocation ( int  columnIndex,
int  rowIndex 
)
overrideprotectedvirtual

Implements Shared::EditableCellTableViewController.

Definition at line 116 of file store_controller.cpp.

◆ didBecomeFirstResponder()

void Shared::StoreController::didBecomeFirstResponder ( )
overridevirtual

Reimplemented from Shared::EditableCellTableViewController.

Definition at line 69 of file store_controller.cpp.

◆ handleEvent()

bool Shared::StoreController::handleEvent ( Ion::Events::Event  event)
overridevirtual

Reimplemented from Responder.

Definition at line 76 of file store_controller.cpp.

◆ indexFromCumulatedWidth()

int Shared::StoreController::indexFromCumulatedWidth ( KDCoordinate  offsetX)
overridevirtual

Reimplemented from Shared::RegularTableViewDataSource.

Definition at line 35 of file store_controller.cpp.

◆ loadView()

View * Shared::StoreController::loadView ( )
overrideprotectedvirtual

Reimplemented from Shared::TabTableController.

Definition at line 128 of file store_controller.cpp.

◆ maxNumberOfElements()

int Shared::StoreController::maxNumberOfElements ( ) const
overrideprotectedvirtual

Implements Shared::EditableCellTableViewController.

Definition at line 124 of file store_controller.cpp.

◆ numberOfColumns()

int Shared::StoreController::numberOfColumns ( )
overridevirtual

Implements TableViewDataSource.

Definition at line 23 of file store_controller.cpp.

◆ numberOfElements()

int Shared::StoreController::numberOfElements ( )
overrideprotectedvirtual

Implements Shared::EditableCellTableViewController.

Definition at line 120 of file store_controller.cpp.

◆ reusableCell()

HighlightCell * Shared::StoreController::reusableCell ( int  index,
int  type 
)
overridevirtual

Implements TableViewDataSource.

Definition at line 39 of file store_controller.cpp.

◆ reusableCellCount()

int Shared::StoreController::reusableCellCount ( int  type)
overridevirtual

Implements TableViewDataSource.

Definition at line 54 of file store_controller.cpp.

◆ setDataAtLocation()

bool Shared::StoreController::setDataAtLocation ( double  floatBody,
int  columnIndex,
int  rowIndex 
)
overrideprotectedvirtual

Implements Shared::EditableCellTableViewController.

Definition at line 111 of file store_controller.cpp.

◆ tabController()

Responder * Shared::StoreController::tabController ( ) const
overrideprotectedvirtual

Implements Shared::TabTableController.

Definition at line 100 of file store_controller.cpp.

◆ title()

const char * Shared::StoreController::title ( )
overridevirtual

Reimplemented from ViewController.

Definition at line 19 of file store_controller.cpp.

◆ titleCells()

virtual HighlightCell* Shared::StoreController::titleCells ( int  index)
protectedpure virtual

◆ typeAtLocation()

int Shared::StoreController::typeAtLocation ( int  i,
int  j 
)
overridevirtual

Implements TableViewDataSource.

Definition at line 61 of file store_controller.cpp.

◆ unloadView()

void Shared::StoreController::unloadView ( View view)
overrideprotectedvirtual

Implements DynamicViewController.

Definition at line 136 of file store_controller.cpp.

◆ willDisplayCellAtLocation()

void Shared::StoreController::willDisplayCellAtLocation ( HighlightCell cell,
int  i,
int  j 
)
overridevirtual

Reimplemented from TableViewDataSource.

Reimplemented in Statistics::StoreController.

Definition at line 65 of file store_controller.cpp.

Member Data Documentation

◆ k_cellWidth

constexpr KDCoordinate Shared::StoreController::k_cellWidth = Ion::Display::Width/2 - Metric::CommonRightMargin/2 - Metric::CommonLeftMargin/2
staticprotected

Definition at line 26 of file store_controller.h.

◆ k_maxNumberOfEditableCells

constexpr int Shared::StoreController::k_maxNumberOfEditableCells = 22
staticprotected

Definition at line 27 of file store_controller.h.

◆ k_numberOfTitleCells

constexpr int Shared::StoreController::k_numberOfTitleCells = 2
staticprotected

Definition at line 28 of file store_controller.h.

◆ m_draftTextBuffer

char Shared::StoreController::m_draftTextBuffer[TextField::maxBufferSize()]
protected

Definition at line 38 of file store_controller.h.

◆ m_editableCells

EvenOddEditableTextCell* Shared::StoreController::m_editableCells[k_maxNumberOfEditableCells]
protected

Definition at line 39 of file store_controller.h.

◆ m_store

FloatPairStore* Shared::StoreController::m_store
protected

Definition at line 40 of file store_controller.h.

◆ m_storeParameterController

StoreParameterController Shared::StoreController::m_storeParameterController
protected

Definition at line 41 of file store_controller.h.


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