#ifndef CODE_PYTHON_TEXT_AREA_H #define CODE_PYTHON_TEXT_AREA_H #include namespace Code { class PythonTextArea : public TextArea { public: PythonTextArea(Responder * parentResponder, KDText::FontSize fontSize) : TextArea(parentResponder, &m_contentView, fontSize), m_contentView(fontSize) { } protected: class ContentView : public TextArea::ContentView { public: ContentView(KDText::FontSize fontSize); void drawRect(KDContext * ctx, KDRect rect) const override; }; private: const ContentView * nonEditableContentView() const override { return &m_contentView; } ContentView m_contentView; }; } #endif