[apps/sequence][apps/graph] Hide "copy column" functionnality

Change-Id: I5c452faa1ef79bb1eec8bbdd8b69ba684661a38b
This commit is contained in:
Émilie Feral
2017-04-25 17:49:03 +02:00
parent e3830b5fca
commit e58e3e8a66
7 changed files with 21 additions and 13 deletions

View File

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