From 32902edf1f17bb62144f21ed38ae085bd2755e9f Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Mon, 21 Dec 2009 10:46:57 +0100 Subject: change namespace indentation to 0 A silly change, but this works better with other tools, like git diff. I should have started the C++ files this way. --- grapher/GraphStyle.hxx | 84 +++++++++++++++++++++++++------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'grapher/GraphStyle.hxx') diff --git a/grapher/GraphStyle.hxx b/grapher/GraphStyle.hxx index bea4922a..4924ed2e 100644 --- a/grapher/GraphStyle.hxx +++ b/grapher/GraphStyle.hxx @@ -14,53 +14,53 @@ namespace systemtap { - class GraphDataBase; - class Graph; +class GraphDataBase; +class Graph; - class GraphStyle +class GraphStyle +{ +public: + virtual void draw(std::tr1::shared_ptr graphData, + Graph* graph, Cairo::RefPtr cr) = 0; + virtual ssize_t dataIndexAtPoint(double x, double y, + std::tr1::shared_ptr + graphData, + std::tr1::shared_ptr graph) { - public: - virtual void draw(std::tr1::shared_ptr graphData, - Graph* graph, Cairo::RefPtr cr) = 0; - virtual ssize_t dataIndexAtPoint(double x, double y, - std::tr1::shared_ptr - graphData, - std::tr1::shared_ptr graph) - { - return -1; - } - }; + return -1; + } +}; - class GraphStyleBar : public GraphStyle - { - public: - void draw(std::tr1::shared_ptr graphData, - Graph* graph, Cairo::RefPtr cr); +class GraphStyleBar : public GraphStyle +{ +public: + void draw(std::tr1::shared_ptr graphData, + Graph* graph, Cairo::RefPtr cr); - static GraphStyleBar instance; - ssize_t dataIndexAtPoint(double x, double y, - std::tr1::shared_ptr graphData, - std::tr1::shared_ptr graph); - }; + static GraphStyleBar instance; + ssize_t dataIndexAtPoint(double x, double y, + std::tr1::shared_ptr graphData, + std::tr1::shared_ptr graph); +}; - class GraphStyleDot : public GraphStyle - { - public: - void draw(std::tr1::shared_ptr graphData, - Graph* graph, Cairo::RefPtr cr); - static GraphStyleDot instance; - }; +class GraphStyleDot : public GraphStyle +{ +public: + void draw(std::tr1::shared_ptr graphData, + Graph* graph, Cairo::RefPtr cr); + static GraphStyleDot instance; +}; - class GraphStyleEvent : public GraphStyle - { - public: - void draw(std::tr1::shared_ptr graphData, - Graph* graph, Cairo::RefPtr cr); - virtual ssize_t dataIndexAtPoint(double x, double y, - std::tr1::shared_ptr - graphData, - std::tr1::shared_ptr graph); - static GraphStyleEvent instance; - }; +class GraphStyleEvent : public GraphStyle +{ +public: + void draw(std::tr1::shared_ptr graphData, + Graph* graph, Cairo::RefPtr cr); + virtual ssize_t dataIndexAtPoint(double x, double y, + std::tr1::shared_ptr + graphData, + std::tr1::shared_ptr graph); + static GraphStyleEvent instance; +}; } #endif -- cgit