6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "box_banner_view.h"
namespace Statistics {
BoxBannerView::BoxBannerView() :
m_calculationName(KDText::FontSize::Small, I18n::Message::Minimum, 0.0f, 0.5f, KDColorBlack, Palette::GreyMiddle),
m_calculationValue(KDText::FontSize::Small, 1.0f, 0.5f, KDColorBlack, Palette::GreyMiddle)
{
}
int BoxBannerView::numberOfSubviews() const {
return 2;
}
TextView * BoxBannerView::textViewAtIndex(int index) const {
const TextView * textViews[2] = {&m_calculationName, &m_calculationValue};
return (TextView *)textViews[index];
}
MessageTextView * BoxBannerView::messageTextViewAtIndex(int index) const {
if (index == 0) {
return (MessageTextView *)&m_calculationName;
}
return nullptr;
}
}
|