#ifndef SHARED_STORE_PARAM_CONTROLLER_H #define SHARED_STORE_PARAM_CONTROLLER_H #include #include "float_pair_store.h" #include "../i18n.h" namespace Shared { class StoreParameterController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDataSource { 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