update compat
[lttv.git] / tags / lttv-0.10.0-pre15-12082008 / doc / developer / developer_guide / html / x77.html
CommitLineData
5750899b 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
2<HTML
3><HEAD
4><TITLE
5>The dynamic part of a module : the viewer</TITLE
6><META
7NAME="GENERATOR"
8CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9REL="HOME"
10TITLE="Linux Trace Toolkit Viewer Developer Guide"
11HREF="index.html"><LINK
12REL="UP"
13TITLE="Linux Trace Toolkit Viewer Graphical Module Tutorial"
14HREF="c67.html"><LINK
15REL="PREVIOUS"
16TITLE="The static part of a module"
17HREF="x72.html"><LINK
18REL="NEXT"
19TITLE="How to request background computation"
20HREF="x81.html"></HEAD
21><BODY
22CLASS="sect1"
23BGCOLOR="#FFFFFF"
24TEXT="#000000"
25LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
28><DIV
29CLASS="NAVHEADER"
30><TABLE
31SUMMARY="Header navigation table"
32WIDTH="100%"
33BORDER="0"
34CELLPADDING="0"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="3"
39ALIGN="center"
40>Linux Trace Toolkit Viewer Developer Guide</TH
41></TR
42><TR
43><TD
44WIDTH="10%"
45ALIGN="left"
46VALIGN="bottom"
47><A
48HREF="x72.html"
49ACCESSKEY="P"
50>Prev</A
51></TD
52><TD
53WIDTH="80%"
54ALIGN="center"
55VALIGN="bottom"
56>Chapter 3. Linux Trace Toolkit Viewer Graphical Module Tutorial</TD
57><TD
58WIDTH="10%"
59ALIGN="right"
60VALIGN="bottom"
61><A
62HREF="x81.html"
63ACCESSKEY="N"
64>Next</A
65></TD
66></TR
67></TABLE
68><HR
69ALIGN="LEFT"
70WIDTH="100%"></DIV
71><DIV
72CLASS="sect1"
73><H1
74CLASS="sect1"
75><A
76NAME="AEN77"
77>3.3. The dynamic part of a module : the viewer</A
78></H1
79><P
80>&#13;The dynamic part starts with the constructor of the viewer. It is called by the
81main window when the corresponding button or menu item is selected. See
82h_guicontrolflow() from control flow viewer eventhooks.c for an example. It does
83basic connexion to the tab's events available : time window change notification,
84current time notification, redraw notification, continue notification. All these
85function should be implemented in your viewer if you want the data you shown to
86be synchronised with the main window and the other viewers. It also calls the
87background computation, which will be discussed in the next section.
88</P
89><P
90>&#13;This is also at this point that the viewer does create it's own memory footprint
91: its inner structure. This structure will have to be passed as hook_data to
92each function registered by the viewer : this is what makes the functions
93"belong" to this instance of the viewer.
94</P
95></DIV
96><DIV
97CLASS="NAVFOOTER"
98><HR
99ALIGN="LEFT"
100WIDTH="100%"><TABLE
101SUMMARY="Footer navigation table"
102WIDTH="100%"
103BORDER="0"
104CELLPADDING="0"
105CELLSPACING="0"
106><TR
107><TD
108WIDTH="33%"
109ALIGN="left"
110VALIGN="top"
111><A
112HREF="x72.html"
113ACCESSKEY="P"
114>Prev</A
115></TD
116><TD
117WIDTH="34%"
118ALIGN="center"
119VALIGN="top"
120><A
121HREF="index.html"
122ACCESSKEY="H"
123>Home</A
124></TD
125><TD
126WIDTH="33%"
127ALIGN="right"
128VALIGN="top"
129><A
130HREF="x81.html"
131ACCESSKEY="N"
132>Next</A
133></TD
134></TR
135><TR
136><TD
137WIDTH="33%"
138ALIGN="left"
139VALIGN="top"
140>The static part of a module</TD
141><TD
142WIDTH="34%"
143ALIGN="center"
144VALIGN="top"
145><A
146HREF="c67.html"
147ACCESSKEY="U"
148>Up</A
149></TD
150><TD
151WIDTH="33%"
152ALIGN="right"
153VALIGN="top"
154>How to request background computation</TD
155></TR
156></TABLE
157></DIV
158></BODY
159></HTML
160>
This page took 0.029995 seconds and 4 git commands to generate.