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

#include <list_controller.h>

Inheritance diagram for Shared::ListController:
DynamicViewController ButtonRowDelegate TableViewDataSource SelectableTableViewDataSource SelectableTableViewDelegate ViewController ScrollViewDataSource Responder Graph::ListController Sequence::ListController

Public Member Functions

 ListController (Responder *parentResponder, FunctionStore *functionStore, ButtonRowController *header, ButtonRowController *footer, I18n::Message text)
 
int numberOfColumns () override
 
KDCoordinate columnWidth (int i) override
 
KDCoordinate cumulatedWidthFromIndex (int i) override
 
KDCoordinate cumulatedHeightFromIndex (int j) override
 
int indexFromCumulatedWidth (KDCoordinate offsetX) override
 
int indexFromCumulatedHeight (KDCoordinate offsetY) override
 
int typeAtLocation (int i, int j) override
 
HighlightCellreusableCell (int index, int type) override
 
int reusableCellCount (int type) override
 
void willDisplayCellAtLocation (HighlightCell *cell, int i, int j) override
 
int numberOfButtons (ButtonRowController::Position position) const override
 
ButtonbuttonAtIndex (int index, ButtonRowController::Position position) const override
 
void didBecomeFirstResponder () override
 
bool handleEvent (Ion::Events::Event event) override
 
void didEnterResponderChain (Responder *previousFirstResponder) override
 
void willExitResponderChain (Responder *nextFirstResponder) override
 
void tableViewDidChangeSelection (SelectableTableView *t, int previousSelectedCellX, int previousSelectedCellY) 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 const char * title ()
 
virtual DisplayParameter displayParameter ()
 
- Public Member Functions inherited from Responder
 Responder (Responder *parentResponder)
 
virtual void willResignFirstResponder ()
 
ResponderparentResponder () const
 
RespondercommonAncestorWith (Responder *responder)
 
void setParentResponder (Responder *responder)
 
Appapp ()
 
virtual Toolboxtoolbox ()
 
- Public Member Functions inherited from ButtonRowDelegate
 ButtonRowDelegate (ButtonRowController *header, ButtonRowController *footer)
 
ButtonRowControllerheader ()
 
ButtonRowControllerfooter ()
 
- Public Member Functions inherited from TableViewDataSource
virtual int numberOfRows ()=0
 
virtual KDCoordinate rowHeight (int j)=0
 
- 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)
 

Protected Member Functions

StackViewControllerstackController () const
 
void configureFunction (Function *function)
 
virtual void reinitExpression (Function *function)
 
SelectableTableViewselectableTableView ()
 
ViewloadView () override
 
void unloadView (View *view) override
 

Protected Attributes

FunctionStorem_functionStore
 

Additional Inherited Members

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

Detailed Description

Definition at line 12 of file list_controller.h.

Constructor & Destructor Documentation

◆ ListController()

Shared::ListController::ListController ( Responder parentResponder,
FunctionStore functionStore,
ButtonRowController header,
ButtonRowController footer,
I18n::Message  text 
)

Definition at line 6 of file list_controller.cpp.

Member Function Documentation

◆ buttonAtIndex()

Button * Shared::ListController::buttonAtIndex ( int  index,
ButtonRowController::Position  position 
) const
overridevirtual

Reimplemented from ButtonRowDelegate.

Definition at line 139 of file list_controller.cpp.

◆ columnWidth()

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

Implements TableViewDataSource.

Definition at line 30 of file list_controller.cpp.

◆ configureFunction()

void Shared::ListController::configureFunction ( Shared::Function function)
protected

Definition at line 262 of file list_controller.cpp.

◆ cumulatedHeightFromIndex()

KDCoordinate Shared::ListController::cumulatedHeightFromIndex ( int  j)
overridevirtual

Implements TableViewDataSource.

Definition at line 56 of file list_controller.cpp.

◆ cumulatedWidthFromIndex()

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

Implements TableViewDataSource.

Definition at line 42 of file list_controller.cpp.

◆ didBecomeFirstResponder()

void Shared::ListController::didBecomeFirstResponder ( )
overridevirtual

Reimplemented from Responder.

Definition at line 147 of file list_controller.cpp.

◆ didEnterResponderChain()

void Shared::ListController::didEnterResponderChain ( Responder previousFirstResponder)
overridevirtual

Reimplemented from Responder.

Definition at line 241 of file list_controller.cpp.

◆ handleEvent()

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

Reimplemented from Responder.

Definition at line 160 of file list_controller.cpp.

◆ indexFromCumulatedHeight()

int Shared::ListController::indexFromCumulatedHeight ( KDCoordinate  offsetY)
overridevirtual

Implements TableViewDataSource.

Definition at line 76 of file list_controller.cpp.

◆ indexFromCumulatedWidth()

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

Implements TableViewDataSource.

Definition at line 64 of file list_controller.cpp.

◆ loadView()

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

Implements DynamicViewController.

Definition at line 295 of file list_controller.cpp.

◆ numberOfButtons()

int Shared::ListController::numberOfButtons ( ButtonRowController::Position  position) const
overridevirtual

Reimplemented from ButtonRowDelegate.

Definition at line 132 of file list_controller.cpp.

◆ numberOfColumns()

int Shared::ListController::numberOfColumns ( )
overridevirtual

Implements TableViewDataSource.

Definition at line 26 of file list_controller.cpp.

◆ reinitExpression()

void Shared::ListController::reinitExpression ( Function function)
protectedvirtual

Definition at line 268 of file list_controller.cpp.

◆ reusableCell()

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

Implements TableViewDataSource.

Definition at line 93 of file list_controller.cpp.

◆ reusableCellCount()

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

Implements TableViewDataSource.

Definition at line 111 of file list_controller.cpp.

◆ selectableTableView()

SelectableTableView * Shared::ListController::selectableTableView ( )
protected

Definition at line 273 of file list_controller.cpp.

◆ stackController()

StackViewController * Shared::ListController::stackController ( ) const
protected

Definition at line 258 of file list_controller.cpp.

◆ tableViewDidChangeSelection()

void Shared::ListController::tableViewDidChangeSelection ( SelectableTableView t,
int  previousSelectedCellX,
int  previousSelectedCellY 
)
overridevirtual

Reimplemented from SelectableTableViewDelegate.

Definition at line 252 of file list_controller.cpp.

◆ typeAtLocation()

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

Implements TableViewDataSource.

Definition at line 85 of file list_controller.cpp.

◆ unloadView()

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

Implements DynamicViewController.

Definition at line 305 of file list_controller.cpp.

◆ willDisplayCellAtLocation()

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

Reimplemented from TableViewDataSource.

Definition at line 118 of file list_controller.cpp.

◆ willExitResponderChain()

void Shared::ListController::willExitResponderChain ( Responder nextFirstResponder)
overridevirtual

Reimplemented from Responder.

Definition at line 245 of file list_controller.cpp.

Member Data Documentation

◆ m_functionStore

FunctionStore* Shared::ListController::m_functionStore
protected

Definition at line 39 of file list_controller.h.


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