Numworks Epsilon  1.4.1
Graphing Calculator Operating System
message_table_cell_with_editable_text.h
Go to the documentation of this file.
1 #ifndef ESCHER_MESSAGE_TABLE_CELL_WITH_EDITABLE_TEXT_H
2 #define ESCHER_MESSAGE_TABLE_CELL_WITH_EDITABLE_TEXT_H
3 
6 #include <escher/responder.h>
7 
9 public:
10  MessageTableCellWithEditableText(Responder * parentResponder, TextFieldDelegate * textFieldDelegate, char * draftTextBuffer, I18n::Message message = (I18n::Message)0);
11  View * accessoryView() const override;
12  const char * editedText() const;
13  void didBecomeFirstResponder() override;
14  bool isEditing();
15  void setEditing(bool isEditing);
16  void setHighlighted(bool highlight) override;
17  Responder * responder() override {
18  return this;
19  }
20  void setAccessoryText(const char * text);
21  void setTextColor(KDColor color) override;
22  constexpr static int k_bufferLength = TextField::maxBufferSize();
23 private:
24  void layoutSubviews() override;
25  constexpr static int k_maxNumberOfEditableCharacters = 14;
26  TextField m_textField;
27  char m_textBody[k_bufferLength];
28 };
29 
30 #endif
static constexpr int maxBufferSize()
Definition: text_field.h:23
Responder * parentResponder() const
Definition: responder.cpp:12
Definition: color.h:6
MessageTableCellWithEditableText(Responder *parentResponder, TextFieldDelegate *textFieldDelegate, char *draftTextBuffer, I18n::Message message=(I18n::Message) 0)
Definition: view.h:23