scroll near fixed
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Drawing.h
index 283a2338fc968a57f93129bc4e6a10a484eea194..279c402fe442a14249ab67f3a0529e9785d3a894 100644 (file)
@@ -6,24 +6,32 @@
 #include <gtk/gtk.h>
 #include <ltt/ltt.h>
 #include "CFV.h"
+#include "Draw_Item.h"
 
 /* This part of the viewer does :
  * Draw horizontal lines, getting graphic context as arg.
  * Copy region of the screen into another.
  * Modify the boundaries to reflect a scale change. (resize)
  * Refresh the physical screen with the pixmap
- * A helper function is provided here to convert from time and process
+ * A helper function is provided here to convert from time to process
  * identifier to pixels and the contrary (will be useful for mouse selection).
  * Insert an empty square in the drawing, moving the bottom part.
  *
+ * Note: The last point is exactly why it would not be so easy to add the
+ * vertical line functionnality as in the original version of LTT. In order
+ * to do so, we should keep all processes in the list for the duration of
+ * all the trace instead of dynamically adding and removing them when we
+ * scroll. Another possibility is to redraw all the visible area when a new
+ * process is added to the list. The second solution seems more appropriate
+ * to me.
+ * 
+ *
  * The pixmap used has the width of the physical window, but the height
  * of the shown processes.
  */
 
 typedef struct _Drawing_t Drawing_t;
 
-
-//FIXME : TEMPORARILY PLACED HERE FOR GC !!
 struct _Drawing_t {
        GtkWidget       *Drawing_Area_V;
        GdkPixmap       *Pixmap;
@@ -33,7 +41,6 @@ struct _Drawing_t {
 
 };
 
-
 Drawing_t *drawing_construct(ControlFlowData *Control_Flow_Data);
 void drawing_destroy(Drawing_t *Drawing);
 
@@ -68,17 +75,17 @@ void drawing_remove_square(Drawing_t *Drawing,
 //void Drawing_Resize(Drawing_t *Drawing, guint h, guint w);
 
 void convert_pixels_to_time(
-               Drawing_t *Drawing,
+               gint width,
                guint x,
                LttTime *window_time_begin,
                LttTime *window_time_end,
-               LttTime *begin);
+               LttTime *time);
 
 void convert_time_to_pixels(
                LttTime window_time_begin,
                LttTime window_time_end,
                LttTime time,
-               Drawing_t *Drawing,
+               gint width,
                guint *x);
 
 #endif // _DRAWING_H
This page took 0.023471 seconds and 4 git commands to generate.