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

#include <values_controller.h>

Inheritance diagram for Shared::ValuesController:
Shared::EditableCellTableViewController ButtonRowDelegate AlternateEmptyViewDelegate Shared::TabTableController Shared::RegularTableViewDataSource Shared::TextFieldDelegate DynamicViewController SelectableTableViewDataSource TableViewDataSource TextFieldDelegate ViewController ScrollViewDataSource TextInputDelegate Responder Graph::ValuesController Sequence::ValuesController

Public Member Functions

 ValuesController (Responder *parentResponder, ButtonRowController *header, I18n::Message parameterTitle, IntervalParameterController *intervalParameterController, Interval *interval)
 
const char * title () override
 
Intervalinterval ()
 
int numberOfColumns () override
 
virtual bool handleEvent (Ion::Events::Event event) override
 
void didBecomeFirstResponder () override
 
void willExitResponderChain (Responder *nextFirstResponder) override
 
virtual IntervalParameterControllerintervalParameterController ()=0
 
int numberOfButtons (ButtonRowController::Position) const override
 
ButtonbuttonAtIndex (int index, ButtonRowController::Position position) const override
 
virtual void willDisplayCellAtLocation (HighlightCell *cell, int i, int j) 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
 
bool isEmpty () const override
 
ResponderdefaultController () override
 
void viewWillAppear () override
 
void viewDidDisappear () 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
 
- Public Member Functions inherited from Shared::TabTableController
 TabTableController (Responder *parentResponder, TableViewDataSource *dataSource)
 
- 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)
 
ButtonRowControllerheader ()
 
ButtonRowControllerfooter ()
 
- Public Member Functions inherited from AlternateEmptyViewDelegate
virtual I18n::Message emptyMessage ()=0
 

Static Public Attributes

static constexpr KDCoordinate k_topMargin = 10
 
static constexpr KDCoordinate k_bottomMargin = 15
 
static constexpr KDCoordinate k_leftMargin = 1
 
static constexpr KDCoordinate k_rightMargin = 15
 
static constexpr KDCoordinate k_abscissaCellWidth = 100
 
static constexpr KDCoordinate k_ordinateCellWidth = 100
 

Protected Member Functions

StackViewControllerstackController () const
 
bool setDataAtLocation (double floatBody, int columnIndex, int rowIndex) override
 
ViewloadView () override
 
void unloadView (View *view) override
 
virtual void updateNumberOfColumns ()
 
- Protected Member Functions inherited from Shared::TabTableController
SelectableTableViewselectableTableView ()
 

Protected Attributes

Intervalm_interval
 
int m_numberOfColumns
 
bool m_numberOfColumnsNeedUpdate
 

Additional Inherited Members

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

Detailed Description

Definition at line 16 of file values_controller.h.

Constructor & Destructor Documentation

◆ ValuesController()

Shared::ValuesController::ValuesController ( Responder parentResponder,
ButtonRowController header,
I18n::Message  parameterTitle,
IntervalParameterController intervalParameterController,
Interval interval 
)

Definition at line 11 of file values_controller.cpp.

Member Function Documentation

◆ buttonAtIndex()

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

Reimplemented from ButtonRowDelegate.

Definition at line 121 of file values_controller.cpp.

◆ columnWidth()

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

Implements TableViewDataSource.

Definition at line 151 of file values_controller.cpp.

◆ cumulatedWidthFromIndex()

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

Reimplemented from Shared::RegularTableViewDataSource.

Definition at line 160 of file values_controller.cpp.

◆ defaultController()

Responder * Shared::ValuesController::defaultController ( )
overridevirtual

Implements AlternateEmptyViewDelegate.

Definition at line 230 of file values_controller.cpp.

◆ didBecomeFirstResponder()

void Shared::ValuesController::didBecomeFirstResponder ( )
overridevirtual

Reimplemented from Shared::EditableCellTableViewController.

Definition at line 96 of file values_controller.cpp.

◆ handleEvent()

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

Reimplemented from Responder.

Reimplemented in Graph::ValuesController.

Definition at line 44 of file values_controller.cpp.

◆ indexFromCumulatedWidth()

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

Reimplemented from Shared::RegularTableViewDataSource.

Definition at line 168 of file values_controller.cpp.

