void * create_tab(MainWindow * parent, MainWindow * current_window,
GtkNotebook * notebook, char * label);
-void insert_viewer(GtkWidget* widget, view_constructor constructor);
+void insert_viewer(GtkWidget* widget, lttvwindow_viewer_constructor constructor);
void update_filter(LttvTracesetSelector *s, GtkTreeStore *store );
void checkbox_changed(GtkTreeView *treeview,
{
guint val = 20;
- insert_viewer((GtkWidget*)menuitem, (view_constructor)user_data);
+ insert_viewer((GtkWidget*)menuitem, (lttvwindow_viewer_constructor)user_data);
// selected_hook(&val);
}
/* internal functions */
-void insert_viewer(GtkWidget* widget, view_constructor constructor)
+void insert_viewer(GtkWidget* widget, lttvwindow_viewer_constructor constructor)
{
GtkMultiVPaned * multi_vpaned;
MainWindow * mw_data;
}
redraw_viewer(mw_data,&time_window);
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
if(time_interval){
- set_time_window(mw_data,&t);
+ lttvwindow_report_time_window(mw_data,&t);
}
}
}
GdkCursor * new;
GtkWidget* widget;
LttvTracesetContext *tsc =
- LTTV_TRACESET_CONTEXT(main_win->current_tab->traceset_info->
+ LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->
traceset_context);
//set the cursor to be X shape, indicating that the computer is busy in doing its job
gdk_window_unstick(win);
//update time window of each viewer, let viewer insert hooks needed by process_traceset
- set_time_window(mw_data, time_window);
+ lttvwindow_report_time_window(mw_data, time_window);
max_nb_events = get_max_event_number(mw_data);
//update current tab
update_traceset(mw_data);
- get_traceset_time_span(mw_data,LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->traceset_context)->Time_Span);
+ //get_traceset_time_span(mw_data,LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->traceset_context)->Time_Span);
if(lttv_traceset_number(mw_data->current_tab->traceset_info->traceset) == 1 ||
ltt_time_compare(mw_data->current_tab->current_time,
LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->traceset_context)->Time_Span->startTime)<0){
}
redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
break;
case GTK_RESPONSE_REJECT:
case GTK_RESPONSE_CANCEL:
update_traceset(mw_data);
if(nb_trace > 1){
redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
}else{
if(mw_data->current_tab){
while(mw_data->current_tab->multi_vpaned->num_children){
time_window.start_time = time_s;
}
redraw_viewer(mw_data, &time_window);
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
gtk_multi_vpaned_set_adjust(mw_data->current_tab->multi_vpaned, FALSE);
}
if(get_filter_selection(s, "Configure trace and tracefile filter", "Select traces and tracefiles")){
update_traceset(mw_data);
redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
- set_current_time(mw_data,&(mw_data->current_tab->current_time));
+ lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
}
}
{
int i;
GdkPixbuf *pixbuf;
- view_constructor constructor;
+ lttvwindow_viewer_constructor constructor;
LttvMenus * menu;
LttvToolbars * toolbar;
lttv_menu_closure *menu_item;
* main windows
*/
-void main_window_remove_menu_item(lttv_constructor constructor)
+void main_window_remove_menu_item(lttvwindow_viewer_constructor constructor)
{
int i;
LttvMenus * menu;
}
-void main_window_remove_toolbar_item(lttv_constructor constructor)
+void main_window_remove_toolbar_item(lttvwindow_viewer_constructor constructor)
{
int i;
LttvToolbars * toolbar;