Numworks Epsilon
1.4.1
Graphing Calculator Operating System
python_toolbox.h
Go to the documentation of this file.
1
#ifndef CODE_PYTHON_TOOLBOX_H
2
#define CODE_PYTHON_TOOLBOX_H
3
4
#include <apps/i18n.h>
5
#include <
escher.h
>
6
#include <
ion/events.h
>
7
#include <
kandinsky/text.h
>
8
9
namespace
Code
{
10
11
class
PythonToolbox
:
public
Toolbox
{
12
public
:
13
typedef
void (*
Action
)(
void
*
sender
,
const
char
* text);
14
PythonToolbox
();
15
16
// StackViewController
17
bool
handleEvent
(
Ion::Events::Event
event)
override
;
18
protected
:
19
KDCoordinate
rowHeight
(
int
j)
override
;
20
bool
selectLeaf
(
ToolboxMessageTree
* selectedMessageTree)
override
;
21
const
ToolboxMessageTree
*
rootModel
()
override
;
22
MessageTableCellWithMessage
*
leafCellAtIndex
(
int
index)
override
;
23
MessageTableCellWithChevron
*
nodeCellAtIndex
(
int
index)
override
;
24
int
maxNumberOfDisplayedRows
()
override
;
25
constexpr
static
int
k_maxNumberOfDisplayedRows
= 13;
// = 240/(13+2*3)
26
// 13 = minimal string height size
27
// 3 = vertical margins
28
private
:
29
constexpr
static
KDText::FontSize
k_fontSize =
KDText::FontSize::Small
;
30
void
scrollToLetter(
char
letter);
31
void
scrollToAndSelectChild(
int
i);
32
MessageTableCellWithMessage
m_leafCells[
k_maxNumberOfDisplayedRows
];
33
MessageTableCellWithChevron
m_nodeCells[
k_maxNumberOfDisplayedRows
];
34
};
35
36
}
37
38
#endif
Code::PythonToolbox::Action
void(* Action)(void *sender, const char *text)
Definition:
python_toolbox.h:13
Code::PythonToolbox::selectLeaf
bool selectLeaf(ToolboxMessageTree *selectedMessageTree) override
Definition:
python_toolbox.cpp:290
Toolbox
Definition:
toolbox.h:12
ToolboxMessageTree
Definition:
toolbox_message_tree.h:6
KDCoordinate
int16_t KDCoordinate
Definition:
coordinate.h:6
text.h
events.h
escher.h
Code::PythonToolbox::nodeCellAtIndex
MessageTableCellWithChevron * nodeCellAtIndex(int index) override
Definition:
python_toolbox.cpp:311
Code::PythonToolbox::rootModel
const ToolboxMessageTree * rootModel() override
Definition:
python_toolbox.cpp:302
Ion::Events::Event
Definition:
events.h:9
Code::PythonToolbox::leafCellAtIndex
MessageTableCellWithMessage * leafCellAtIndex(int index) override
Definition:
python_toolbox.cpp:306
MessageTableCellWithMessage
Definition:
message_table_cell_with_message.h:6
Code
Definition:
app.cpp:7
Code::PythonToolbox::k_maxNumberOfDisplayedRows
static constexpr int k_maxNumberOfDisplayedRows
Definition:
python_toolbox.h:25
Code::PythonToolbox
Definition:
python_toolbox.h:11
Toolbox::sender
virtual Responder * sender()
Definition:
toolbox.cpp:238
KDText::FontSize::Small
Code::PythonToolbox::maxNumberOfDisplayedRows
int maxNumberOfDisplayedRows() override
Definition:
python_toolbox.cpp:316
Code::PythonToolbox::rowHeight
KDCoordinate rowHeight(int j) override
Definition:
python_toolbox.cpp:273
Code::PythonToolbox::handleEvent
bool handleEvent(Ion::Events::Event event) override
Definition:
python_toolbox.cpp:262
KDText::FontSize
FontSize
Definition:
text.h:10
Code::PythonToolbox::PythonToolbox
PythonToolbox()
Definition:
python_toolbox.cpp:257
MessageTableCellWithChevron
Definition:
message_table_cell_with_chevron.h:7
epsilon
apps
code
python_toolbox.h
Generated by
1.8.14