rectangle draw : need modif to the main window so the module known it's ready for...
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 29 Sep 2003 12:26:07 +0000 (12:26 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 29 Sep 2003 12:26:07 +0000 (12:26 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@278 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/guiControlFlow/CFV.c
ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.c
ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.c
ltt/branches/poly/lttv/modules/guiControlFlow/Event_Hooks.h

index 2233e33240f005b6e5a8d3115fd549a092365092..aae13cf7aa9fe401900b7253d111a404eaf67b85 100644 (file)
@@ -147,7 +147,12 @@ GuiControlFlow(void)
                        
        g_slist_append(gControl_Flow_Data_List,Control_Flow_Data);
 
-       send_test_data(Control_Flow_Data->Process_List);
+       //FIXME : data sent too fast. The widget must be 
+       //inserted in the main window before the Drawing area
+       //can be configured (and this must happend bedore sending
+       //data)
+       send_test_data(Control_Flow_Data->Process_List,
+                       Control_Flow_Data->Drawing);
        
        return Control_Flow_Data;
 
index 572f4510650575a4d33acf22809295d777100dc7..2f1312aad21c1fa7de4fa044ac8e24f5417ba94b 100644 (file)
@@ -349,7 +349,7 @@ void Drawing_Insert_Square(Drawing_t *Drawing,
 
        /* add an empty square */
        gdk_draw_rectangle (Pixmap,
-               Drawing->Drawing_Area_V->style->white_gc,
+               Drawing->Drawing_Area_V->style->black_gc,
                TRUE,
                0, y,
                Drawing->width, // do not overlap
index bc278874d8561e79752a8bd4a5dd8b232f2c6dbd..5cbdae73e33975d1ac43614012faea9c6dae0af7 100644 (file)
 #include "Event_Hooks.h"
 #include "CFV.h"
 #include "Process_List.h"
+#include "Drawing.h"
 
-void send_test_data(ProcessList *Process_List)
+void send_test_data(ProcessList *Process_List, Drawing_t *Drawing)
 {
-       guint height;
+       guint height, size;
        int i;
        ProcessInfo Process_Info = {10000, 12000, 55600};
        //ProcessInfo Process_Info = {156, 14000, 55500};
@@ -30,7 +31,8 @@ void send_test_data(ProcessList *Process_List)
                        1,
                        &birth,
                        &height);
-
+       Drawing_Insert_Square( Drawing, height, 5);
+       
        g_critical("height : %u", height);
        
        birth.tv_sec = 14000;
@@ -40,6 +42,7 @@ void send_test_data(ProcessList *Process_List)
                        156,
                        &birth,
                        &height);
+       Drawing_Insert_Square( Drawing, height, 5);
 
        g_critical("height : %u", height);
 
@@ -50,6 +53,7 @@ void send_test_data(ProcessList *Process_List)
                        10,
                        &birth,
                        &height);
+       Drawing_Insert_Square( Drawing, height, 5);
 
        for(i=0; i<10; i++)
        {
@@ -60,6 +64,7 @@ void send_test_data(ProcessList *Process_List)
                                i,
                                &birth,
                                &height);
+       Drawing_Insert_Square( Drawing, height, 5);
 
        }
        g_critical("height : %u", height);
@@ -71,18 +76,26 @@ void send_test_data(ProcessList *Process_List)
                        10,
                        &birth,
                        &height);
+       Drawing_Insert_Square( Drawing, height, 5);
        g_critical("height : %u", height);
 
        ProcessList_add(Process_List,
                        10000,
                        &birth,
                        &height);
+       Drawing_Insert_Square( Drawing, height, 5);
        g_critical("height : %u", height);
 
 
+       ProcessList_get_process_pixels(Process_List,
+                               10000,
+                               &birth,
+                               &height, &size);
        ProcessList_remove(     Process_List,
                                10000,
                                &birth);
+
+       Drawing_Remove_Square( Drawing, height, 5);
        
        if(got_RowRef = 
                (GtkTreeRowReference*)g_hash_table_lookup(
index 329718d086066a6d47ff480ae9c32c75836d7d75..479b3a35e5f5c551e36549985cfca6d6788fb905 100644 (file)
@@ -10,8 +10,9 @@
 #include <gtk/gtk.h>
 #include <lttv/mainWindow.h>
 #include "Process_List.h"
+#include "Drawing.h"
 
-void send_test_data(ProcessList *Process_List);
+void send_test_data(ProcessList *Process_List, Drawing_t *Drawing);
 
 GtkWidget *hGuiControlFlow(mainWindow *pmParentWindow);
 
This page took 0.026735 seconds and 4 git commands to generate.