mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] Better hide "copy/import list" in store parameter
controller Change-Id: Iefb5b8e5901f30318c67f275217b199a1b34f75e
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user