[escher] Rework of timers and bigger text in toolboxes

This commit is contained in:
Laury
2022-06-24 22:35:36 +02:00
parent 391fd5e243
commit 0b2a581177
74 changed files with 407 additions and 208 deletions

View File

@@ -109,7 +109,7 @@ void CalculationParameterController::willDisplayCellForIndex(HighlightCell * cel
assert(index >= 0 && index <= numberOfRows());
if (cell != &m_preimageCell) {
I18n::Message titles[] = {I18n::Message::Intersection, I18n::Message::Maximum, I18n::Message::Minimum, I18n::Message::Zeros, I18n::Message::Tangent, I18n::Message::Integral};
static_cast<MessageTableCell *>(cell)->setMessage(titles[index - 1 + !shouldDisplayIntersection()]);
static_cast<MessageTableCell<> *>(cell)->setMessage(titles[index - 1 + !shouldDisplayIntersection()]);
}
}

View File

@@ -32,9 +32,9 @@ public:
void setRecord(Ion::Storage::Record record);
private:
bool shouldDisplayIntersection() const;
MessageTableCellWithChevron m_preimageCell;
MessageTableCellWithChevron<> m_preimageCell;
constexpr static int k_totalNumberOfReusableCells = 6;
MessageTableCell m_cells[k_totalNumberOfReusableCells];
MessageTableCell<> m_cells[k_totalNumberOfReusableCells];
SelectableTableView m_selectableTableView;
Ion::Storage::Record m_record;
PreimageParameterController m_preimageParameterController;

View File

@@ -25,7 +25,7 @@ private:
Shared::FunctionGoToParameterController * goToParameterController() override;
Shared::FunctionGoToParameterController m_goToParameterController;
GraphController * m_graphController;
MessageTableCellWithChevron m_calculationCell;
MessageTableCellWithChevron<> m_calculationCell;
MessageTableCellWithSwitch m_derivativeCell;
CalculationParameterController m_calculationParameterController;
};

View File

@@ -28,7 +28,7 @@ private:
MessageTableCellWithChevronAndBuffer m_functionDomain;
TypeParameterController m_typeParameterController;
DomainParameterController m_domainParameterController;
MessageTableCell m_renameCell;
MessageTableCell<> m_renameCell;
};
}

View File

@@ -33,9 +33,9 @@ private:
#endif
constexpr static int k_maxNumberOfCharsInTitle = Shared::Function::k_maxNameWithArgumentSize + 1; // +1 for the ' of the derivative
char m_pageTitle[k_maxNumberOfCharsInTitle];
MessageTableCell m_hideColumn;
MessageTableCell<> m_hideColumn;
#if COPY_COLUMN
MessageTableCellWithChevron m_copyColumn;
MessageTableCellWithChevron<> m_copyColumn;
#endif
SelectableTableView m_selectableTableView;
Ion::Storage::Record m_record;

View File

@@ -69,7 +69,7 @@ int IntervalParameterSelectorController::reusableCellCount() const {
void IntervalParameterSelectorController::willDisplayCellForIndex(HighlightCell * cell, int index) {
assert(0 <= index && index < numberOfRows());
Shared::ContinuousFunction::PlotType plotType = plotTypeAtRow(index);
static_cast<MessageTableCellWithChevron *>(cell)->setMessage(messageForType(plotType));
static_cast<MessageTableCellWithChevron<> *>(cell)->setMessage(messageForType(plotType));
}
Shared::ContinuousFunction::PlotType IntervalParameterSelectorController::plotTypeAtRow(int j) const {

View File

@@ -24,7 +24,7 @@ public:
private:
Shared::ContinuousFunction::PlotType plotTypeAtRow(int j) const;
I18n::Message messageForType(Shared::ContinuousFunction::PlotType plotType);
MessageTableCellWithChevron m_intervalParameterCell[Shared::ContinuousFunction::k_numberOfPlotTypes];
MessageTableCellWithChevron<> m_intervalParameterCell[Shared::ContinuousFunction::k_numberOfPlotTypes];
SelectableTableView m_selectableTableView;
};