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

#include <menu_controller.h>

Inheritance diagram for Code::MenuController:
ViewController TableViewDataSource SelectableTableViewDataSource SelectableTableViewDelegate TextFieldDelegate ButtonRowDelegate Responder ScrollViewDataSource TextInputDelegate

Public Member Functions

 MenuController (Responder *parentResponder, ScriptStore *scriptStore, ButtonRowController *footer)
 
ConsoleControllerconsoleController ()
 
StackViewControllerstackViewController ()
 
void willExitResponderChain (Responder *nextFirstResponder) override
 
void renameSelectedScript ()
 
void deleteScript (Script script)
 
void reloadConsole ()
 
void loadPythonIfNeeded ()
 
void openConsoleWithScript (Script script)
 
void scriptContentEditionDidFinish ()
 
Viewview () override
 
bool handleEvent (Ion::Events::Event event) override
 
void didBecomeFirstResponder () override
 
void viewWillAppear () override
 
int numberOfRows () override
 
int numberOfColumns () override
 
void willDisplayCellAtLocation (HighlightCell *cell, int i, int j) override
 
KDCoordinate columnWidth (int i) override
 
KDCoordinate rowHeight (int j) override
 
KDCoordinate cumulatedWidthFromIndex (int i) override
 
KDCoordinate cumulatedHeightFromIndex (int j) override
 
int indexFromCumulatedWidth (KDCoordinate offsetX) override
 
int indexFromCumulatedHeight (KDCoordinate offsetY) override
 
HighlightCellreusableCell (int index, int type) override
 
int reusableCellCount (int type) override
 
int typeAtLocation (int i, int j) override
 
void willDisplayScriptTitleCellForIndex (HighlightCell *cell, int index)
 
void tableViewDidChangeSelection (SelectableTableView *t, int previousSelectedCellX, int previousSelectedCellY) override
 
bool textFieldShouldFinishEditing (TextField *textField, Ion::Events::Event event) override
 
bool textFieldDidReceiveEvent (TextField *textField, Ion::Events::Event event) override
 
bool textFieldDidFinishEditing (TextField *textField, const char *text, Ion::Events::Event event) override
 
bool textFieldDidAbortEditing (TextField *textField, const char *text) override
 
bool textFieldDidHandleEvent (TextField *textField, bool returnValue, bool textHasChanged) override
 
ToolboxtoolboxForTextInput (TextInput *textInput) override
 
int numberOfButtons (ButtonRowController::Position position) const override
 
ButtonbuttonAtIndex (int index, ButtonRowController::Position position) const override
 
- Public Member Functions inherited from ViewController
 ViewController (Responder *parentResponder)
 
virtual const char * title ()
 
virtual void viewDidDisappear ()
 
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 ButtonRowDelegate
 ButtonRowDelegate (ButtonRowController *header, ButtonRowController *footer)
 
ButtonRowControllerheader ()
 
ButtonRowControllerfooter ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 15 of file menu_controller.h.

Constructor & Destructor Documentation

◆ MenuController()

Code::MenuController::MenuController ( Responder parentResponder,
ScriptStore scriptStore,
ButtonRowController footer 
)

Definition at line 10 of file menu_controller.cpp.

Member Function Documentation

◆ buttonAtIndex()

Button* Code::MenuController::buttonAtIndex ( int  index,
ButtonRowController::Position  position 
) const
inlineoverridevirtual

Reimplemented from ButtonRowDelegate.

Definition at line 66 of file menu_controller.h.

◆ columnWidth()

KDCoordinate Code::MenuController::columnWidth ( int  i)
overridevirtual

Implements TableViewDataSource.

Definition at line 181 of file menu_controller.cpp.

◆ consoleController()

ConsoleController* Code::MenuController::consoleController ( )
inline

Definition at line 22 of file menu_controller.h.

◆ cumulatedHeightFromIndex()

KDCoordinate Code::MenuController::cumulatedHeightFromIndex ( int  j)
overridevirtual

Implements TableViewDataSource.

Definition at line 207 of file menu_controller.cpp.

◆ cumulatedWidthFromIndex()

KDCoordinate Code::MenuController::cumulatedWidthFromIndex ( int  i)
overridevirtual

Implements TableViewDataSource.

Definition at line 193 of file menu_controller.cpp.

◆ deleteScript()

void Code::MenuController::deleteScript ( Script  script)

Definition at line 141 of file menu_controller.cpp.

◆ didBecomeFirstResponder()

void Code::MenuController::didBecomeFirstResponder ( )
overridevirtual

Reimplemented from Responder.

Definition at line 65 of file menu_controller.cpp.

◆ handleEvent()

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

Reimplemented from Responder.

Definition at line 91 of file menu_controller.cpp.

◆ indexFromCumulatedHeight()

int Code::MenuController::indexFromCumulatedHeight ( KDCoordinate  offsetY)
overridevirtual

Implements TableViewDataSource.

Definition at line 225 of file menu_controller.cpp.

◆ indexFromCumulatedWidth()

int Code::MenuController::indexFromCumulatedWidth ( KDCoordinate  offsetX)
overridevirtual

Implements TableViewDataSource.

Definition at line 211 of file menu_controller.cpp.

◆ loadPythonIfNeeded()

