Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Toolbox Class Referenceabstract

#include <toolbox.h>

Inheritance diagram for Toolbox:
StackViewController ListViewDataSource SelectableTableViewDataSource ViewController TableViewDataSource ScrollViewDataSource Responder Code::PythonToolbox MathToolbox Sequence::SequenceToolbox

Classes

class  ListController
 
class  Stack
 

Public Member Functions

 Toolbox (Responder *parentResponder, const char *title=0)
 
void setSender (Responder *sender)
 
bool handleEvent (Ion::Events::Event event) override
 
void didBecomeFirstResponder () override
 
void viewWillAppear () override
 
void viewDidDisappear () override
 
virtual KDCoordinate rowHeight (int j) override
 
int numberOfRows () override
 
HighlightCellreusableCell (int index, int type) override
 
int reusableCellCount (int type) override
 
void willDisplayCellForIndex (HighlightCell *cell, int index) override
 
KDCoordinate cumulatedHeightFromIndex (int j) override
 
int indexFromCumulatedHeight (KDCoordinate offsetY) override
 
int typeAtLocation (int i, int j) override
 
- Public Member Functions inherited from StackViewController
 StackViewController (Responder *parentResponder, ViewController *rootViewController, KDColor textColor=Palette::SubTab, KDColor backgroundColor=KDColorWhite, KDColor separatorColor=Palette::GreyBright)
 
void push (ViewController *vc, KDColor textColor=Palette::SubTab, KDColor backgroundColor=KDColorWhite, KDColor separatorColor=Palette::GreyBright)
 
void pop ()
 
int depth ()
 
Viewview () override
 
const char * title () 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)
 
virtual void willExitResponderChain (Responder *nextFirstResponder)
 
ResponderparentResponder () const
 
RespondercommonAncestorWith (Responder *responder)
 
void setParentResponder (Responder *responder)
 
Appapp ()
 
virtual Toolboxtoolbox ()
 
- Public Member Functions inherited from ListViewDataSource
virtual KDCoordinate cellWidth ()
 
KDCoordinate columnWidth (int i) override
 
int numberOfColumns () override
 
void willDisplayCellAtLocation (HighlightCell *cell, int x, int y) override
 
int indexFromCumulatedWidth (KDCoordinate offsetX) override
 
KDCoordinate cumulatedWidthFromIndex (int i) override
 
- 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

int stackDepth ()
 
bool handleEventForRow (Ion::Events::Event event, int selectedRow)
 
bool selectSubMenu (ToolboxMessageTree *selectedMessageTree)
 
bool returnToPreviousMenu ()
 
virtual Respondersender ()
 
virtual bool selectLeaf (ToolboxMessageTree *selectedMessageTree)=0
 
virtual const ToolboxMessageTreerootModel ()=0
 
virtual MessageTableCellWithMessageleafCellAtIndex (int index)=0
 
virtual MessageTableCellWithChevronnodeCellAtIndex (int index)=0
 
virtual int maxNumberOfDisplayedRows ()=0
 

Protected Attributes

SelectableTableView m_selectableTableView
 
Stack m_stack
 
ListController m_listController
 
ToolboxMessageTreem_messageTreeModel
 

Static Protected Attributes

static constexpr int LeafCellType = 0
 
static constexpr int NodeCellType = 1
 

Additional Inherited Members

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

Detailed Description

Definition at line 12 of file toolbox.h.

Constructor & Destructor Documentation

◆ Toolbox()

Toolbox::Toolbox ( Responder parentResponder,
const char *  title = 0 
)

Definition at line 88 of file toolbox.cpp.

Member Function Documentation

◆ cumulatedHeightFromIndex()

KDCoordinate Toolbox::cumulatedHeightFromIndex ( int  j)
overridevirtual

Implements TableViewDataSource.

Definition at line 162 of file toolbox.cpp.

◆ didBecomeFirstResponder()

void Toolbox::didBecomeFirstResponder ( )
overridevirtual

Reimplemented from StackViewController.

Definition at line 107 of file toolbox.cpp.

◆ handleEvent()

bool Toolbox::handleEvent ( Ion::Events::Event  event)
overridevirtual

Reimplemented from StackViewController.

Definition at line 103 of file toolbox.cpp.

◆ handleEventForRow()

bool Toolbox::handleEventForRow ( Ion::Events::Event  event,
int  selectedRow 
)
protected

Definition at line 191 of file toolbox.cpp.

