projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wait fork state now ok
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
gui
/
controlflow
/
drawing.h
diff --git
a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h
b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h
index 8ee55f18dfb1caa5e1301824da19ffd8afb0519d..02146cc809aec28d2756b5fb94f0caafefb69f21 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h
+++ b/
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h
@@
-33,6
+33,18
@@
#define SAFETY 50 // safety pixels at right and bottom of pixmap buffer
#define SAFETY 50 // safety pixels at right and bottom of pixmap buffer
+
+typedef enum _draw_color { COL_BLACK,
+ COL_WHITE,
+ COL_WAIT_FORK,
+ COL_WAIT_CPU,
+ COL_ZOMBIE,
+ COL_WAIT,
+ COL_RUN,
+ NUM_COLORS } draw_color;
+
+extern GdkColor drawing_colors[NUM_COLORS];
+
/* This part of the viewer does :
* Draw horizontal lines, getting graphic context as arg.
* Copy region of the screen into another.
/* This part of the viewer does :
* Draw horizontal lines, getting graphic context as arg.
* Copy region of the screen into another.
@@
-60,7
+72,14
@@
typedef struct _Drawing_t Drawing_t;
struct _Drawing_t {
GtkWidget *vbox;
GtkWidget *drawing_area;
struct _Drawing_t {
GtkWidget *vbox;
GtkWidget *drawing_area;
+ //GtkWidget *scrolled_window;
+ GtkWidget *hbox;
+ GtkWidget *viewport;
+ GtkWidget *scrollbar;
+
+ GtkWidget *ruler_hbox;
GtkWidget *ruler;
GtkWidget *ruler;
+ GtkWidget *padding;
GdkPixmap *pixmap;
ControlFlowData *control_flow_data;
GdkPixmap *pixmap;
ControlFlowData *control_flow_data;
@@
-72,6
+91,7
@@
struct _Drawing_t {
gint damage_begin, damage_end;
LttTime last_start;
GdkGC *dotted_gc;
gint damage_begin, damage_end;
LttTime last_start;
GdkGC *dotted_gc;
+ GdkGC *gc;
};
Drawing_t *drawing_construct(ControlFlowData *control_flow_data);
};
Drawing_t *drawing_construct(ControlFlowData *control_flow_data);
@@
-91,6
+111,9
@@
void drawing_draw_line( Drawing_t *drawing,
// guint xdest, guint ydest,
// guint width, guint height);
// guint xdest, guint ydest,
// guint width, guint height);
+/* Clear the drawing : make it 1xwidth. */
+void drawing_clear(Drawing_t *drawing);
+
/* Insert a square corresponding to a new process in the list */
void drawing_insert_square(Drawing_t *drawing,
guint y,
/* Insert a square corresponding to a new process in the list */
void drawing_insert_square(Drawing_t *drawing,
guint y,
@@
-101,9
+124,6
@@
void drawing_remove_square(Drawing_t *drawing,
guint y,
guint height);
guint y,
guint height);
-
-//void drawing_Resize(Drawing_t *drawing, guint h, guint w);
-
void convert_pixels_to_time(
gint width,
guint x,
void convert_pixels_to_time(
gint width,
guint x,
@@
-120,7
+140,12
@@
void convert_time_to_pixels(
void drawing_update_ruler(Drawing_t *drawing, TimeWindow *time_window);
void drawing_update_ruler(Drawing_t *drawing, TimeWindow *time_window);
-void drawing_data_request_end(EventsRequest *events_request, LttvTracesetState *tss);
+void drawing_request_expose(EventsRequest *events_request,
+ LttvTracesetState *tss,
+ LttTime end_time);
+void drawing_data_request_begin(EventsRequest *events_request,
+ LttvTracesetState *tss);
+void drawing_chunk_begin(EventsRequest *events_request, LttvTracesetState *tss);
#endif // _DRAWING_H
#endif // _DRAWING_H
This page took
0.023571 seconds
and
4
git commands to generate.