[escher] Handle copy/cut event on selectable table view

This commit is contained in:
Émilie Feral
2018-06-06 13:51:52 +02:00
parent d56013ef17
commit 24c9549866
28 changed files with 79 additions and 62 deletions

View File

@@ -21,6 +21,7 @@ public:
/* HighlightCell */
void setHighlighted(bool highlight) override;
void reloadCell() override;
const char * text() const override { return m_scriptNodeView.text(); }
constexpr static char k_parentheses[] = "()";
constexpr static char k_parenthesesWithEmpty[] = {'(', Ion::Charset::Empty, ')', 0};
@@ -32,6 +33,9 @@ protected:
void setScriptStore(ScriptStore * scriptStore);
void drawRect(KDContext * ctx, KDRect rect) const override;
virtual KDSize minimalSizeForOptimalDisplay() const override;
const char * text() const override {
return m_scriptStore->scriptAtIndex(m_scriptNode->scriptIndex()).name();
}
private:
constexpr static KDText::FontSize k_fontSize = KDText::FontSize::Small;
constexpr static KDCoordinate k_verticalMargin = 7;