mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Put the method preference in container instead of in every app
Change-Id: Ib390952a6559aa847c99e3ca74c4f6995a07e909
This commit is contained in:
@@ -8,9 +8,9 @@ AppsContainer::AppsContainer() :
|
||||
Container(),
|
||||
m_window(AppsWindow()),
|
||||
m_homeApp(this),
|
||||
m_graphApp(this, &m_globalContext, &m_preferences),
|
||||
m_graphApp(this, &m_globalContext),
|
||||
m_probabilityApp(this),
|
||||
m_calculationApp(this, &m_globalContext, &m_preferences),
|
||||
m_calculationApp(this, &m_globalContext),
|
||||
m_regressionApp(this),
|
||||
m_settingsApp(this, &m_preferences),
|
||||
m_statisticsApp(this),
|
||||
@@ -46,6 +46,10 @@ Context * AppsContainer::globalContext() {
|
||||
return &m_globalContext;
|
||||
}
|
||||
|
||||
Preferences * AppsContainer::preferences() {
|
||||
return &m_preferences;
|
||||
}
|
||||
|
||||
ToolboxController * AppsContainer::toolboxController() {
|
||||
return &m_toolboxController;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user