controlflow: move legend icon to plugin toolbar
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / cfv.h
index 0d2ca3323a58c0be78f6caa799f4f7773060525b..c8516e18e5774fa1c34a68dacb8e884cdb1d9e54 100644 (file)
 
 #include <gtk/gtk.h>
 #include <lttvwindow/mainwindow.h>
+#include <lttv/filter.h>
 #include "processlist.h"
+#include <lttvwindow/lttv_plugin_tab.h>
 
+extern GQuark LTT_NAME_CPU;
+
+#ifndef TYPE_DRAWING_T_DEFINED
+#define TYPE_DRAWING_T_DEFINED
+typedef struct _Drawing_t Drawing_t;
+#endif //TYPE_DRAWING_T_DEFINED
+
+#ifndef TYPE_CONTROLFLOWDATA_DEFINED
+#define TYPE_CONTROLFLOWDATA_DEFINED
+typedef struct _ControlFlowData ControlFlowData;
+#endif //TYPE_CONTROLFLOWDATA_DEFINED
 
 struct _ControlFlowData {
 
   GtkWidget *top_widget;
   Tab *tab;
-
+  LttvPluginTab *ptab;
+  
+  GtkWidget *hbox;
+  GtkWidget *toolbar; /* Vbox that contains the viewer's toolbar */
+  GtkToolItem *button_prop; /* Properties button. */
+  GtkToolItem *button_filter; /* Properties button. */
+  GtkToolItem *button_legend; /* Properties button. */
   GtkWidget *box; /* box that contains the hpaned. necessary for it to work */
   GtkWidget *h_paned;
 
@@ -38,7 +57,7 @@ struct _ControlFlowData {
 
   Drawing_t *drawing;
   GtkAdjustment *v_adjust ;
-  
+
   /* Shown events information */
 //  TimeWindow time_window;
 //  LttTime current_time;
@@ -48,19 +67,16 @@ struct _ControlFlowData {
   guint background_info_waiting; /* Number of background requests waited for
                                     in order to have all the info ready. */
 
-} ;
-
-
+  LttvFilter *filter;
 
-
-typedef struct _ControlFlowData ControlFlowData;
+} ;
 
 /* Control Flow Data constructor */
-ControlFlowData *guicontrolflow(void);
+ControlFlowData *guicontrolflow(LttvPluginTab *ptab);
 void
-guicontrolflow_destructor_full(ControlFlowData *control_flow_data);
+guicontrolflow_destructor_full(gpointer data);
 void
-guicontrolflow_destructor(ControlFlowData *control_flow_data);
+guicontrolflow_destructor(gpointer data);
 
 static inline GtkWidget *guicontrolflow_get_widget(
                                      ControlFlowData *control_flow_data)
This page took 0.023996 seconds and 4 git commands to generate.