X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Flttvwindow.h;h=e0a969a208fc05f0af43179045372bec3b26bb52;hb=41a9e0c379c701161640b4b87d5b92ecb6f654e0;hp=9711f561b68805d81c1658119a959daa8d4ddb97;hpb=e800cf849a08893a7325441a9614f018a00b129a;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h index 9711f561..e0a969a2 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.h @@ -119,8 +119,6 @@ Available report methods are : lttvwindow_report_time_window : reports the new time window. lttvwindow_report_current_time : reports the new current time. lttvwindow_report_dividor : reports the new horizontal dividor's position. -lttvwindow_report_focus : One on the widgets in the viewer has the keyboard's - focus from GTK. @@ -264,11 +262,11 @@ FIXME : explain other important events /* Module Related API */ +/* GQuark containing constructors of viewers in global attributes */ +extern GQuark LTTV_VIEWER_CONSTRUCTORS; /* constructor a the viewer */ -//FIXME explain LttvTracesetSelector and key -typedef GtkWidget * (*lttvwindow_viewer_constructor) - (Tab *tab, LttvTracesetSelector * s, char *key); +typedef GtkWidget* (*lttvwindow_viewer_constructor)(Tab *tab); /** @@ -278,7 +276,8 @@ typedef GtkWidget * (*lttvwindow_viewer_constructor) * window. * * It should be called by init function of the module. - * + * + * @param name name of the viewer : mainly used as tag for constructor * @param menu_path path of the menu item. NULL : no menu entry. * @param menu_text text of the menu item. * @param pixmap Image shown on the toolbar item. NULL : no button. @@ -287,7 +286,8 @@ typedef GtkWidget * (*lttvwindow_viewer_constructor) */ void lttvwindow_register_constructor - (char * menu_path, + (char * name, + char * menu_path, char * menu_text, char ** pixmap, char * tooltip, @@ -588,18 +588,6 @@ void lttvwindow_report_current_time(Tab *tab, void lttvwindow_report_dividor(Tab *tab, gint position); -/** - * Function to set the focused viewer of the tab. - * It will be called by a viewer's signal handle associated with - * the grab_focus signal of all widgets in the viewer. - * - * @param tab the tab the viewer belongs to. - * @param top_widget the top widget containing all the other widgets of the - * viewer. - */ -void lttvwindow_report_focus(Tab *tab, - GtkWidget *top_widget); - /* Structure sent to the events request hook */ /* Value considered as empty*/ @@ -613,6 +601,7 @@ typedef struct _EventsRequest { LttTime end_time; /* Unset : ltt_time_infinite*/ guint num_events; /* Unset : G_MAXUINT */ LttvTracesetContextPosition *end_position; /* Unset : NULL */ + gint trace; /* unset : -1 */ LttvHooks *before_chunk_traceset; /* Unset : NULL */ LttvHooks *before_chunk_trace; /* Unset : NULL */ LttvHooks *before_chunk_tracefile;/* Unset : NULL */ @@ -626,7 +615,7 @@ typedef struct _EventsRequest { } EventsRequest; /* Maximum number of events to proceed at once in a chunk */ -#define CHUNK_NUM_EVENTS 200 +#define CHUNK_NUM_EVENTS 500 /** @@ -674,7 +663,7 @@ void lttvwindow_events_request_remove_all(Tab *tab, * @return the current tab's time interval. */ -TimeWindow lttvwindow_get_time_window(Tab *tab); +__inline TimeWindow lttvwindow_get_time_window(Tab *tab); /**