following GTK convention
[lttv.git] / ltt / branches / poly / include / lttv / gtkTraceSet.h
index 62aaf2ad4f8f75e0685fe9702cc7ac62723981e2..ce2a37ef2a47e9ba609dc827628809087c12124b 100644 (file)
@@ -14,6 +14,7 @@
 #include <ltt/ltt.h>
 #include <lttv/hook.h>
 #include <lttv/common.h>
+#include <lttv/stats.h>
 
 /**
  * Function to register a view constructor so that main window can generate
@@ -69,7 +70,7 @@ void MenuItemUnreg(lttv_constructor view_constructor);
  */
 
 // Not Needed : Main window add widget returned by constructor
-//void AttachViewer(mainWindow *main_win, GtkWidget *viewer);
+//void AttachViewer(MainWindow *main_win, GtkWidget *viewer);
 
 
 /* ?? Maybe we do not need this function, when a widget is destroyed, 
@@ -83,7 +84,7 @@ void MenuItemUnreg(lttv_constructor view_constructor);
  * @param viewer viewer to be detached from the current tab.
  */
 
-//void DetachViewer(mainWindow *main_win, GtkWidget *viewer);
+//void DetachViewer(MainWindow *main_win, GtkWidget *viewer);
 
 
 /**
@@ -92,19 +93,19 @@ void MenuItemUnreg(lttv_constructor view_constructor);
  * @param info the message which will be shown in the status bar.
  */
 
-void UpdateStatus(mainWindow *main_win, char *info);
+void UpdateStatus(MainWindow *main_win, char *info);
 
 
 /**
- * Function to get the current time interval of the current tab.
+ * Function to get the current time window of the current tab.
  * It will be called by a viewer's hook function to update the 
- * time interval of the viewer and also be called by the constructor
+ * time window of the viewer and also be called by the constructor
  * of the viewer.
  * @param main_win the main window the viewer belongs to.
  * @param time_interval a pointer where time interval will be stored.
  */
 
-void GetTimeInterval(mainWindow *main_win, TimeInterval *time_interval);
+void GetTimeWindow(MainWindow *main_win, TimeWindow *time_window);
 
 
 /**
@@ -115,8 +116,12 @@ void GetTimeInterval(mainWindow *main_win, TimeInterval *time_interval);
  * @param time_interval a pointer where time interval is stored.
  */
 
-void SetTimeInterval(mainWindow *main_win, TimeInterval *time_interval);
+void SetTimeWindow(MainWindow *main_win, TimeWindow *time_window);
 
+/**
+ * Function to get the time span of the main window's traceset.
+ */
+void GetTracesetTimeSpan(MainWindow *main_win, TimeInterval *time_interval);
 
 /**
  * Function to get the current time/event of the current tab.
@@ -126,7 +131,7 @@ void SetTimeInterval(mainWindow *main_win, TimeInterval *time_interval);
  * @param time a pointer where time will be stored.
  */
 
-void GetCurrentTime(mainWindow *main_win, LttTime *time);
+void GetCurrentTime(MainWindow *main_win, LttTime *time);
 
 
 /**
@@ -137,7 +142,7 @@ void GetCurrentTime(mainWindow *main_win, LttTime *time);
  * @param time a pointer where time is stored.
  */
 
-void SetCurrentTime(mainWindow *main_win, LttTime *time);
+void SetCurrentTime(MainWindow *main_win, LttTime *time);
 
 
 /**
@@ -148,7 +153,7 @@ void SetCurrentTime(mainWindow *main_win, LttTime *time);
  * @param traceset a pointer to a traceset.
  */
 
-//void GetTraceset(mainWindow *main_win, Traceset *traceset);
+//void GetTraceset(MainWindow *main_win, Traceset *traceset);
 
 
 /**
@@ -159,33 +164,33 @@ void SetCurrentTime(mainWindow *main_win, LttTime *time);
  * @param filter, a pointer to a filter.
  */
 
