[apps/calculation] Use the calculation table view in the history view

controller

Change-Id: I76a99c5dd3d9c7b97d5b946fa6b4094819088cd9
This commit is contained in:
Émilie Feral
2016-10-28 17:26:51 +02:00
parent d83c101a33
commit 8ffe0b6bf6
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ namespace Calculation {
HistoryController::HistoryController(Responder * parentResponder, CalculationStore * calculationStore) :
ViewController(parentResponder),
m_selectableTableView(SelectableTableView(this, this, 0, 0, 0, 0, this)),
m_selectableTableView(CalculationSelectableTableView(this, this, this)),
m_calculationStore(calculationStore)
{
}

View File

@@ -5,6 +5,7 @@
#include <poincare.h>
#include "history_view_cell.h"
#include "calculation_store.h"
#include "selectable_table_view.h"
namespace Calculation {
@@ -33,7 +34,7 @@ private:
constexpr static int k_maxNumberOfDisplayedRows = 10;
constexpr static KDCoordinate k_resultHeight = 12;
HistoryViewCell m_calculationHistory[k_maxNumberOfDisplayedRows];
SelectableTableView m_selectableTableView;
CalculationSelectableTableView m_selectableTableView;
CalculationStore * m_calculationStore;
};