◆ indexFromCumulatedHeight()

int Toolbox::indexFromCumulatedHeight ( KDCoordinate  offsetY)
overridevirtual

Implements TableViewDataSource.

Definition at line 170 of file toolbox.cpp.

◆ leafCellAtIndex()

virtual MessageTableCellWithMessage* Toolbox::leafCellAtIndex ( int  index)
protectedpure virtual

Implemented in Code::PythonToolbox, and MathToolbox.

◆ maxNumberOfDisplayedRows()

virtual int Toolbox::maxNumberOfDisplayedRows ( )
protectedpure virtual

Implemented in Code::PythonToolbox, and MathToolbox.

◆ nodeCellAtIndex()

virtual MessageTableCellWithChevron* Toolbox::nodeCellAtIndex ( int  index)
protectedpure virtual

Implemented in Code::PythonToolbox, and MathToolbox.

◆ numberOfRows()

int Toolbox::numberOfRows ( )
overridevirtual

Implements TableViewDataSource.

Definition at line 128 of file toolbox.cpp.

◆ returnToPreviousMenu()

bool Toolbox::returnToPreviousMenu ( )
protected

Definition at line 215 of file toolbox.cpp.

◆ reusableCell()

HighlightCell * Toolbox::reusableCell ( int  index,
int  type 
)
overridevirtual

Implements TableViewDataSource.

Definition at line 135 of file toolbox.cpp.

◆ reusableCellCount()

int Toolbox::reusableCellCount ( int  type)
overridevirtual

Implements TableViewDataSource.

Definition at line 145 of file toolbox.cpp.

◆ rootModel()

virtual const ToolboxMessageTree* Toolbox::rootModel ( )
protectedpure virtual

Implemented in Code::PythonToolbox, and MathToolbox.

◆ rowHeight()

KDCoordinate Toolbox::rowHeight ( int  j)
overridevirtual

Implements TableViewDataSource.

Reimplemented in Code::PythonToolbox.

Definition at line 124 of file toolbox.cpp.

◆ selectLeaf()

virtual bool Toolbox::selectLeaf ( ToolboxMessageTree selectedMessageTree)
protectedpure virtual

Implemented in Code::PythonToolbox, and MathToolbox.

◆ selectSubMenu()

bool Toolbox::selectSubMenu ( ToolboxMessageTree selectedMessageTree)
protected

Definition at line 206 of file toolbox.cpp.

◆ sender()

Responder * Toolbox::sender ( )
protectedvirtual

Reimplemented in MathToolbox.

Definition at line 238 of file toolbox.cpp.

◆ setSender()

void Toolbox::setSender ( Responder sender)

Definition at line 99 of file toolbox.cpp.

◆ stackDepth()

int Toolbox::stackDepth ( )
protected

Definition at line 187 of file toolbox.cpp.

◆ typeAtLocation()

int Toolbox::typeAtLocation ( int  i,
int  j 
)
overridevirtual

Implements TableViewDataSource.

Definition at line 179 of file toolbox.cpp.

◆ viewDidDisappear()

void Toolbox::viewDidDisappear ( )
overridevirtual

Reimplemented from StackViewController.

Definition at line 119 of file toolbox.cpp.

◆ viewWillAppear()

void Toolbox::viewWillAppear ( )
overridevirtual

Reimplemented from StackViewController.

Definition at line 111 of file toolbox.cpp.

◆ willDisplayCellForIndex()

void Toolbox::willDisplayCellForIndex ( HighlightCell cell,
int  index 
)
overridevirtual

Reimplemented from ListViewDataSource.

Definition at line 149 of file toolbox.cpp.

Member Data Documentation

◆ LeafCellType

constexpr int Toolbox::LeafCellType = 0
staticprotected

Definition at line 69 of file toolbox.h.

◆ m_listController

ListController Toolbox::m_listController
protected

Definition at line 83 of file toolbox.h.

◆ m_messageTreeModel

ToolboxMessageTree* Toolbox::m_messageTreeModel
protected

Definition at line 84 of file toolbox.h.

◆ m_selectableTableView

SelectableTableView Toolbox::m_selectableTableView
protected

Definition at line 81 of file toolbox.h.

◆ m_stack

Stack Toolbox::m_stack
protected

Definition at line 82 of file toolbox.h.

◆ NodeCellType

constexpr int Toolbox::NodeCellType = 1
staticprotected

Definition at line 70 of file toolbox.h.


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