Files
Upsilon/apps/shared/store_parameter_controller.h
Émilie Feral 2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +01:00

34 lines
988 B
C++

#ifndef SHARED_STORE_PARAM_CONTROLLER_H
#define SHARED_STORE_PARAM_CONTROLLER_H
#include <escher.h>
#include "float_pair_store.h"
namespace Shared {
class StoreParameterController : public ViewController, public SimpleListViewDataSource {
public:
StoreParameterController(Responder * parentResponder, FloatPairStore * store);
void selectXColumn(bool xColumnSelected);
View * view() override;
const char * title() const 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:
constexpr static int k_totalNumberOfCell = 3;
PointerTableCell m_deleteColumn;
PointerTableCellWithChevron m_copyColumn;
PointerTableCellWithChevron m_importList;
SelectableTableView m_selectableTableView;
FloatPairStore * m_store;
bool m_xColumnSelected;
};
}
#endif