summaryrefslogtreecommitdiffstats
path: root/grapher/GraphWidget.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/GraphWidget.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/GraphWidget.hxx')
-rw-r--r--grapher/GraphWidget.hxx150
1 files changed, 75 insertions, 75 deletions
diff --git a/grapher/GraphWidget.hxx b/grapher/GraphWidget.hxx
index 89b86db9..f90da361 100644
--- a/grapher/GraphWidget.hxx
+++ b/grapher/GraphWidget.hxx
@@ -19,84 +19,84 @@
namespace systemtap
{
- class CairoPlayButton;
+class CairoPlayButton;
- class DataModelColumns : public Gtk::TreeModelColumnRecord
+class DataModelColumns : public Gtk::TreeModelColumnRecord
+{
+public:
+ DataModelColumns()
{
- public:
- DataModelColumns()
- {
- add(_dataEnabled);
- add(_dataName);
- add(_dataTitle);
- add(_graphData);
- }
- Gtk::TreeModelColumn<bool> _dataEnabled;
- Gtk::TreeModelColumn<Glib::ustring> _dataName;
- Gtk::TreeModelColumn<Glib::ustring> _dataTitle;
- Gtk::TreeModelColumn<std::tr1::shared_ptr<GraphDataBase> > _graphData;
- };
+ add(_dataEnabled);
+ add(_dataName);
+ add(_dataTitle);
+ add(_graphData);
+ }
+ Gtk::TreeModelColumn<bool> _dataEnabled;
+ Gtk::TreeModelColumn<Glib::ustring> _dataName;
+ Gtk::TreeModelColumn<Glib::ustring> _dataTitle;
+ Gtk::TreeModelColumn<std::tr1::shared_ptr<GraphDataBase> > _graphData;
+};
- class GraphWidget : public Gtk::DrawingArea
- {
- public:
- GraphWidget();
- virtual ~GraphWidget();
- void addGraph();
+class GraphWidget : public Gtk::DrawingArea
+{
+public:
+ GraphWidget();
+ virtual ~GraphWidget();
+ void addGraph();
- protected:
- typedef std::vector<std::tr1::shared_ptr<Graph> > GraphList;
- GraphList _graphs;
- // For click and drag
- std::tr1::shared_ptr<Graph> _activeGraph;
- // Dragging all graphs simultaneously, or perhaps seperately
- typedef std::vector<std::pair<double, double> > DragList;
- DragList dragCoords;
- //Override default signal handler:
- virtual bool on_expose_event(GdkEventExpose* event);
- virtual bool on_motion_notify_event(GdkEventMotion* event);
- virtual bool on_button_press_event(GdkEventButton* event);
- virtual bool on_button_release_event(GdkEventButton* event);
- virtual bool on_scroll_event(GdkEventScroll* event);
- bool on_timeout();
- virtual void on_size_request(Gtk::Requisition* req);
- bool _trackingDrag;
- double _dragOriginX;
- double _dragOriginY;
- double _dragOrigLeft;
- double _dragOrigRight;
- double _width;
- double _height;
- Glib::RefPtr<Gnome::Glade::Xml> _refXmlDataDialog;
- Gtk::Dialog* _dataDialog;
- Gtk::TreeView* _dataTreeView;
- void onDataDialogCancel();
- void onDataDialogOpen();
- void onDataDialogClose();
- bool onHoverTimeout();
- DataModelColumns _dataColumns;
- Glib::RefPtr<Gtk::ListStore> _listStore;
- sigc::connection _hover_timeout_connection;
- std::tr1::shared_ptr<CairoTextBox> _hoverText;
- double _mouseX;
- double _mouseY;
- int64_t _globalTimeBase;
- bool _timeBaseInitialized;
- std::tr1::shared_ptr<Graph> getGraphUnderPoint(double x, double y);
- void establishHoverTimeout();
- Gtk::CheckButton* _relativeTimesButton;
- bool _displayRelativeTimes;
- void onRelativeTimesButtonClicked();
- void onRowChanged(const Gtk::TreeModel::Path&,
- const Gtk::TreeModel::iterator&);
- sigc::connection _listConnection;
- bool no_select_fun(const Glib::RefPtr<Gtk::TreeModel>& model,
- const Gtk::TreeModel::Path& path,
- bool)
- {
- return false;
- }
- void onGraphDataChanged();
- };
+protected:
+ typedef std::vector<std::tr1::shared_ptr<Graph> > GraphList;
+ GraphList _graphs;
+ // For click and drag
+ std::tr1::shared_ptr<Graph> _activeGraph;
+ // Dragging all graphs simultaneously, or perhaps seperately
+ typedef std::vector<std::pair<double, double> > DragList;
+ DragList dragCoords;
+ //Override default signal handler:
+ virtual bool on_expose_event(GdkEventExpose* event);
+ virtual bool on_motion_notify_event(GdkEventMotion* event);
+ virtual bool on_button_press_event(GdkEventButton* event);
+ virtual bool on_button_release_event(GdkEventButton* event);
+ virtual bool on_scroll_event(GdkEventScroll* event);
+ bool on_timeout();
+ virtual void on_size_request(Gtk::Requisition* req);
+ bool _trackingDrag;
+ double _dragOriginX;
+ double _dragOriginY;
+ double _dragOrigLeft;
+ double _dragOrigRight;
+ double _width;
+ double _height;
+ Glib::RefPtr<Gnome::Glade::Xml> _refXmlDataDialog;
+ Gtk::Dialog* _dataDialog;
+ Gtk::TreeView* _dataTreeView;
+ void onDataDialogCancel();
+ void onDataDialogOpen();
+ void onDataDialogClose();
+ bool onHoverTimeout();
+ DataModelColumns _dataColumns;
+ Glib::RefPtr<Gtk::ListStore> _listStore;
+ sigc::connection _hover_timeout_connection;
+ std::tr1::shared_ptr<CairoTextBox> _hoverText;
+ double _mouseX;
+ double _mouseY;
+ int64_t _globalTimeBase;
+ bool _timeBaseInitialized;
+ std::tr1::shared_ptr<Graph> getGraphUnderPoint(double x, double y);
+ void establishHoverTimeout();
+ Gtk::CheckButton* _relativeTimesButton;
+ bool _displayRelativeTimes;
+ void onRelativeTimesButtonClicked();
+ void onRowChanged(const Gtk::TreeModel::Path&,
+ const Gtk::TreeModel::iterator&);
+ sigc::connection _listConnection;
+ bool no_select_fun(const Glib::RefPtr<Gtk::TreeModel>& model,
+ const Gtk::TreeModel::Path& path,
+ bool)
+ {
+ return false;
+ }
+ void onGraphDataChanged();
+};
}
#endif // SYSTEMTAP_GRAPHWIDGET_H