[apps/shared] Better hide "copy/import list" in store parameter

controller

Change-Id: Iefb5b8e5901f30318c67f275217b199a1b34f75e
This commit is contained in:
Émilie Feral
2017-05-02 14:11:57 +02:00
parent 4b18d16b2b
commit a64b30f0ef
2 changed files with 17 additions and 10 deletions

View File

@@ -6,8 +6,10 @@ namespace Shared {
StoreParameterController::StoreParameterController(Responder * parentResponder, FloatPairStore * store) :
ViewController(parentResponder),
m_deleteColumn(MessageTableCell(I18n::Message::ClearColumn)),
// m_copyColumn(MessageTableCellWithChevron(I18n::Message::CopyColumnInList)),
// m_importList(MessageTableCellWithChevron(I18n::Message::ImportList)),
#if COPY_IMPORT_LIST
m_copyColumn(MessageTableCellWithChevron(I18n::Message::CopyColumnInList)),
m_importList(MessageTableCellWithChevron(I18n::Message::ImportList)),
#endif
m_selectableTableView(SelectableTableView(this, this, 0, 1, Metric::CommonTopMargin, Metric::CommonRightMargin,
Metric::CommonBottomMargin, Metric::CommonLeftMargin, this)),
m_store(store),
@@ -46,11 +48,13 @@ bool StoreParameterController::handleEvent(Ion::Events::Event event) {
stack->pop();
return true;
}
/* TODO: implement copy column and import list
* case 1:
return false;
#if COPY_IMPORT_LIST
/* TODO: implement copy column and import list */
case 1:
return true;
case 2:
return false;*/
return true;
#endif
default:
assert(false);
return false;

View File

@@ -20,11 +20,14 @@ public:
HighlightCell * reusableCell(int index) override;
int reusableCellCount() override;
private:
/* TODO: implement copy column and import list */
constexpr static int k_totalNumberOfCell = 1;//3;
#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;
// MessageTableCellWithChevron m_copyColumn;
// MessageTableCellWithChevron m_importList;
SelectableTableView m_selectableTableView;
FloatPairStore * m_store;
bool m_xColumnSelected;