mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
#ifndef SHARED_STORE_PARAM_CONTROLLER_H
|
|
#define SHARED_STORE_PARAM_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "float_pair_store.h"
|
|
#include "../i18n.h"
|
|
|
|
namespace Shared {
|
|
|
|
class StoreParameterController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDelegate {
|
|
public:
|
|
StoreParameterController(Responder * parentResponder, FloatPairStore * store);
|
|
void selectXColumn(bool xColumnSelected);
|
|
View * view() override;
|
|
const char * title() override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
void didBecomeFirstResponder() override;
|
|
int numberOfRows() override;
|
|
KDCoordinate cellHeight() override;
|
|
HighlightCell * reusableCell(int index) override;
|
|
int reusableCellCount() override;
|
|
private:
|
|
#if COPY_IMPORT_LIST
|
|
constexpr static int k_totalNumberOfCell = 3;
|
|
MessageTableCellWithChevron m_copyColumn;
|
|
MessageTableCellWithChevron m_importList;
|
|
#else
|
|
constexpr static int k_totalNumberOfCell = 1;
|
|
#endif
|
|
MessageTableCell m_deleteColumn;
|
|
SelectableTableView m_selectableTableView;
|
|
FloatPairStore * m_store;
|
|
bool m_xColumnSelected;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|