summaryrefslogtreecommitdiffstats
path: root/grapher/GraphStyle.hxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-21 10:46:57 +0100
committerTim Moore <timoore@redhat.com>2009-12-21 10:46:57 +0100
commit32902edf1f17bb62144f21ed38ae085bd2755e9f (patch)
tree7b9c8b185baf80b03e5509cc05ede7cf2f490910 /grapher/GraphStyle.hxx
parent261135850dbd4a2efd7d4cbd3d0e3dcde46688ee (diff)
downloadsystemtap-steved-32902edf1f17bb62144f21ed38ae085bd2755e9f.tar.gz
systemtap-steved-32902edf1f17bb62144f21ed38ae085bd2755e9f.tar.xz
systemtap-steved-32902edf1f17bb62144f21ed38ae085bd2755e9f.zip
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.
Diffstat (limited to 'grapher/GraphStyle.hxx')
-rw-r--r--grapher/GraphStyle.hxx84
1 files changed, 42 insertions, 42 deletions
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<GraphDataBase> graphData,
+ Graph* graph, Cairo::RefPtr<Cairo::Context> cr) = 0;
+ virtual ssize_t dataIndexAtPoint(double x, double y,
+ std::tr1::shared_ptr<GraphDataBase>
+ graphData,
+ std::tr1::shared_ptr<Graph> graph)
{
- public:
- virtual void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
- Graph* graph, Cairo::RefPtr<Cairo::Context> cr) = 0;
- virtual ssize_t dataIndexAtPoint(double x, double y,
- std::tr1::shared_ptr<GraphDataBase>
- graphData,
- std::tr1::shared_ptr<Graph> graph)
- {
- return -1;
- }
- };
+ return -1;
+ }
+};
- class GraphStyleBar : public GraphStyle
- {
- public:
- void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
- Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
+class GraphStyleBar : public GraphStyle
+{
+public:
+ void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
+ Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
- static GraphStyleBar instance;
- ssize_t dataIndexAtPoint(double x, double y,
- std::tr1::shared_ptr<GraphDataBase> graphData,
- std::tr1::shared_ptr<Graph> graph);
- };
+ static GraphStyleBar instance;
+ ssize_t dataIndexAtPoint(double x, double y,
+ std::tr1::shared_ptr<GraphDataBase> graphData,
+ std::tr1::shared_ptr<Graph> graph);
+};
- class GraphStyleDot : public GraphStyle
- {
- public:
- void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
- Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
- static GraphStyleDot instance;
- };
+class GraphStyleDot : public GraphStyle
+{
+public:
+ void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
+ Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
+ static GraphStyleDot instance;
+};
- class GraphStyleEvent : public GraphStyle
- {
- public:
- void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
- Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
- virtual ssize_t dataIndexAtPoint(double x, double y,
- std::tr1::shared_ptr<GraphDataBase>
- graphData,
- std::tr1::shared_ptr<Graph> graph);
- static GraphStyleEvent instance;
- };
+class GraphStyleEvent : public GraphStyle
+{
+public:
+ void draw(std::tr1::shared_ptr<GraphDataBase> graphData,
+ Graph* graph, Cairo::RefPtr<Cairo::Context> cr);
+ virtual ssize_t dataIndexAtPoint(double x, double y,
+ std::tr1::shared_ptr<GraphDataBase>
+ graphData,
+ std::tr1::shared_ptr<Graph> graph);
+ static GraphStyleEvent instance;
+};
}
#endif