void Code::MenuController::loadPythonIfNeeded ( )

Definition at line 152 of file menu_controller.cpp.

◆ numberOfButtons()

int Code::MenuController::numberOfButtons ( ButtonRowController::Position  position) const
inlineoverridevirtual

Reimplemented from ButtonRowDelegate.

Definition at line 65 of file menu_controller.h.

◆ numberOfColumns()

int Code::MenuController::numberOfColumns ( )
inlineoverridevirtual

Implements TableViewDataSource.

Definition at line 40 of file menu_controller.h.

◆ numberOfRows()

int Code::MenuController::numberOfRows ( )
overridevirtual

Implements TableViewDataSource.

Definition at line 169 of file menu_controller.cpp.

◆ openConsoleWithScript()

void Code::MenuController::openConsoleWithScript ( Script  script)

Definition at line 156 of file menu_controller.cpp.

◆ reloadConsole()

void Code::MenuController::reloadConsole ( )

Definition at line 147 of file menu_controller.cpp.

◆ renameSelectedScript()

void Code::MenuController::renameSelectedScript ( )

Definition at line 127 of file menu_controller.cpp.

◆ reusableCell()

HighlightCell * Code::MenuController::reusableCell ( int  index,
int  type 
)
overridevirtual

Implements TableViewDataSource.

Definition at line 232 of file menu_controller.cpp.

◆ reusableCellCount()

int Code::MenuController::reusableCellCount ( int  type)
overridevirtual

Implements TableViewDataSource.

Definition at line 253 of file menu_controller.cpp.

◆ rowHeight()

KDCoordinate Code::MenuController::rowHeight ( int  j)
inlineoverridevirtual

Implements TableViewDataSource.

Definition at line 43 of file menu_controller.h.

◆ scriptContentEditionDidFinish()

void Code::MenuController::scriptContentEditionDidFinish ( )

Definition at line 165 of file menu_controller.cpp.

◆ stackViewController()

StackViewController * Code::MenuController::stackViewController ( )

Definition at line 49 of file menu_controller.cpp.

◆ tableViewDidChangeSelection()

void Code::MenuController::tableViewDidChangeSelection ( SelectableTableView t,
int  previousSelectedCellX,
int  previousSelectedCellY 
)
overridevirtual

Reimplemented from SelectableTableViewDelegate.

Definition at line 289 of file menu_controller.cpp.

◆ textFieldDidAbortEditing()

bool Code::MenuController::textFieldDidAbortEditing ( TextField textField,
const char *  text 
)
overridevirtual

Reimplemented from TextFieldDelegate.

Definition at line 348 of file menu_controller.cpp.

◆ textFieldDidFinishEditing()

bool Code::MenuController::textFieldDidFinishEditing ( TextField textField,
const char *  text,
Ion::Events::Event  event 
)
overridevirtual

Reimplemented from TextFieldDelegate.

Definition at line 312 of file menu_controller.cpp.

◆ textFieldDidHandleEvent()

bool Code::MenuController::textFieldDidHandleEvent ( TextField textField,
bool  returnValue,
bool  textHasChanged 
)
overridevirtual

Reimplemented from TextFieldDelegate.

Definition at line 369 of file menu_controller.cpp.

◆ textFieldDidReceiveEvent()

bool Code::MenuController::textFieldDidReceiveEvent ( TextField textField,
Ion::Events::Event  event 
)
overridevirtual

Implements TextFieldDelegate.

Definition at line 300 of file menu_controller.cpp.

◆ textFieldShouldFinishEditing()

bool Code::MenuController::textFieldShouldFinishEditing ( TextField textField,
Ion::Events::Event  event 
)
overridevirtual

Implements TextFieldDelegate.

Definition at line 295 of file menu_controller.cpp.

◆ toolboxForTextInput()

Toolbox* Code::MenuController::toolboxForTextInput ( TextInput textInput)
inlineoverridevirtual

Implements TextInputDelegate.

Definition at line 62 of file menu_controller.h.

◆ typeAtLocation()

int Code::MenuController::typeAtLocation ( int  i,
int  j 
)
overridevirtual

Implements TableViewDataSource.

Definition at line 267 of file menu_controller.cpp.

◆ view()

View* Code::MenuController::view ( )
inlineoverridevirtual

Implements ViewController.

Definition at line 33 of file menu_controller.h.

◆ viewWillAppear()

void Code::MenuController::viewWillAppear ( )
overridevirtual

Reimplemented from ViewController.

Definition at line 87 of file menu_controller.cpp.

◆ willDisplayCellAtLocation()

void Code::MenuController::willDisplayCellAtLocation ( HighlightCell cell,
int  i,
int  j 
)
overridevirtual

Reimplemented from TableViewDataSource.

Definition at line 173 of file menu_controller.cpp.

◆ willDisplayScriptTitleCellForIndex()

void Code::MenuController::willDisplayScriptTitleCellForIndex ( HighlightCell cell,
int  index 
)

Definition at line 283 of file menu_controller.cpp.

◆ willExitResponderChain()

void Code::MenuController::willExitResponderChain ( Responder nextFirstResponder)
overridevirtual

Reimplemented from Responder.

Definition at line 53 of file menu_controller.cpp.


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