summaryrefslogtreecommitdiffstats
path: root/grapher/GraphWidget.hxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-07 16:50:44 +0100
committerTim Moore <timoore@redhat.com>2009-12-07 16:50:44 +0100
commitb930d6ec364e35bb04a0860b1a5f2fbdee6effe3 (patch)
tree14e5b2a40e699715f924ead1d2fbc3b84cbb3a42 /grapher/GraphWidget.hxx
parent9156a0f81ec0316b11a7f5ad4db2bd92083e1614 (diff)
downloadsystemtap-steved-b930d6ec364e35bb04a0860b1a5f2fbdee6effe3.tar.gz
systemtap-steved-b930d6ec364e35bb04a0860b1a5f2fbdee6effe3.tar.xz
systemtap-steved-b930d6ec364e35bb04a0860b1a5f2fbdee6effe3.zip
Change data set list display to use a check box for inclusion in a graph
Incidently, this supports removing a data set from a graph. Also, remove the Add, Remove, and Cancel buttons from the data set dialog. * grapher/GraphWidget.hxx (DataModelColumns::_dataEnabled): new member _listConnection: new member * grapher/GraphWidget.cxx (GraphWidget): Delete connections for removed buttons. Connect to dialog show and hide signals instead of map. Add "Enabled" column to dialog list. (onDataAdd, onDataRemove): delete (onDataDialogOpen): Initialize list store with all data sets and hook up row_changed signal (onDataDialogClose, onRowChanged): new functions * grapher/graph-dialog.glade: Remove obsolete buttons (Add, Remove, Cancel).
Diffstat (limited to 'grapher/GraphWidget.hxx')
-rw-r--r--grapher/GraphWidget.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/grapher/GraphWidget.hxx b/grapher/GraphWidget.hxx
index ea10720c..146a08c3 100644
--- a/grapher/GraphWidget.hxx
+++ b/grapher/GraphWidget.hxx
@@ -18,10 +18,12 @@ namespace systemtap
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;
@@ -64,9 +66,8 @@ namespace systemtap
Gtk::Dialog* _dataDialog;
Gtk::TreeView* _dataTreeView;
void onDataDialogCancel();
- void onDataAdd();
- void onDataRemove();
void onDataDialogOpen();
+ void onDataDialogClose();
bool onHoverTimeout();
DataModelColumns _dataColumns;
Glib::RefPtr<Gtk::ListStore> _listStore;
@@ -81,6 +82,9 @@ namespace systemtap
Gtk::CheckButton* _relativeTimesButton;
bool _displayRelativeTimes;
void onRelativeTimesButtonClicked();
+ void onRowChanged(const Gtk::TreeModel::Path&,
+ const Gtk::TreeModel::iterator&);
+ sigc::connection _listConnection;
};
}
#endif // SYSTEMTAP_GRAPHWIDGET_H