typedef struct _StatisticViewerData StatisticViewerData;
//! Statistic Viewer's constructor hook
-GtkWidget *h_gui_statistic(MainWindow *parent_window);
+GtkWidget *h_gui_statistic(MainWindow *parent_window, LttvTracesetSelector * s, char* key);
//! Statistic Viewer's constructor
-StatisticViewerData *gui_statistic(MainWindow *parent_window);
+StatisticViewerData *gui_statistic(MainWindow *parent_window,LttvTracesetSelector * s, char* key);
//! Statistic Viewer's destructor
void gui_statistic_destructor(StatisticViewerData *statistic_viewer_data);
void gui_statistic_free(StatisticViewerData *statistic_viewer_data);
}
/* Register the toolbar insert button */
- ToolbarItemReg(hGuiStatisticInsert_xpm, "Insert Statistic Viewer", h_gui_statistic);
+ toolbar_item_reg(hGuiStatisticInsert_xpm, "Insert Statistic Viewer", h_gui_statistic);
/* Register the menu item insert entry */
- MenuItemReg("/", "Insert Statistic Viewer", h_gui_statistic);
+ menu_item_reg("/", "Insert Statistic Viewer", h_gui_statistic);
}
}
/* Unregister the toolbar insert button */
- ToolbarItemUnreg(h_gui_statistic);
+ toolbar_item_unreg(h_gui_statistic);
/* Unregister the menu item insert entry */
- MenuItemUnreg(h_gui_statistic);
+ menu_item_unreg(h_gui_statistic);
}
* @return The widget created.
*/
GtkWidget *
-h_gui_statistic(MainWindow * parent_window)
+h_gui_statistic(MainWindow * parent_window, LttvTracesetSelector * s, char* key)
{
- StatisticViewerData* statistic_viewer_data = gui_statistic(parent_window) ;
+ StatisticViewerData* statistic_viewer_data = gui_statistic(parent_window, s, key) ;
if(statistic_viewer_data)
return statistic_viewer_data->hpaned_v;
* @return The Statistic viewer data created.
*/
StatisticViewerData *
-gui_statistic(MainWindow *parent_window)
+gui_statistic(MainWindow *parent_window, LttvTracesetSelector * s, char* key)
{
GtkCellRenderer *renderer;
GtkTreeViewColumn *column;
StatisticViewerData* statistic_viewer_data = g_new(StatisticViewerData,1);
statistic_viewer_data->mw = parent_window;
- statistic_viewer_data->stats = getTracesetStats(statistic_viewer_data->mw);
+ statistic_viewer_data->stats = get_traceset_stats_api(statistic_viewer_data->mw);
statistic_viewer_data->statistic_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
statistic_destroy_hash_key,
gtk_widget_show(statistic_viewer_data->text_v);
gtk_widget_show(statistic_viewer_data->hpaned_v);
+ g_object_set_data(
+ G_OBJECT(statistic_viewer_data->hpaned_v),
+ key,
+ s);
+
g_object_set_data_full(
G_OBJECT(statistic_viewer_data->hpaned_v),
"statistic_viewer_data",
{
StatisticViewerData *statistic_viewer_data = (StatisticViewerData *)data;
MainWindow * mw = statistic_viewer_data->mw;
- SetFocusedPane(mw, gtk_widget_get_parent(statistic_viewer_data->hpaned_v));
+ set_focused_pane(mw, gtk_widget_get_parent(statistic_viewer_data->hpaned_v));
}
static void
end.tv_sec = G_MAXULONG;
end.tv_nsec = G_MAXULONG;
- stateAddEventHooks(statistic_viewer_data->mw);
- statsAddEventHooks(statistic_viewer_data->mw);
+ state_add_event_hooks_api(statistic_viewer_data->mw);
+ stats_add_event_hooks_api(statistic_viewer_data->mw);
- processTraceset(statistic_viewer_data->mw, start, end, G_MAXULONG);
+ process_traceset_api(statistic_viewer_data->mw, start, end, G_MAXULONG);
- stateRemoveEventHooks(statistic_viewer_data->mw);
- statsRemoveEventHooks(statistic_viewer_data->mw);
+ state_remove_event_hooks_api(statistic_viewer_data->mw);
+ stats_remove_event_hooks_api(statistic_viewer_data->mw);
//establish tree view for stats
show_traceset_stats(statistic_viewer_data);