1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
---|
3 | <title>G4UIXm class Reference</title> |
---|
4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
5 | </head><body> |
---|
6 | <!-- Generated by Doxygen 1.3.4 --> |
---|
7 | <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> |
---|
8 | <h1>G4UIXm Class Reference</h1><code>#include <<a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a>></code> |
---|
9 | <p> |
---|
10 | Inheritance diagram for G4UIXm:<p><center><img src="classG4UIXm__inherit__graph.png" border="0" usemap="#G4UIXm__inherit__map" alt="Inheritance graph"></center> |
---|
11 | <map name="G4UIXm__inherit__map"> |
---|
12 | <area href="classG4VBasicShell.html" shape="rect" coords="8,8,218,392" alt=""> |
---|
13 | <area href="classG4VInteractiveSession.html" shape="rect" coords="242,112,426,288" alt=""> |
---|
14 | </map> |
---|
15 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for G4UIXm:<p><center><img src="classG4UIXm__coll__graph.png" border="0" usemap="#G4UIXm__coll__map" alt="Collaboration graph"></center> |
---|
16 | <map name="G4UIXm__coll__map"> |
---|
17 | <area href="classG4VBasicShell.html" shape="rect" coords="8,8,218,392" alt=""> |
---|
18 | <area href="classG4VInteractiveSession.html" shape="rect" coords="242,112,426,288" alt=""> |
---|
19 | </map> |
---|
20 | <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classG4UIXm-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> |
---|
21 | <tr><td></td></tr> |
---|
22 | <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> |
---|
23 | <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a0">G4UIXm</a> (int, char **)</td></tr> |
---|
24 | |
---|
25 | <tr><td class="memItemLeft" nowrap align=right valign=top>G4UIsession * </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a1">SessionStart</a> ()</td></tr> |
---|
26 | |
---|
27 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a2">AddMenu</a> (const char *, const char *)</td></tr> |
---|
28 | |
---|
29 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a3">AddButton</a> (const char *, const char *, const char *)</td></tr> |
---|
30 | |
---|
31 | <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a4">~G4UIXm</a> ()</td></tr> |
---|
32 | |
---|
33 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a5">Prompt</a> (G4String)</td></tr> |
---|
34 | |
---|
35 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a6">SessionTerminate</a> ()</td></tr> |
---|
36 | |
---|
37 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a7">PauseSessionStart</a> (G4String)</td></tr> |
---|
38 | |
---|
39 | <tr><td class="memItemLeft" nowrap align=right valign=top>G4int </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a8">ReceiveG4cout</a> (G4String)</td></tr> |
---|
40 | |
---|
41 | <tr><td class="memItemLeft" nowrap align=right valign=top>G4int </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a9">ReceiveG4cerr</a> (G4String)</td></tr> |
---|
42 | |
---|
43 | <tr><td class="memItemLeft" nowrap align=right valign=top>G4String </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#a10">GetCommand</a> (Widget)</td></tr> |
---|
44 | |
---|
45 | <tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr> |
---|
46 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#d0">SecondaryLoop</a> (G4String)</td></tr> |
---|
47 | |
---|
48 | <tr><td class="memItemLeft" nowrap align=right valign=top>G4bool </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#d1">GetHelpChoice</a> (G4int &)</td></tr> |
---|
49 | |
---|
50 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#d2">ExitHelp</a> ()</td></tr> |
---|
51 | |
---|
52 | <tr><td colspan=2><br><h2>Static Private Member Functions</h2></td></tr> |
---|
53 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#h0">commandEnteredCallback</a> (Widget, XtPointer, XtPointer)</td></tr> |
---|
54 | |
---|
55 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#h1">keyHandler</a> (Widget, XtPointer, XEvent *, Boolean *)</td></tr> |
---|
56 | |
---|
57 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#h2">ButtonCallback</a> (Widget, XtPointer, XtPointer)</td></tr> |
---|
58 | |
---|
59 | <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> |
---|
60 | <tr><td class="memItemLeft" nowrap align=right valign=top>Widget </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#r0">form</a></td></tr> |
---|
61 | |
---|
62 | <tr><td class="memItemLeft" nowrap align=right valign=top>Widget </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#r1">shell</a></td></tr> |
---|
63 | |
---|
64 | <tr><td class="memItemLeft" nowrap align=right valign=top>Widget </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#r2">command</a></td></tr> |
---|
65 | |
---|
66 | <tr><td class="memItemLeft" nowrap align=right valign=top>Widget </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#r3">menuBar</a></td></tr> |
---|
67 | |
---|
68 | <tr><td class="memItemLeft" nowrap align=right valign=top>Widget </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#r4">text</a></td></tr> |
---|
69 | |
---|
70 | <tr><td class="memItemLeft" nowrap align=right valign=top>std::map< Widget, G4String,<br> |
---|
71 | std::less< Widget > > </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#r5">commands</a></td></tr> |
---|
72 | |
---|
73 | <tr><td class="memItemLeft" nowrap align=right valign=top>G4bool </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#r6">fHelp</a></td></tr> |
---|
74 | |
---|
75 | <tr><td class="memItemLeft" nowrap align=right valign=top>G4int </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIXm.html#r7">fHelpChoice</a></td></tr> |
---|
76 | |
---|
77 | </table> |
---|
78 | <hr><h2>Constructor & Destructor Documentation</h2> |
---|
79 | <a class="anchor" name="a0" doxytag="G4UIXm::G4UIXm" ></a><p> |
---|
80 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
81 | <tr> |
---|
82 | <td class="mdRow"> |
---|
83 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
84 | <tr> |
---|
85 | <td class="md" nowrap valign="top"> G4UIXm::G4UIXm </td> |
---|
86 | <td class="md" valign="top">( </td> |
---|
87 | <td class="md" nowrap valign="top">int </td> |
---|
88 | <td class="mdname" nowrap> <em>argc</em>, </td> |
---|
89 | </tr> |
---|
90 | <tr> |
---|
91 | <td></td> |
---|
92 | <td></td> |
---|
93 | <td class="md" nowrap>char ** </td> |
---|
94 | <td class="mdname" nowrap> <em>argv</em></td> |
---|
95 | </tr> |
---|
96 | <tr> |
---|
97 | <td></td> |
---|
98 | <td class="md">) </td> |
---|
99 | <td class="md" colspan="2"></td> |
---|
100 | </tr> |
---|
101 | |
---|
102 | </table> |
---|
103 | </td> |
---|
104 | </tr> |
---|
105 | </table> |
---|
106 | <table cellspacing=5 cellpadding=0 border=0> |
---|
107 | <tr> |
---|
108 | <td> |
---|
109 | |
---|
110 | </td> |
---|
111 | <td> |
---|
112 | |
---|
113 | <p> |
---|
114 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
115 | <p> |
---|
116 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00074">74</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
117 | <p> |
---|
118 | References <a class="el" href="G4UIXm_8cc-source.html#l00405">clearButtonCallback()</a>, <a class="el" href="G4UIXm_8hh-source.html#l00094">command</a>, <a class="el" href="G4UIXm_8cc-source.html#l00359">commandEnteredCallback()</a>, <a class="el" href="G4UIXm_8hh-source.html#l00094">form</a>, <a class="el" href="G4Xt_8cc-source.html#l00059">G4Xt::getInstance()</a>, <a class="el" href="G4VInteractorManager_8cc-source.html#l00128">G4VInteractorManager::GetMainInteractor()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00385">keyHandler()</a>, <a class="el" href="G4UIXm_8hh-source.html#l00094">menuBar</a>, <a class="el" href="G4UIXm_8hh-source.html#l00094">shell</a>, and <a class="el" href="G4UIXm_8hh-source.html#l00094">text</a>. |
---|
119 | <p> |
---|
120 | <div class="fragment"><pre>00078 :<a class="code" href="classG4UIXm.html#r1">shell</a>(NULL) |
---|
121 | 00079 ,<a class="code" href="classG4UIXm.html#r2">command</a>(NULL) |
---|
122 | 00080 ,<a class="code" href="classG4UIXm.html#r3">menuBar</a>(NULL) |
---|
123 | 00081 ,<a class="code" href="classG4UIXm.html#r4">text</a>(NULL) |
---|
124 | 00082 ,<a class="code" href="classG4UIXm.html#r6">fHelp</a>(<span class="keyword">false</span>) |
---|
125 | 00083 ,<a class="code" href="classG4UIXm.html#r7">fHelpChoice</a>(0) |
---|
126 | 00084 <span class="comment">/***************************************************************************/</span> |
---|
127 | 00086 { |
---|
128 | 00087 G4UImanager* UI = G4UImanager::GetUIpointer(); |
---|
129 | 00088 <span class="keywordflow">if</span>(UI!=NULL) UI->SetSession(<span class="keyword">this</span>); |
---|
130 | 00089 |
---|
131 | 00090 <a class="code" href="classG4Xt.html">G4Xt</a>* interactorManager = <a class="code" href="classG4Xt.html#e0">G4Xt::getInstance</a> (argc,argv,(<span class="keywordtype">char</span>*)<span class="stringliteral">"Xm"</span>); |
---|
132 | 00091 |
---|
133 | 00092 Widget top = (Widget)interactorManager-><a class="code" href="classG4VInteractorManager.html#a5">GetMainInteractor</a>(); |
---|
134 | 00093 |
---|
135 | 00094 <span class="keywordflow">if</span>(getenv(<span class="stringliteral">"XENVIRONMENT"</span>)==NULL) { |
---|
136 | 00095 XrmDatabase database = XrmGetDatabase(XtDisplay(top)); |
---|
137 | 00096 <span class="keywordflow">if</span>(database!=NULL) { |
---|
138 | 00097 XrmPutLineResource(&database,<span class="stringliteral">"*topShadowColor:white"</span>); |
---|
139 | 00098 XrmPutLineResource(&database,<span class="stringliteral">"*bottomShadowColor:black"</span>); |
---|
140 | 00099 XrmPutLineResource(&database,<span class="stringliteral">"*foreground:black"</span>); |
---|
141 | 00100 XrmPutLineResource(&database,<span class="stringliteral">"*background:lightgrey"</span>); |
---|
142 | 00101 XrmPutLineResource(&database,<span class="stringliteral">"*borderColor:lightgrey"</span>); |
---|
143 | 00102 XrmPutLineResource(&database,<span class="stringliteral">"*fontList:-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-1"</span>); |
---|
144 | 00103 XrmPutLineResource(&database,<span class="stringliteral">"*text.background:white"</span>); |
---|
145 | 00104 XrmPutLineResource(&database,<span class="stringliteral">"*text.fontList:*courier*-r-*--14-*"</span>); |
---|
146 | 00105 XrmPutLineResource(&database,<span class="stringliteral">"*text.maxLength:8000"</span>); |
---|
147 | 00106 } |
---|
148 | 00107 } |
---|
149 | 00108 |
---|
150 | 00109 Arg args[9]; |
---|
151 | 00110 XtSetArg(args[0],XmNkeyboardFocusPolicy,XmPOINTER); <span class="comment">// For completion.</span> |
---|
152 | 00111 <a class="code" href="classG4UIXm.html#r1">shell</a> = XtAppCreateShell (<span class="stringliteral">"G4UIXm"</span>,<span class="stringliteral">"G4UIXm"</span>, |
---|
153 | 00112 topLevelShellWidgetClass,XtDisplay(top), |
---|
154 | 00113 args,1); |
---|
155 | 00114 <a class="code" href="classG4UIXm.html#r0">form</a> = XmCreateForm (shell,(<span class="keywordtype">char</span>*)<span class="stringliteral">"form"</span>,NULL,0); |
---|
156 | 00115 XtManageChild (form); |
---|
157 | 00116 |
---|
158 | 00117 XtSetArg(args[0],XmNtopAttachment ,XmATTACH_FORM); |
---|
159 | 00118 XtSetArg(args[1],XmNleftAttachment ,XmATTACH_FORM); |
---|
160 | 00119 XtSetArg(args[2],XmNrightAttachment ,XmATTACH_FORM); |
---|
161 | 00120 <a class="code" href="classG4UIXm.html#r3">menuBar</a> = XmCreateMenuBar (form,(<span class="keywordtype">char</span>*)<span class="stringliteral">"menuBar"</span>,args,3); |
---|
162 | 00121 |
---|
163 | 00122 XtSetArg(args[0],XmNtopAttachment ,XmATTACH_NONE); |
---|
164 | 00123 XtSetArg(args[1],XmNleftAttachment ,XmATTACH_FORM); |
---|
165 | 00124 XtSetArg(args[2],XmNrightAttachment ,XmATTACH_FORM); |
---|
166 | 00125 XtSetArg(args[3],XmNbottomAttachment ,XmATTACH_FORM); |
---|
167 | 00126 <a class="code" href="classG4UIXm.html#r2">command</a> = XmCreateCommand (form,(<span class="keywordtype">char</span>*)<span class="stringliteral">"command"</span>,args,4); |
---|
168 | 00127 XtManageChild (command); |
---|
169 | 00128 |
---|
170 | 00129 XtSetArg(args[0],XmNtopAttachment ,XmATTACH_NONE); |
---|
171 | 00130 XtSetArg(args[1],XmNleftAttachment ,XmATTACH_FORM); |
---|
172 | 00131 XtSetArg(args[2],XmNrightAttachment ,XmATTACH_FORM); |
---|
173 | 00132 XtSetArg(args[3],XmNbottomAttachment,XmATTACH_WIDGET); |
---|
174 | 00133 XtSetArg(args[4],XmNbottomWidget ,command); |
---|
175 | 00134 XmString cps = XmStringLtoRCreate((<span class="keywordtype">char</span>*)<span class="stringliteral">"Clear"</span>,XmSTRING_DEFAULT_CHARSET); |
---|
176 | 00135 XtSetArg (args[5],XmNlabelString,cps); |
---|
177 | 00136 Widget clearButton = XmCreatePushButton(form,(<span class="keywordtype">char</span>*)<span class="stringliteral">"clearButton"</span>,args,6); |
---|
178 | 00137 XmStringFree (cps); |
---|
179 | 00138 XtManageChild (clearButton); |
---|
180 | 00139 |
---|
181 | 00140 XtSetArg(args[0],XmNtopAttachment ,XmATTACH_WIDGET); |
---|
182 | 00141 XtSetArg(args[1],XmNtopWidget ,menuBar); |
---|
183 | 00142 XtSetArg(args[2],XmNleftAttachment ,XmATTACH_FORM); |
---|
184 | 00143 XtSetArg(args[3],XmNrightAttachment ,XmATTACH_FORM); |
---|
185 | 00144 XtSetArg(args[4],XmNbottomAttachment,XmATTACH_WIDGET); |
---|
186 | 00145 XtSetArg(args[5],XmNbottomWidget ,clearButton); |
---|
187 | 00146 XtSetArg(args[6],XmNeditMode ,XmMULTI_LINE_EDIT); |
---|
188 | 00147 XtSetArg(args[7],XmNrows ,12); |
---|
189 | 00148 XtSetArg(args[8],XmNcolumns ,80); |
---|
190 | 00149 <a class="code" href="classG4UIXm.html#r4">text</a> = XmCreateScrolledText (form,(<span class="keywordtype">char</span>*)<span class="stringliteral">"text"</span>,args,9); |
---|
191 | 00150 XtManageChild (text); |
---|
192 | 00151 |
---|
193 | 00152 XtAddCallback(clearButton,XmNactivateCallback, |
---|
194 | 00153 clearButtonCallback,(XtPointer)text); |
---|
195 | 00154 XtAddCallback(command,XmNcommandEnteredCallback, |
---|
196 | 00155 commandEnteredCallback,(XtPointer)<span class="keyword">this</span>); |
---|
197 | 00156 |
---|
198 | 00157 Widget commandText = XmCommandGetChild(command,XmDIALOG_COMMAND_TEXT); |
---|
199 | 00158 XtAddEventHandler(commandText,KeyPressMask,False,keyHandler,(XtPointer)<span class="keyword">this</span>); |
---|
200 | 00159 |
---|
201 | 00160 XtRealizeWidget(shell); |
---|
202 | 00161 XtMapWidget(shell); |
---|
203 | 00162 |
---|
204 | 00163 <span class="keywordflow">if</span>(UI!=NULL) UI->SetCoutDestination(<span class="keyword">this</span>); |
---|
205 | 00164 } |
---|
206 | </pre></div> </td> |
---|
207 | </tr> |
---|
208 | </table> |
---|
209 | |
---|
210 | <p> |
---|
211 | Here is the call graph for this function:<p><center><img src="classG4UIXm_a0_cgraph.png" border="0" usemap="#classG4UIXm_a0_cgraph_map" alt=""></center> |
---|
212 | <map name="classG4UIXm_a0_cgraph_map"> |
---|
213 | <area href="G4UIXm_8cc.html#a4" shape="rect" coords="253,7,394,34" alt=""> |
---|
214 | <area href="classG4UIXm.html#h0" shape="rect" coords="206,58,441,85" alt=""> |
---|
215 | <area href="classG4Xt.html#e0" shape="rect" coords="260,109,388,135" alt=""> |
---|
216 | <area href="classG4VInteractorManager.html#a5" shape="rect" coords="188,159,460,186" alt=""> |
---|
217 | <area href="classG4UIXm.html#h1" shape="rect" coords="250,210,397,237" alt=""> |
---|
218 | <area href="classG4VBasicShell.html#b10" shape="rect" coords="509,7,752,34" alt=""> |
---|
219 | <area href="G4UIXm_8cc.html#a6" shape="rect" coords="564,58,697,85" alt=""> |
---|
220 | <area href="G4UIXm_8cc.html#a5" shape="rect" coords="510,109,750,135" alt=""> |
---|
221 | <area href="classG4VBasicShell.html#b5" shape="rect" coords="544,210,717,237" alt=""> |
---|
222 | </map> |
---|
223 | <a class="anchor" name="a4" doxytag="G4UIXm::~G4UIXm" ></a><p> |
---|
224 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
225 | <tr> |
---|
226 | <td class="mdRow"> |
---|
227 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
228 | <tr> |
---|
229 | <td class="md" nowrap valign="top"> G4UIXm::~<a class="el" href="classG4UIXm.html">G4UIXm</a> </td> |
---|
230 | <td class="md" valign="top">( </td> |
---|
231 | <td class="mdname1" valign="top" nowrap> </td> |
---|
232 | <td class="md" valign="top"> ) </td> |
---|
233 | <td class="md" nowrap></td> |
---|
234 | </tr> |
---|
235 | |
---|
236 | </table> |
---|
237 | </td> |
---|
238 | </tr> |
---|
239 | </table> |
---|
240 | <table cellspacing=5 cellpadding=0 border=0> |
---|
241 | <tr> |
---|
242 | <td> |
---|
243 | |
---|
244 | </td> |
---|
245 | <td> |
---|
246 | |
---|
247 | <p> |
---|
248 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
249 | <p> |
---|
250 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00166">166</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
251 | <p> |
---|
252 | References <a class="el" href="G4UIXm_8hh-source.html#l00094">shell</a>. |
---|
253 | <p> |
---|
254 | <div class="fragment"><pre>00170 { |
---|
255 | 00171 G4UImanager* UI = G4UImanager::GetUIpointer(); |
---|
256 | 00172 <span class="keywordflow">if</span>(UI!=NULL) { |
---|
257 | 00173 UI->SetSession(NULL); |
---|
258 | 00174 UI->SetCoutDestination(NULL); |
---|
259 | 00175 } |
---|
260 | 00176 XtDestroyWidget(shell); |
---|
261 | 00177 } |
---|
262 | </pre></div> </td> |
---|
263 | </tr> |
---|
264 | </table> |
---|
265 | <hr><h2>Member Function Documentation</h2> |
---|
266 | <a class="anchor" name="a3" doxytag="G4UIXm::AddButton" ></a><p> |
---|
267 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
268 | <tr> |
---|
269 | <td class="mdRow"> |
---|
270 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
271 | <tr> |
---|
272 | <td class="md" nowrap valign="top"> void G4UIXm::AddButton </td> |
---|
273 | <td class="md" valign="top">( </td> |
---|
274 | <td class="md" nowrap valign="top">const char * </td> |
---|
275 | <td class="mdname" nowrap> <em>a_menu</em>, </td> |
---|
276 | </tr> |
---|
277 | <tr> |
---|
278 | <td></td> |
---|
279 | <td></td> |
---|
280 | <td class="md" nowrap>const char * </td> |
---|
281 | <td class="mdname" nowrap> <em>a_label</em>, </td> |
---|
282 | </tr> |
---|
283 | <tr> |
---|
284 | <td></td> |
---|
285 | <td></td> |
---|
286 | <td class="md" nowrap>const char * </td> |
---|
287 | <td class="mdname" nowrap> <em>a_command</em></td> |
---|
288 | </tr> |
---|
289 | <tr> |
---|
290 | <td></td> |
---|
291 | <td class="md">) </td> |
---|
292 | <td class="md" colspan="2"><code> [virtual]</code></td> |
---|
293 | </tr> |
---|
294 | |
---|
295 | </table> |
---|
296 | </td> |
---|
297 | </tr> |
---|
298 | </table> |
---|
299 | <table cellspacing=5 cellpadding=0 border=0> |
---|
300 | <tr> |
---|
301 | <td> |
---|
302 | |
---|
303 | </td> |
---|
304 | <td> |
---|
305 | |
---|
306 | <p> |
---|
307 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
308 | <p> |
---|
309 | Reimplemented from <a class="el" href="classG4VInteractiveSession.html#a3">G4VInteractiveSession</a>. |
---|
310 | <p> |
---|
311 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00329">329</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
312 | <p> |
---|
313 | References <a class="el" href="G4UIXm_8cc-source.html#l00416">ButtonCallback()</a>, <a class="el" href="G4UIXm_8hh-source.html#l00095">commands</a>, and <a class="el" href="G4VInteractiveSession_8cc-source.html#l00062">G4VInteractiveSession::GetInteractor()</a>. |
---|
314 | <p> |
---|
315 | <div class="fragment"><pre>00336 { |
---|
316 | 00337 <span class="keywordflow">if</span>(a_menu==NULL) <span class="keywordflow">return</span>; |
---|
317 | 00338 <span class="keywordflow">if</span>(a_label==NULL) <span class="keywordflow">return</span>; |
---|
318 | 00339 <span class="keywordflow">if</span>(a_command==NULL) <span class="keywordflow">return</span>; |
---|
319 | 00340 Widget parent = (Widget)<a class="code" href="classG4VInteractiveSession.html#a5">GetInteractor</a>(a_menu); |
---|
320 | 00341 <span class="keywordflow">if</span>(parent==NULL) <span class="keywordflow">return</span>; |
---|
321 | 00342 Widget widget = XmCreatePushButton(parent,(<span class="keywordtype">char</span>*)a_label,NULL,0); |
---|
322 | 00343 XtManageChild (widget); |
---|
323 | 00344 XtAddCallback (widget,XmNactivateCallback,ButtonCallback,(XtPointer)<span class="keyword">this</span>); |
---|
324 | 00345 <a class="code" href="classG4UIXm.html#r5">commands</a>[widget] = a_command; |
---|
325 | 00346 } |
---|
326 | </pre></div> </td> |
---|
327 | </tr> |
---|
328 | </table> |
---|
329 | |
---|
330 | <p> |
---|
331 | Here is the call graph for this function:<p><center><img src="classG4UIXm_a3_cgraph.png" border="0" usemap="#classG4UIXm_a3_cgraph_map" alt=""></center> |
---|
332 | <map name="classG4UIXm_a3_cgraph_map"> |
---|
333 | <area href="classG4UIXm.html#h2" shape="rect" coords="235,33,406,60" alt=""> |
---|
334 | <area href="classG4VInteractiveSession.html#a5" shape="rect" coords="199,84,442,110" alt=""> |
---|
335 | <area href="classG4VBasicShell.html#b10" shape="rect" coords="490,8,733,34" alt=""> |
---|
336 | <area href="classG4UIXm.html#a10" shape="rect" coords="530,58,693,85" alt=""> |
---|
337 | </map> |
---|
338 | <a class="anchor" name="a2" doxytag="G4UIXm::AddMenu" ></a><p> |
---|
339 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
340 | <tr> |
---|
341 | <td class="mdRow"> |
---|
342 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
343 | <tr> |
---|
344 | <td class="md" nowrap valign="top"> void G4UIXm::AddMenu </td> |
---|
345 | <td class="md" valign="top">( </td> |
---|
346 | <td class="md" nowrap valign="top">const char * </td> |
---|
347 | <td class="mdname" nowrap> <em>a_name</em>, </td> |
---|
348 | </tr> |
---|
349 | <tr> |
---|
350 | <td></td> |
---|
351 | <td></td> |
---|
352 | <td class="md" nowrap>const char * </td> |
---|
353 | <td class="mdname" nowrap> <em>a_label</em></td> |
---|
354 | </tr> |
---|
355 | <tr> |
---|
356 | <td></td> |
---|
357 | <td class="md">) </td> |
---|
358 | <td class="md" colspan="2"><code> [virtual]</code></td> |
---|
359 | </tr> |
---|
360 | |
---|
361 | </table> |
---|
362 | </td> |
---|
363 | </tr> |
---|
364 | </table> |
---|
365 | <table cellspacing=5 cellpadding=0 border=0> |
---|
366 | <tr> |
---|
367 | <td> |
---|
368 | |
---|
369 | </td> |
---|
370 | <td> |
---|
371 | |
---|
372 | <p> |
---|
373 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
374 | <p> |
---|
375 | Reimplemented from <a class="el" href="classG4VInteractiveSession.html#a2">G4VInteractiveSession</a>. |
---|
376 | <p> |
---|
377 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00303">303</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
378 | <p> |
---|
379 | References <a class="el" href="G4VInteractiveSession_8cc-source.html#l00055">G4VInteractiveSession::AddInteractor()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00500">ExecuteChangeSizeFunction()</a>, <a class="el" href="G4UIXm_8hh-source.html#l00094">form</a>, <a class="el" href="G4VInteractorManager_8hh-source.html#l00038">G4Interactor</a>, and <a class="el" href="G4UIXm_8hh-source.html#l00094">menuBar</a>. |
---|
380 | <p> |
---|
381 | <div class="fragment"><pre>00309 { |
---|
382 | 00310 <span class="keywordflow">if</span>(<a class="code" href="classG4UIXm.html#r3">menuBar</a>==NULL) <span class="keywordflow">return</span>; |
---|
383 | 00311 <span class="keywordflow">if</span>(a_name==NULL) <span class="keywordflow">return</span>; |
---|
384 | 00312 <span class="keywordflow">if</span>(a_label==NULL) <span class="keywordflow">return</span>; |
---|
385 | 00313 XtManageChild (menuBar); |
---|
386 | 00314 <span class="comment">// Pulldown menu :</span> |
---|
387 | 00315 Widget widget; |
---|
388 | 00316 widget = XmCreatePulldownMenu (menuBar,(<span class="keywordtype">char</span>*)a_name,NULL,0); |
---|
389 | 00317 <a class="code" href="classG4VInteractiveSession.html#a4">AddInteractor</a> (a_name,(<a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a>)widget); |
---|
390 | 00318 <span class="comment">// Cascade button :</span> |
---|
391 | 00319 Arg args[2]; |
---|
392 | 00320 XmString cps = XmStringLtoRCreate((<span class="keywordtype">char</span>*)a_label,XmSTRING_DEFAULT_CHARSET); |
---|
393 | 00321 XtSetArg (args[0],XmNlabelString,cps); |
---|
394 | 00322 XtSetArg (args[1],XmNsubMenuId,widget); |
---|
395 | 00323 widget = XmCreateCascadeButton (menuBar,(<span class="keywordtype">char</span>*)a_name,args,2); |
---|
396 | 00324 XmStringFree (cps); |
---|
397 | 00325 XtManageChild (widget); |
---|
398 | 00326 <a class="code" href="G4UIXm_8cc.html#a7">ExecuteChangeSizeFunction</a>(form); |
---|
399 | 00327 } |
---|
400 | </pre></div> </td> |
---|
401 | </tr> |
---|
402 | </table> |
---|
403 | |
---|
404 | <p> |
---|
405 | Here is the call graph for this function:<p><center><img src="classG4UIXm_a2_cgraph.png" border="0" usemap="#classG4UIXm_a2_cgraph_map" alt=""></center> |
---|
406 | <map name="classG4UIXm_a2_cgraph_map"> |
---|
407 | <area href="classG4VInteractiveSession.html#a4" shape="rect" coords="191,7,437,34" alt=""> |
---|
408 | <area href="G4UIXm_8cc.html#a7" shape="rect" coords="217,58,411,85" alt=""> |
---|
409 | </map> |
---|
410 | <a class="anchor" name="h2" doxytag="G4UIXm::ButtonCallback" ></a><p> |
---|
411 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
412 | <tr> |
---|
413 | <td class="mdRow"> |
---|
414 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
415 | <tr> |
---|
416 | <td class="md" nowrap valign="top"> void G4UIXm::ButtonCallback </td> |
---|
417 | <td class="md" valign="top">( </td> |
---|
418 | <td class="md" nowrap valign="top">Widget </td> |
---|
419 | <td class="mdname" nowrap> <em>a_widget</em>, </td> |
---|
420 | </tr> |
---|
421 | <tr> |
---|
422 | <td></td> |
---|
423 | <td></td> |
---|
424 | <td class="md" nowrap>XtPointer </td> |
---|
425 | <td class="mdname" nowrap> <em>a_tag</em>, </td> |
---|
426 | </tr> |
---|
427 | <tr> |
---|
428 | <td></td> |
---|
429 | <td></td> |
---|
430 | <td class="md" nowrap>XtPointer </td> |
---|
431 | <td class="mdname" nowrap></td> |
---|
432 | </tr> |
---|
433 | <tr> |
---|
434 | <td></td> |
---|
435 | <td class="md">) </td> |
---|
436 | <td class="md" colspan="2"><code> [static, private]</code></td> |
---|
437 | </tr> |
---|
438 | |
---|
439 | </table> |
---|
440 | </td> |
---|
441 | </tr> |
---|
442 | </table> |
---|
443 | <table cellspacing=5 cellpadding=0 border=0> |
---|
444 | <tr> |
---|
445 | <td> |
---|
446 | |
---|
447 | </td> |
---|
448 | <td> |
---|
449 | |
---|
450 | <p> |
---|
451 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
452 | <p> |
---|
453 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00416">416</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
454 | <p> |
---|
455 | References <a class="el" href="G4VBasicShell_8cc-source.html#l00286">G4VBasicShell::ApplyShellCommand()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00071">exitPause</a>, <a class="el" href="G4UIXm_8cc-source.html#l00070">exitSession</a>, <a class="el" href="G4UIXm_8hh-source.html#l00098">fHelp</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00348">GetCommand()</a>. |
---|
456 | <p> |
---|
457 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00329">AddButton()</a>. |
---|
458 | <p> |
---|
459 | <div class="fragment"><pre>00423 { |
---|
460 | 00424 <a class="code" href="classG4UIXm.html">G4UIXm</a>* This = (<a class="code" href="classG4UIXm.html">G4UIXm</a>*)a_tag; |
---|
461 | 00425 <span class="keywordflow">if</span>(This-><a class="code" href="classG4UIXm.html#r6">fHelp</a>==<span class="keyword">true</span>) <span class="keywordflow">return</span>; <span class="comment">// Disabled when in help.</span> |
---|
462 | 00426 G4String ss = This-><a class="code" href="classG4UIXm.html#a10">GetCommand</a> (a_widget); |
---|
463 | 00427 <span class="comment">//printf ("debug : execute:\n%s\n",ss.data());</span> |
---|
464 | 00428 This-><a class="code" href="classG4VBasicShell.html#b10">ApplyShellCommand</a>(ss,exitSession,exitPause); |
---|
465 | 00429 } |
---|
466 | </pre></div> </td> |
---|
467 | </tr> |
---|
468 | </table> |
---|
469 | |
---|
470 | <p> |
---|
471 | Here is the call graph for this function:<p><center><img src="classG4UIXm_h2_cgraph.png" border="0" usemap="#classG4UIXm_h2_cgraph_map" alt=""></center> |
---|
472 | <map name="classG4UIXm_h2_cgraph_map"> |
---|
473 | <area href="classG4VBasicShell.html#b10" shape="rect" coords="226,7,469,34" alt=""> |
---|
474 | <area href="classG4UIXm.html#a10" shape="rect" coords="266,58,429,85" alt=""> |
---|
475 | </map> |
---|
476 | <a class="anchor" name="h0" doxytag="G4UIXm::commandEnteredCallback" ></a><p> |
---|
477 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
478 | <tr> |
---|
479 | <td class="mdRow"> |
---|
480 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
481 | <tr> |
---|
482 | <td class="md" nowrap valign="top"> void G4UIXm::commandEnteredCallback </td> |
---|
483 | <td class="md" valign="top">( </td> |
---|
484 | <td class="md" nowrap valign="top">Widget </td> |
---|
485 | <td class="mdname" nowrap> <em>a_widget</em>, </td> |
---|
486 | </tr> |
---|
487 | <tr> |
---|
488 | <td></td> |
---|
489 | <td></td> |
---|
490 | <td class="md" nowrap>XtPointer </td> |
---|
491 | <td class="mdname" nowrap> <em>a_tag</em>, </td> |
---|
492 | </tr> |
---|
493 | <tr> |
---|
494 | <td></td> |
---|
495 | <td></td> |
---|
496 | <td class="md" nowrap>XtPointer </td> |
---|
497 | <td class="mdname" nowrap> <em>a_data</em></td> |
---|
498 | </tr> |
---|
499 | <tr> |
---|
500 | <td></td> |
---|
501 | <td class="md">) </td> |
---|
502 | <td class="md" colspan="2"><code> [static, private]</code></td> |
---|
503 | </tr> |
---|
504 | |
---|
505 | </table> |
---|
506 | </td> |
---|
507 | </tr> |
---|
508 | </table> |
---|
509 | <table cellspacing=5 cellpadding=0 border=0> |
---|
510 | <tr> |
---|
511 | <td> |
---|
512 | |
---|
513 | </td> |
---|
514 | <td> |
---|
515 | |
---|
516 | <p> |
---|
517 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
518 | <p> |
---|
519 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00359">359</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
520 | <p> |
---|
521 | References <a class="el" href="G4VBasicShell_8cc-source.html#l00286">G4VBasicShell::ApplyShellCommand()</a>, <a class="el" href="G4UIXm_8hh-source.html#l00094">command</a>, <a class="el" href="G4UIXm_8cc-source.html#l00483">ConvertStringToInt()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00072">exitHelp</a>, <a class="el" href="G4UIXm_8cc-source.html#l00071">exitPause</a>, <a class="el" href="G4UIXm_8cc-source.html#l00070">exitSession</a>, <a class="el" href="G4UIXm_8hh-source.html#l00098">fHelp</a>, <a class="el" href="G4UIXm_8hh-source.html#l00099">fHelpChoice</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00433">XmConvertCompoundStringToString()</a>. |
---|
522 | <p> |
---|
523 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00074">G4UIXm()</a>. |
---|
524 | <p> |
---|
525 | <div class="fragment"><pre>00366 { |
---|
526 | 00367 <a class="code" href="classG4UIXm.html">G4UIXm</a>* This = (<a class="code" href="classG4UIXm.html">G4UIXm</a>*)a_tag; |
---|
527 | 00368 |
---|
528 | 00369 XmString cps = ((XmCommandCallbackStruct*)a_data)->value; |
---|
529 | 00370 <span class="keywordtype">char</span>* ss = <a class="code" href="G4UIXm_8cc.html#a5">XmConvertCompoundStringToString</a>(cps,0); |
---|
530 | 00371 G4String <a class="code" href="classG4UIXm.html#r2">command</a> (ss); |
---|
531 | 00372 XtFree (ss); |
---|
532 | 00373 |
---|
533 | 00374 <span class="keywordflow">if</span>(This-><a class="code" href="classG4UIXm.html#r6">fHelp</a>==<span class="keyword">true</span>) { |
---|
534 | 00375 <a class="code" href="G4UIXm_8cc.html#a2">exitHelp</a> = <span class="keyword">true</span>; |
---|
535 | 00376 This-><a class="code" href="classG4UIXm.html#r6">fHelp</a> = <a class="code" href="G4UIXm_8cc.html#a6">ConvertStringToInt</a>(command.data(),This-><a class="code" href="classG4UIXm.html#r7">fHelpChoice</a>); |
---|
536 | 00377 } <span class="keywordflow">else</span> { |
---|
537 | 00378 This-><a class="code" href="classG4VBasicShell.html#b10">ApplyShellCommand</a> (command,exitSession,exitPause); |
---|
538 | 00379 } |
---|
539 | 00380 |
---|
540 | 00381 a_widget = NULL; |
---|
541 | 00382 a_tag = NULL; |
---|
542 | 00383 } |
---|
543 | </pre></div> </td> |
---|
544 | </tr> |
---|
545 | </table> |
---|
546 | |
---|
547 | <p> |
---|
548 | Here is the call graph for this function:<p><center><img src="classG4UIXm_h0_cgraph.png" border="0" usemap="#classG4UIXm_h0_cgraph_map" alt=""></center> |
---|
549 | <map name="classG4UIXm_h0_cgraph_map"> |
---|
550 | <area href="classG4VBasicShell.html#b10" shape="rect" coords="293,8,536,34" alt=""> |
---|
551 | <area href="G4UIXm_8cc.html#a6" shape="rect" coords="348,58,481,85" alt=""> |
---|
552 | <area href="G4UIXm_8cc.html#a5" shape="rect" coords="294,109,534,136" alt=""> |
---|
553 | </map> |
---|
554 | <a class="anchor" name="d2" doxytag="G4UIXm::ExitHelp" ></a><p> |
---|
555 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
556 | <tr> |
---|
557 | <td class="mdRow"> |
---|
558 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
559 | <tr> |
---|
560 | <td class="md" nowrap valign="top"> void G4UIXm::ExitHelp </td> |
---|
561 | <td class="md" valign="top">( </td> |
---|
562 | <td class="mdname1" valign="top" nowrap> </td> |
---|
563 | <td class="md" valign="top"> ) </td> |
---|
564 | <td class="md" nowrap><code> [private, virtual]</code></td> |
---|
565 | </tr> |
---|
566 | |
---|
567 | </table> |
---|
568 | </td> |
---|
569 | </tr> |
---|
570 | </table> |
---|
571 | <table cellspacing=5 cellpadding=0 border=0> |
---|
572 | <tr> |
---|
573 | <td> |
---|
574 | |
---|
575 | </td> |
---|
576 | <td> |
---|
577 | |
---|
578 | <p> |
---|
579 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
580 | <p> |
---|
581 | Implements <a class="el" href="classG4VBasicShell.html#b9">G4VBasicShell</a>. |
---|
582 | <p> |
---|
583 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00296">296</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
584 | <p> |
---|
585 | <div class="fragment"><pre>00300 { |
---|
586 | 00301 } |
---|
587 | </pre></div> </td> |
---|
588 | </tr> |
---|
589 | </table> |
---|
590 | <a class="anchor" name="a10" doxytag="G4UIXm::GetCommand" ></a><p> |
---|
591 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
592 | <tr> |
---|
593 | <td class="mdRow"> |
---|
594 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
595 | <tr> |
---|
596 | <td class="md" nowrap valign="top"> G4String G4UIXm::GetCommand </td> |
---|
597 | <td class="md" valign="top">( </td> |
---|
598 | <td class="md" nowrap valign="top">Widget </td> |
---|
599 | <td class="mdname1" valign="top" nowrap> <em>a_widget</em> </td> |
---|
600 | <td class="md" valign="top"> ) </td> |
---|
601 | <td class="md" nowrap></td> |
---|
602 | </tr> |
---|
603 | |
---|
604 | </table> |
---|
605 | </td> |
---|
606 | </tr> |
---|
607 | </table> |
---|
608 | <table cellspacing=5 cellpadding=0 border=0> |
---|
609 | <tr> |
---|
610 | <td> |
---|
611 | |
---|
612 | </td> |
---|
613 | <td> |
---|
614 | |
---|
615 | <p> |
---|
616 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
617 | <p> |
---|
618 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00348">348</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
619 | <p> |
---|
620 | References <a class="el" href="G4UIXm_8hh-source.html#l00095">commands</a>. |
---|
621 | <p> |
---|
622 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00416">ButtonCallback()</a>. |
---|
623 | <p> |
---|
624 | <div class="fragment"><pre>00353 { |
---|
625 | 00354 <span class="keywordflow">return</span> <a class="code" href="classG4UIXm.html#r5">commands</a>[a_widget]; |
---|
626 | 00355 } |
---|
627 | </pre></div> </td> |
---|
628 | </tr> |
---|
629 | </table> |
---|
630 | <a class="anchor" name="d1" doxytag="G4UIXm::GetHelpChoice" ></a><p> |
---|
631 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
632 | <tr> |
---|
633 | <td class="mdRow"> |
---|
634 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
635 | <tr> |
---|
636 | <td class="md" nowrap valign="top"> G4bool G4UIXm::GetHelpChoice </td> |
---|
637 | <td class="md" valign="top">( </td> |
---|
638 | <td class="md" nowrap valign="top">G4int & </td> |
---|
639 | <td class="mdname1" valign="top" nowrap> <em>aInt</em> </td> |
---|
640 | <td class="md" valign="top"> ) </td> |
---|
641 | <td class="md" nowrap><code> [private, virtual]</code></td> |
---|
642 | </tr> |
---|
643 | |
---|
644 | </table> |
---|
645 | </td> |
---|
646 | </tr> |
---|
647 | </table> |
---|
648 | <table cellspacing=5 cellpadding=0 border=0> |
---|
649 | <tr> |
---|
650 | <td> |
---|
651 | |
---|
652 | </td> |
---|
653 | <td> |
---|
654 | |
---|
655 | <p> |
---|
656 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
657 | <p> |
---|
658 | Implements <a class="el" href="classG4VBasicShell.html#b8">G4VBasicShell</a>. |
---|
659 | <p> |
---|
660 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00272">272</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
661 | <p> |
---|
662 | References <a class="el" href="G4VInteractorManager_8cc-source.html#l00178">G4VInteractorManager::DispatchEvent()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00072">exitHelp</a>, <a class="el" href="G4UIXm_8hh-source.html#l00098">fHelp</a>, <a class="el" href="G4UIXm_8hh-source.html#l00099">fHelpChoice</a>, <a class="el" href="G4Xt_8cc-source.html#l00152">G4Xt::GetEvent()</a>, <a class="el" href="G4Xt_8cc-source.html#l00059">G4Xt::getInstance()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00197">Prompt()</a>. |
---|
663 | <p> |
---|
664 | <div class="fragment"><pre>00277 { |
---|
665 | 00278 <a class="code" href="classG4UIXm.html#r6">fHelp</a> = <span class="keyword">true</span>; |
---|
666 | 00279 <span class="comment">// SecondaryLoop :</span> |
---|
667 | 00280 <a class="code" href="classG4Xt.html">G4Xt</a>* interactorManager = <a class="code" href="classG4Xt.html#e0">G4Xt::getInstance</a> (); |
---|
668 | 00281 <a class="code" href="classG4UIXm.html#a5">Prompt</a>(<span class="stringliteral">"Help"</span>); |
---|
669 | 00282 <a class="code" href="G4UIXm_8cc.html#a2">exitHelp</a> = <span class="keyword">false</span>; |
---|
670 | 00283 <span class="keywordtype">void</span>* event; |
---|
671 | 00284 <span class="keywordflow">while</span>((event = interactorManager-><a class="code" href="classG4Xt.html#a2">GetEvent</a>())!=NULL) { |
---|
672 | 00285 interactorManager-><a class="code" href="classG4VInteractorManager.html#a17">DispatchEvent</a>(event); |
---|
673 | 00286 <span class="keywordflow">if</span>(<a class="code" href="G4UIXm_8cc.html#a2">exitHelp</a>==<span class="keyword">true</span>) <span class="keywordflow">break</span>; |
---|
674 | 00287 } |
---|
675 | 00288 <a class="code" href="classG4UIXm.html#a5">Prompt</a>(<span class="stringliteral">"session"</span>); |
---|
676 | 00289 <span class="comment">//</span> |
---|
677 | 00290 <span class="keywordflow">if</span>(<a class="code" href="classG4UIXm.html#r6">fHelp</a>==<span class="keyword">false</span>) <span class="keywordflow">return</span> <span class="keyword">false</span>; |
---|
678 | 00291 aInt = <a class="code" href="classG4UIXm.html#r7">fHelpChoice</a>; |
---|
679 | 00292 <a class="code" href="classG4UIXm.html#r6">fHelp</a> = <span class="keyword">false</span>; |
---|
680 | 00293 <span class="keywordflow">return</span> <span class="keyword">true</span>; |
---|
681 | 00294 } |
---|
682 | </pre></div> </td> |
---|
683 | </tr> |
---|
684 | </table> |
---|
685 | |
---|
686 | <p> |
---|
687 | Here is the call graph for this function:<p><center><img src="classG4UIXm_d1_cgraph.png" border="0" usemap="#classG4UIXm_d1_cgraph_map" alt=""></center> |
---|
688 | <map name="classG4UIXm_d1_cgraph_map"> |
---|
689 | <area href="classG4VInteractorManager.html#a17" shape="rect" coords="228,8,478,34" alt=""> |
---|
690 | <area href="classG4Xt.html#a2" shape="rect" coords="296,58,410,85" alt=""> |
---|
691 | <area href="classG4Xt.html#e0" shape="rect" coords="289,109,417,136" alt=""> |
---|
692 | <area href="classG4UIXm.html#a5" shape="rect" coords="292,160,414,186" alt=""> |
---|
693 | </map> |
---|
694 | <a class="anchor" name="h1" doxytag="G4UIXm::keyHandler" ></a><p> |
---|
695 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
696 | <tr> |
---|
697 | <td class="mdRow"> |
---|
698 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
699 | <tr> |
---|
700 | <td class="md" nowrap valign="top"> void G4UIXm::keyHandler </td> |
---|
701 | <td class="md" valign="top">( </td> |
---|
702 | <td class="md" nowrap valign="top">Widget </td> |
---|
703 | <td class="mdname" nowrap> <em>a_widget</em>, </td> |
---|
704 | </tr> |
---|
705 | <tr> |
---|
706 | <td></td> |
---|
707 | <td></td> |
---|
708 | <td class="md" nowrap>XtPointer </td> |
---|
709 | <td class="mdname" nowrap> <em>a_tag</em>, </td> |
---|
710 | </tr> |
---|
711 | <tr> |
---|
712 | <td></td> |
---|
713 | <td></td> |
---|
714 | <td class="md" nowrap>XEvent * </td> |
---|
715 | <td class="mdname" nowrap> <em>a_event</em>, </td> |
---|
716 | </tr> |
---|
717 | <tr> |
---|
718 | <td></td> |
---|
719 | <td></td> |
---|
720 | <td class="md" nowrap>Boolean * </td> |
---|
721 | <td class="mdname" nowrap></td> |
---|
722 | </tr> |
---|
723 | <tr> |
---|
724 | <td></td> |
---|
725 | <td class="md">) </td> |
---|
726 | <td class="md" colspan="2"><code> [static, private]</code></td> |
---|
727 | </tr> |
---|
728 | |
---|
729 | </table> |
---|
730 | </td> |
---|
731 | </tr> |
---|
732 | </table> |
---|
733 | <table cellspacing=5 cellpadding=0 border=0> |
---|
734 | <tr> |
---|
735 | <td> |
---|
736 | |
---|
737 | </td> |
---|
738 | <td> |
---|
739 | |
---|
740 | <p> |
---|
741 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
742 | <p> |
---|
743 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00385">385</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
744 | <p> |
---|
745 | References <a class="el" href="G4VBasicShell_8cc-source.html#l00168">G4VBasicShell::Complete()</a>. |
---|
746 | <p> |
---|
747 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00074">G4UIXm()</a>. |
---|
748 | <p> |
---|
749 | <div class="fragment"><pre>00393 { |
---|
750 | 00394 KeySym keySym; |
---|
751 | 00395 XLookupString(&(a_event->xkey),NULL,0,&keySym,NULL); |
---|
752 | 00396 <span class="keywordflow">if</span>(keySym!=XK_Tab) <span class="keywordflow">return</span>; |
---|
753 | 00397 <a class="code" href="classG4UIXm.html">G4UIXm</a>* This = (<a class="code" href="classG4UIXm.html">G4UIXm</a>*)a_tag; |
---|
754 | 00398 <span class="keywordtype">char</span>* s = XmTextGetString(a_widget); |
---|
755 | 00399 G4String ss = This-><a class="code" href="classG4VBasicShell.html#b5">Complete</a>(s); |
---|
756 | 00400 XmTextSetString(a_widget,(<span class="keywordtype">char</span>*)ss.data()); |
---|
757 | 00401 XtFree(s); |
---|
758 | 00402 XmTextSetInsertionPosition(a_widget,XmTextGetLastPosition(a_widget)); |
---|
759 | 00403 } |
---|
760 | </pre></div> </td> |
---|
761 | </tr> |
---|
762 | </table> |
---|
763 | |
---|
764 | <p> |
---|
765 | Here is the call graph for this function:<p><center><img src="classG4UIXm_h1_cgraph.png" border="0" usemap="#classG4UIXm_h1_cgraph_map" alt=""></center> |
---|
766 | <map name="classG4UIXm_h1_cgraph_map"> |
---|
767 | <area href="classG4VBasicShell.html#b5" shape="rect" coords="203,33,377,59" alt=""> |
---|
768 | <area href="classG4VBasicShell.html#b6" shape="rect" coords="426,7,653,34" alt=""> |
---|
769 | <area href="classG4VBasicShell.html#d0" shape="rect" coords="447,58,631,85" alt=""> |
---|
770 | </map> |
---|
771 | <a class="anchor" name="a7" doxytag="G4UIXm::PauseSessionStart" ></a><p> |
---|
772 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
773 | <tr> |
---|
774 | <td class="mdRow"> |
---|
775 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
776 | <tr> |
---|
777 | <td class="md" nowrap valign="top"> void G4UIXm::PauseSessionStart </td> |
---|
778 | <td class="md" valign="top">( </td> |
---|
779 | <td class="md" nowrap valign="top">G4String </td> |
---|
780 | <td class="mdname1" valign="top" nowrap> <em>a_state</em> </td> |
---|
781 | <td class="md" valign="top"> ) </td> |
---|
782 | <td class="md" nowrap><code> [virtual]</code></td> |
---|
783 | </tr> |
---|
784 | |
---|
785 | </table> |
---|
786 | </td> |
---|
787 | </tr> |
---|
788 | </table> |
---|
789 | <table cellspacing=5 cellpadding=0 border=0> |
---|
790 | <tr> |
---|
791 | <td> |
---|
792 | |
---|
793 | </td> |
---|
794 | <td> |
---|
795 | |
---|
796 | <p> |
---|
797 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
798 | <p> |
---|
799 | Implements <a class="el" href="classG4VBasicShell.html#a3">G4VBasicShell</a>. |
---|
800 | <p> |
---|
801 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00219">219</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
802 | <p> |
---|
803 | References <a class="el" href="G4UIXm_8cc-source.html#l00235">SecondaryLoop()</a>. |
---|
804 | <p> |
---|
805 | <div class="fragment"><pre>00224 { |
---|
806 | 00225 <span class="keywordflow">if</span>(a_state==<span class="stringliteral">"G4_pause> "</span>) { |
---|
807 | 00226 <a class="code" href="classG4UIXm.html#d0">SecondaryLoop</a> (<span class="stringliteral">"Pause, type continue to exit this state"</span>); |
---|
808 | 00227 } |
---|
809 | 00228 |
---|
810 | 00229 <span class="keywordflow">if</span>(a_state==<span class="stringliteral">"EndOfEvent"</span>) { |
---|
811 | 00230 <span class="comment">// Picking with feed back in event data Done here !!!</span> |
---|
812 | 00231 <a class="code" href="classG4UIXm.html#d0">SecondaryLoop</a> (<span class="stringliteral">"End of event, type continue to exit this state"</span>); |
---|
813 | 00232 } |
---|
814 | 00233 } |
---|
815 | </pre></div> </td> |
---|
816 | </tr> |
---|
817 | </table> |
---|
818 | |
---|
819 | <p> |
---|
820 | Here is the call graph for this function:<p><center><img src="classG4UIXm_a7_cgraph.png" border="0" usemap="#classG4UIXm_a7_cgraph_map" alt=""></center> |
---|
821 | <map name="classG4UIXm_a7_cgraph_map"> |
---|
822 | <area href="classG4UIXm.html#d0" shape="rect" coords="250,84,423,110" alt=""> |
---|
823 | <area href="classG4VInteractorManager.html#a17" shape="rect" coords="473,8,723,34" alt=""> |
---|
824 | <area href="classG4Xt.html#a2" shape="rect" coords="541,58,655,85" alt=""> |
---|
825 | <area href="classG4Xt.html#e0" shape="rect" coords="534,109,662,136" alt=""> |
---|
826 | <area href="classG4UIXm.html#a5" shape="rect" coords="537,160,659,186" alt=""> |
---|
827 | </map> |
---|
828 | <a class="anchor" name="a5" doxytag="G4UIXm::Prompt" ></a><p> |
---|
829 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
830 | <tr> |
---|
831 | <td class="mdRow"> |
---|
832 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
833 | <tr> |
---|
834 | <td class="md" nowrap valign="top"> void G4UIXm::Prompt </td> |
---|
835 | <td class="md" valign="top">( </td> |
---|
836 | <td class="md" nowrap valign="top">G4String </td> |
---|
837 | <td class="mdname1" valign="top" nowrap> <em>aPrompt</em> </td> |
---|
838 | <td class="md" valign="top"> ) </td> |
---|
839 | <td class="md" nowrap></td> |
---|
840 | </tr> |
---|
841 | |
---|
842 | </table> |
---|
843 | </td> |
---|
844 | </tr> |
---|
845 | </table> |
---|
846 | <table cellspacing=5 cellpadding=0 border=0> |
---|
847 | <tr> |
---|
848 | <td> |
---|
849 | |
---|
850 | </td> |
---|
851 | <td> |
---|
852 | |
---|
853 | <p> |
---|
854 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
855 | <p> |
---|
856 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00197">197</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
857 | <p> |
---|
858 | References <a class="el" href="G4UIXm_8hh-source.html#l00094">command</a>. |
---|
859 | <p> |
---|
860 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00272">GetHelpChoice()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00235">SecondaryLoop()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00179">SessionStart()</a>. |
---|
861 | <p> |
---|
862 | <div class="fragment"><pre>00202 { |
---|
863 | 00203 Arg args[1]; |
---|
864 | 00204 <span class="keywordtype">char</span>* str = (<span class="keywordtype">char</span>*)XtNewString(aPrompt.data()); |
---|
865 | 00205 XmString cps = XmStringLtoRCreate(str,XmSTRING_DEFAULT_CHARSET); |
---|
866 | 00206 XtFree(str); |
---|
867 | 00207 XtSetArg(args[0],XmNpromptString,cps); |
---|
868 | 00208 XtSetValues(command,args,1); |
---|
869 | 00209 XmStringFree(cps); |
---|
870 | 00210 } |
---|
871 | </pre></div> </td> |
---|
872 | </tr> |
---|
873 | </table> |
---|
874 | <a class="anchor" name="a9" doxytag="G4UIXm::ReceiveG4cerr" ></a><p> |
---|
875 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
876 | <tr> |
---|
877 | <td class="mdRow"> |
---|
878 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
879 | <tr> |
---|
880 | <td class="md" nowrap valign="top"> G4int G4UIXm::ReceiveG4cerr </td> |
---|
881 | <td class="md" valign="top">( </td> |
---|
882 | <td class="md" nowrap valign="top">G4String </td> |
---|
883 | <td class="mdname1" valign="top" nowrap> <em>a_string</em> </td> |
---|
884 | <td class="md" valign="top"> ) </td> |
---|
885 | <td class="md" nowrap></td> |
---|
886 | </tr> |
---|
887 | |
---|
888 | </table> |
---|
889 | </td> |
---|
890 | </tr> |
---|
891 | </table> |
---|
892 | <table cellspacing=5 cellpadding=0 border=0> |
---|
893 | <tr> |
---|
894 | <td> |
---|
895 | |
---|
896 | </td> |
---|
897 | <td> |
---|
898 | |
---|
899 | <p> |
---|
900 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
901 | <p> |
---|
902 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00262">262</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
903 | <p> |
---|
904 | References <a class="el" href="G4UIXm_8hh-source.html#l00094">text</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00468">XmTextAppendString()</a>. |
---|
905 | <p> |
---|
906 | <div class="fragment"><pre>00267 { |
---|
907 | 00268 <a class="code" href="G4UIXm_8cc.html#a3">XmTextAppendString</a>(text,(<span class="keywordtype">char</span>*)a_string.data()); |
---|
908 | 00269 <span class="keywordflow">return</span> 0; |
---|
909 | 00270 } |
---|
910 | </pre></div> </td> |
---|
911 | </tr> |
---|
912 | </table> |
---|
913 | |
---|
914 | <p> |
---|
915 | Here is the call graph for this function:<p><center><img src="classG4UIXm_a9_cgraph.png" border="0" usemap="#classG4UIXm_a9_cgraph_map" alt=""></center> |
---|
916 | <map name="classG4UIXm_a9_cgraph_map"> |
---|
917 | <area href="G4UIXm_8cc.html#a3" shape="rect" coords="225,8,371,34" alt=""> |
---|
918 | </map> |
---|
919 | <a class="anchor" name="a8" doxytag="G4UIXm::ReceiveG4cout" ></a><p> |
---|
920 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
921 | <tr> |
---|
922 | <td class="mdRow"> |
---|
923 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
924 | <tr> |
---|
925 | <td class="md" nowrap valign="top"> G4int G4UIXm::ReceiveG4cout </td> |
---|
926 | <td class="md" valign="top">( </td> |
---|
927 | <td class="md" nowrap valign="top">G4String </td> |
---|
928 | <td class="mdname1" valign="top" nowrap> <em>a_string</em> </td> |
---|
929 | <td class="md" valign="top"> ) </td> |
---|
930 | <td class="md" nowrap></td> |
---|
931 | </tr> |
---|
932 | |
---|
933 | </table> |
---|
934 | </td> |
---|
935 | </tr> |
---|
936 | </table> |
---|
937 | <table cellspacing=5 cellpadding=0 border=0> |
---|
938 | <tr> |
---|
939 | <td> |
---|
940 | |
---|
941 | </td> |
---|
942 | <td> |
---|
943 | |
---|
944 | <p> |
---|
945 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
946 | <p> |
---|
947 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00252">252</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
948 | <p> |
---|
949 | References <a class="el" href="G4UIXm_8hh-source.html#l00094">text</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00468">XmTextAppendString()</a>. |
---|
950 | <p> |
---|
951 | <div class="fragment"><pre>00257 { |
---|
952 | 00258 <a class="code" href="G4UIXm_8cc.html#a3">XmTextAppendString</a>(text,(<span class="keywordtype">char</span>*)a_string.data()); |
---|
953 | 00259 <span class="keywordflow">return</span> 0; |
---|
954 | 00260 } |
---|
955 | </pre></div> </td> |
---|
956 | </tr> |
---|
957 | </table> |
---|
958 | |
---|
959 | <p> |
---|
960 | Here is the call graph for this function:<p><center><img src="classG4UIXm_a8_cgraph.png" border="0" usemap="#classG4UIXm_a8_cgraph_map" alt=""></center> |
---|
961 | <map name="classG4UIXm_a8_cgraph_map"> |
---|
962 | <area href="G4UIXm_8cc.html#a3" shape="rect" coords="228,8,374,34" alt=""> |
---|
963 | </map> |
---|
964 | <a class="anchor" name="d0" doxytag="G4UIXm::SecondaryLoop" ></a><p> |
---|
965 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
966 | <tr> |
---|
967 | <td class="mdRow"> |
---|
968 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
969 | <tr> |
---|
970 | <td class="md" nowrap valign="top"> void G4UIXm::SecondaryLoop </td> |
---|
971 | <td class="md" valign="top">( </td> |
---|
972 | <td class="md" nowrap valign="top">G4String </td> |
---|
973 | <td class="mdname1" valign="top" nowrap> <em>a_prompt</em> </td> |
---|
974 | <td class="md" valign="top"> ) </td> |
---|
975 | <td class="md" nowrap><code> [private]</code></td> |
---|
976 | </tr> |
---|
977 | |
---|
978 | </table> |
---|
979 | </td> |
---|
980 | </tr> |
---|
981 | </table> |
---|
982 | <table cellspacing=5 cellpadding=0 border=0> |
---|
983 | <tr> |
---|
984 | <td> |
---|
985 | |
---|
986 | </td> |
---|
987 | <td> |
---|
988 | |
---|
989 | <p> |
---|
990 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
991 | <p> |
---|
992 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00235">235</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
993 | <p> |
---|
994 | References <a class="el" href="G4VInteractorManager_8cc-source.html#l00178">G4VInteractorManager::DispatchEvent()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00071">exitPause</a>, <a class="el" href="G4Xt_8cc-source.html#l00152">G4Xt::GetEvent()</a>, <a class="el" href="G4Xt_8cc-source.html#l00059">G4Xt::getInstance()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00197">Prompt()</a>. |
---|
995 | <p> |
---|
996 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00219">PauseSessionStart()</a>. |
---|
997 | <p> |
---|
998 | <div class="fragment"><pre>00240 { |
---|
999 | 00241 <a class="code" href="classG4Xt.html">G4Xt</a>* interactorManager = <a class="code" href="classG4Xt.html#e0">G4Xt::getInstance</a> (); |
---|
1000 | 00242 <a class="code" href="classG4UIXm.html#a5">Prompt</a>(a_prompt); |
---|
1001 | 00243 <a class="code" href="G4UIXm_8cc.html#a1">exitPause</a> = <span class="keyword">false</span>; |
---|
1002 | 00244 <span class="keywordtype">void</span>* event; |
---|
1003 | 00245 <span class="keywordflow">while</span>((event = interactorManager-><a class="code" href="classG4Xt.html#a2">GetEvent</a>())!=NULL) { |
---|
1004 | 00246 interactorManager-><a class="code" href="classG4VInteractorManager.html#a17">DispatchEvent</a>(event); |
---|
1005 | 00247 <span class="keywordflow">if</span>(<a class="code" href="G4UIXm_8cc.html#a1">exitPause</a>==<span class="keyword">true</span>) <span class="keywordflow">break</span>; |
---|
1006 | 00248 } |
---|
1007 | 00249 <a class="code" href="classG4UIXm.html#a5">Prompt</a>(<span class="stringliteral">"session"</span>); |
---|
1008 | 00250 } |
---|
1009 | </pre></div> </td> |
---|
1010 | </tr> |
---|
1011 | </table> |
---|
1012 | |
---|
1013 | <p> |
---|
1014 | Here is the call graph for this function:<p><center><img src="classG4UIXm_d0_cgraph.png" border="0" usemap="#classG4UIXm_d0_cgraph_map" alt=""></center> |
---|
1015 | <map name="classG4UIXm_d0_cgraph_map"> |
---|
1016 | <area href="classG4VInteractorManager.html#a17" shape="rect" coords="230,8,481,34" alt=""> |
---|
1017 | <area href="classG4Xt.html#a2" shape="rect" coords="298,58,413,85" alt=""> |
---|
1018 | <area href="classG4Xt.html#e0" shape="rect" coords="292,109,420,136" alt=""> |
---|
1019 | <area href="classG4UIXm.html#a5" shape="rect" coords="294,160,417,186" alt=""> |
---|
1020 | </map> |
---|
1021 | <a class="anchor" name="a1" doxytag="G4UIXm::SessionStart" ></a><p> |
---|
1022 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1023 | <tr> |
---|
1024 | <td class="mdRow"> |
---|
1025 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1026 | <tr> |
---|
1027 | <td class="md" nowrap valign="top"> G4UIsession * G4UIXm::SessionStart </td> |
---|
1028 | <td class="md" valign="top">( </td> |
---|
1029 | <td class="mdname1" valign="top" nowrap> </td> |
---|
1030 | <td class="md" valign="top"> ) </td> |
---|
1031 | <td class="md" nowrap><code> [virtual]</code></td> |
---|
1032 | </tr> |
---|
1033 | |
---|
1034 | </table> |
---|
1035 | </td> |
---|
1036 | </tr> |
---|
1037 | </table> |
---|
1038 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1039 | <tr> |
---|
1040 | <td> |
---|
1041 | |
---|
1042 | </td> |
---|
1043 | <td> |
---|
1044 | |
---|
1045 | <p> |
---|
1046 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
1047 | <p> |
---|
1048 | Implements <a class="el" href="classG4VBasicShell.html#a2">G4VBasicShell</a>. |
---|
1049 | <p> |
---|
1050 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00179">179</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
1051 | <p> |
---|
1052 | References <a class="el" href="G4VInteractorManager_8cc-source.html#l00144">G4VInteractorManager::DisableSecondaryLoop()</a>, <a class="el" href="G4VInteractorManager_8cc-source.html#l00178">G4VInteractorManager::DispatchEvent()</a>, <a class="el" href="G4VInteractorManager_8cc-source.html#l00136">G4VInteractorManager::EnableSecondaryLoop()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00070">exitSession</a>, <a class="el" href="G4Xt_8cc-source.html#l00152">G4Xt::GetEvent()</a>, <a class="el" href="G4Xt_8cc-source.html#l00059">G4Xt::getInstance()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00197">Prompt()</a>. |
---|
1053 | <p> |
---|
1054 | <div class="fragment"><pre>00183 { |
---|
1055 | 00184 <a class="code" href="classG4Xt.html">G4Xt</a>* interactorManager = <a class="code" href="classG4Xt.html#e0">G4Xt::getInstance</a> (); |
---|
1056 | 00185 <a class="code" href="classG4UIXm.html#a5">Prompt</a>(<span class="stringliteral">"session"</span>); |
---|
1057 | 00186 <a class="code" href="G4UIXm_8cc.html#a0">exitSession</a> = <span class="keyword">false</span>; |
---|
1058 | 00187 interactorManager-><a class="code" href="classG4VInteractorManager.html#a13">DisableSecondaryLoop</a> (); |
---|
1059 | 00188 <span class="keywordtype">void</span>* event; |
---|
1060 | 00189 <span class="keywordflow">while</span>((event = interactorManager-><a class="code" href="classG4Xt.html#a2">GetEvent</a>())!=NULL) { |
---|
1061 | 00190 interactorManager-><a class="code" href="classG4VInteractorManager.html#a17">DispatchEvent</a>(event); |
---|
1062 | 00191 <span class="keywordflow">if</span>(<a class="code" href="G4UIXm_8cc.html#a0">exitSession</a>==<span class="keyword">true</span>) <span class="keywordflow">break</span>; |
---|
1063 | 00192 } |
---|
1064 | 00193 interactorManager-><a class="code" href="classG4VInteractorManager.html#a12">EnableSecondaryLoop</a> (); |
---|
1065 | 00194 <span class="keywordflow">return</span> <span class="keyword">this</span>; |
---|
1066 | 00195 } |
---|
1067 | </pre></div> </td> |
---|
1068 | </tr> |
---|
1069 | </table> |
---|
1070 | |
---|
1071 | <p> |
---|
1072 | Here is the call graph for this function:<p><center><img src="classG4UIXm_a1_cgraph.png" border="0" usemap="#classG4UIXm_a1_cgraph_map" alt=""></center> |
---|
1073 | <map name="classG4UIXm_a1_cgraph_map"> |
---|
1074 | <area href="classG4VInteractorManager.html#a13" shape="rect" coords="214,8,515,34" alt=""> |
---|
1075 | <area href="classG4VInteractorManager.html#a17" shape="rect" coords="239,58,490,85" alt=""> |
---|
1076 | <area href="classG4VInteractorManager.html#a12" shape="rect" coords="215,109,514,136" alt=""> |
---|
1077 | <area href="classG4Xt.html#a2" shape="rect" coords="307,160,422,186" alt=""> |
---|
1078 | <area href="classG4Xt.html#e0" shape="rect" coords="301,210,429,237" alt=""> |
---|
1079 | <area href="classG4UIXm.html#a5" shape="rect" coords="303,261,426,288" alt=""> |
---|
1080 | </map> |
---|
1081 | <a class="anchor" name="a6" doxytag="G4UIXm::SessionTerminate" ></a><p> |
---|
1082 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1083 | <tr> |
---|
1084 | <td class="mdRow"> |
---|
1085 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1086 | <tr> |
---|
1087 | <td class="md" nowrap valign="top"> void G4UIXm::SessionTerminate </td> |
---|
1088 | <td class="md" valign="top">( </td> |
---|
1089 | <td class="mdname1" valign="top" nowrap> </td> |
---|
1090 | <td class="md" valign="top"> ) </td> |
---|
1091 | <td class="md" nowrap></td> |
---|
1092 | </tr> |
---|
1093 | |
---|
1094 | </table> |
---|
1095 | </td> |
---|
1096 | </tr> |
---|
1097 | </table> |
---|
1098 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1099 | <tr> |
---|
1100 | <td> |
---|
1101 | |
---|
1102 | </td> |
---|
1103 | <td> |
---|
1104 | |
---|
1105 | <p> |
---|
1106 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
1107 | <p> |
---|
1108 | Definition at line <a class="el" href="G4UIXm_8cc-source.html#l00212">212</a> of file <a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a>. |
---|
1109 | <p> |
---|
1110 | <div class="fragment"><pre>00216 { |
---|
1111 | 00217 } |
---|
1112 | </pre></div> </td> |
---|
1113 | </tr> |
---|
1114 | </table> |
---|
1115 | <hr><h2>Member Data Documentation</h2> |
---|
1116 | <a class="anchor" name="r2" doxytag="G4UIXm::command" ></a><p> |
---|
1117 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1118 | <tr> |
---|
1119 | <td class="mdRow"> |
---|
1120 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1121 | <tr> |
---|
1122 | <td class="md" nowrap valign="top"> Widget <a class="el" href="classG4UIXm.html#r2">G4UIXm::command</a><code> [private]</code> |
---|
1123 | </table> |
---|
1124 | </td> |
---|
1125 | </tr> |
---|
1126 | </table> |
---|
1127 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1128 | <tr> |
---|
1129 | <td> |
---|
1130 | |
---|
1131 | </td> |
---|
1132 | <td> |
---|
1133 | |
---|
1134 | <p> |
---|
1135 | |
---|
1136 | <p> |
---|
1137 | Definition at line <a class="el" href="G4UIXm_8hh-source.html#l00094">94</a> of file <a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a>. |
---|
1138 | <p> |
---|
1139 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00359">commandEnteredCallback()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00074">G4UIXm()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00197">Prompt()</a>. </td> |
---|
1140 | </tr> |
---|
1141 | </table> |
---|
1142 | <a class="anchor" name="r5" doxytag="G4UIXm::commands" ></a><p> |
---|
1143 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1144 | <tr> |
---|
1145 | <td class="mdRow"> |
---|
1146 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1147 | <tr> |
---|
1148 | <td class="md" nowrap valign="top"> std::map<Widget,G4String, std::less<Widget> > <a class="el" href="classG4UIXm.html#r5">G4UIXm::commands</a><code> [private]</code> |
---|
1149 | </table> |
---|
1150 | </td> |
---|
1151 | </tr> |
---|
1152 | </table> |
---|
1153 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1154 | <tr> |
---|
1155 | <td> |
---|
1156 | |
---|
1157 | </td> |
---|
1158 | <td> |
---|
1159 | |
---|
1160 | <p> |
---|
1161 | |
---|
1162 | <p> |
---|
1163 | Definition at line <a class="el" href="G4UIXm_8hh-source.html#l00095">95</a> of file <a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a>. |
---|
1164 | <p> |
---|
1165 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00329">AddButton()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00348">GetCommand()</a>. </td> |
---|
1166 | </tr> |
---|
1167 | </table> |
---|
1168 | <a class="anchor" name="r6" doxytag="G4UIXm::fHelp" ></a><p> |
---|
1169 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1170 | <tr> |
---|
1171 | <td class="mdRow"> |
---|
1172 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1173 | <tr> |
---|
1174 | <td class="md" nowrap valign="top"> G4bool <a class="el" href="classG4UIXm.html#r6">G4UIXm::fHelp</a><code> [private]</code> |
---|
1175 | </table> |
---|
1176 | </td> |
---|
1177 | </tr> |
---|
1178 | </table> |
---|
1179 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1180 | <tr> |
---|
1181 | <td> |
---|
1182 | |
---|
1183 | </td> |
---|
1184 | <td> |
---|
1185 | |
---|
1186 | <p> |
---|
1187 | |
---|
1188 | <p> |
---|
1189 | Definition at line <a class="el" href="G4UIXm_8hh-source.html#l00098">98</a> of file <a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a>. |
---|
1190 | <p> |
---|
1191 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00416">ButtonCallback()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00359">commandEnteredCallback()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00272">GetHelpChoice()</a>. </td> |
---|
1192 | </tr> |
---|
1193 | </table> |
---|
1194 | <a class="anchor" name="r7" doxytag="G4UIXm::fHelpChoice" ></a><p> |
---|
1195 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1196 | <tr> |
---|
1197 | <td class="mdRow"> |
---|
1198 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1199 | <tr> |
---|
1200 | <td class="md" nowrap valign="top"> G4int <a class="el" href="classG4UIXm.html#r7">G4UIXm::fHelpChoice</a><code> [private]</code> |
---|
1201 | </table> |
---|
1202 | </td> |
---|
1203 | </tr> |
---|
1204 | </table> |
---|
1205 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1206 | <tr> |
---|
1207 | <td> |
---|
1208 | |
---|
1209 | </td> |
---|
1210 | <td> |
---|
1211 | |
---|
1212 | <p> |
---|
1213 | |
---|
1214 | <p> |
---|
1215 | Definition at line <a class="el" href="G4UIXm_8hh-source.html#l00099">99</a> of file <a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a>. |
---|
1216 | <p> |
---|
1217 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00359">commandEnteredCallback()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00272">GetHelpChoice()</a>. </td> |
---|
1218 | </tr> |
---|
1219 | </table> |
---|
1220 | <a class="anchor" name="r0" doxytag="G4UIXm::form" ></a><p> |
---|
1221 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1222 | <tr> |
---|
1223 | <td class="mdRow"> |
---|
1224 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1225 | <tr> |
---|
1226 | <td class="md" nowrap valign="top"> Widget <a class="el" href="classG4UIXm.html#r0">G4UIXm::form</a><code> [private]</code> |
---|
1227 | </table> |
---|
1228 | </td> |
---|
1229 | </tr> |
---|
1230 | </table> |
---|
1231 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1232 | <tr> |
---|
1233 | <td> |
---|
1234 | |
---|
1235 | </td> |
---|
1236 | <td> |
---|
1237 | |
---|
1238 | <p> |
---|
1239 | |
---|
1240 | <p> |
---|
1241 | Definition at line <a class="el" href="G4UIXm_8hh-source.html#l00094">94</a> of file <a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a>. |
---|
1242 | <p> |
---|
1243 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00303">AddMenu()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00074">G4UIXm()</a>. </td> |
---|
1244 | </tr> |
---|
1245 | </table> |
---|
1246 | <a class="anchor" name="r3" doxytag="G4UIXm::menuBar" ></a><p> |
---|
1247 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1248 | <tr> |
---|
1249 | <td class="mdRow"> |
---|
1250 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1251 | <tr> |
---|
1252 | <td class="md" nowrap valign="top"> Widget <a class="el" href="classG4UIXm.html#r3">G4UIXm::menuBar</a><code> [private]</code> |
---|
1253 | </table> |
---|
1254 | </td> |
---|
1255 | </tr> |
---|
1256 | </table> |
---|
1257 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1258 | <tr> |
---|
1259 | <td> |
---|
1260 | |
---|
1261 | </td> |
---|
1262 | <td> |
---|
1263 | |
---|
1264 | <p> |
---|
1265 | |
---|
1266 | <p> |
---|
1267 | Definition at line <a class="el" href="G4UIXm_8hh-source.html#l00094">94</a> of file <a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a>. |
---|
1268 | <p> |
---|
1269 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00303">AddMenu()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00074">G4UIXm()</a>. </td> |
---|
1270 | </tr> |
---|
1271 | </table> |
---|
1272 | <a class="anchor" name="r1" doxytag="G4UIXm::shell" ></a><p> |
---|
1273 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1274 | <tr> |
---|
1275 | <td class="mdRow"> |
---|
1276 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1277 | <tr> |
---|
1278 | <td class="md" nowrap valign="top"> Widget <a class="el" href="classG4UIXm.html#r1">G4UIXm::shell</a><code> [private]</code> |
---|
1279 | </table> |
---|
1280 | </td> |
---|
1281 | </tr> |
---|
1282 | </table> |
---|
1283 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1284 | <tr> |
---|
1285 | <td> |
---|
1286 | |
---|
1287 | </td> |
---|
1288 | <td> |
---|
1289 | |
---|
1290 | <p> |
---|
1291 | |
---|
1292 | <p> |
---|
1293 | Definition at line <a class="el" href="G4UIXm_8hh-source.html#l00094">94</a> of file <a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a>. |
---|
1294 | <p> |
---|
1295 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00074">G4UIXm()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00166">~G4UIXm()</a>. </td> |
---|
1296 | </tr> |
---|
1297 | </table> |
---|
1298 | <a class="anchor" name="r4" doxytag="G4UIXm::text" ></a><p> |
---|
1299 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
1300 | <tr> |
---|
1301 | <td class="mdRow"> |
---|
1302 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
1303 | <tr> |
---|
1304 | <td class="md" nowrap valign="top"> Widget <a class="el" href="classG4UIXm.html#r4">G4UIXm::text</a><code> [private]</code> |
---|
1305 | </table> |
---|
1306 | </td> |
---|
1307 | </tr> |
---|
1308 | </table> |
---|
1309 | <table cellspacing=5 cellpadding=0 border=0> |
---|
1310 | <tr> |
---|
1311 | <td> |
---|
1312 | |
---|
1313 | </td> |
---|
1314 | <td> |
---|
1315 | |
---|
1316 | <p> |
---|
1317 | |
---|
1318 | <p> |
---|
1319 | Definition at line <a class="el" href="G4UIXm_8hh-source.html#l00094">94</a> of file <a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a>. |
---|
1320 | <p> |
---|
1321 | Referenced by <a class="el" href="G4UIXm_8cc-source.html#l00074">G4UIXm()</a>, <a class="el" href="G4UIXm_8cc-source.html#l00262">ReceiveG4cerr()</a>, and <a class="el" href="G4UIXm_8cc-source.html#l00252">ReceiveG4cout()</a>. </td> |
---|
1322 | </tr> |
---|
1323 | </table> |
---|
1324 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
1325 | <li><a class="el" href="G4UIXm_8hh-source.html">G4UIXm.hh</a><li><a class="el" href="G4UIXm_8cc-source.html">G4UIXm.cc</a></ul> |
---|
1326 | <hr size="1"><address style="align: right;"><small>Generated on Fri Jun 22 11:07:54 2007 by |
---|
1327 | <a href="http://www.doxygen.org/index.html"> |
---|
1328 | <img src="doxygen.png" alt="doxygen" align="middle" border=0 > |
---|
1329 | </a>1.3.4 </small></address> |
---|
1330 | </body> |
---|
1331 | </html> |
---|