mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 03:29:58 +02:00
25 lines
922 B
C++
25 lines
922 B
C++
#ifndef ESCHER_MESSAGE_TABLE_CELL_WITH_BUFFER_H
|
|
#define ESCHER_MESSAGE_TABLE_CELL_WITH_BUFFER_H
|
|
|
|
#include <escher/message_table_cell.h>
|
|
#include <escher/buffer_text_view.h>
|
|
|
|
class MessageTableCellWithBuffer : public MessageTableCell {
|
|
public:
|
|
MessageTableCellWithBuffer(I18n::Message message = (I18n::Message)0, KDText::FontSize fontSize = KDText::FontSize::Small, KDText::FontSize accessoryFontSize = KDText::FontSize::Large, KDColor accessoryTextColor = KDColorBlack);
|
|
View * accessoryView() const override;
|
|
void setHighlighted(bool highlight) override;
|
|
void setAccessoryText(const char * textBody);
|
|
const char * accessoryText();
|
|
void setTextColor(KDColor color) override;
|
|
void setAccessoryTextColor(KDColor color);
|
|
void setAccessoryFontSize(KDText::FontSize fontSize);
|
|
const char * text() const override {
|
|
return m_accessoryView.text();
|
|
}
|
|
protected:
|
|
BufferTextView m_accessoryView;
|
|
};
|
|
|
|
#endif
|