Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Code::PythonToolbox Class Reference

#include <python_toolbox.h>

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

Public Types

typedef void(* Action) (void *sender, const char *text)
 
- Public Types inherited from ViewController
enum  DisplayParameter { DisplayParameter::Default, DisplayParameter::DoNotShowOwnTitle, DisplayParameter::WantsMaximumSpace }
 

Public Member Functions

 PythonToolbox ()
 
bool handleEvent (Ion::Events::Event event) override
 
- Public Member Functions inherited from Toolbox
 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
 
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

KDCoordinate rowHeight (int j) override
 
bool selectLeaf (ToolboxMessageTree *selectedMessageTree) override
 
const ToolboxMessageTreerootModel () override
 
MessageTableCellWithMessageleafCellAtIndex (int index) override
 
MessageTableCellWithChevronnodeCellAtIndex (int index) override
 
int maxNumberOfDisplayedRows () override
 
- Protected Member Functions inherited from Toolbox
int stackDepth ()
 
bool handleEventForRow (Ion::Events::Event event, int selectedRow)
 
bool selectSubMenu (ToolboxMessageTree *selectedMessageTree)
 
bool returnToPreviousMenu ()
 
virtual Respondersender ()
 

Static Protected Attributes

static constexpr int k_maxNumberOfDisplayedRows = 13
 
- Static Protected Attributes inherited from Toolbox
static constexpr int LeafCellType = 0
 
static constexpr int NodeCellType = 1
 

Additional Inherited Members

- Protected Attributes inherited from Toolbox
SelectableTableView m_selectableTableView
 
Stack m_stack
 
ListController m_listController
 
ToolboxMessageTreem_messageTreeModel
 

Detailed Description

Definition at line 11 of file python_toolbox.h.

Member Typedef Documentation

◆ Action

typedef void(* Code::PythonToolbox::Action) (void *sender, const char *text)

Definition at line 13 of file python_toolbox.h.

Constructor & Destructor Documentation

◆ PythonToolbox()

Code::PythonToolbox::PythonToolbox ( )

Definition at line 257 of file python_toolbox.cpp.

Member Function Documentation

◆ handleEvent()

bool Code::PythonToolbox::handleEvent ( Ion::Events::Event  event)
overridevirtual

Reimplemented from Responder.

Definition at line 262 of file python_toolbox.cpp.

◆ leafCellAtIndex()

MessageTableCellWithMessage * Code::PythonToolbox::leafCellAtIndex ( int  index)
overrideprotectedvirtual

Implements Toolbox.

Definition at line 306 of file python_toolbox.cpp.

◆ maxNumberOfDisplayedRows()

int Code::PythonToolbox::maxNumberOfDisplayedRows ( )
overrideprotectedvirtual

Implements Toolbox.

Definition at line 316 of file python_toolbox.cpp.

◆ nodeCellAtIndex()

MessageTableCellWithChevron * Code::PythonToolbox::nodeCellAtIndex ( int  index)
overrideprotectedvirtual

Implements Toolbox.

Definition at line 311 of file python_toolbox.cpp.

◆ rootModel()

const ToolboxMessageTree * Code::PythonToolbox::rootModel ( )
overrideprotectedvirtual

Implements Toolbox.

Definition at line 302 of file python_toolbox.cpp.

◆ rowHeight()

KDCoordinate Code::PythonToolbox::rowHeight ( int  j)
overrideprotectedvirtual

Reimplemented from Toolbox.

Definition at line 273 of file python_toolbox.cpp.

◆ selectLeaf()

bool Code::PythonToolbox::selectLeaf ( ToolboxMessageTree selectedMessageTree)
overrideprotectedvirtual

Implements Toolbox.

Definition at line 290 of file python_toolbox.cpp.

Member Data Documentation

◆ k_maxNumberOfDisplayedRows

constexpr int Code::PythonToolbox::k_maxNumberOfDisplayedRows = 13
staticprotected

Definition at line 25 of file python_toolbox.h.


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