#ifndef GRAPH_FUNCTION_H #define GRAPH_FUNCTION_H #include #include namespace Graph { class Function { public: Function(); Function(const char * text, KDColor m_color); ~Function(); // Delete expression and layout, if needed const char * text(); const char * name(); KDColor color() const { return m_color; } Expression * expression(); ExpressionLayout * layout(); bool isActive(); void setActive(bool active); private: const char * m_text; const char * m_name; KDColor m_color; Expression * m_expression; ExpressionLayout * m_layout; bool m_active; }; } #endif