◆ interval()

Interval * Shared::ValuesController::interval ( )

Definition at line 40 of file values_controller.cpp.

◆ intervalParameterController()

virtual IntervalParameterController* Shared::ValuesController::intervalParameterController ( )
pure virtual

◆ isEmpty()

bool Shared::ValuesController::isEmpty ( ) const
overridevirtual

Implements AlternateEmptyViewDelegate.

Definition at line 223 of file values_controller.cpp.

◆ loadView()

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

Reimplemented from Shared::TabTableController.

Definition at line 306 of file values_controller.cpp.

◆ numberOfButtons()

int Shared::ValuesController::numberOfButtons ( ButtonRowController::Position  ) const
overridevirtual

Reimplemented from ButtonRowDelegate.

Definition at line 114 of file values_controller.cpp.

◆ numberOfColumns()

int Shared::ValuesController::numberOfColumns ( )
overridevirtual

Implements TableViewDataSource.

Definition at line 32 of file values_controller.cpp.

◆ reusableCell()

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

Implements TableViewDataSource.

Definition at line 175 of file values_controller.cpp.

◆ reusableCellCount()

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

Implements TableViewDataSource.

Definition at line 194 of file values_controller.cpp.

◆ setDataAtLocation()

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

Implements Shared::EditableCellTableViewController.

Definition at line 283 of file values_controller.cpp.

◆ stackController()

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

Definition at line 253 of file values_controller.cpp.

◆ title()

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

Reimplemented from ViewController.

Definition at line 28 of file values_controller.cpp.

◆ typeAtLocation()

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

Implements TableViewDataSource.

Definition at line 210 of file values_controller.cpp.

◆ unloadView()

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

Reimplemented from Shared::TabTableController.

Definition at line 323 of file values_controller.cpp.

◆ updateNumberOfColumns()

void Shared::ValuesController::updateNumberOfColumns ( )
protectedvirtual

Reimplemented in Graph::ValuesController.

Definition at line 333 of file values_controller.cpp.

◆ viewDidDisappear()

void Shared::ValuesController::viewDidDisappear ( )
overridevirtual

Reimplemented from ViewController.

Definition at line 239 of file values_controller.cpp.

◆ viewWillAppear()

void Shared::ValuesController::viewWillAppear ( )
overridevirtual

Reimplemented from Shared::EditableCellTableViewController.

Definition at line 234 of file values_controller.cpp.

◆ willDisplayCellAtLocation()

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

Reimplemented from TableViewDataSource.

Reimplemented in Graph::ValuesController, and Sequence::ValuesController.

Definition at line 125 of file values_controller.cpp.

◆ willExitResponderChain()

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

Reimplemented from Shared::TabTableController.

Definition at line 106 of file values_controller.cpp.

Member Data Documentation

◆ k_abscissaCellWidth

constexpr KDCoordinate Shared::ValuesController::k_abscissaCellWidth = 100
static

Definition at line 43 of file values_controller.h.

◆ k_bottomMargin

constexpr KDCoordinate Shared::ValuesController::k_bottomMargin = 15
static

Definition at line 40 of file values_controller.h.

◆ k_leftMargin

constexpr KDCoordinate Shared::ValuesController::k_leftMargin = 1
static

Definition at line 41 of file values_controller.h.

◆ k_ordinateCellWidth

constexpr KDCoordinate Shared::ValuesController::k_ordinateCellWidth = 100
static

Definition at line 44 of file values_controller.h.

◆ k_rightMargin

constexpr KDCoordinate Shared::ValuesController::k_rightMargin = 15
static

Definition at line 42 of file values_controller.h.

◆ k_topMargin

constexpr KDCoordinate Shared::ValuesController::k_topMargin = 10
static

Definition at line 39 of file values_controller.h.

◆ m_interval

Interval* Shared::ValuesController::m_interval
protected

Definition at line 51 of file values_controller.h.

◆ m_numberOfColumns

int Shared::ValuesController::m_numberOfColumns
protected

Definition at line 52 of file values_controller.h.

◆ m_numberOfColumnsNeedUpdate

bool Shared::ValuesController::m_numberOfColumnsNeedUpdate
protected

Definition at line 53 of file values_controller.h.


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