add plugin interface to objects
[lttv.git] / ltt / branches / poly / lttv / modules / gui / lttvwindow / lttvwindow / lttvwindow.h
index f7c7441f4010acb4f2e34985bf352bdb24d31d54..e690ec570c70a62f1e7cea84a04de55fc2c30a11 100644 (file)
@@ -259,6 +259,7 @@ FIXME : explain other important events
 #include <lttv/stats.h>
 #include <lttv/filter.h>
 #include <lttvwindow/mainwindow.h>
+#include <lttvwindow/lttv_plugin.h>
 
 /* Module Related API */
 
@@ -266,7 +267,7 @@ FIXME : explain other important events
 extern GQuark LTTV_VIEWER_CONSTRUCTORS;
 
 /* constructor a the viewer */
-typedef GtkWidget* (*lttvwindow_viewer_constructor)(Tab *tab);
+typedef GtkWidget* (*lttvwindow_viewer_constructor)(LttvPlugin *plugin);
 
 
 /**
@@ -486,6 +487,18 @@ void lttvwindow_unregister_filter_notify(Tab *tab,
                                          gpointer     hook_data);
 
 
+/**
+ * Function to get the current filter of the main window : useful at viewer
+ * instanciation.
+ * 
+ * @param tab the tab the viewer belongs to.
+ *
+ * returns : the current filter.
+ */
+
+
+LttvFilter *lttvwindow_get_filter(Tab *tab);
+
 /**
  * Function to register a hook function for a viewer to set/update its 
  * current time.
@@ -699,6 +712,22 @@ void lttvwindow_events_request_remove_all(Tab            *tab,
                                           gconstpointer   viewer);
 
 
+/**
+ * Function to see if there are events request pending.
+ *
+ * It tells if events requests are pending. Useful for checks in some events,
+ * i.e. detailed event list scrolling.
+ * 
+ * @param tab the tab the viewer belongs to.
+ * @param viewer a pointer to the viewer data structure
+ * @return : TRUE is events requests are pending, else FALSE.
+ */
+
+gboolean lttvwindow_events_request_pending(Tab            *tab);
+
+
+
+
 /**
  * Function to get the current time interval shown on the current tab.
  * It will be called by a viewer's hook function to update the 
@@ -792,7 +821,10 @@ void set_time_window(Tab *tab, const TimeWindow *time_window);
 
 void set_current_time(Tab *tab, const LttTime *current_time);
 
-
 void events_request_free(EventsRequest *events_request);
 
+GtkWidget *main_window_get_widget(Tab *tab);
+
+void set_current_position(Tab *tab, const LttvTracesetContextPosition *pos);
+
 #endif //LTTVWINDOW_H
This page took 0.022801 seconds and 4 git commands to generate.