mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[apps] Inline some code in variable_box_controller
This commit is contained in:
@@ -127,10 +127,6 @@ int VariableBoxController::typeAtLocation(int i, int j) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void VariableBoxController::lockDeleteEvent(Page page) {
|
||||
m_lockPageDelete = page;
|
||||
}
|
||||
|
||||
ExpressionTableCellWithExpression * VariableBoxController::leafCellAtIndex(int index) {
|
||||
assert(index >= 0 && index < k_maxNumberOfDisplayedRows);
|
||||
return &m_leafCells[index];
|
||||
|
||||
@@ -32,7 +32,7 @@ public:
|
||||
Expression = 1,
|
||||
Function = 2
|
||||
};
|
||||
void lockDeleteEvent(Page page);
|
||||
void lockDeleteEvent(Page page) { m_lockPageDelete = page; }
|
||||
private:
|
||||
constexpr static int k_maxNumberOfDisplayedRows = 6; //240/Metric::ToolboxRowHeight
|
||||
constexpr static int k_numberOfMenuRows = 2;
|
||||
|
||||
Reference in New Issue
Block a user