4 WarningController::ContentView::ContentView() :
10 void WarningController::ContentView::setLabel(I18n::Message label) {
11 m_textView.setMessage(label);
14 int WarningController::ContentView::numberOfSubviews()
const {
18 View * WarningController::ContentView::subviewAtIndex(
int index) {
22 void WarningController::ContentView::layoutSubviews() {
26 KDSize WarningController::ContentView::minimalSizeForOptimalDisplay()
const {
27 KDSize textSize = m_textView.minimalSizeForOptimalDisplay();
28 return KDSize(textSize.
width() + k_horizontalMargin, textSize.
height() + k_verticalMargin);
34 m_warningMessage(warningMessage)
39 m_contentView.setLabel(label);
47 return &m_contentView;
bool handleEvent(Ion::Events::Event event) override
void setFrame(KDRect frame)
const char * title() override
constexpr KDCoordinate width() const
void setLabel(I18n::Message message)
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
constexpr KDColor KDColorWhite
constexpr KDColor KDColorBlack
WarningController(Responder *parentResponder, I18n::Message warningMessage)
void dismissModalViewController()
constexpr KDCoordinate height() const