mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 00:30:46 +01:00
[escher] In metric, add a constant: ParameterCellHeight
Change-Id: I6d90c9083d3d6de2308e86800b39104af5fc0457
This commit is contained in:
@@ -73,5 +73,5 @@ int DataParameterController::reusableCellCount() {
|
||||
}
|
||||
|
||||
KDCoordinate DataParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
@@ -54,5 +54,5 @@ void FloatParameterController::tableViewDidChangeSelection(SelectableTableView *
|
||||
}
|
||||
|
||||
KDCoordinate FloatParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ int CurveParameterController::reusableCellCount() {
|
||||
}
|
||||
|
||||
KDCoordinate CurveParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
void CurveParameterController::setFunction(Function * function) {
|
||||
|
||||
@@ -71,7 +71,7 @@ int InitialisationParameterController::reusableCellCount() {
|
||||
}
|
||||
|
||||
KDCoordinate InitialisationParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
void InitialisationParameterController::willDisplayCellForIndex(TableViewCell * cell, int index) {
|
||||
|
||||
@@ -83,7 +83,7 @@ int ParameterController::reusableCellCount() {
|
||||
}
|
||||
|
||||
KDCoordinate ParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ int AbscissaParameterController::reusableCellCount() {
|
||||
}
|
||||
|
||||
KDCoordinate AbscissaParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ int DerivativeParameterController::reusableCellCount() {
|
||||
}
|
||||
|
||||
KDCoordinate DerivativeParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ int FunctionParameterController::reusableCellCount() {
|
||||
}
|
||||
|
||||
KDCoordinate FunctionParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
void FunctionParameterController::willDisplayCellForIndex(TableViewCell * cell, int index) {
|
||||
|
||||
@@ -101,7 +101,7 @@ void Probability::LawController::willDisplayCellForIndex(TableViewCell * cell, i
|
||||
}
|
||||
|
||||
KDCoordinate Probability::LawController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
void Probability::LawController::setLawAccordingToIndex(int index) {
|
||||
|
||||
@@ -67,7 +67,7 @@ int InitialisationParameterController::reusableCellCount() {
|
||||
}
|
||||
|
||||
KDCoordinate InitialisationParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
void InitialisationParameterController::willDisplayCellForIndex(TableViewCell * cell, int index) {
|
||||
|
||||
@@ -49,7 +49,7 @@ int PredictionParameterController::reusableCellCount() {
|
||||
}
|
||||
|
||||
KDCoordinate PredictionParameterController::cellHeight() {
|
||||
return 35;
|
||||
return Metric::ParameterCellHeight;
|
||||
}
|
||||
|
||||
void PredictionParameterController::willDisplayCellForIndex(TableViewCell * cell, int index) {
|
||||
|
||||
@@ -10,6 +10,7 @@ public:
|
||||
constexpr static KDCoordinate TopMargin = 10;
|
||||
constexpr static KDCoordinate BottomMargin = 10;
|
||||
constexpr static KDCoordinate LabelMargin = 5;
|
||||
constexpr static KDCoordinate ParameterCellHeight = 35;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -5,3 +5,4 @@ constexpr KDCoordinate Metric::RightMargin;
|
||||
constexpr KDCoordinate Metric::TopMargin;
|
||||
constexpr KDCoordinate Metric::BottomMargin;
|
||||
constexpr KDCoordinate Metric::LabelMargin;
|
||||
constexpr KDCoordinate Metric::ParameterCellHeight;
|
||||
|
||||
Reference in New Issue
Block a user