30827a5c423e6ae09f248648b91cc477bbc53e05
[lttv.git] / lttv / doc / developer / developer_guide / html / x77.html
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
7 NAME="GENERATOR"
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9 REL="HOME"
10 TITLE="Linux Trace Toolkit Viewer Developer Guide"
11 HREF="index.html"><LINK
12 REL="UP"
13 TITLE="Linux Trace Toolkit Viewer Graphical Module Tutorial"
14 HREF="c67.html"><LINK
15 REL="PREVIOUS"
16 TITLE="The static part of a module"
17 HREF="x72.html"><LINK
18 REL="NEXT"
19 TITLE="How to request background computation"
20 HREF="x81.html"></HEAD
21 ><BODY
22 CLASS="sect1"
23 BGCOLOR="#FFFFFF"
24 TEXT="#000000"
25 LINK="#0000FF"
26 VLINK="#840084"
27 ALINK="#0000FF"
28 ><DIV
29 CLASS="NAVHEADER"
30 ><TABLE
31 SUMMARY="Header navigation table"
32 WIDTH="100%"
33 BORDER="0"
34 CELLPADDING="0"
35 CELLSPACING="0"
36 ><TR
37 ><TH
38 COLSPAN="3"
39 ALIGN="center"
40 >Linux Trace Toolkit Viewer Developer Guide</TH
41 ></TR
42 ><TR
43 ><TD
44 WIDTH="10%"
45 ALIGN="left"
46 VALIGN="bottom"
47 ><A
48 HREF="x72.html"
49 ACCESSKEY="P"
50 >Prev</A
51 ></TD
52 ><TD
53 WIDTH="80%"
54 ALIGN="center"
55 VALIGN="bottom"
56 >Chapter 3. Linux Trace Toolkit Viewer Graphical Module Tutorial</TD
57 ><TD
58 WIDTH="10%"
59 ALIGN="right"
60 VALIGN="bottom"
61 ><A
62 HREF="x81.html"
63 ACCESSKEY="N"
64 >Next</A
65 ></TD
66 ></TR
67 ></TABLE
68 ><HR
69 ALIGN="LEFT"
70 WIDTH="100%"></DIV
71 ><DIV
72 CLASS="sect1"
73 ><H1
74 CLASS="sect1"
75 ><A
76 NAME="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
81 main window when the corresponding button or menu item is selected. See
82 h_guicontrolflow() from control flow viewer eventhooks.c for an example. It does
83 basic connexion to the tab's events available : time window change notification,
84 current time notification, redraw notification, continue notification. All these
85 function should be implemented in your viewer if you want the data you shown to
86 be synchronised with the main window and the other viewers. It also calls the
87 background 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
92 each 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
97 CLASS="NAVFOOTER"
98 ><HR
99 ALIGN="LEFT"
100 WIDTH="100%"><TABLE
101 SUMMARY="Footer navigation table"
102 WIDTH="100%"
103 BORDER="0"
104 CELLPADDING="0"
105 CELLSPACING="0"
106 ><TR
107 ><TD
108 WIDTH="33%"
109 ALIGN="left"
110 VALIGN="top"
111 ><A
112 HREF="x72.html"
113 ACCESSKEY="P"
114 >Prev</A
115 ></TD
116 ><TD
117 WIDTH="34%"
118 ALIGN="center"
119 VALIGN="top"
120 ><A
121 HREF="index.html"
122 ACCESSKEY="H"
123 >Home</A
124 ></TD
125 ><TD
126 WIDTH="33%"
127 ALIGN="right"
128 VALIGN="top"
129 ><A
130 HREF="x81.html"
131 ACCESSKEY="N"
132 >Next</A
133 ></TD
134 ></TR
135 ><TR
136 ><TD
137 WIDTH="33%"
138 ALIGN="left"
139 VALIGN="top"
140 >The static part of a module</TD
141 ><TD
142 WIDTH="34%"
143 ALIGN="center"
144 VALIGN="top"
145 ><A
146 HREF="c67.html"
147 ACCESSKEY="U"
148 >Up</A
149 ></TD
150 ><TD
151 WIDTH="33%"
152 ALIGN="right"
153 VALIGN="top"
154 >How to request background computation</TD
155 ></TR
156 ></TABLE
157 ></DIV
158 ></BODY
159 ></HTML
160 >
This page took 0.031485 seconds and 3 git commands to generate.