mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/*/values*function_parameter_controller] Get the symbol from the FunctionStore
This commit is contained in:
committed by
Léa Saviot
parent
6d7e833a46
commit
4396a82452
@@ -8,7 +8,7 @@ using namespace Shared;
|
||||
namespace Graph {
|
||||
|
||||
FunctionParameterController::FunctionParameterController(ValuesController * valuesController) :
|
||||
ValuesFunctionParameterController(CartesianFunction::Symbol()),
|
||||
ValuesFunctionParameterController(),
|
||||
m_displayDerivativeColumn(I18n::Message::DerivativeFunctionColumn),
|
||||
m_valuesController(valuesController)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,8 @@ const char * ValuesFunctionParameterController::title() {
|
||||
}
|
||||
|
||||
void ValuesFunctionParameterController::viewWillAppear() {
|
||||
FunctionApp::app()->functionStore()->modelForRecord(m_record)->nameWithArgument(m_pageTitle, Function::k_maxNameWithArgumentSize, m_symbol);
|
||||
CodePoint symbol = FunctionApp::app()->functionStore()->symbol();
|
||||
FunctionApp::app()->functionStore()->modelForRecord(m_record)->nameWithArgument(m_pageTitle, Function::k_maxNameWithArgumentSize, symbol);
|
||||
}
|
||||
|
||||
void ValuesFunctionParameterController::didBecomeFirstResponder() {
|
||||
|
||||
@@ -9,12 +9,11 @@ namespace Shared {
|
||||
|
||||
class ValuesFunctionParameterController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDataSource {
|
||||
public:
|
||||
ValuesFunctionParameterController(char symbol) :
|
||||
ValuesFunctionParameterController() :
|
||||
ViewController(nullptr),
|
||||
m_copyColumn(I18n::Message::CopyColumnInList),
|
||||
m_selectableTableView(this, this, this),
|
||||
m_record(),
|
||||
m_symbol(symbol)
|
||||
m_record()
|
||||
{}
|
||||
|
||||
View * view() override { return &m_selectableTableView; }
|
||||
@@ -35,7 +34,6 @@ protected:
|
||||
Ion::Storage::Record m_record;
|
||||
private:
|
||||
char m_pageTitle[Function::k_maxNameWithArgumentSize];
|
||||
char m_symbol;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user