summaryrefslogtreecommitdiffstats
path: root/grapher/Graph.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/Graph.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/Graph.hxx')
-rw-r--r--grapher/Graph.hxx82
1 files changed, 41 insertions, 41 deletions
diff --git a/grapher/Graph.hxx b/grapher/Graph.hxx
index c928fec2..efabd22d 100644
--- a/grapher/Graph.hxx
+++ b/grapher/Graph.hxx
@@ -16,46 +16,46 @@
namespace systemtap
{
- class Graph : public CairoWidget
- {
- public:
- friend class GraphWidget;
- Graph(double x = 0.0, double y = 0.0);
- virtual void draw(Cairo::RefPtr<Cairo::Context> cr);
- virtual bool containsPoint(double x, double y);
- double getLineWidth() { return _lineWidth; }
- void setLineWidth(double lineWidth) { _lineWidth = lineWidth; }
- bool getAutoScaling() const { return _autoScaling; }
- void setAutoScaling(bool val) { _autoScaling = val; }
- void addGraphData(std::tr1::shared_ptr<GraphDataBase> data);
- void getExtents(int64_t& left, int64_t& right, double& top, double& bottom)
- const;
- void setExtents(int64_t left, int64_t right, double top, double bottom);
- // extents of the whole graph area
- double _width;
- double _height;
- // Position, extents of the graph
- double _graphX;
- double _graphY;
- double _graphWidth;
- double _graphHeight;
- double _lineWidth;
- bool _autoScaling;
- bool _autoScrolling;
- double _zoomFactor;
- double _xOffset;
- double _yOffset;
- std::tr1::shared_ptr<CairoPlayButton> _playButton;
- int64_t _timeBase;
- GraphDataList& getDatasets() { return _datasets; }
- int64_t getTimeAtPoint(double x);
- void window2GraphCoords(double x, double y, double& xgraph, double& ygraph);
- protected:
- GraphDataList _datasets;
- int64_t _left;
- int64_t _right;
- double _top;
- double _bottom;
- };
+class Graph : public CairoWidget
+{
+public:
+ friend class GraphWidget;
+ Graph(double x = 0.0, double y = 0.0);
+ virtual void draw(Cairo::RefPtr<Cairo::Context> cr);
+ virtual bool containsPoint(double x, double y);
+ double getLineWidth() { return _lineWidth; }
+ void setLineWidth(double lineWidth) { _lineWidth = lineWidth; }
+ bool getAutoScaling() const { return _autoScaling; }
+ void setAutoScaling(bool val) { _autoScaling = val; }
+ void addGraphData(std::tr1::shared_ptr<GraphDataBase> data);
+ void getExtents(int64_t& left, int64_t& right, double& top, double& bottom)
+ const;
+ void setExtents(int64_t left, int64_t right, double top, double bottom);
+ // extents of the whole graph area
+ double _width;
+ double _height;
+ // Position, extents of the graph
+ double _graphX;
+ double _graphY;
+ double _graphWidth;
+ double _graphHeight;
+ double _lineWidth;
+ bool _autoScaling;
+ bool _autoScrolling;
+ double _zoomFactor;
+ double _xOffset;
+ double _yOffset;
+ std::tr1::shared_ptr<CairoPlayButton> _playButton;
+ int64_t _timeBase;
+ GraphDataList& getDatasets() { return _datasets; }
+ int64_t getTimeAtPoint(double x);
+ void window2GraphCoords(double x, double y, double& xgraph, double& ygraph);
+protected:
+ GraphDataList _datasets;
+ int64_t _left;
+ int64_t _right;
+ double _top;
+ double _bottom;
+};
}
#endif