merge modifications for multiple viewer read at the same time, better expose handling...
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / drawing.h
index 6ffc61a52a624b14e57aafeb03245c8ef03cd500..29ac461c989812f892f78e6795326711cde665d2 100644 (file)
@@ -1,3 +1,22 @@
+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2003-2004 Mathieu Desnoyers
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
+ * MA 02111-1307, USA.
+ */
+
+
 #ifndef _DRAWING_H
 #define _DRAWING_H
 
 typedef struct _Drawing_t Drawing_t;
 
 struct _Drawing_t {
+  GtkWidget *vbox;
   GtkWidget *drawing_area;
+  GtkWidget *ruler;
   GdkPixmap *pixmap;
   ControlFlowData *control_flow_data;
   
   PangoLayout *pango_layout;
 
-  gint    height, width, depth;
+  gint      height, width, depth;
+  gboolean  data_injected;
   
 };
 
@@ -50,10 +72,7 @@ Drawing_t *drawing_construct(ControlFlowData *control_flow_data);
 void drawing_destroy(Drawing_t *drawing);
 
 GtkWidget *drawing_get_widget(Drawing_t *drawing);
-  
-//void drawing_Refresh (  Drawing_t *drawing,
-//      guint x, guint y,
-//      guint width, guint height);
+GtkWidget *drawing_get_drawing_area(Drawing_t *drawing);
 
 void drawing_draw_line( Drawing_t *drawing,
       GdkPixmap *pixmap,
@@ -82,8 +101,8 @@ void drawing_remove_square(Drawing_t *drawing,
 void convert_pixels_to_time(
     gint width,
     guint x,
-    LttTime *window_time_begin,
-    LttTime *window_time_end,
+    LttTime window_time_begin,
+    LttTime window_time_end,
     LttTime *time);
 
 void convert_time_to_pixels(
@@ -93,4 +112,10 @@ void convert_time_to_pixels(
     gint width,
     guint *x);
 
+void drawing_update_ruler(Drawing_t *drawing, TimeWindow *time_window);
+
+void drawing_data_request_end(Drawing_t *drawing,
+                              TimeWindow req_time_window);
+
+
 #endif // _DRAWING_H
This page took 0.023575 seconds and 4 git commands to generate.