Numworks Epsilon
1.4.1
Graphing Calculator Operating System
message_table_cell_with_chevron_and_message.cpp
Go to the documentation of this file.
1
#include <
escher/message_table_cell_with_chevron_and_message.h
>
2
#include <
escher/palette.h
>
3
4
MessageTableCellWithChevronAndMessage::MessageTableCellWithChevronAndMessage
(
KDText::FontSize
labelSize,
KDText::FontSize
contentSize) :
5
MessageTableCellWithChevron
((
I18n
::Message)0, labelSize),
6
m_subtitleView(contentSize, (
I18n
::Message)0, 1.0f, 0.5f,
Palette
::GreyDark)
7
{
8
}
9
10
View
*
MessageTableCellWithChevronAndMessage::subAccessoryView
()
const
{
11
return
(
View
*)&m_subtitleView;
12
}
13
14
void
MessageTableCellWithChevronAndMessage::setHighlighted
(
bool
highlight) {
15
MessageTableCellWithChevron::setHighlighted
(highlight);
16
KDColor
backgroundColor =
isHighlighted
()?
Palette::Select
:
KDColorWhite
;
17
m_subtitleView.
setBackgroundColor
(backgroundColor);
18
}
19
20
void
MessageTableCellWithChevronAndMessage::setSubtitle
(I18n::Message text) {
21
m_subtitleView.
setMessage
(text);
22
reloadCell
();
23
layoutSubviews
();
24
}
I18n
Definition:
i18n.h:6
message_table_cell_with_chevron_and_message.h
KDColorWhite
constexpr KDColor KDColorWhite
Definition:
color.h:42
MessageTableCellWithChevronAndMessage::MessageTableCellWithChevronAndMessage
MessageTableCellWithChevronAndMessage(KDText::FontSize labelSize=KDText::FontSize::Small, KDText::FontSize contentSize=KDText::FontSize::Small)
Definition:
message_table_cell_with_chevron_and_message.cpp:4
Palette::Select
static constexpr KDColor Select
Definition:
palette.h:17
MessageTextView::setMessage
void setMessage(I18n::Message message)
Definition:
message_text_view.cpp:19
HighlightCell::isHighlighted
bool isHighlighted() const
Definition:
highlight_cell.h:11
MessageTableCell::setHighlighted
virtual void setHighlighted(bool highlight) override
Definition:
message_table_cell.cpp:15
MessageTableCellWithChevronAndMessage::setSubtitle
void setSubtitle(I18n::Message text)
Definition:
message_table_cell_with_chevron_and_message.cpp:20
TableCell::layoutSubviews
void layoutSubviews() override
Definition:
table_cell.cpp:37
MessageTableCellWithChevronAndMessage::subAccessoryView
View * subAccessoryView() const override
Definition:
message_table_cell_with_chevron_and_message.cpp:10
KDColor
Definition:
color.h:6
View
Definition:
view.h:23
palette.h
HighlightCell::reloadCell
virtual void reloadCell()
Definition:
highlight_cell.cpp:16
MessageTableCellWithChevronAndMessage::setHighlighted
void setHighlighted(bool highlight) override
Definition:
message_table_cell_with_chevron_and_message.cpp:14
TextView::setBackgroundColor
void setBackgroundColor(KDColor backgroundColor)
Definition:
text_view.cpp:14
KDText::FontSize
FontSize
Definition:
text.h:10
MessageTableCellWithChevron
Definition:
message_table_cell_with_chevron.h:7
Palette
Definition:
palette.h:6
epsilon
escher
src
message_table_cell_with_chevron_and_message.cpp
Generated by
1.8.14