[apps/sequence||graph] Improve hiding of copy column functionnality

Change-Id: Ic31734f99c0c223e5865b46c48866b89aa62d383
This commit is contained in:
Émilie Feral
2017-05-02 14:08:34 +02:00
parent 847a8e02e7
commit 4b18d16b2b
7 changed files with 50 additions and 16 deletions

View File

@@ -7,7 +7,9 @@ namespace Graph {
DerivativeParameterController::DerivativeParameterController(ValuesController * valuesController) :
ViewController(valuesController),
m_hideColumn(MessageTableCell(I18n::Message::HideDerivativeColumn)),
// m_copyColumn(MessageTableCellWithChevron(I18n::Message::CopyColumnInList)),
#if COPY_COLUMN
m_copyColumn(MessageTableCellWithChevron(I18n::Message::CopyColumnInList)),
#endif
m_selectableTableView(SelectableTableView(this, this, 0, 1, Metric::CommonTopMargin, Metric::CommonRightMargin,
Metric::CommonBottomMargin, Metric::CommonLeftMargin, this)),
m_function(nullptr),
@@ -50,9 +52,11 @@ bool DerivativeParameterController::handleEvent(Ion::Events::Event event) {
stack->pop();
return true;
}
/* TODO: implement copy column
* case 1:
return true;*/
#if COPY_COLUMN
case 1:
/* TODO: implement function copy column */
return true;
#endif
default:
assert(false);
return false;
@@ -68,7 +72,11 @@ int DerivativeParameterController::numberOfRows() {
HighlightCell * DerivativeParameterController::reusableCell(int index) {
assert(index >= 0);
assert(index < k_totalNumberOfCell);
HighlightCell * cells[] = {&m_hideColumn}; //{&m_hideColumn, &m_copyColumn};
#if COPY_COLUMN
HighlightCell * cells[] = {&m_hideColumn, &m_copyColumn};
#else
HighlightCell * cells[] = {&m_hideColumn};
#endif
return cells[index];
}