source: trunk/source/interfaces/html/classG4UIQt.html@ 856

Last change on this file since 856 was 571, checked in by garnier, 18 years ago

r581@mac-90108: laurentgarnier | 2007-08-17 17:30:26 +0200
deplacement de frame

  • Property svn:mime-type set to text/html
File size: 90.4 KB
Line 
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>G4UIQt 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&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
8<h1>G4UIQt Class Reference</h1><code>#include &lt;<a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>&gt;</code>
9<p>
10Inheritance diagram for G4UIQt:<p><center><img src="classG4UIQt__inherit__graph.png" border="0" usemap="#G4UIQt__inherit__map" alt="Inheritance graph"></center>
11<map name="G4UIQt__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 G4UIQt:<p><center><img src="classG4UIQt__coll__graph.png" border="0" usemap="#G4UIQt__coll__map" alt="Collaboration graph"></center>
16<map name="G4UIQt__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="classG4UIQt-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>Signals</h2></td></tr>
23<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#l0">myClicked</a> (const QString &amp;text)</td></tr>
24
25<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
26<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a0">G4UIQt</a> (int, char **)</td></tr>
27
28<tr><td class="memItemLeft" nowrap align=right valign=top>G4UIsession *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a1">SessionStart</a> ()</td></tr>
29
30<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a2">AddMenu</a> (const char *, const char *)</td></tr>
31
32<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a3">AddButton</a> (const char *, const char *, const char *)</td></tr>
33
34<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a4">~G4UIQt</a> ()</td></tr>
35
36<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a5">Prompt</a> (G4String)</td></tr>
37
38<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a6">SessionTerminate</a> ()</td></tr>
39
40<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a7">PauseSessionStart</a> (G4String)</td></tr>
41
42<tr><td class="memItemLeft" nowrap align=right valign=top>G4int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a8">ReceiveG4cout</a> (G4String)</td></tr>
43
44<tr><td class="memItemLeft" nowrap align=right valign=top>G4int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#a9">ReceiveG4cerr</a> (G4String)</td></tr>
45
46<tr><td colspan=2><br><h2>Private Slots</h2></td></tr>
47<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#k0">clearButtonCallback</a> ()</td></tr>
48
49<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#k1">commandEnteredCallback</a> ()</td></tr>
50
51<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#k2">buttonCallback</a> (const QString &amp;)</td></tr>
52
53<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#k3">helpTreeCallback</a> ()</td></tr>
54
55<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#k4">showHelpCallback</a> ()</td></tr>
56
57<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#k5">commandHistoryCallback</a> ()</td></tr>
58
59<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
60<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#d0">SecondaryLoop</a> (G4String)</td></tr>
61
62<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#d1">TerminalHelp</a> (G4String)</td></tr>
63
64<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#d2">CreateChildTree</a> (QTreeWidgetItem *, G4UIcommandTree *)</td></tr>
65
66<tr><td class="memItemLeft" nowrap align=right valign=top>QString&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#d3">GetCommandList</a> (G4UIcommand *)</td></tr>
67
68<tr><td class="memItemLeft" nowrap align=right valign=top>G4bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#d4">GetHelpChoice</a> (G4int &amp;)</td></tr>
69
70<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#d5">ExitHelp</a> ()</td></tr>
71
72<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#d6">eventFilter</a> (QObject *, QEvent *)</td></tr>
73
74<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
75<tr><td class="memItemLeft" nowrap align=right valign=top>QMainWindow *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r0">fMainWindow</a></td></tr>
76
77<tr><td class="memItemLeft" nowrap align=right valign=top>QLabel *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r1">fCommandLabel</a></td></tr>
78
79<tr><td class="memItemLeft" nowrap align=right valign=top>QLineEdit *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r2">fCommandArea</a></td></tr>
80
81<tr><td class="memItemLeft" nowrap align=right valign=top>QTextEdit *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r3">fTextArea</a></td></tr>
82
83<tr><td class="memItemLeft" nowrap align=right valign=top>QTextEdit *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r4">fHelpArea</a></td></tr>
84
85<tr><td class="memItemLeft" nowrap align=right valign=top>QListWidget *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r5">fCommandHistoryArea</a></td></tr>
86
87<tr><td class="memItemLeft" nowrap align=right valign=top>QSignalMapper *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r6">signalMapper</a></td></tr>
88
89<tr><td class="memItemLeft" nowrap align=right valign=top>QTreeWidget *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r7">fHelpTreeWidget</a></td></tr>
90
91<tr><td class="memItemLeft" nowrap align=right valign=top>QDialog *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r8">fHelpDialog</a></td></tr>
92
93</table>
94<hr><h2>Constructor &amp; Destructor Documentation</h2>
95<a class="anchor" name="a0" doxytag="G4UIQt::G4UIQt" ></a><p>
96<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
97 <tr>
98 <td class="mdRow">
99 <table cellpadding="0" cellspacing="0" border="0">
100 <tr>
101 <td class="md" nowrap valign="top"> G4UIQt::G4UIQt </td>
102 <td class="md" valign="top">(&nbsp;</td>
103 <td class="md" nowrap valign="top">int&nbsp;</td>
104 <td class="mdname" nowrap> <em>argc</em>, </td>
105 </tr>
106 <tr>
107 <td></td>
108 <td></td>
109 <td class="md" nowrap>char **&nbsp;</td>
110 <td class="mdname" nowrap> <em>argv</em></td>
111 </tr>
112 <tr>
113 <td></td>
114 <td class="md">)&nbsp;</td>
115 <td class="md" colspan="2"></td>
116 </tr>
117
118 </table>
119 </td>
120 </tr>
121</table>
122<table cellspacing=5 cellpadding=0 border=0>
123 <tr>
124 <td>
125 &nbsp;
126 </td>
127 <td>
128
129<p>
130Build a Qt window with a menubar, output area and promt area<br>
131 <pre><div>
132 +-----------------------+
133 |exit menu| |
134 | |
135 | +-------------------+ |
136 | | | |
137 | | Output area | |
138 | | | |
139 | +-------------------+ |
140 | | clear | |
141 | +-------------------+ |
142 | | promt history | |
143 | +-------------------+ |
144 | +-------------------+ |
145 | |&gt; promt area | |
146 | +-------------------+ |
147 +-----------------------+
148</pre></div>
149<p>
150Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00087">87</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
151<p>
152References <a class="el" href="G4UIQt_8cc-source.html#l00677">clearButtonCallback()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00688">commandEnteredCallback()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00767">commandHistoryCallback()</a>, <a class="el" href="G4UIQt_8hh-source.html#l00118">fCommandArea</a>, <a class="el" href="G4UIQt_8hh-source.html#l00121">fCommandHistoryArea</a>, <a class="el" href="G4UIQt_8hh-source.html#l00117">fCommandLabel</a>, <a class="el" href="G4UIQt_8hh-source.html#l00116">fMainWindow</a>, <a class="el" href="G4UIQt_8hh-source.html#l00119">fTextArea</a>, <a class="el" href="G4Qt_8cc-source.html#l00057">G4Qt::getInstance()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00667">showHelpCallback()</a>.
153<p>
154<div class="fragment"><pre>00091 :<a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>(NULL)
15500092 {
15600093 <a class="code" href="classG4Qt.html">G4Qt</a>* interactorManager = <a class="code" href="classG4Qt.html#e0">G4Qt::getInstance</a> ();
15700094 G4UImanager* UI = G4UImanager::GetUIpointer();
15800095 <span class="keywordflow">if</span>(UI!=NULL) UI-&gt;SetSession(<span class="keyword">this</span>);
15900096
16000097 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a> = <span class="keyword">new</span> QMainWindow();
16100098 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;setWindowTitle( <span class="stringliteral">"G4UI Session"</span> );
16200099 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;resize(800,600);
16300100 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;move(QPoint(200,100));
16400101
16500102 QSplitter *splitter = <span class="keyword">new</span> QSplitter(Qt::Vertical);
16600103 <a class="code" href="classG4UIQt.html#r3">fTextArea</a> = <span class="keyword">new</span> QTextEdit();
16700104 QPushButton *clearButton = <span class="keyword">new</span> QPushButton(<span class="stringliteral">"clear"</span>);
16800105 connect(clearButton, SIGNAL(clicked()), SLOT(<a class="code" href="classG4UIQt.html#k0">clearButtonCallback</a>()));
16900106
17000107 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a> = <span class="keyword">new</span> QListWidget();
17100108 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;setSelectionMode(QAbstractItemView::SingleSelection);
17200109 connect(fCommandHistoryArea, SIGNAL(itemSelectionChanged()), SLOT(<a class="code" href="classG4UIQt.html#k5">commandHistoryCallback</a>()));
17300110 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;installEventFilter(<span class="keyword">this</span>);
17400111 <a class="code" href="classG4UIQt.html#r1">fCommandLabel</a> = <span class="keyword">new</span> QLabel();
17500112
17600113 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a> = <span class="keyword">new</span> QLineEdit();
17700114 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>-&gt;installEventFilter(<span class="keyword">this</span>);
17800115 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>-&gt;activateWindow();
17900116 connect(fCommandArea, SIGNAL(returnPressed()), SLOT(<a class="code" href="classG4UIQt.html#k1">commandEnteredCallback</a>()));
18000117 <span class="comment">// fCommandArea-&gt;setFocusPolicy ( Qt::StrongFocus );</span>
18100118 <span class="comment">// fCommandArea-&gt;setFocus(Qt::TabFocusReason);</span>
18200119 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;setReadOnly(<span class="keyword">true</span>);
18300120
18400121
18500122 <span class="comment">// Set layouts</span>
18600123
18700124 QWidget* topWidget = <span class="keyword">new</span> QWidget();
18800125 QVBoxLayout *layoutTop = <span class="keyword">new</span> QVBoxLayout;
18900126
19000127 QWidget* bottomWidget = <span class="keyword">new</span> QWidget();
19100128 QVBoxLayout *layoutBottom = <span class="keyword">new</span> QVBoxLayout;
19200129
19300130
19400131 layoutTop-&gt;addWidget(fTextArea);
19500132 layoutTop-&gt;addWidget(clearButton);
19600133 topWidget-&gt;setLayout(layoutTop);
19700134
19800135 layoutBottom-&gt;addWidget(fCommandHistoryArea);
19900136 layoutBottom-&gt;addWidget(fCommandLabel);
20000137 layoutBottom-&gt;addWidget(fCommandArea);
20100138 bottomWidget-&gt;setLayout(layoutBottom);
20200139
20300140
20400141 splitter-&gt;addWidget(topWidget);
20500142 splitter-&gt;addWidget(bottomWidget);
20600143 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;setCentralWidget(splitter);
20700144
20800145 <span class="comment">// Add a quit subMenu</span>
20900146 QMenu *fileMenu = <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;menuBar()-&gt;addMenu(<span class="stringliteral">"File"</span>);
21000147 fileMenu-&gt;addAction(<span class="stringliteral">"Quitter"</span>, fMainWindow, SLOT(close()));
21100148
21200149 <span class="comment">// Add a Help menu</span>
21300150 QMenu *helpMenu = <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;menuBar()-&gt;addMenu(<span class="stringliteral">"Help"</span>);
21400151 helpMenu-&gt;addAction(<span class="stringliteral">"Show Help"</span>, <span class="keyword">this</span>, SLOT(<a class="code" href="classG4UIQt.html#k4">showHelpCallback</a>()));
21500152
21600153 <span class="comment">// Set the splitter size. The fTextArea sould be 2/3 on the fMainWindow</span>
21700154 QList&lt;int&gt; vals = splitter-&gt;sizes();
21800155 <span class="keywordflow">if</span>(vals.size()==2) {
21900156 vals[0] = (splitter-&gt;orientation()==Qt::Vertical ? splitter-&gt;height() : splitter-&gt;width())*3/4;
22000157 vals[1] = (splitter-&gt;orientation()==Qt::Vertical ? splitter-&gt;height() : splitter-&gt;width())*1/4;
22100158 splitter-&gt;setSizes(vals);
22200159 }
22300160
22400161
22500162 <span class="keywordflow">if</span>(UI!=NULL) UI-&gt;SetCoutDestination(<span class="keyword">this</span>); <span class="comment">// TO KEEP</span>
22600163 }
227</pre></div> </td>
228 </tr>
229</table>
230
231<p>
232Here is the call graph for this function:<p><center><img src="classG4UIQt_a0_cgraph.png" border="0" usemap="#classG4UIQt_a0_cgraph_map" alt=""></center>
233<map name="classG4UIQt_a0_cgraph_map">
234<area href="classG4Qt.html#e0" shape="rect" coords="177,8,305,34" alt="">
235</map>
236<a class="anchor" name="a4" doxytag="G4UIQt::~G4UIQt" ></a><p>
237<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
238 <tr>
239 <td class="mdRow">
240 <table cellpadding="0" cellspacing="0" border="0">
241 <tr>
242 <td class="md" nowrap valign="top"> G4UIQt::~<a class="el" href="classG4UIQt.html">G4UIQt</a> </td>
243 <td class="md" valign="top">(&nbsp;</td>
244 <td class="mdname1" valign="top" nowrap> </td>
245 <td class="md" valign="top">&nbsp;)&nbsp;</td>
246 <td class="md" nowrap></td>
247 </tr>
248
249 </table>
250 </td>
251 </tr>
252</table>
253<table cellspacing=5 cellpadding=0 border=0>
254 <tr>
255 <td>
256 &nbsp;
257 </td>
258 <td>
259
260<p>
261
262<p>
263Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00167">167</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
264<p>
265References <a class="el" href="G4UIQt_8hh-source.html#l00116">fMainWindow</a>.
266<p>
267<div class="fragment"><pre>00169 {
26800170 G4UImanager* UI = G4UImanager::GetUIpointer(); <span class="comment">// TO KEEP</span>
26900171 <span class="keywordflow">if</span>(UI!=NULL) { <span class="comment">// TO KEEP</span>
27000172 UI-&gt;SetSession(NULL); <span class="comment">// TO KEEP</span>
27100173 UI-&gt;SetCoutDestination(NULL); <span class="comment">// TO KEEP</span>
27200174 }
27300175
27400176
27500177 <span class="keywordflow">if</span> (<a class="code" href="classG4UIQt.html#r0">fMainWindow</a>!=NULL)
27600178 <span class="keyword">delete</span> <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>;
27700179 }
278</pre></div> </td>
279 </tr>
280</table>
281<hr><h2>Member Function Documentation</h2>
282<a class="anchor" name="a3" doxytag="G4UIQt::AddButton" ></a><p>
283<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
284 <tr>
285 <td class="mdRow">
286 <table cellpadding="0" cellspacing="0" border="0">
287 <tr>
288 <td class="md" nowrap valign="top"> void G4UIQt::AddButton </td>
289 <td class="md" valign="top">(&nbsp;</td>
290 <td class="md" nowrap valign="top">const char *&nbsp;</td>
291 <td class="mdname" nowrap> <em>aMenu</em>, </td>
292 </tr>
293 <tr>
294 <td></td>
295 <td></td>
296 <td class="md" nowrap>const char *&nbsp;</td>
297 <td class="mdname" nowrap> <em>aLabel</em>, </td>
298 </tr>
299 <tr>
300 <td></td>
301 <td></td>
302 <td class="md" nowrap>const char *&nbsp;</td>
303 <td class="mdname" nowrap> <em>aCommand</em></td>
304 </tr>
305 <tr>
306 <td></td>
307 <td class="md">)&nbsp;</td>
308 <td class="md" colspan="2"><code> [virtual]</code></td>
309 </tr>
310
311 </table>
312 </td>
313 </tr>
314</table>
315<table cellspacing=5 cellpadding=0 border=0>
316 <tr>
317 <td>
318 &nbsp;
319 </td>
320 <td>
321
322<p>
323Add a new button to a menu <dl compact><dt><b>Parameters:</b></dt><dd>
324 <table border="0" cellspacing="2" cellpadding="0">
325 <tr><td valign=top><em>aMenu</em>&nbsp;</td><td>: parent menu </td></tr>
326 <tr><td valign=top><em>aLabel</em>&nbsp;</td><td>: label to display </td></tr>
327 <tr><td valign=top><em>aCommand</em>&nbsp;</td><td>: command to execute as a callback </td></tr>
328 </table>
329</dl>
330
331<p>
332Reimplemented from <a class="el" href="classG4VInteractiveSession.html#a3">G4VInteractiveSession</a>.
333<p>
334Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00340">340</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
335<p>
336References <a class="el" href="G4UIQt_8cc-source.html#l00715">buttonCallback()</a>, <a class="el" href="G4VInteractiveSession_8cc-source.html#l00062">G4VInteractiveSession::GetInteractor()</a>, and <a class="el" href="G4UIQt_8hh-source.html#l00122">signalMapper</a>.
337<p>
338<div class="fragment"><pre>00345 {
33900346 <span class="keywordflow">if</span>(aMenu==NULL) <span class="keywordflow">return</span>; <span class="comment">// TO KEEP</span>
34000347 <span class="keywordflow">if</span>(aLabel==NULL) <span class="keywordflow">return</span>; <span class="comment">// TO KEEP</span>
34100348 <span class="keywordflow">if</span>(aCommand==NULL) <span class="keywordflow">return</span>; <span class="comment">// TO KEEP</span>
34200349 QMenu *parent = (QMenu*)<a class="code" href="classG4VInteractiveSession.html#a5">GetInteractor</a>(aMenu);
34300350 <span class="keywordflow">if</span>(parent==NULL) <span class="keywordflow">return</span>;
34400351
34500352 <a class="code" href="classG4UIQt.html#r6">signalMapper</a> = <span class="keyword">new</span> QSignalMapper(<span class="keyword">this</span>);
34600353 QAction *action = parent-&gt;addAction(aLabel, signalMapper, SLOT(map()));
34700354 <a class="code" href="classG4UIQt.html#r6">signalMapper</a>-&gt;setMapping(action, QString(aCommand));
34800355 connect(signalMapper, SIGNAL(mapped(<span class="keyword">const</span> QString &amp;)),<span class="keyword">this</span>, SLOT(<a class="code" href="classG4UIQt.html#k2">buttonCallback</a>(<span class="keyword">const</span> QString&amp;)));
34900356 }
350</pre></div> </td>
351 </tr>
352</table>
353
354<p>
355Here is the call graph for this function:<p><center><img src="classG4UIQt_a3_cgraph.png" border="0" usemap="#classG4UIQt_a3_cgraph_map" alt=""></center>
356<map name="classG4UIQt_a3_cgraph_map">
357<area href="classG4VInteractiveSession.html#a5" shape="rect" coords="192,8,434,34" alt="">
358</map>
359<a class="anchor" name="a2" doxytag="G4UIQt::AddMenu" ></a><p>
360<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
361 <tr>
362 <td class="mdRow">
363 <table cellpadding="0" cellspacing="0" border="0">
364 <tr>
365 <td class="md" nowrap valign="top"> void G4UIQt::AddMenu </td>
366 <td class="md" valign="top">(&nbsp;</td>
367 <td class="md" nowrap valign="top">const char *&nbsp;</td>
368 <td class="mdname" nowrap> <em>aName</em>, </td>
369 </tr>
370 <tr>
371 <td></td>
372 <td></td>
373 <td class="md" nowrap>const char *&nbsp;</td>
374 <td class="mdname" nowrap> <em>aLabel</em></td>
375 </tr>
376 <tr>
377 <td></td>
378 <td class="md">)&nbsp;</td>
379 <td class="md" colspan="2"><code> [virtual]</code></td>
380 </tr>
381
382 </table>
383 </td>
384 </tr>
385</table>
386<table cellspacing=5 cellpadding=0 border=0>
387 <tr>
388 <td>
389 &nbsp;
390 </td>
391 <td>
392
393<p>
394Add a new menu to the menu bar <dl compact><dt><b>Parameters:</b></dt><dd>
395 <table border="0" cellspacing="2" cellpadding="0">
396 <tr><td valign=top><em>aName</em>&nbsp;</td><td>name of menu </td></tr>
397 <tr><td valign=top><em>aLabel</em>&nbsp;</td><td>label to display </td></tr>
398 </table>
399</dl>
400
401<p>
402Reimplemented from <a class="el" href="classG4VInteractiveSession.html#a2">G4VInteractiveSession</a>.
403<p>
404Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00323">323</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
405<p>
406References <a class="el" href="G4VInteractiveSession_8cc-source.html#l00055">G4VInteractiveSession::AddInteractor()</a>, <a class="el" href="G4UIQt_8hh-source.html#l00116">fMainWindow</a>, and <a class="el" href="G4VInteractorManager_8hh-source.html#l00038">G4Interactor</a>.
407<p>
408<div class="fragment"><pre>00327 {
40900328 QMenu *fileMenu = <span class="keyword">new</span> QMenu(aLabel);
41000329 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;menuBar()-&gt;insertMenu(<a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;menuBar()-&gt;actions().last(),fileMenu);
41100330 <a class="code" href="classG4VInteractiveSession.html#a4">AddInteractor</a> (aName,(<a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a>)fileMenu);
41200331 }
413</pre></div> </td>
414 </tr>
415</table>
416
417<p>
418Here is the call graph for this function:<p><center><img src="classG4UIQt_a2_cgraph.png" border="0" usemap="#classG4UIQt_a2_cgraph_map" alt=""></center>
419<map name="classG4UIQt_a2_cgraph_map">
420<area href="classG4VInteractiveSession.html#a4" shape="rect" coords="186,8,432,34" alt="">
421</map>
422<a class="anchor" name="k2" doxytag="G4UIQt::buttonCallback" ></a><p>
423<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
424 <tr>
425 <td class="mdRow">
426 <table cellpadding="0" cellspacing="0" border="0">
427 <tr>
428 <td class="md" nowrap valign="top"> void G4UIQt::buttonCallback </td>
429 <td class="md" valign="top">(&nbsp;</td>
430 <td class="md" nowrap valign="top">const QString &amp;&nbsp;</td>
431 <td class="mdname1" valign="top" nowrap> <em>aCommand</em> </td>
432 <td class="md" valign="top">&nbsp;)&nbsp;</td>
433 <td class="md" nowrap><code> [private, slot]</code></td>
434 </tr>
435
436 </table>
437 </td>
438 </tr>
439</table>
440<table cellspacing=5 cellpadding=0 border=0>
441 <tr>
442 <td>
443 &nbsp;
444 </td>
445 <td>
446
447<p>
448Callback call when "enter" clicked on the command zone.<br>
449 Send the command to geant4 <dl compact><dt><b>Parameters:</b></dt><dd>
450 <table border="0" cellspacing="2" cellpadding="0">
451 <tr><td valign=top><em>aCommand</em>&nbsp;</td><td></td></tr>
452 </table>
453</dl>
454
455<p>
456Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00715">715</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
457<p>
458References <a class="el" href="G4VBasicShell_8cc-source.html#l00286">G4VBasicShell::ApplyShellCommand()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00064">exitPause</a>, <a class="el" href="G4UIQt_8cc-source.html#l00063">exitSession</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00229">SessionTerminate()</a>.
459<p>
460Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00340">AddButton()</a>.
461<p>
462<div class="fragment"><pre>00718 {
46300719 G4String ss = G4String(aCommand.toStdString().c_str());
46400720 printf (<span class="stringliteral">"debug : execute:\n-%s- %d %d \n"</span>,ss.data(),<a class="code" href="G4UIQt_8cc.html#a0">exitSession</a>,<a class="code" href="G4UIQt_8cc.html#a1">exitPause</a>);
46500721 <a class="code" href="classG4VBasicShell.html#b10">ApplyShellCommand</a>(ss,exitSession,exitPause);
46600722 <span class="keywordflow">if</span>(<a class="code" href="G4UIQt_8cc.html#a0">exitSession</a>==<span class="keyword">true</span>)
46700723 <a class="code" href="classG4UIQt.html#a6">SessionTerminate</a>();
46800724 }
469</pre></div> </td>
470 </tr>
471</table>
472<a class="anchor" name="k0" doxytag="G4UIQt::clearButtonCallback" ></a><p>
473<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
474 <tr>
475 <td class="mdRow">
476 <table cellpadding="0" cellspacing="0" border="0">
477 <tr>
478 <td class="md" nowrap valign="top"> void G4UIQt::clearButtonCallback </td>
479 <td class="md" valign="top">(&nbsp;</td>
480 <td class="mdname1" valign="top" nowrap> </td>
481 <td class="md" valign="top">&nbsp;)&nbsp;</td>
482 <td class="md" nowrap><code> [private, slot]</code></td>
483 </tr>
484
485 </table>
486 </td>
487 </tr>
488</table>
489<table cellspacing=5 cellpadding=0 border=0>
490 <tr>
491 <td>
492 &nbsp;
493 </td>
494 <td>
495
496<p>
497Called when user click on clear button. Clear the text Output area
498<p>
499Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00677">677</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
500<p>
501References <a class="el" href="G4UIQt_8hh-source.html#l00119">fTextArea</a>.
502<p>
503Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>.
504<p>
505<div class="fragment"><pre>00679 {
50600680 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;clear();
50700681 }
508</pre></div> </td>
509 </tr>
510</table>
511<a class="anchor" name="k1" doxytag="G4UIQt::commandEnteredCallback" ></a><p>
512<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
513 <tr>
514 <td class="mdRow">
515 <table cellpadding="0" cellspacing="0" border="0">
516 <tr>
517 <td class="md" nowrap valign="top"> void G4UIQt::commandEnteredCallback </td>
518 <td class="md" valign="top">(&nbsp;</td>
519 <td class="mdname1" valign="top" nowrap> </td>
520 <td class="md" valign="top">&nbsp;)&nbsp;</td>
521 <td class="md" nowrap><code> [private, slot]</code></td>
522 </tr>
523
524 </table>
525 </td>
526 </tr>
527</table>
528<table cellspacing=5 cellpadding=0 border=0>
529 <tr>
530 <td>
531 &nbsp;
532 </td>
533 <td>
534
535<p>
536Callback call when "click on a menu entry.<br>
537 Send the associated command to geant4
538<p>
539Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00688">688</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
540<p>
541References <a class="el" href="G4VBasicShell_8cc-source.html#l00286">G4VBasicShell::ApplyShellCommand()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00064">exitPause</a>, <a class="el" href="G4UIQt_8cc-source.html#l00063">exitSession</a>, <a class="el" href="G4UIQt_8hh-source.html#l00118">fCommandArea</a>, <a class="el" href="G4UIQt_8hh-source.html#l00121">fCommandHistoryArea</a>, <a class="el" href="G4UIQt_8cc-source.html#l00229">SessionTerminate()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>.
542<p>
543Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>.
544<p>
545<div class="fragment"><pre>00690 {
54600691 G4String command (<a class="code" href="classG4UIQt.html#r2">fCommandArea</a>-&gt;text().toStdString().c_str());
54700692 <span class="keywordflow">if</span> (<a class="code" href="classG4UIQt.html#r2">fCommandArea</a>-&gt;text().trimmed() != <span class="stringliteral">""</span>) {
54800693 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;addItem(<a class="code" href="classG4UIQt.html#r2">fCommandArea</a>-&gt;text());
54900694 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;clearSelection();
55000695 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;item(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;count()-1)-&gt;setSelected(<span class="keyword">true</span>);
55100696 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;setCurrentItem(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;item(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;count()-1));
55200697
55300698 <span class="keywordflow">if</span> (command(0,4) != <span class="stringliteral">"help"</span>) {
55400699 <a class="code" href="classG4VBasicShell.html#b10">ApplyShellCommand</a> (command,exitSession,exitPause);
55500700 } <span class="keywordflow">else</span> {
55600701 <a class="code" href="classG4UIQt.html#d1">TerminalHelp</a>(command);
55700702 }
55800703 <span class="keywordflow">if</span>(<a class="code" href="G4UIQt_8cc.html#a0">exitSession</a>==<span class="keyword">true</span>)
55900704 <a class="code" href="classG4UIQt.html#a6">SessionTerminate</a>();
56000705 }
56100706 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>-&gt;setText(<span class="stringliteral">""</span>);
56200707 }
563</pre></div> </td>
564 </tr>
565</table>
566<a class="anchor" name="k5" doxytag="G4UIQt::commandHistoryCallback" ></a><p>
567<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
568 <tr>
569 <td class="mdRow">
570 <table cellpadding="0" cellspacing="0" border="0">
571 <tr>
572 <td class="md" nowrap valign="top"> void G4UIQt::commandHistoryCallback </td>
573 <td class="md" valign="top">(&nbsp;</td>
574 <td class="mdname1" valign="top" nowrap> </td>
575 <td class="md" valign="top">&nbsp;)&nbsp;</td>
576 <td class="md" nowrap><code> [private, slot]</code></td>
577 </tr>
578
579 </table>
580 </td>
581 </tr>
582</table>
583<table cellspacing=5 cellpadding=0 border=0>
584 <tr>
585 <td>
586 &nbsp;
587 </td>
588 <td>
589
590<p>
591Callback called when user select an old command in the command history<br>
592 Give it to the command area.
593<p>
594Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00767">767</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
595<p>
596References <a class="el" href="G4UIQt_8hh-source.html#l00118">fCommandArea</a>, and <a class="el" href="G4UIQt_8hh-source.html#l00121">fCommandHistoryArea</a>.
597<p>
598Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>.
599<p>
600<div class="fragment"><pre>00769 {
60100770 QListWidgetItem* item = NULL;
60200771 <span class="keywordflow">if</span> (!<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>)
60300772 <span class="keywordflow">return</span> ;
60400773
60500774
60600775 QList&lt;QListWidgetItem *&gt; list =<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;selectedItems();
60700776 <span class="keywordflow">if</span> (list.isEmpty())
60800777 <span class="keywordflow">return</span>;
60900778 item = list.first();
61000779 <span class="keywordflow">if</span> (!item)
61100780 <span class="keywordflow">return</span>;
61200781 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>-&gt;setText(item-&gt;text());
61300782
61400783 }
615</pre></div> </td>
616 </tr>
617</table>
618<a class="anchor" name="d2" doxytag="G4UIQt::CreateChildTree" ></a><p>
619<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
620 <tr>
621 <td class="mdRow">
622 <table cellpadding="0" cellspacing="0" border="0">
623 <tr>
624 <td class="md" nowrap valign="top"> void G4UIQt::CreateChildTree </td>
625 <td class="md" valign="top">(&nbsp;</td>
626 <td class="md" nowrap valign="top">QTreeWidgetItem *&nbsp;</td>
627 <td class="mdname" nowrap> <em>aParent</em>, </td>
628 </tr>
629 <tr>
630 <td></td>
631 <td></td>
632 <td class="md" nowrap>G4UIcommandTree *&nbsp;</td>
633 <td class="mdname" nowrap> <em>aCommandTree</em></td>
634 </tr>
635 <tr>
636 <td></td>
637 <td class="md">)&nbsp;</td>
638 <td class="md" colspan="2"><code> [private]</code></td>
639 </tr>
640
641 </table>
642 </td>
643 </tr>
644</table>
645<table cellspacing=5 cellpadding=0 border=0>
646 <tr>
647 <td>
648 &nbsp;
649 </td>
650 <td>
651
652<p>
653Fill the Help Tree Widget <dl compact><dt><b>Parameters:</b></dt><dd>
654 <table border="0" cellspacing="2" cellpadding="0">
655 <tr><td valign=top><em>aParent</em>&nbsp;</td><td>: parent item to fill </td></tr>
656 <tr><td valign=top><em>aCommandTree</em>&nbsp;</td><td>: commandTree node associate with this part of the Tree </td></tr>
657 </table>
658</dl>
659
660<p>
661Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00480">480</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
662<p>
663Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>.
664<p>
665<div class="fragment"><pre>00484 {
66600485
66700486 <span class="comment">// Creating new item</span>
66800487 QTreeWidgetItem * newItem;
66900488
67000489
67100490 <span class="comment">// Get the Sub directories</span>
67200491 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a&lt;aCommandTree-&gt;GetTreeEntry();a++) {
67300492
67400493 QStringList stringList;
67500494 stringList &lt;&lt; QString((<span class="keywordtype">char</span>*)(aCommandTree-&gt;GetTree(a+1)-&gt;GetPathName()).data()).trimmed() ;
67600495 stringList &lt;&lt; QString((<span class="keywordtype">char</span>*)(aCommandTree-&gt;GetTree(a+1)-&gt;GetTitle()).data()).trimmed() ;
67700496 newItem = <span class="keyword">new</span> QTreeWidgetItem(stringList);
67800497
67900498 <a class="code" href="classG4UIQt.html#d2">CreateChildTree</a>(newItem,aCommandTree-&gt;GetTree(a+1));
68000499 aParent-&gt;addChild(newItem);
68100500 }
68200501
68300502
68400503
68500504 <span class="comment">// Get the Commands</span>
68600505
68700506 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a&lt;aCommandTree-&gt;GetCommandEntry();a++) {
68800507
68900508 QStringList stringList;
69000509 stringList &lt;&lt; QString((<span class="keywordtype">char</span>*)(aCommandTree-&gt;GetCommand(a+1)-&gt;GetCommandPath()).data()).trimmed() ;
69100510 stringList &lt;&lt; QString((<span class="keywordtype">char</span>*)(aCommandTree-&gt;GetCommand(a+1)-&gt;GetCommandPath()).data()).trimmed() ;
69200511 newItem = <span class="keyword">new</span> QTreeWidgetItem(stringList);
69300512
69400513 aParent-&gt;addChild(newItem);
69500514 newItem-&gt;setExpanded(<span class="keyword">false</span>);
69600515 }
69700516 }
698</pre></div> </td>
699 </tr>
700</table>
701<a class="anchor" name="d6" doxytag="G4UIQt::eventFilter" ></a><p>
702<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
703 <tr>
704 <td class="mdRow">
705 <table cellpadding="0" cellspacing="0" border="0">
706 <tr>
707 <td class="md" nowrap valign="top"> bool G4UIQt::eventFilter </td>
708 <td class="md" valign="top">(&nbsp;</td>
709 <td class="md" nowrap valign="top">QObject *&nbsp;</td>
710 <td class="mdname" nowrap> <em>obj</em>, </td>
711 </tr>
712 <tr>
713 <td></td>
714 <td></td>
715 <td class="md" nowrap>QEvent *&nbsp;</td>
716 <td class="mdname" nowrap> <em>event</em></td>
717 </tr>
718 <tr>
719 <td></td>
720 <td class="md">)&nbsp;</td>
721 <td class="md" colspan="2"><code> [private]</code></td>
722 </tr>
723
724 </table>
725 </td>
726 </tr>
727</table>
728<table cellspacing=5 cellpadding=0 border=0>
729 <tr>
730 <td>
731 &nbsp;
732 </td>
733 <td>
734
735<p>
736Event filter method. Every event from QtApplication goes here.&lt;br/&gt; We apply a filter only for the Up and Down Arrow press when the QLineEdit&lt;br/&gt; is active. If this filter match, Up arrow we give the previous command&lt;br/&gt; and Down arrow will give the next if exist.&lt;br/&gt; <dl compact><dt><b>Parameters:</b></dt><dd>
737 <table border="0" cellspacing="2" cellpadding="0">
738 <tr><td valign=top><em>obj</em>&nbsp;</td><td>Emitter of the event </td></tr>
739 <tr><td valign=top><em>event</em>&nbsp;</td><td>Kind of event </td></tr>
740 </table>
741</dl>
742
743<p>
744Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00608">608</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
745<p>
746References <a class="el" href="G4UIQt_8hh-source.html#l00118">fCommandArea</a>, and <a class="el" href="G4UIQt_8hh-source.html#l00121">fCommandHistoryArea</a>.
747<p>
748<div class="fragment"><pre>00612 {
74900613 <span class="keywordflow">if</span> (obj == <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>) {
75000614 <span class="keywordflow">if</span> (event-&gt;type() == QEvent::KeyPress) {
75100615 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>-&gt;setFocus();
75200616 }
75300617 }
75400618 <span class="keywordflow">if</span> (obj == <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>) {
75500619 <span class="keywordflow">if</span> (event-&gt;type() == QEvent::KeyPress) {
75600620 QKeyEvent *e = static_cast&lt;QKeyEvent*&gt;(event);
75700621 <span class="keywordflow">if</span> ((e-&gt;key() == (Qt::Key_Down)) ||
75800622 (e-&gt;key() == (Qt::Key_PageDown)) ||
75900623 (e-&gt;key() == (Qt::Key_Up)) ||
76000624 (e-&gt;key() == (Qt::Key_PageUp))) {
76100625 <span class="keywordtype">int</span> selection = <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;currentRow();
76200626 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a&lt;<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;count();a++) {
76300627
76400628 }
76500629 <span class="keywordflow">if</span> (<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;count()) {
76600630 <span class="keywordflow">if</span> (selection == -1) {
76700631 selection = <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;count()-1;
76800632 }
76900633 <span class="keywordflow">if</span> (e-&gt;key() == (Qt::Key_Down)) {
77000634 <span class="keywordflow">if</span> (selection &lt;(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;count()-1))
77100635 selection++;
77200636 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (e-&gt;key() == (Qt::Key_PageDown)) {
77300637 selection = <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;count()-1;
77400638 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (e-&gt;key() == (Qt::Key_Up)) {
77500639 <span class="keywordflow">if</span> (selection &gt;0)
77600640 selection --;
77700641 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (e-&gt;key() == (Qt::Key_PageUp)) {
77800642 selection = 0;
77900643 }
78000644 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;clearSelection();
78100645 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;item(selection)-&gt;setSelected(<span class="keyword">true</span>);
78200646 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;setCurrentItem(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>-&gt;item(selection));
78300647 }
78400648 }
78500649 }
78600650 }
78700651 <span class="comment">// pass the event on to the parent class</span>
78800652 <span class="keywordflow">return</span> QObject::eventFilter(obj, event);
78900653 }
790</pre></div> </td>
791 </tr>
792</table>
793<a class="anchor" name="d5" doxytag="G4UIQt::ExitHelp" ></a><p>
794<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
795 <tr>
796 <td class="mdRow">
797 <table cellpadding="0" cellspacing="0" border="0">
798 <tr>
799 <td class="md" nowrap valign="top"> void G4UIQt::ExitHelp </td>
800 <td class="md" valign="top">(&nbsp;</td>
801 <td class="mdname1" valign="top" nowrap> </td>
802 <td class="md" valign="top">&nbsp;)&nbsp;</td>
803 <td class="md" nowrap><code> [private, virtual]</code></td>
804 </tr>
805
806 </table>
807 </td>
808 </tr>
809</table>
810<table cellspacing=5 cellpadding=0 border=0>
811 <tr>
812 <td>
813 &nbsp;
814 </td>
815 <td>
816
817<p>
818Implement <a class="el" href="classG4VBasicShell.html">G4VBasicShell</a> vurtual function
819<p>
820Implements <a class="el" href="classG4VBasicShell.html#b9">G4VBasicShell</a>.
821<p>
822Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00593">593</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
823<p>
824<div class="fragment"><pre>00595 {
82500596 printf(<span class="stringliteral">"G4UIQt::ExitHelp SHOULD NEVER GO HERE"</span>);
82600597 }
827</pre></div> </td>
828 </tr>
829</table>
830<a class="anchor" name="d3" doxytag="G4UIQt::GetCommandList" ></a><p>
831<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
832 <tr>
833 <td class="mdRow">
834 <table cellpadding="0" cellspacing="0" border="0">
835 <tr>
836 <td class="md" nowrap valign="top"> QString G4UIQt::GetCommandList </td>
837 <td class="md" valign="top">(&nbsp;</td>
838 <td class="md" nowrap valign="top">G4UIcommand *&nbsp;</td>
839 <td class="mdname1" valign="top" nowrap> <em>aCommand</em> </td>
840 <td class="md" valign="top">&nbsp;)&nbsp;</td>
841 <td class="md" nowrap><code> [private]</code></td>
842 </tr>
843
844 </table>
845 </td>
846 </tr>
847</table>
848<table cellspacing=5 cellpadding=0 border=0>
849 <tr>
850 <td>
851 &nbsp;
852 </td>
853 <td>
854
855<p>
856Build the command list parameters in a QString<br>
857 Reimplement partialy the G4UIparameter.cc <dl compact><dt><b>Parameters:</b></dt><dd>
858 <table border="0" cellspacing="2" cellpadding="0">
859 <tr><td valign=top><em>aCommand</em>&nbsp;</td><td>: command to list parameters </td></tr>
860 </table>
861</dl>
862<dl compact><dt><b>See also:</b></dt><dd>G4UIparameter::List() </dd></dl>
863<dl compact><dt><b>Returns:</b></dt><dd>the command list parameters </dd></dl>
864
865<p>
866Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00526">526</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
867<p>
868Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00731">helpTreeCallback()</a>.
869<p>
870<div class="fragment"><pre>00529 {
87100530
87200531 QString txt;
87300532 G4String commandPath = aCommand-&gt;GetCommandPath();
87400533 G4String rangeString = aCommand-&gt;GetRange();
87500534
87600535 <span class="keywordflow">if</span>((commandPath.length()-1)!=<span class="charliteral">'/'</span>)
87700536 {
87800537 txt += <span class="stringliteral">"Command "</span> + QString((<span class="keywordtype">char</span>*)(commandPath).data()) + <span class="stringliteral">"\n"</span>;
87900538 }
88000539 txt += <span class="stringliteral">"Guidance :\n"</span>;
88100540 G4int n_guidanceEntry = aCommand-&gt;GetGuidanceEntries();
88200541
88300542 <span class="keywordflow">for</span>( G4int i_thGuidance=0; i_thGuidance &lt; n_guidanceEntry; i_thGuidance++ )
88400543 { txt += QString((<span class="keywordtype">char</span>*)(aCommand-&gt;GetGuidanceLine(i_thGuidance)).data()) + <span class="stringliteral">"\n"</span>; }
88500544 <span class="keywordflow">if</span>( ! rangeString.isNull() )
88600545 { txt += <span class="stringliteral">" Range of parameters : "</span> + QString((<span class="keywordtype">char</span>*)(rangeString).data()) + <span class="stringliteral">"\n"</span>; }
88700546 G4int n_parameterEntry = aCommand-&gt;GetParameterEntries();
88800547 <span class="keywordflow">if</span>( n_parameterEntry &gt; 0 )
88900548 {
89000549 G4UIparameter *param;
89100550
89200551 <span class="comment">// Re-implementation of G4UIparameter.cc</span>
89300552
89400553 <span class="keywordflow">for</span>( G4int i_thParameter=0; i_thParameter&lt;n_parameterEntry; i_thParameter++ )
89500554 { param = aCommand-&gt;GetParameter(i_thParameter);
89600555 txt += <span class="stringliteral">"\nParameter : "</span> + QString((<span class="keywordtype">char</span>*)(param-&gt;GetParameterName()).data()) + <span class="stringliteral">"\n"</span>;
89700556 <span class="keywordflow">if</span>( ! param-&gt;GetParameterGuidance().isNull() )
89800557 txt += QString((<span class="keywordtype">char</span>*)(param-&gt;GetParameterGuidance()).data())+ <span class="stringliteral">"\n"</span> ;
89900558 txt += <span class="stringliteral">" Parameter type : "</span> + QString(param-&gt;GetParameterType())+ <span class="stringliteral">"\n"</span>;
90000559 <span class="keywordflow">if</span>(param-&gt;IsOmittable())
90100560 { txt += <span class="stringliteral">" Omittable : True\n"</span>; }
90200561 <span class="keywordflow">else</span>
90300562 { txt += <span class="stringliteral">" Omittable : False\n"</span>; }
90400563 <span class="keywordflow">if</span>( param-&gt;GetCurrentAsDefault() )
90500564 { txt += <span class="stringliteral">" Default value : taken from the current value\n"</span>; }
90600565 <span class="keywordflow">else</span> <span class="keywordflow">if</span>( ! param-&gt;GetDefaultValue().isNull() )
90700566 { txt += <span class="stringliteral">" Default value : "</span> + QString((<span class="keywordtype">char</span>*)(param-&gt;GetDefaultValue()).data())+ <span class="stringliteral">"\n"</span>; }
90800567 <span class="keywordflow">if</span>( ! param-&gt;GetParameterRange().isNull() )
90900568 txt += <span class="stringliteral">" Parameter range : "</span> + QString((<span class="keywordtype">char</span>*)(param-&gt;GetParameterRange()).data())+ <span class="stringliteral">"\n"</span>;
91000569 <span class="keywordflow">if</span>( ! param-&gt;GetParameterCandidates().isNull() )
91100570 txt += <span class="stringliteral">" Candidates : "</span> + QString((<span class="keywordtype">char</span>*)(param-&gt;GetParameterCandidates()).data())+ <span class="stringliteral">"\n"</span>;
91200571 }
91300572 }
91400573 <span class="keywordflow">return</span> txt;
91500574 }
916</pre></div> </td>
917 </tr>
918</table>
919<a class="anchor" name="d4" doxytag="G4UIQt::GetHelpChoice" ></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"> G4bool G4UIQt::GetHelpChoice </td>
926 <td class="md" valign="top">(&nbsp;</td>
927 <td class="md" nowrap valign="top">G4int &amp;&nbsp;</td>
928 <td class="mdname1" valign="top" nowrap> <em>aInt</em> </td>
929 <td class="md" valign="top">&nbsp;)&nbsp;</td>
930 <td class="md" nowrap><code> [private, virtual]</code></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 &nbsp;
941 </td>
942 <td>
943
944<p>
945Implement <a class="el" href="classG4VBasicShell.html">G4VBasicShell</a> vurtual function
946<p>
947Implements <a class="el" href="classG4VBasicShell.html#b8">G4VBasicShell</a>.
948<p>
949Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00581">581</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
950<p>
951<div class="fragment"><pre>00584 {
95200585 printf(<span class="stringliteral">"G4UIQt::GetHelpChoice SHOULD NEVER GO HERE"</span>);
95300586 <span class="keywordflow">return</span> <span class="keyword">true</span>;
95400587 }
955</pre></div> </td>
956 </tr>
957</table>
958<a class="anchor" name="k3" doxytag="G4UIQt::helpTreeCallback" ></a><p>
959<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
960 <tr>
961 <td class="mdRow">
962 <table cellpadding="0" cellspacing="0" border="0">
963 <tr>
964 <td class="md" nowrap valign="top"> void G4UIQt::helpTreeCallback </td>
965 <td class="md" valign="top">(&nbsp;</td>
966 <td class="mdname1" valign="top" nowrap> </td>
967 <td class="md" valign="top">&nbsp;)&nbsp;</td>
968 <td class="md" nowrap><code> [private, slot]</code></td>
969 </tr>
970
971 </table>
972 </td>
973 </tr>
974</table>
975<table cellspacing=5 cellpadding=0 border=0>
976 <tr>
977 <td>
978 &nbsp;
979 </td>
980 <td>
981
982<p>
983This callback is activated when user selected a item in the help tree
984<p>
985Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00731">731</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
986<p>
987References <a class="el" href="G4UIQt_8hh-source.html#l00120">fHelpArea</a>, <a class="el" href="G4UIQt_8hh-source.html#l00123">fHelpTreeWidget</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00526">GetCommandList()</a>.
988<p>
989Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>.
990<p>
991<div class="fragment"><pre>00733 {
99200734 <span class="comment">// G4bool GetHelpChoice(G4int&amp;);</span>
99300735 QTreeWidgetItem* item = NULL;
99400736 <span class="keywordflow">if</span> (!<a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>)
99500737 <span class="keywordflow">return</span> ;
99600738
99700739 <span class="keywordflow">if</span> (!<a class="code" href="classG4UIQt.html#r4">fHelpArea</a>)
99800740 <span class="keywordflow">return</span>;
99900741
100000742 QList&lt;QTreeWidgetItem *&gt; list =<a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;selectedItems();
100100743 <span class="keywordflow">if</span> (list.isEmpty())
100200744 <span class="keywordflow">return</span>;
100300745 item = list.first();
100400746 <span class="keywordflow">if</span> (!item)
100500747 <span class="keywordflow">return</span>;
100600748
100700749 G4UImanager* UI = G4UImanager::GetUIpointer();
100800750 <span class="keywordflow">if</span>(UI==NULL) <span class="keywordflow">return</span>;
100900751 G4UIcommandTree * treeTop = UI-&gt;GetTree();
101000752 G4UIcommand* command = treeTop-&gt;FindPath(item-&gt;text (1).toStdString().c_str());
101100753 <span class="keywordflow">if</span> (command) {
101200754 <a class="code" href="classG4UIQt.html#r4">fHelpArea</a>-&gt;setText(<a class="code" href="classG4UIQt.html#d3">GetCommandList</a>(command));
101300755 } <span class="keywordflow">else</span> {
101400756 <span class="comment">// this is not a command, this is a sub directory</span>
101500757 <span class="comment">// We display the Title</span>
101600758 <a class="code" href="classG4UIQt.html#r4">fHelpArea</a>-&gt;setText(item-&gt;text (1).toStdString().c_str());
101700759 }
101800760 }
1019</pre></div> </td>
1020 </tr>
1021</table>
1022<a class="anchor" name="l0" doxytag="G4UIQt::myClicked" ></a><p>
1023<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1024 <tr>
1025 <td class="mdRow">
1026 <table cellpadding="0" cellspacing="0" border="0">
1027 <tr>
1028 <td class="md" nowrap valign="top"> void G4UIQt::myClicked </td>
1029 <td class="md" valign="top">(&nbsp;</td>
1030 <td class="md" nowrap valign="top">const QString &amp;&nbsp;</td>
1031 <td class="mdname1" valign="top" nowrap> <em>text</em> </td>
1032 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1033 <td class="md" nowrap><code> [signal]</code></td>
1034 </tr>
1035
1036 </table>
1037 </td>
1038 </tr>
1039</table>
1040<table cellspacing=5 cellpadding=0 border=0>
1041 <tr>
1042 <td>
1043 &nbsp;
1044 </td>
1045 <td>
1046
1047<p>
1048
1049<p>
1050Definition at line <a class="el" href="G4UIQt__moc_8cc-source.html#l00093">93</a> of file <a class="el" href="G4UIQt__moc_8cc-source.html">G4UIQt_moc.cc</a>.
1051<p>
1052<div class="fragment"><pre>00094 {
105300095 <span class="keywordtype">void</span> *_a[] = { 0, const_cast&lt;void*&gt;(reinterpret_cast&lt;const void*&gt;(&amp;_t1)) };
105400096 QMetaObject::activate(<span class="keyword">this</span>, &amp;staticMetaObject, 0, _a);
105500097 }
1056</pre></div> </td>
1057 </tr>
1058</table>
1059<a class="anchor" name="a7" doxytag="G4UIQt::PauseSessionStart" ></a><p>
1060<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1061 <tr>
1062 <td class="mdRow">
1063 <table cellpadding="0" cellspacing="0" border="0">
1064 <tr>
1065 <td class="md" nowrap valign="top"> void G4UIQt::PauseSessionStart </td>
1066 <td class="md" valign="top">(&nbsp;</td>
1067 <td class="md" nowrap valign="top">G4String&nbsp;</td>
1068 <td class="mdname1" valign="top" nowrap> <em>aState</em> </td>
1069 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1070 <td class="md" nowrap><code> [virtual]</code></td>
1071 </tr>
1072
1073 </table>
1074 </td>
1075 </tr>
1076</table>
1077<table cellspacing=5 cellpadding=0 border=0>
1078 <tr>
1079 <td>
1080 &nbsp;
1081 </td>
1082 <td>
1083
1084<p>
1085Called by intercoms/src/G4UImanager.cc<br>
1086 Called by visualization/management/src/G4VisCommands.cc with "EndOfEvent" argument<br>
1087 It have to pause the session command terminal.<br>
1088 Call SecondaryLoop to wait for exit event<br>
1089 <dl compact><dt><b>Parameters:</b></dt><dd>
1090 <table border="0" cellspacing="2" cellpadding="0">
1091 <tr><td valign=top><em>aState</em>&nbsp;</td><td></td></tr>
1092 </table>
1093</dl>
1094<dl compact><dt><b>See also:</b></dt><dd>: G4VisCommandReviewKeptEvents::SetNewValue </dd></dl>
1095
1096<p>
1097Implements <a class="el" href="classG4VBasicShell.html#a3">G4VBasicShell</a>.
1098<p>
1099Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00247">247</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
1100<p>
1101References <a class="el" href="G4UIQt_8cc-source.html#l00268">SecondaryLoop()</a>.
1102<p>
1103<div class="fragment"><pre>00250 {
110400251 printf(<span class="stringliteral">"G4UIQt::PauseSessionStart\n"</span>);
110500252 <span class="keywordflow">if</span>(aState==<span class="stringliteral">"G4_pause&gt; "</span>) { <span class="comment">// TO KEEP</span>
110600253 <a class="code" href="classG4UIQt.html#d0">SecondaryLoop</a> (<span class="stringliteral">"Pause, type continue to exit this state"</span>); <span class="comment">// TO KEEP</span>
110700254 } <span class="comment">// TO KEEP</span>
110800255
110900256 <span class="keywordflow">if</span>(aState==<span class="stringliteral">"EndOfEvent"</span>) { <span class="comment">// TO KEEP</span>
111000257 <span class="comment">// Picking with feed back in event data Done here !!!</span>
111100258 <a class="code" href="classG4UIQt.html#d0">SecondaryLoop</a> (<span class="stringliteral">"End of event, type continue to exit this state"</span>); <span class="comment">// TO KEEP</span>
111200259 } <span class="comment">// TO KEEP</span>
111300260 }
1114</pre></div> </td>
1115 </tr>
1116</table>
1117
1118<p>
1119Here is the call graph for this function:<p><center><img src="classG4UIQt_a7_cgraph.png" border="0" usemap="#classG4UIQt_a7_cgraph_map" alt=""></center>
1120<map name="classG4UIQt_a7_cgraph_map">
1121<area href="classG4UIQt.html#d0" shape="rect" coords="246,84,412,110" alt="">
1122<area href="classG4VInteractorManager.html#a17" shape="rect" coords="462,8,713,34" alt="">
1123<area href="classG4Qt.html#a1" shape="rect" coords="530,58,645,85" alt="">
1124<area href="classG4Qt.html#e0" shape="rect" coords="524,109,652,136" alt="">
1125<area href="classG4UIQt.html#a5" shape="rect" coords="529,160,646,186" alt="">
1126</map>
1127<a class="anchor" name="a5" doxytag="G4UIQt::Prompt" ></a><p>
1128<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1129 <tr>
1130 <td class="mdRow">
1131 <table cellpadding="0" cellspacing="0" border="0">
1132 <tr>
1133 <td class="md" nowrap valign="top"> void G4UIQt::Prompt </td>
1134 <td class="md" valign="top">(&nbsp;</td>
1135 <td class="md" nowrap valign="top">G4String&nbsp;</td>
1136 <td class="mdname1" valign="top" nowrap> <em>aPrompt</em> </td>
1137 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1138 <td class="md" nowrap></td>
1139 </tr>
1140
1141 </table>
1142 </td>
1143 </tr>
1144</table>
1145<table cellspacing=5 cellpadding=0 border=0>
1146 <tr>
1147 <td>
1148 &nbsp;
1149 </td>
1150 <td>
1151
1152<p>
1153Display the prompt in the prompt area <dl compact><dt><b>Parameters:</b></dt><dd>
1154 <table border="0" cellspacing="2" cellpadding="0">
1155 <tr><td valign=top><em>aPrompt</em>&nbsp;</td><td>: string to display as the promt label FIXME : probablement inutile puisque le seul a afficher qq chose d'autre que "session" est <a class="el" href="classG4UIQt.html#d0">SecondaryLoop()</a> </td></tr>
1156 </table>
1157</dl>
1158
1159<p>
1160Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00221">221</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
1161<p>
1162References <a class="el" href="G4UIQt_8hh-source.html#l00117">fCommandLabel</a>.
1163<p>
1164Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00268">SecondaryLoop()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00187">SessionStart()</a>.
1165<p>
1166<div class="fragment"><pre>00224 {
116700225 <a class="code" href="classG4UIQt.html#r1">fCommandLabel</a>-&gt;setText((<span class="keywordtype">char</span>*)aPrompt.data());
116800226 }
1169</pre></div> </td>
1170 </tr>
1171</table>
1172<a class="anchor" name="a9" doxytag="G4UIQt::ReceiveG4cerr" ></a><p>
1173<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1174 <tr>
1175 <td class="mdRow">
1176 <table cellpadding="0" cellspacing="0" border="0">
1177 <tr>
1178 <td class="md" nowrap valign="top"> G4int G4UIQt::ReceiveG4cerr </td>
1179 <td class="md" valign="top">(&nbsp;</td>
1180 <td class="md" nowrap valign="top">G4String&nbsp;</td>
1181 <td class="mdname1" valign="top" nowrap> <em>aString</em> </td>
1182 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1183 <td class="md" nowrap></td>
1184 </tr>
1185
1186 </table>
1187 </td>
1188 </tr>
1189</table>
1190<table cellspacing=5 cellpadding=0 border=0>
1191 <tr>
1192 <td>
1193 &nbsp;
1194 </td>
1195 <td>
1196
1197<p>
1198Receive a cerr from Geant4. We have to display it in the cout zone <dl compact><dt><b>Parameters:</b></dt><dd>
1199 <table border="0" cellspacing="2" cellpadding="0">
1200 <tr><td valign=top><em>aString</em>&nbsp;</td><td>: label to add in the display area </td></tr>
1201 </table>
1202</dl>
1203
1204<p>
1205Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00304">304</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
1206<p>
1207References <a class="el" href="G4UIQt_8hh-source.html#l00119">fTextArea</a>.
1208<p>
1209<div class="fragment"><pre>00307 {
121000308 QColor previousColor = <a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;textColor();
121100309 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;setTextColor(Qt::red);
121200310 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;append(QString((<span class="keywordtype">char</span>*)aString.data()).trimmed());
121300311 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;setTextColor(previousColor);
121400312 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;verticalScrollBar()-&gt;setSliderPosition(<a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;verticalScrollBar()-&gt;maximum());
121500313 <span class="keywordflow">return</span> 0;
121600314 }
1217</pre></div> </td>
1218 </tr>
1219</table>
1220<a class="anchor" name="a8" doxytag="G4UIQt::ReceiveG4cout" ></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"> G4int G4UIQt::ReceiveG4cout </td>
1227 <td class="md" valign="top">(&nbsp;</td>
1228 <td class="md" nowrap valign="top">G4String&nbsp;</td>
1229 <td class="mdname1" valign="top" nowrap> <em>aString</em> </td>
1230 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1231 <td class="md" nowrap></td>
1232 </tr>
1233
1234 </table>
1235 </td>
1236 </tr>
1237</table>
1238<table cellspacing=5 cellpadding=0 border=0>
1239 <tr>
1240 <td>
1241 &nbsp;
1242 </td>
1243 <td>
1244
1245<p>
1246Receive a cout from Geant4. We have to display it in the cout zone <dl compact><dt><b>Parameters:</b></dt><dd>
1247 <table border="0" cellspacing="2" cellpadding="0">
1248 <tr><td valign=top><em>aString</em>&nbsp;</td><td>: label to add in the display area </td></tr>
1249 </table>
1250</dl>
1251
1252<p>
1253Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00290">290</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
1254<p>
1255References <a class="el" href="G4UIQt_8hh-source.html#l00119">fTextArea</a>.
1256<p>
1257<div class="fragment"><pre>00293 {
125800294 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;append(QString((<span class="keywordtype">char</span>*)aString.data()).trimmed());
125900295 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;verticalScrollBar()-&gt;setSliderPosition(<a class="code" href="classG4UIQt.html#r3">fTextArea</a>-&gt;verticalScrollBar()-&gt;maximum());
126000296 <span class="keywordflow">return</span> 0;
126100297 }
1262</pre></div> </td>
1263 </tr>
1264</table>
1265<a class="anchor" name="d0" doxytag="G4UIQt::SecondaryLoop" ></a><p>
1266<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1267 <tr>
1268 <td class="mdRow">
1269 <table cellpadding="0" cellspacing="0" border="0">
1270 <tr>
1271 <td class="md" nowrap valign="top"> void G4UIQt::SecondaryLoop </td>
1272 <td class="md" valign="top">(&nbsp;</td>
1273 <td class="md" nowrap valign="top">G4String&nbsp;</td>
1274 <td class="mdname1" valign="top" nowrap> <em>aPrompt</em> </td>
1275 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1276 <td class="md" nowrap><code> [private]</code></td>
1277 </tr>
1278
1279 </table>
1280 </td>
1281 </tr>
1282</table>
1283<table cellspacing=5 cellpadding=0 border=0>
1284 <tr>
1285 <td>
1286 &nbsp;
1287 </td>
1288 <td>
1289
1290<p>
1291Begin the secondary loop <dl compact><dt><b>Parameters:</b></dt><dd>
1292 <table border="0" cellspacing="2" cellpadding="0">
1293 <tr><td valign=top><em>a_prompt</em>&nbsp;</td><td>: label to display as the prompt label </td></tr>
1294 </table>
1295</dl>
1296
1297<p>
1298Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00268">268</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
1299<p>
1300References <a class="el" href="G4VInteractorManager_8cc-source.html#l00178">G4VInteractorManager::DispatchEvent()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00064">exitPause</a>, <a class="el" href="G4Qt_8cc-source.html#l00122">G4Qt::GetEvent()</a>, <a class="el" href="G4Qt_8cc-source.html#l00057">G4Qt::getInstance()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00221">Prompt()</a>.
1301<p>
1302Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00247">PauseSessionStart()</a>.
1303<p>
1304<div class="fragment"><pre>00271 {
130500272 printf(<span class="stringliteral">"G4UIQt::SecondaryLoop\n"</span>);
130600273 <a class="code" href="classG4Qt.html">G4Qt</a>* interactorManager = <a class="code" href="classG4Qt.html#e0">G4Qt::getInstance</a> (); <span class="comment">// TO KEEP ?</span>
130700274 <a class="code" href="classG4UIQt.html#a5">Prompt</a>(aPrompt); <span class="comment">// TO KEEP</span>
130800275 <a class="code" href="G4UIQt_8cc.html#a1">exitPause</a> = <span class="keyword">false</span>; <span class="comment">// TO KEEP</span>
130900276 <span class="keywordtype">void</span>* event; <span class="comment">// TO KEEP</span>
131000277 <span class="keywordflow">while</span>((event = interactorManager-&gt;<a class="code" href="classG4Qt.html#a1">GetEvent</a>())!=NULL) { <span class="comment">// TO KEEP</span>
131100278 interactorManager-&gt;<a class="code" href="classG4VInteractorManager.html#a17">DispatchEvent</a>(event); <span class="comment">// TO KEEP</span>
131200279 <span class="keywordflow">if</span>(<a class="code" href="G4UIQt_8cc.html#a1">exitPause</a>==<span class="keyword">true</span>) <span class="keywordflow">break</span>; <span class="comment">// TO KEEP</span>
131300280 } <span class="comment">// TO KEEP</span>
131400281 <a class="code" href="classG4UIQt.html#a5">Prompt</a>(<span class="stringliteral">"session"</span>); <span class="comment">// TO KEEP</span>
131500282 }
1316</pre></div> </td>
1317 </tr>
1318</table>
1319
1320<p>
1321Here is the call graph for this function:<p><center><img src="classG4UIQt_d0_cgraph.png" border="0" usemap="#classG4UIQt_d0_cgraph_map" alt=""></center>
1322<map name="classG4UIQt_d0_cgraph_map">
1323<area href="classG4VInteractorManager.html#a17" shape="rect" coords="225,8,475,34" alt="">
1324<area href="classG4Qt.html#a1" shape="rect" coords="293,58,407,85" alt="">
1325<area href="classG4Qt.html#e0" shape="rect" coords="286,109,414,136" alt="">
1326<area href="classG4UIQt.html#a5" shape="rect" coords="291,160,409,186" alt="">
1327</map>
1328<a class="anchor" name="a1" doxytag="G4UIQt::SessionStart" ></a><p>
1329<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1330 <tr>
1331 <td class="mdRow">
1332 <table cellpadding="0" cellspacing="0" border="0">
1333 <tr>
1334 <td class="md" nowrap valign="top"> G4UIsession * G4UIQt::SessionStart </td>
1335 <td class="md" valign="top">(&nbsp;</td>
1336 <td class="mdname1" valign="top" nowrap> </td>
1337 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1338 <td class="md" nowrap><code> [virtual]</code></td>
1339 </tr>
1340
1341 </table>
1342 </td>
1343 </tr>
1344</table>
1345<table cellspacing=5 cellpadding=0 border=0>
1346 <tr>
1347 <td>
1348 &nbsp;
1349 </td>
1350 <td>
1351
1352<p>
1353Start the Qt main loop
1354<p>
1355Implements <a class="el" href="classG4VBasicShell.html#a2">G4VBasicShell</a>.
1356<p>
1357Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00187">187</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
1358<p>
1359References <a class="el" href="G4VInteractorManager_8cc-source.html#l00144">G4VInteractorManager::DisableSecondaryLoop()</a>, <a class="el" href="G4VInteractorManager_8cc-source.html#l00136">G4VInteractorManager::EnableSecondaryLoop()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00063">exitSession</a>, <a class="el" href="G4UIQt_8hh-source.html#l00116">fMainWindow</a>, <a class="el" href="G4Qt_8cc-source.html#l00057">G4Qt::getInstance()</a>, <a class="el" href="G4VInteractorManager_8cc-source.html#l00128">G4VInteractorManager::GetMainInteractor()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00221">Prompt()</a>.
1360<p>
1361<div class="fragment"><pre>00189 {
136200190
136300191 <a class="code" href="classG4Qt.html">G4Qt</a>* interactorManager = <a class="code" href="classG4Qt.html#e0">G4Qt::getInstance</a> ();
136400192 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;show();
136500193 <a class="code" href="classG4UIQt.html#a5">Prompt</a>(<span class="stringliteral">"session"</span>);
136600194 <a class="code" href="G4UIQt_8cc.html#a0">exitSession</a> = <span class="keyword">false</span>;
136700195
136800196
136900197 printf(<span class="stringliteral">"disable secondary loop\n"</span>);
137000198 interactorManager-&gt;<a class="code" href="classG4VInteractorManager.html#a13">DisableSecondaryLoop</a> (); <span class="comment">// TO KEEP</span>
137100199 ((QApplication*)interactorManager-&gt;<a class="code" href="classG4VInteractorManager.html#a5">GetMainInteractor</a>())-&gt;exec();
137200200 <span class="comment">// on ne passe pas le dessous ? FIXME ????</span>
137300201 <span class="comment">// je ne pense pas 13/06</span>
137400202
137500203 <span class="comment">// void* event; // TO KEEP</span>
137600204 <span class="comment">// while((event = interactorManager-&gt;GetEvent())!=NULL) { // TO KEEP</span>
137700205 <span class="comment">// interactorManager-&gt;DispatchEvent(event); // TO KEEP</span>
137800206 <span class="comment">// if(exitSession==true) break; // TO KEEP</span>
137900207 <span class="comment">// } // TO KEEP</span>
138000208
138100209 interactorManager-&gt;<a class="code" href="classG4VInteractorManager.html#a12">EnableSecondaryLoop</a> ();
138200210 printf(<span class="stringliteral">"enable secondary loop\n"</span>);
138300211 <span class="keywordflow">return</span> <span class="keyword">this</span>;
138400212 }
1385</pre></div> </td>
1386 </tr>
1387</table>
1388
1389<p>
1390Here is the call graph for this function:<p><center><img src="classG4UIQt_a1_cgraph.png" border="0" usemap="#classG4UIQt_a1_cgraph_map" alt=""></center>
1391<map name="classG4UIQt_a1_cgraph_map">
1392<area href="classG4VInteractorManager.html#a13" shape="rect" coords="206,7,507,34" alt="">
1393<area href="classG4VInteractorManager.html#a12" shape="rect" coords="207,58,506,85" alt="">
1394<area href="classG4Qt.html#e0" shape="rect" coords="293,109,421,135" alt="">
1395<area href="classG4VInteractorManager.html#a5" shape="rect" coords="221,159,493,186" alt="">
1396<area href="classG4UIQt.html#a5" shape="rect" coords="298,210,415,237" alt="">
1397</map>
1398<a class="anchor" name="a6" doxytag="G4UIQt::SessionTerminate" ></a><p>
1399<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1400 <tr>
1401 <td class="mdRow">
1402 <table cellpadding="0" cellspacing="0" border="0">
1403 <tr>
1404 <td class="md" nowrap valign="top"> void G4UIQt::SessionTerminate </td>
1405 <td class="md" valign="top">(&nbsp;</td>
1406 <td class="mdname1" valign="top" nowrap> </td>
1407 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1408 <td class="md" nowrap></td>
1409 </tr>
1410
1411 </table>
1412 </td>
1413 </tr>
1414</table>
1415<table cellspacing=5 cellpadding=0 border=0>
1416 <tr>
1417 <td>
1418 &nbsp;
1419 </td>
1420 <td>
1421
1422<p>
1423
1424<p>
1425Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00229">229</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
1426<p>
1427References <a class="el" href="G4UIQt_8hh-source.html#l00116">fMainWindow</a>, <a class="el" href="G4Qt_8cc-source.html#l00057">G4Qt::getInstance()</a>, and <a class="el" href="G4VInteractorManager_8cc-source.html#l00128">G4VInteractorManager::GetMainInteractor()</a>.
1428<p>
1429Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00715">buttonCallback()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00688">commandEnteredCallback()</a>.
1430<p>
1431<div class="fragment"><pre>00231 {
143200232 <a class="code" href="classG4Qt.html">G4Qt</a>* interactorManager = <a class="code" href="classG4Qt.html#e0">G4Qt::getInstance</a> ();
143300233 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>-&gt;close();
143400234 ((QApplication*)interactorManager-&gt;<a class="code" href="classG4VInteractorManager.html#a5">GetMainInteractor</a>())-&gt;exit();
143500235 }
1436</pre></div> </td>
1437 </tr>
1438</table>
1439
1440<p>
1441Here is the call graph for this function:<p><center><img src="classG4UIQt_a6_cgraph.png" border="0" usemap="#classG4UIQt_a6_cgraph_map" alt=""></center>
1442<map name="classG4UIQt_a6_cgraph_map">
1443<area href="classG4Qt.html#e0" shape="rect" coords="310,7,438,34" alt="">
1444<area href="classG4VInteractorManager.html#a5" shape="rect" coords="238,58,510,85" alt="">
1445</map>
1446<a class="anchor" name="k4" doxytag="G4UIQt::showHelpCallback" ></a><p>
1447<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1448 <tr>
1449 <td class="mdRow">
1450 <table cellpadding="0" cellspacing="0" border="0">
1451 <tr>
1452 <td class="md" nowrap valign="top"> void G4UIQt::showHelpCallback </td>
1453 <td class="md" valign="top">(&nbsp;</td>
1454 <td class="mdname1" valign="top" nowrap> </td>
1455 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1456 <td class="md" nowrap><code> [private, slot]</code></td>
1457 </tr>
1458
1459 </table>
1460 </td>
1461 </tr>
1462</table>
1463<table cellspacing=5 cellpadding=0 border=0>
1464 <tr>
1465 <td>
1466 &nbsp;
1467 </td>
1468 <td>
1469
1470<p>
1471Called when user give "help" command.
1472<p>
1473Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00667">667</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
1474<p>
1475References <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>.
1476<p>
1477Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>.
1478<p>
1479<div class="fragment"><pre>00669 {
148000670 <a class="code" href="classG4UIQt.html#d1">TerminalHelp</a>(<span class="stringliteral">""</span>);
148100671 }
1482</pre></div> </td>
1483 </tr>
1484</table>
1485<a class="anchor" name="d1" doxytag="G4UIQt::TerminalHelp" ></a><p>
1486<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1487 <tr>
1488 <td class="mdRow">
1489 <table cellpadding="0" cellspacing="0" border="0">
1490 <tr>
1491 <td class="md" nowrap valign="top"> void G4UIQt::TerminalHelp </td>
1492 <td class="md" valign="top">(&nbsp;</td>
1493 <td class="md" nowrap valign="top">G4String&nbsp;</td>
1494 <td class="mdname1" valign="top" nowrap> <em>newCommand</em> </td>
1495 <td class="md" valign="top">&nbsp;)&nbsp;</td>
1496 <td class="md" nowrap><code> [private]</code></td>
1497 </tr>
1498
1499 </table>
1500 </td>
1501 </tr>
1502</table>
1503<table cellspacing=5 cellpadding=0 border=0>
1504 <tr>
1505 <td>
1506 &nbsp;
1507 </td>
1508 <td>
1509
1510<p>
1511Open the help dialog in a separate window.<br>
1512 This will be display as a tree widget.<br>
1513 Implementation of <b>void <a class="el" href="classG4VBasicShell.html#b14">G4VBasicShell::TerminalHelp(G4String newCommand)</a></b><p>
1514<dl compact><dt><b>Parameters:</b></dt><dd>
1515 <table border="0" cellspacing="2" cellpadding="0">
1516 <tr><td valign=top><em>newCommand</em>&nbsp;</td><td>: open the tree widget item on this command if is set </td></tr>
1517 </table>
1518</dl>
1519
1520<p>
1521Reimplemented from <a class="el" href="classG4VBasicShell.html#b14">G4VBasicShell</a>.
1522<p>
1523Definition at line <a class="el" href="G4UIQt_8cc-source.html#l00368">368</a> of file <a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a>.
1524<p>
1525References <a class="el" href="G4UIQt_8cc-source.html#l00480">CreateChildTree()</a>, <a class="el" href="G4UIQt_8hh-source.html#l00120">fHelpArea</a>, <a class="el" href="G4UIQt_8hh-source.html#l00124">fHelpDialog</a>, <a class="el" href="G4UIQt_8hh-source.html#l00123">fHelpTreeWidget</a>, <a class="el" href="G4UIQt_8cc-source.html#l00731">helpTreeCallback()</a>, and <a class="el" href="G4VBasicShell_8cc-source.html#l00048">G4VBasicShell::ModifyToFullPathCommand()</a>.
1526<p>
1527Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00688">commandEnteredCallback()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00667">showHelpCallback()</a>.
1528<p>
1529<div class="fragment"><pre>00371 {
153000372 <span class="keywordflow">if</span> (!<a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>) {
153100373 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a> = <span class="keyword">new</span> QDialog;
153200374
153300375 QSplitter *splitter = <span class="keyword">new</span> QSplitter(Qt::Horizontal);
153400376 <a class="code" href="classG4UIQt.html#r4">fHelpArea</a> = <span class="keyword">new</span> QTextEdit();
153500377 QPushButton *exitButton = <span class="keyword">new</span> QPushButton(<span class="stringliteral">"Exit"</span>);
153600378 connect(exitButton, SIGNAL(clicked()), fHelpDialog,SLOT(close()));
153700379 <a class="code" href="classG4UIQt.html#r4">fHelpArea</a>-&gt;setReadOnly(<span class="keyword">true</span>);
153800380
153900381 <span class="comment">// the help tree</span>
154000382 G4UImanager* UI = G4UImanager::GetUIpointer();
154100383 <span class="keywordflow">if</span>(UI==NULL) <span class="keywordflow">return</span>;
154200384 G4UIcommandTree * treeTop = UI-&gt;GetTree();
154300385
154400386 <span class="comment">// build widget</span>
154500387 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a> = <span class="keyword">new</span> QTreeWidget();
154600388 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;setSelectionMode(QAbstractItemView::SingleSelection);
154700389 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;setColumnCount(2);
154800390 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;setColumnHidden(1,<span class="keyword">true</span>);
154900391 QStringList labels;
155000392 labels &lt;&lt; QString(<span class="stringliteral">"Command"</span>) &lt;&lt; QString(<span class="stringliteral">"Description"</span>);
155100393 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;setHeaderLabels(labels);
155200394
155300395 QList&lt;QTreeWidgetItem *&gt; items;
155400396 G4int treeSize = treeTop-&gt;GetTreeEntry();
155500397 QTreeWidgetItem * newItem;
155600398 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a&lt;treeSize;a++) {
155700399 <span class="comment">// Creating new item</span>
155800400 QStringList stringList;
155900401 stringList &lt;&lt; QString((<span class="keywordtype">char</span>*)(treeTop-&gt;GetTree(a+1)-&gt;GetPathName()).data()).trimmed() ;
156000402 stringList &lt;&lt; QString((<span class="keywordtype">char</span>*)(treeTop-&gt;GetTree(a+1)-&gt;GetTitle()).data()).trimmed() ;
156100403
156200404 newItem = <span class="keyword">new</span> QTreeWidgetItem(stringList);
156300405
156400406 <span class="comment">// look for childs</span>
156500407 <a class="code" href="classG4UIQt.html#d2">CreateChildTree</a>(newItem,treeTop-&gt;GetTree(a+1));
156600408 items.append(newItem);
156700409 }
156800410 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;insertTopLevelItems(0, items);
156900411
157000412 <span class="comment">//connecting callback</span>
157100413 <span class="comment">// QSignalMapper signalMapper = new QSignalMapper(this);</span>
157200414
157300415 connect(fHelpTreeWidget, SIGNAL(itemSelectionChanged ()),<span class="keyword">this</span>, SLOT(<a class="code" href="classG4UIQt.html#k3">helpTreeCallback</a>()));
157400416
157500417 <span class="comment">// Set layouts</span>
157600418
157700419 QVBoxLayout *vLayout = <span class="keyword">new</span> QVBoxLayout;
157800420
157900421 splitter-&gt;addWidget(fHelpTreeWidget);
158000422 splitter-&gt;addWidget(fHelpArea);
158100423
158200424 vLayout-&gt;addWidget(splitter);
158300425 vLayout-&gt;addWidget(exitButton);
158400426 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>-&gt;setLayout(vLayout);
158500427
158600428 }
158700429
158800430 <span class="comment">// Look for the choosen command "newCommand"</span>
158900431 size_t i = newCommand.index(<span class="stringliteral">" "</span>);
159000432 G4String targetCom=<span class="stringliteral">""</span>;
159100433 <span class="keywordflow">if</span>( i != std::string::npos )
159200434 {
159300435 G4String newValue = newCommand(i+1,newCommand.length()-(i+1));
159400436 newValue.strip(G4String::both);
159500437 targetCom = <a class="code" href="classG4VBasicShell.html#b0">ModifyToFullPathCommand</a>( newValue );
159600438 printf(<span class="stringliteral">"test : av:%s-- ap:%s--\n"</span>,((<span class="keywordtype">char</span>*)newValue.data()),((<span class="keywordtype">char</span>*)targetCom.data()));
159700439 }
159800440 <span class="keywordflow">if</span> (targetCom != <span class="stringliteral">""</span>) {
159900441 QList&lt;QTreeWidgetItem *&gt; list = <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;findItems(QString(((<span class="keywordtype">char</span>*)targetCom.data())),Qt::MatchFixedString,0);
160000442 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a&lt;13;a++) {
160100443 printf(<span class="stringliteral">"verif.... =%s= +%s+\n"</span>,<a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;topLevelItem(a)-&gt;text(0).toStdString().c_str(),((<span class="keywordtype">char</span>*)targetCom.data()));
160200444 }
160300445
160400446 <span class="keywordflow">if</span> (!list.isEmpty()) {
160500447 <span class="keywordflow">if</span> (list.first()-&gt;childCount() &gt;0)
160600448 list.first()-&gt;setExpanded(<span class="keyword">true</span>);
160700449
160800450 <span class="comment">//collapsed open item</span>
160900451 QList&lt;QTreeWidgetItem *&gt; selected;
161000452 selected = <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;selectedItems();
161100453 <span class="keywordflow">if</span> ( selected.count() != 0 ) {
161200454 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;collapseItem (selected.at( 0 ) );
161300455 }
161400456
161500457 <span class="comment">// clear old selection</span>
161600458 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>-&gt;clearSelection();
161700459 list.first()-&gt;setSelected(<span class="keyword">true</span>);
161800460
161900461 <span class="comment">// Call the update of the right textArea</span>
162000462 <a class="code" href="classG4UIQt.html#k3">helpTreeCallback</a>();
162100463 }
162200464 }
162300465 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>-&gt;setWindowTitle(<span class="stringliteral">"Help on commands"</span>);
162400466 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>-&gt;resize(800,600);
162500467 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>-&gt;move(QPoint(400,150));
162600468 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>-&gt;show();
162700469 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>-&gt;raise();
162800470 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>-&gt;activateWindow();
162900471 }
1630</pre></div> </td>
1631 </tr>
1632</table>
1633
1634<p>
1635Here is the call graph for this function:<p><center><img src="classG4UIQt_d1_cgraph.png" border="0" usemap="#classG4UIQt_d1_cgraph_map" alt=""></center>
1636<map name="classG4UIQt_d1_cgraph_map">
1637<area href="classG4UIQt.html#d2" shape="rect" coords="263,7,434,34" alt="">
1638<area href="classG4VBasicShell.html#b0" shape="rect" coords="207,58,490,85" alt="">
1639<area href="classG4VBasicShell.html#d0" shape="rect" coords="539,58,723,85" alt="">
1640</map>
1641<hr><h2>Member Data Documentation</h2>
1642<a class="anchor" name="r2" doxytag="G4UIQt::fCommandArea" ></a><p>
1643<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1644 <tr>
1645 <td class="mdRow">
1646 <table cellpadding="0" cellspacing="0" border="0">
1647 <tr>
1648 <td class="md" nowrap valign="top"> QLineEdit* <a class="el" href="classG4UIQt.html#r2">G4UIQt::fCommandArea</a><code> [private]</code>
1649 </table>
1650 </td>
1651 </tr>
1652</table>
1653<table cellspacing=5 cellpadding=0 border=0>
1654 <tr>
1655 <td>
1656 &nbsp;
1657 </td>
1658 <td>
1659
1660<p>
1661
1662<p>
1663Definition at line <a class="el" href="G4UIQt_8hh-source.html#l00118">118</a> of file <a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>.
1664<p>
1665Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00688">commandEnteredCallback()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00767">commandHistoryCallback()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00608">eventFilter()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>. </td>
1666 </tr>
1667</table>
1668<a class="anchor" name="r5" doxytag="G4UIQt::fCommandHistoryArea" ></a><p>
1669<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1670 <tr>
1671 <td class="mdRow">
1672 <table cellpadding="0" cellspacing="0" border="0">
1673 <tr>
1674 <td class="md" nowrap valign="top"> QListWidget* <a class="el" href="classG4UIQt.html#r5">G4UIQt::fCommandHistoryArea</a><code> [private]</code>
1675 </table>
1676 </td>
1677 </tr>
1678</table>
1679<table cellspacing=5 cellpadding=0 border=0>
1680 <tr>
1681 <td>
1682 &nbsp;
1683 </td>
1684 <td>
1685
1686<p>
1687
1688<p>
1689Definition at line <a class="el" href="G4UIQt_8hh-source.html#l00121">121</a> of file <a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>.
1690<p>
1691Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00688">commandEnteredCallback()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00767">commandHistoryCallback()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00608">eventFilter()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>. </td>
1692 </tr>
1693</table>
1694<a class="anchor" name="r1" doxytag="G4UIQt::fCommandLabel" ></a><p>
1695<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1696 <tr>
1697 <td class="mdRow">
1698 <table cellpadding="0" cellspacing="0" border="0">
1699 <tr>
1700 <td class="md" nowrap valign="top"> QLabel* <a class="el" href="classG4UIQt.html#r1">G4UIQt::fCommandLabel</a><code> [private]</code>
1701 </table>
1702 </td>
1703 </tr>
1704</table>
1705<table cellspacing=5 cellpadding=0 border=0>
1706 <tr>
1707 <td>
1708 &nbsp;
1709 </td>
1710 <td>
1711
1712<p>
1713
1714<p>
1715Definition at line <a class="el" href="G4UIQt_8hh-source.html#l00117">117</a> of file <a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>.
1716<p>
1717Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00221">Prompt()</a>. </td>
1718 </tr>
1719</table>
1720<a class="anchor" name="r4" doxytag="G4UIQt::fHelpArea" ></a><p>
1721<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1722 <tr>
1723 <td class="mdRow">
1724 <table cellpadding="0" cellspacing="0" border="0">
1725 <tr>
1726 <td class="md" nowrap valign="top"> QTextEdit* <a class="el" href="classG4UIQt.html#r4">G4UIQt::fHelpArea</a><code> [private]</code>
1727 </table>
1728 </td>
1729 </tr>
1730</table>
1731<table cellspacing=5 cellpadding=0 border=0>
1732 <tr>
1733 <td>
1734 &nbsp;
1735 </td>
1736 <td>
1737
1738<p>
1739
1740<p>
1741Definition at line <a class="el" href="G4UIQt_8hh-source.html#l00120">120</a> of file <a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>.
1742<p>
1743Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00731">helpTreeCallback()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>. </td>
1744 </tr>
1745</table>
1746<a class="anchor" name="r8" doxytag="G4UIQt::fHelpDialog" ></a><p>
1747<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1748 <tr>
1749 <td class="mdRow">
1750 <table cellpadding="0" cellspacing="0" border="0">
1751 <tr>
1752 <td class="md" nowrap valign="top"> QDialog* <a class="el" href="classG4UIQt.html#r8">G4UIQt::fHelpDialog</a><code> [private]</code>
1753 </table>
1754 </td>
1755 </tr>
1756</table>
1757<table cellspacing=5 cellpadding=0 border=0>
1758 <tr>
1759 <td>
1760 &nbsp;
1761 </td>
1762 <td>
1763
1764<p>
1765
1766<p>
1767Definition at line <a class="el" href="G4UIQt_8hh-source.html#l00124">124</a> of file <a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>.
1768<p>
1769Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>. </td>
1770 </tr>
1771</table>
1772<a class="anchor" name="r7" doxytag="G4UIQt::fHelpTreeWidget" ></a><p>
1773<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1774 <tr>
1775 <td class="mdRow">
1776 <table cellpadding="0" cellspacing="0" border="0">
1777 <tr>
1778 <td class="md" nowrap valign="top"> QTreeWidget* <a class="el" href="classG4UIQt.html#r7">G4UIQt::fHelpTreeWidget</a><code> [private]</code>
1779 </table>
1780 </td>
1781 </tr>
1782</table>
1783<table cellspacing=5 cellpadding=0 border=0>
1784 <tr>
1785 <td>
1786 &nbsp;
1787 </td>
1788 <td>
1789
1790<p>
1791
1792<p>
1793Definition at line <a class="el" href="G4UIQt_8hh-source.html#l00123">123</a> of file <a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>.
1794<p>
1795Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00731">helpTreeCallback()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>. </td>
1796 </tr>
1797</table>
1798<a class="anchor" name="r0" doxytag="G4UIQt::fMainWindow" ></a><p>
1799<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1800 <tr>
1801 <td class="mdRow">
1802 <table cellpadding="0" cellspacing="0" border="0">
1803 <tr>
1804 <td class="md" nowrap valign="top"> QMainWindow* <a class="el" href="classG4UIQt.html#r0">G4UIQt::fMainWindow</a><code> [private]</code>
1805 </table>
1806 </td>
1807 </tr>
1808</table>
1809<table cellspacing=5 cellpadding=0 border=0>
1810 <tr>
1811 <td>
1812 &nbsp;
1813 </td>
1814 <td>
1815
1816<p>
1817
1818<p>
1819Definition at line <a class="el" href="G4UIQt_8hh-source.html#l00116">116</a> of file <a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>.
1820<p>
1821Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00323">AddMenu()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00187">SessionStart()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00229">SessionTerminate()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00167">~G4UIQt()</a>. </td>
1822 </tr>
1823</table>
1824<a class="anchor" name="r3" doxytag="G4UIQt::fTextArea" ></a><p>
1825<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1826 <tr>
1827 <td class="mdRow">
1828 <table cellpadding="0" cellspacing="0" border="0">
1829 <tr>
1830 <td class="md" nowrap valign="top"> QTextEdit* <a class="el" href="classG4UIQt.html#r3">G4UIQt::fTextArea</a><code> [private]</code>
1831 </table>
1832 </td>
1833 </tr>
1834</table>
1835<table cellspacing=5 cellpadding=0 border=0>
1836 <tr>
1837 <td>
1838 &nbsp;
1839 </td>
1840 <td>
1841
1842<p>
1843
1844<p>
1845Definition at line <a class="el" href="G4UIQt_8hh-source.html#l00119">119</a> of file <a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>.
1846<p>
1847Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00677">clearButtonCallback()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>, <a class="el" href="G4UIQt_8cc-source.html#l00304">ReceiveG4cerr()</a>, and <a class="el" href="G4UIQt_8cc-source.html#l00290">ReceiveG4cout()</a>. </td>
1848 </tr>
1849</table>
1850<a class="anchor" name="r6" doxytag="G4UIQt::signalMapper" ></a><p>
1851<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1852 <tr>
1853 <td class="mdRow">
1854 <table cellpadding="0" cellspacing="0" border="0">
1855 <tr>
1856 <td class="md" nowrap valign="top"> QSignalMapper* <a class="el" href="classG4UIQt.html#r6">G4UIQt::signalMapper</a><code> [private]</code>
1857 </table>
1858 </td>
1859 </tr>
1860</table>
1861<table cellspacing=5 cellpadding=0 border=0>
1862 <tr>
1863 <td>
1864 &nbsp;
1865 </td>
1866 <td>
1867
1868<p>
1869
1870<p>
1871Definition at line <a class="el" href="G4UIQt_8hh-source.html#l00122">122</a> of file <a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>.
1872<p>
1873Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00340">AddButton()</a>. </td>
1874 </tr>
1875</table>
1876<hr>The documentation for this class was generated from the following files:<ul>
1877<li><a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a><li><a class="el" href="G4UIQt_8cc-source.html">G4UIQt.cc</a><li><a class="el" href="G4UIQt__moc_8cc-source.html">G4UIQt_moc.cc</a></ul>
1878<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 22 11:07:27 2007 by
1879<a href="http://www.doxygen.org/index.html">
1880<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
1881</a>1.3.4 </small></address>
1882</body>
1883</html>
Note: See TracBrowser for help on using the repository browser.