mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 16:50:50 +01:00
[apps/shared] Move partial class values controller and function
parameter controller to shared to be used by sequences Change-Id: I7908c184c757bb35856763bd339d3b34cf4ffe81
This commit is contained in:
33
apps/shared/values_function_parameter_controller.h
Normal file
33
apps/shared/values_function_parameter_controller.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef SHARED_VALUES_FUNCTION_PARAM_CONTROLLER_H
|
||||
#define SHARED_VALUES_FUNCTION_PARAM_CONTROLLER_H
|
||||
|
||||
#include <escher.h>
|
||||
#include "function.h"
|
||||
|
||||
namespace Shared {
|
||||
|
||||
class ValuesFunctionParameterController : public ViewController, public SimpleListViewDataSource {
|
||||
public:
|
||||
ValuesFunctionParameterController(char symbol);
|
||||
|
||||
View * view() override;
|
||||
const char * title() const override;
|
||||
void didBecomeFirstResponder() override;
|
||||
virtual int numberOfRows() override;
|
||||
KDCoordinate cellHeight() override;
|
||||
virtual HighlightCell * reusableCell(int index) override;
|
||||
virtual int reusableCellCount() override;
|
||||
virtual void setFunction(Function * function);
|
||||
protected:
|
||||
PointerTableCellWithChevron m_copyColumn;
|
||||
SelectableTableView m_selectableTableView;
|
||||
private:
|
||||
constexpr static int k_maxNumberOfCharsInTitle = 16;
|
||||
char m_pageTitle[k_maxNumberOfCharsInTitle];
|
||||
Function * m_function;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user