-//void GetFilter(mainWindow *main_win, Filter *filter);
+//void GetFilter(MainWindow *main_win, Filter *filter);
 
 
 /**
  * Function to register a hook function for a viewer to set/update its
  * time interval.
  * It will be called by the constructor of the viewer.
- * @param hook hook function of the viewer.
+ * @param hook hook function of the viewer. Takes a TimeInterval* as call_data.
  * @param hook_data hook data associated with the hook function.
  * @param main_win the main window the viewer belongs to.
  */
 
 void RegUpdateTimeInterval(LttvHook hook, gpointer hook_data,
-                          mainWindow * main_win);
+                          MainWindow * main_win);
 
 
 /**
  * Function to unregister a viewer's hook function which is used to 
  * set/update the time interval of the viewer.
  * It will be called by the destructor of the viewer.
- * @param hook hook function of the viewer.
+ * @param hook hook function of the viewer. Takes a TimeInterval as call_data.
  * @param hook_data hook data associated with the hook function.
  * @param main_win the main window the viewer belongs to.
  */
 
 void UnregUpdateTimeInterval(LttvHook hook, gpointer hook_data,
-                            mainWindow * main_win);
+                            MainWindow * main_win);
 
 
 /**
@@ -198,7 +203,7 @@ void UnregUpdateTimeInterval(LttvHook hook, gpointer hook_data,
  */
 
 void RegUpdateTraceset(LttvHook hook, gpointer hook_data,
-                      mainWindow * main_win);
+                      MainWindow * main_win);
 
 
 /**
@@ -211,7 +216,7 @@ void RegUpdateTraceset(LttvHook hook, gpointer hook_data,
  */
 
 void UnregUpdateTraceset(LttvHook hook, gpointer hook_data,
-                        mainWindow * main_win);
+                        MainWindow * main_win);
 
 
 /**
@@ -224,7 +229,7 @@ void UnregUpdateTraceset(LttvHook hook, gpointer hook_data,
  */
 
 void RegUpdateFilter(LttvHook hook, gpointer hook_data, 
-                    mainWindow *main_win);
+                    MainWindow *main_win);
 
 
 /**
@@ -237,7 +242,7 @@ void RegUpdateFilter(LttvHook hook, gpointer hook_data,
  */
 
 void UnregUpdateFilter(LttvHook hook,  gpointer hook_data,
-                      mainWindow * main_win);
+                      MainWindow * main_win);
 
 
 /**
@@ -250,7 +255,7 @@ void UnregUpdateFilter(LttvHook hook,  gpointer hook_data,
  */
 
 void RegUpdateCurrentTime(LttvHook hook, gpointer hook_data, 
-                         mainWindow *main_win);
+                         MainWindow *main_win);
 
 
 /**
@@ -263,7 +268,7 @@ void RegUpdateCurrentTime(LttvHook hook, gpointer hook_data,
  */
 
 void UnregUpdateCurrentTime(LttvHook hook, gpointer hook_data,
-                           mainWindow * main_win);
+                           MainWindow * main_win);
 
 
 /**
@@ -274,7 +279,7 @@ void UnregUpdateCurrentTime(LttvHook hook, gpointer hook_data,
  * @param paned a pointer to a pane where the viewer is contained.
  */
 
-void SetFocusedPane(mainWindow *main_win, gpointer paned);
+void SetFocusedPane(MainWindow *main_win, gpointer paned);
 
 
 /**
@@ -287,7 +292,7 @@ void SetFocusedPane(mainWindow *main_win, gpointer paned);
  */
 
 void RegUpdateDividor(LttvHook hook, gpointer hook_data, 
-                     mainWindow *main_win);
+                     MainWindow *main_win);
 
 
 /**
@@ -300,7 +305,7 @@ void RegUpdateDividor(LttvHook hook, gpointer hook_data,
  */
 
 void UnregUpdateDividor(LttvHook hook, gpointer hook_data, 
-                       mainWindow *main_win);
+                       MainWindow *main_win);
 
 
 /**
@@ -311,7 +316,7 @@ void UnregUpdateDividor(LttvHook hook, gpointer hook_data,
  * @param position position of the hpane's dividor.
  */
 
-void SetHPaneDividor(mainWindow *main_win, gint position);
+void SetHPaneDividor(MainWindow *main_win, gint position);
 
 
 /**
@@ -322,7 +327,7 @@ void SetHPaneDividor(mainWindow *main_win, gint position);
  * @param end the end time of the last event to be processed.
  */
 
-void processTraceset(mainWindow *main_win, LttTime start, 
+void processTraceset(MainWindow *main_win, LttTime start, 
                     LttTime end, unsigned maxNumEvents);
 
 
@@ -334,7 +339,7 @@ void processTraceset(mainWindow *main_win, LttTime start,
  * @param LttvHooks hooks to be registered.
  */
 
-void contextAddHooks(mainWindow *main_win ,
+void contextAddHooks(MainWindow *main_win ,
                     LttvHooks *before_traceset, 
                     LttvHooks *after_traceset,
                     LttvHooks *check_trace, 
@@ -356,7 +361,7 @@ void contextAddHooks(mainWindow *main_win ,
  * @param LttvHooks hooks to be registered.
  */
 
-void contextRemoveHooks(mainWindow *main_win ,
+void contextRemoveHooks(MainWindow *main_win ,
                        LttvHooks *before_traceset, 
                        LttvHooks *after_traceset,
                        LttvHooks *check_trace, 
@@ -377,4 +382,30 @@ void contextRemoveHooks(mainWindow *main_win ,
  * @param end end time of the traceset.
  */
 
-void getTracesetTimeSpan(mainWindow *main_win, LttTime * start, LttTime* end);
+void getTracesetTimeSpan(MainWindow *main_win, TimeInterval *time_span);
+
+
+/**
+ * Function to add/remove event hooks for state 
+ * @param main_win the main window the viewer belongs to.
+ */
+
+void stateAddEventHooks(MainWindow *main_win );
+void stateRemoveEventHooks(MainWindow *main_win );
+
+
+/**
+ * Function to add/remove event hooks for stats 
+ * @param main_win the main window the viewer belongs to.
+ */
+
+void statsAddEventHooks(MainWindow *main_win );
+void statsRemoveEventHooks(MainWindow *main_win );
+
+
+/**
+ * Function to get the stats of the traceset 
+ * @param main_win the main window the viewer belongs to.
+ */
+
+LttvTracesetStats* getTracesetStats(MainWindow *main_win);
This page took 0.029213 seconds and 4 git commands to generate.