| 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 Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
|
|---|
| 8 | <h1>G4UIQt Class Reference</h1><code>#include <<a class="el" href="G4UIQt_8hh-source.html">G4UIQt.hh</a>></code>
|
|---|
| 9 | <p>
|
|---|
| 10 | Inheritance 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 </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#l0">myClicked</a> (const QString &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> </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 * </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 </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 </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> </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 </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 </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 </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 </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 </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 </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 </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 </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#k2">buttonCallback</a> (const QString &)</td></tr>
|
|---|
| 52 |
|
|---|
| 53 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </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 </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 </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 </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 </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 </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 </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 </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#d4">GetHelpChoice</a> (G4int &)</td></tr>
|
|---|
| 69 |
|
|---|
| 70 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </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 </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 * </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 * </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 * </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 * </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 * </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 * </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 * </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 * </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 * </td><td class="memItemRight" valign=bottom><a class="el" href="classG4UIQt.html#r8">fHelpDialog</a></td></tr>
|
|---|
| 92 |
|
|---|
| 93 | </table>
|
|---|
| 94 | <hr><h2>Constructor & 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">( </td>
|
|---|
| 103 | <td class="md" nowrap valign="top">int </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 ** </td>
|
|---|
| 110 | <td class="mdname" nowrap> <em>argv</em></td>
|
|---|
| 111 | </tr>
|
|---|
| 112 | <tr>
|
|---|
| 113 | <td></td>
|
|---|
| 114 | <td class="md">) </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 |
|
|---|
| 126 | </td>
|
|---|
| 127 | <td>
|
|---|
| 128 |
|
|---|
| 129 | <p>
|
|---|
| 130 | Build 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 | | |> promt area | |
|
|---|
| 146 | | +-------------------+ |
|
|---|
| 147 | +-----------------------+
|
|---|
| 148 | </pre></div>
|
|---|
| 149 | <p>
|
|---|
| 150 | Definition 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>
|
|---|
| 152 | References <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)
|
|---|
| 155 | 00092 {
|
|---|
| 156 | 00093 <a class="code" href="classG4Qt.html">G4Qt</a>* interactorManager = <a class="code" href="classG4Qt.html#e0">G4Qt::getInstance</a> ();
|
|---|
| 157 | 00094 G4UImanager* UI = G4UImanager::GetUIpointer();
|
|---|
| 158 | 00095 <span class="keywordflow">if</span>(UI!=NULL) UI->SetSession(<span class="keyword">this</span>);
|
|---|
| 159 | 00096
|
|---|
| 160 | 00097 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a> = <span class="keyword">new</span> QMainWindow();
|
|---|
| 161 | 00098 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->setWindowTitle( <span class="stringliteral">"G4UI Session"</span> );
|
|---|
| 162 | 00099 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->resize(800,600);
|
|---|
| 163 | 00100 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->move(QPoint(200,100));
|
|---|
| 164 | 00101
|
|---|
| 165 | 00102 QSplitter *splitter = <span class="keyword">new</span> QSplitter(Qt::Vertical);
|
|---|
| 166 | 00103 <a class="code" href="classG4UIQt.html#r3">fTextArea</a> = <span class="keyword">new</span> QTextEdit();
|
|---|
| 167 | 00104 QPushButton *clearButton = <span class="keyword">new</span> QPushButton(<span class="stringliteral">"clear"</span>);
|
|---|
| 168 | 00105 connect(clearButton, SIGNAL(clicked()), SLOT(<a class="code" href="classG4UIQt.html#k0">clearButtonCallback</a>()));
|
|---|
| 169 | 00106
|
|---|
| 170 | 00107 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a> = <span class="keyword">new</span> QListWidget();
|
|---|
| 171 | 00108 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->setSelectionMode(QAbstractItemView::SingleSelection);
|
|---|
| 172 | 00109 connect(fCommandHistoryArea, SIGNAL(itemSelectionChanged()), SLOT(<a class="code" href="classG4UIQt.html#k5">commandHistoryCallback</a>()));
|
|---|
| 173 | 00110 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->installEventFilter(<span class="keyword">this</span>);
|
|---|
| 174 | 00111 <a class="code" href="classG4UIQt.html#r1">fCommandLabel</a> = <span class="keyword">new</span> QLabel();
|
|---|
| 175 | 00112
|
|---|
| 176 | 00113 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a> = <span class="keyword">new</span> QLineEdit();
|
|---|
| 177 | 00114 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>->installEventFilter(<span class="keyword">this</span>);
|
|---|
| 178 | 00115 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>->activateWindow();
|
|---|
| 179 | 00116 connect(fCommandArea, SIGNAL(returnPressed()), SLOT(<a class="code" href="classG4UIQt.html#k1">commandEnteredCallback</a>()));
|
|---|
| 180 | 00117 <span class="comment">// fCommandArea->setFocusPolicy ( Qt::StrongFocus );</span>
|
|---|
| 181 | 00118 <span class="comment">// fCommandArea->setFocus(Qt::TabFocusReason);</span>
|
|---|
| 182 | 00119 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>->setReadOnly(<span class="keyword">true</span>);
|
|---|
| 183 | 00120
|
|---|
| 184 | 00121
|
|---|
| 185 | 00122 <span class="comment">// Set layouts</span>
|
|---|
| 186 | 00123
|
|---|
| 187 | 00124 QWidget* topWidget = <span class="keyword">new</span> QWidget();
|
|---|
| 188 | 00125 QVBoxLayout *layoutTop = <span class="keyword">new</span> QVBoxLayout;
|
|---|
| 189 | 00126
|
|---|
| 190 | 00127 QWidget* bottomWidget = <span class="keyword">new</span> QWidget();
|
|---|
| 191 | 00128 QVBoxLayout *layoutBottom = <span class="keyword">new</span> QVBoxLayout;
|
|---|
| 192 | 00129
|
|---|
| 193 | 00130
|
|---|
| 194 | 00131 layoutTop->addWidget(fTextArea);
|
|---|
| 195 | 00132 layoutTop->addWidget(clearButton);
|
|---|
| 196 | 00133 topWidget->setLayout(layoutTop);
|
|---|
| 197 | 00134
|
|---|
| 198 | 00135 layoutBottom->addWidget(fCommandHistoryArea);
|
|---|
| 199 | 00136 layoutBottom->addWidget(fCommandLabel);
|
|---|
| 200 | 00137 layoutBottom->addWidget(fCommandArea);
|
|---|
| 201 | 00138 bottomWidget->setLayout(layoutBottom);
|
|---|
| 202 | 00139
|
|---|
| 203 | 00140
|
|---|
| 204 | 00141 splitter->addWidget(topWidget);
|
|---|
| 205 | 00142 splitter->addWidget(bottomWidget);
|
|---|
| 206 | 00143 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->setCentralWidget(splitter);
|
|---|
| 207 | 00144
|
|---|
| 208 | 00145 <span class="comment">// Add a quit subMenu</span>
|
|---|
| 209 | 00146 QMenu *fileMenu = <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->menuBar()->addMenu(<span class="stringliteral">"File"</span>);
|
|---|
| 210 | 00147 fileMenu->addAction(<span class="stringliteral">"Quitter"</span>, fMainWindow, SLOT(close()));
|
|---|
| 211 | 00148
|
|---|
| 212 | 00149 <span class="comment">// Add a Help menu</span>
|
|---|
| 213 | 00150 QMenu *helpMenu = <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->menuBar()->addMenu(<span class="stringliteral">"Help"</span>);
|
|---|
| 214 | 00151 helpMenu->addAction(<span class="stringliteral">"Show Help"</span>, <span class="keyword">this</span>, SLOT(<a class="code" href="classG4UIQt.html#k4">showHelpCallback</a>()));
|
|---|
| 215 | 00152
|
|---|
| 216 | 00153 <span class="comment">// Set the splitter size. The fTextArea sould be 2/3 on the fMainWindow</span>
|
|---|
| 217 | 00154 QList<int> vals = splitter->sizes();
|
|---|
| 218 | 00155 <span class="keywordflow">if</span>(vals.size()==2) {
|
|---|
| 219 | 00156 vals[0] = (splitter->orientation()==Qt::Vertical ? splitter->height() : splitter->width())*3/4;
|
|---|
| 220 | 00157 vals[1] = (splitter->orientation()==Qt::Vertical ? splitter->height() : splitter->width())*1/4;
|
|---|
| 221 | 00158 splitter->setSizes(vals);
|
|---|
| 222 | 00159 }
|
|---|
| 223 | 00160
|
|---|
| 224 | 00161
|
|---|
| 225 | 00162 <span class="keywordflow">if</span>(UI!=NULL) UI->SetCoutDestination(<span class="keyword">this</span>); <span class="comment">// TO KEEP</span>
|
|---|
| 226 | 00163 }
|
|---|
| 227 | </pre></div> </td>
|
|---|
| 228 | </tr>
|
|---|
| 229 | </table>
|
|---|
| 230 |
|
|---|
| 231 | <p>
|
|---|
| 232 | Here 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">( </td>
|
|---|
| 244 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 245 | <td class="md" valign="top"> ) </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 |
|
|---|
| 257 | </td>
|
|---|
| 258 | <td>
|
|---|
| 259 |
|
|---|
| 260 | <p>
|
|---|
| 261 |
|
|---|
| 262 | <p>
|
|---|
| 263 | Definition 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>
|
|---|
| 265 | References <a class="el" href="G4UIQt_8hh-source.html#l00116">fMainWindow</a>.
|
|---|
| 266 | <p>
|
|---|
| 267 | <div class="fragment"><pre>00169 {
|
|---|
| 268 | 00170 G4UImanager* UI = G4UImanager::GetUIpointer(); <span class="comment">// TO KEEP</span>
|
|---|
| 269 | 00171 <span class="keywordflow">if</span>(UI!=NULL) { <span class="comment">// TO KEEP</span>
|
|---|
| 270 | 00172 UI->SetSession(NULL); <span class="comment">// TO KEEP</span>
|
|---|
| 271 | 00173 UI->SetCoutDestination(NULL); <span class="comment">// TO KEEP</span>
|
|---|
| 272 | 00174 }
|
|---|
| 273 | 00175
|
|---|
| 274 | 00176
|
|---|
| 275 | 00177 <span class="keywordflow">if</span> (<a class="code" href="classG4UIQt.html#r0">fMainWindow</a>!=NULL)
|
|---|
| 276 | 00178 <span class="keyword">delete</span> <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>;
|
|---|
| 277 | 00179 }
|
|---|
| 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">( </td>
|
|---|
| 290 | <td class="md" nowrap valign="top">const char * </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 * </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 * </td>
|
|---|
| 303 | <td class="mdname" nowrap> <em>aCommand</em></td>
|
|---|
| 304 | </tr>
|
|---|
| 305 | <tr>
|
|---|
| 306 | <td></td>
|
|---|
| 307 | <td class="md">) </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 |
|
|---|
| 319 | </td>
|
|---|
| 320 | <td>
|
|---|
| 321 |
|
|---|
| 322 | <p>
|
|---|
| 323 | Add 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> </td><td>: parent menu </td></tr>
|
|---|
| 326 | <tr><td valign=top><em>aLabel</em> </td><td>: label to display </td></tr>
|
|---|
| 327 | <tr><td valign=top><em>aCommand</em> </td><td>: command to execute as a callback </td></tr>
|
|---|
| 328 | </table>
|
|---|
| 329 | </dl>
|
|---|
| 330 |
|
|---|
| 331 | <p>
|
|---|
| 332 | Reimplemented from <a class="el" href="classG4VInteractiveSession.html#a3">G4VInteractiveSession</a>.
|
|---|
| 333 | <p>
|
|---|
| 334 | Definition 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>
|
|---|
| 336 | References <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 {
|
|---|
| 339 | 00346 <span class="keywordflow">if</span>(aMenu==NULL) <span class="keywordflow">return</span>; <span class="comment">// TO KEEP</span>
|
|---|
| 340 | 00347 <span class="keywordflow">if</span>(aLabel==NULL) <span class="keywordflow">return</span>; <span class="comment">// TO KEEP</span>
|
|---|
| 341 | 00348 <span class="keywordflow">if</span>(aCommand==NULL) <span class="keywordflow">return</span>; <span class="comment">// TO KEEP</span>
|
|---|
| 342 | 00349 QMenu *parent = (QMenu*)<a class="code" href="classG4VInteractiveSession.html#a5">GetInteractor</a>(aMenu);
|
|---|
| 343 | 00350 <span class="keywordflow">if</span>(parent==NULL) <span class="keywordflow">return</span>;
|
|---|
| 344 | 00351
|
|---|
| 345 | 00352 <a class="code" href="classG4UIQt.html#r6">signalMapper</a> = <span class="keyword">new</span> QSignalMapper(<span class="keyword">this</span>);
|
|---|
| 346 | 00353 QAction *action = parent->addAction(aLabel, signalMapper, SLOT(map()));
|
|---|
| 347 | 00354 <a class="code" href="classG4UIQt.html#r6">signalMapper</a>->setMapping(action, QString(aCommand));
|
|---|
| 348 | 00355 connect(signalMapper, SIGNAL(mapped(<span class="keyword">const</span> QString &)),<span class="keyword">this</span>, SLOT(<a class="code" href="classG4UIQt.html#k2">buttonCallback</a>(<span class="keyword">const</span> QString&)));
|
|---|
| 349 | 00356 }
|
|---|
| 350 | </pre></div> </td>
|
|---|
| 351 | </tr>
|
|---|
| 352 | </table>
|
|---|
| 353 |
|
|---|
| 354 | <p>
|
|---|
| 355 | Here 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">( </td>
|
|---|
| 367 | <td class="md" nowrap valign="top">const char * </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 * </td>
|
|---|
| 374 | <td class="mdname" nowrap> <em>aLabel</em></td>
|
|---|
| 375 | </tr>
|
|---|
| 376 | <tr>
|
|---|
| 377 | <td></td>
|
|---|
| 378 | <td class="md">) </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 |
|
|---|
| 390 | </td>
|
|---|
| 391 | <td>
|
|---|
| 392 |
|
|---|
| 393 | <p>
|
|---|
| 394 | Add 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> </td><td>name of menu </td></tr>
|
|---|
| 397 | <tr><td valign=top><em>aLabel</em> </td><td>label to display </td></tr>
|
|---|
| 398 | </table>
|
|---|
| 399 | </dl>
|
|---|
| 400 |
|
|---|
| 401 | <p>
|
|---|
| 402 | Reimplemented from <a class="el" href="classG4VInteractiveSession.html#a2">G4VInteractiveSession</a>.
|
|---|
| 403 | <p>
|
|---|
| 404 | Definition 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>
|
|---|
| 406 | References <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 {
|
|---|
| 409 | 00328 QMenu *fileMenu = <span class="keyword">new</span> QMenu(aLabel);
|
|---|
| 410 | 00329 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->menuBar()->insertMenu(<a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->menuBar()->actions().last(),fileMenu);
|
|---|
| 411 | 00330 <a class="code" href="classG4VInteractiveSession.html#a4">AddInteractor</a> (aName,(<a class="code" href="G4VInteractorManager_8hh.html#a0">G4Interactor</a>)fileMenu);
|
|---|
| 412 | 00331 }
|
|---|
| 413 | </pre></div> </td>
|
|---|
| 414 | </tr>
|
|---|
| 415 | </table>
|
|---|
| 416 |
|
|---|
| 417 | <p>
|
|---|
| 418 | Here 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">( </td>
|
|---|
| 430 | <td class="md" nowrap valign="top">const QString & </td>
|
|---|
| 431 | <td class="mdname1" valign="top" nowrap> <em>aCommand</em> </td>
|
|---|
| 432 | <td class="md" valign="top"> ) </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 |
|
|---|
| 444 | </td>
|
|---|
| 445 | <td>
|
|---|
| 446 |
|
|---|
| 447 | <p>
|
|---|
| 448 | Callback 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> </td><td></td></tr>
|
|---|
| 452 | </table>
|
|---|
| 453 | </dl>
|
|---|
| 454 |
|
|---|
| 455 | <p>
|
|---|
| 456 | Definition 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>
|
|---|
| 458 | References <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>
|
|---|
| 460 | Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00340">AddButton()</a>.
|
|---|
| 461 | <p>
|
|---|
| 462 | <div class="fragment"><pre>00718 {
|
|---|
| 463 | 00719 G4String ss = G4String(aCommand.toStdString().c_str());
|
|---|
| 464 | 00720 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>);
|
|---|
| 465 | 00721 <a class="code" href="classG4VBasicShell.html#b10">ApplyShellCommand</a>(ss,exitSession,exitPause);
|
|---|
| 466 | 00722 <span class="keywordflow">if</span>(<a class="code" href="G4UIQt_8cc.html#a0">exitSession</a>==<span class="keyword">true</span>)
|
|---|
| 467 | 00723 <a class="code" href="classG4UIQt.html#a6">SessionTerminate</a>();
|
|---|
| 468 | 00724 }
|
|---|
| 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">( </td>
|
|---|
| 480 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 481 | <td class="md" valign="top"> ) </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 |
|
|---|
| 493 | </td>
|
|---|
| 494 | <td>
|
|---|
| 495 |
|
|---|
| 496 | <p>
|
|---|
| 497 | Called when user click on clear button. Clear the text Output area
|
|---|
| 498 | <p>
|
|---|
| 499 | Definition 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>
|
|---|
| 501 | References <a class="el" href="G4UIQt_8hh-source.html#l00119">fTextArea</a>.
|
|---|
| 502 | <p>
|
|---|
| 503 | Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>.
|
|---|
| 504 | <p>
|
|---|
| 505 | <div class="fragment"><pre>00679 {
|
|---|
| 506 | 00680 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>->clear();
|
|---|
| 507 | 00681 }
|
|---|
| 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">( </td>
|
|---|
| 519 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 520 | <td class="md" valign="top"> ) </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 |
|
|---|
| 532 | </td>
|
|---|
| 533 | <td>
|
|---|
| 534 |
|
|---|
| 535 | <p>
|
|---|
| 536 | Callback call when "click on a menu entry.<br>
|
|---|
| 537 | Send the associated command to geant4
|
|---|
| 538 | <p>
|
|---|
| 539 | Definition 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>
|
|---|
| 541 | References <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>
|
|---|
| 543 | Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>.
|
|---|
| 544 | <p>
|
|---|
| 545 | <div class="fragment"><pre>00690 {
|
|---|
| 546 | 00691 G4String command (<a class="code" href="classG4UIQt.html#r2">fCommandArea</a>->text().toStdString().c_str());
|
|---|
| 547 | 00692 <span class="keywordflow">if</span> (<a class="code" href="classG4UIQt.html#r2">fCommandArea</a>->text().trimmed() != <span class="stringliteral">""</span>) {
|
|---|
| 548 | 00693 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->addItem(<a class="code" href="classG4UIQt.html#r2">fCommandArea</a>->text());
|
|---|
| 549 | 00694 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->clearSelection();
|
|---|
| 550 | 00695 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->item(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->count()-1)->setSelected(<span class="keyword">true</span>);
|
|---|
| 551 | 00696 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->setCurrentItem(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->item(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->count()-1));
|
|---|
| 552 | 00697
|
|---|
| 553 | 00698 <span class="keywordflow">if</span> (command(0,4) != <span class="stringliteral">"help"</span>) {
|
|---|
| 554 | 00699 <a class="code" href="classG4VBasicShell.html#b10">ApplyShellCommand</a> (command,exitSession,exitPause);
|
|---|
| 555 | 00700 } <span class="keywordflow">else</span> {
|
|---|
| 556 | 00701 <a class="code" href="classG4UIQt.html#d1">TerminalHelp</a>(command);
|
|---|
| 557 | 00702 }
|
|---|
| 558 | 00703 <span class="keywordflow">if</span>(<a class="code" href="G4UIQt_8cc.html#a0">exitSession</a>==<span class="keyword">true</span>)
|
|---|
| 559 | 00704 <a class="code" href="classG4UIQt.html#a6">SessionTerminate</a>();
|
|---|
| 560 | 00705 }
|
|---|
| 561 | 00706 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>->setText(<span class="stringliteral">""</span>);
|
|---|
| 562 | 00707 }
|
|---|
| 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">( </td>
|
|---|
| 574 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 575 | <td class="md" valign="top"> ) </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 |
|
|---|
| 587 | </td>
|
|---|
| 588 | <td>
|
|---|
| 589 |
|
|---|
| 590 | <p>
|
|---|
| 591 | Callback called when user select an old command in the command history<br>
|
|---|
| 592 | Give it to the command area.
|
|---|
| 593 | <p>
|
|---|
| 594 | Definition 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>
|
|---|
| 596 | References <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>
|
|---|
| 598 | Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>.
|
|---|
| 599 | <p>
|
|---|
| 600 | <div class="fragment"><pre>00769 {
|
|---|
| 601 | 00770 QListWidgetItem* item = NULL;
|
|---|
| 602 | 00771 <span class="keywordflow">if</span> (!<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>)
|
|---|
| 603 | 00772 <span class="keywordflow">return</span> ;
|
|---|
| 604 | 00773
|
|---|
| 605 | 00774
|
|---|
| 606 | 00775 QList<QListWidgetItem *> list =<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->selectedItems();
|
|---|
| 607 | 00776 <span class="keywordflow">if</span> (list.isEmpty())
|
|---|
| 608 | 00777 <span class="keywordflow">return</span>;
|
|---|
| 609 | 00778 item = list.first();
|
|---|
| 610 | 00779 <span class="keywordflow">if</span> (!item)
|
|---|
| 611 | 00780 <span class="keywordflow">return</span>;
|
|---|
| 612 | 00781 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>->setText(item->text());
|
|---|
| 613 | 00782
|
|---|
| 614 | 00783 }
|
|---|
| 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">( </td>
|
|---|
| 626 | <td class="md" nowrap valign="top">QTreeWidgetItem * </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 * </td>
|
|---|
| 633 | <td class="mdname" nowrap> <em>aCommandTree</em></td>
|
|---|
| 634 | </tr>
|
|---|
| 635 | <tr>
|
|---|
| 636 | <td></td>
|
|---|
| 637 | <td class="md">) </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 |
|
|---|
| 649 | </td>
|
|---|
| 650 | <td>
|
|---|
| 651 |
|
|---|
| 652 | <p>
|
|---|
| 653 | Fill 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> </td><td>: parent item to fill </td></tr>
|
|---|
| 656 | <tr><td valign=top><em>aCommandTree</em> </td><td>: commandTree node associate with this part of the Tree </td></tr>
|
|---|
| 657 | </table>
|
|---|
| 658 | </dl>
|
|---|
| 659 |
|
|---|
| 660 | <p>
|
|---|
| 661 | Definition 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>
|
|---|
| 663 | Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>.
|
|---|
| 664 | <p>
|
|---|
| 665 | <div class="fragment"><pre>00484 {
|
|---|
| 666 | 00485
|
|---|
| 667 | 00486 <span class="comment">// Creating new item</span>
|
|---|
| 668 | 00487 QTreeWidgetItem * newItem;
|
|---|
| 669 | 00488
|
|---|
| 670 | 00489
|
|---|
| 671 | 00490 <span class="comment">// Get the Sub directories</span>
|
|---|
| 672 | 00491 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a<aCommandTree->GetTreeEntry();a++) {
|
|---|
| 673 | 00492
|
|---|
| 674 | 00493 QStringList stringList;
|
|---|
| 675 | 00494 stringList << QString((<span class="keywordtype">char</span>*)(aCommandTree->GetTree(a+1)->GetPathName()).data()).trimmed() ;
|
|---|
| 676 | 00495 stringList << QString((<span class="keywordtype">char</span>*)(aCommandTree->GetTree(a+1)->GetTitle()).data()).trimmed() ;
|
|---|
| 677 | 00496 newItem = <span class="keyword">new</span> QTreeWidgetItem(stringList);
|
|---|
| 678 | 00497
|
|---|
| 679 | 00498 <a class="code" href="classG4UIQt.html#d2">CreateChildTree</a>(newItem,aCommandTree->GetTree(a+1));
|
|---|
| 680 | 00499 aParent->addChild(newItem);
|
|---|
| 681 | 00500 }
|
|---|
| 682 | 00501
|
|---|
| 683 | 00502
|
|---|
| 684 | 00503
|
|---|
| 685 | 00504 <span class="comment">// Get the Commands</span>
|
|---|
| 686 | 00505
|
|---|
| 687 | 00506 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a<aCommandTree->GetCommandEntry();a++) {
|
|---|
| 688 | 00507
|
|---|
| 689 | 00508 QStringList stringList;
|
|---|
| 690 | 00509 stringList << QString((<span class="keywordtype">char</span>*)(aCommandTree->GetCommand(a+1)->GetCommandPath()).data()).trimmed() ;
|
|---|
| 691 | 00510 stringList << QString((<span class="keywordtype">char</span>*)(aCommandTree->GetCommand(a+1)->GetCommandPath()).data()).trimmed() ;
|
|---|
| 692 | 00511 newItem = <span class="keyword">new</span> QTreeWidgetItem(stringList);
|
|---|
| 693 | 00512
|
|---|
| 694 | 00513 aParent->addChild(newItem);
|
|---|
| 695 | 00514 newItem->setExpanded(<span class="keyword">false</span>);
|
|---|
| 696 | 00515 }
|
|---|
| 697 | 00516 }
|
|---|
| 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">( </td>
|
|---|
| 709 | <td class="md" nowrap valign="top">QObject * </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 * </td>
|
|---|
| 716 | <td class="mdname" nowrap> <em>event</em></td>
|
|---|
| 717 | </tr>
|
|---|
| 718 | <tr>
|
|---|
| 719 | <td></td>
|
|---|
| 720 | <td class="md">) </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 |
|
|---|
| 732 | </td>
|
|---|
| 733 | <td>
|
|---|
| 734 |
|
|---|
| 735 | <p>
|
|---|
| 736 | Event filter method. Every event from QtApplication goes here.<br/> We apply a filter only for the Up and Down Arrow press when the QLineEdit<br/> is active. If this filter match, Up arrow we give the previous command<br/> and Down arrow will give the next if exist.<br/> <dl compact><dt><b>Parameters:</b></dt><dd>
|
|---|
| 737 | <table border="0" cellspacing="2" cellpadding="0">
|
|---|
| 738 | <tr><td valign=top><em>obj</em> </td><td>Emitter of the event </td></tr>
|
|---|
| 739 | <tr><td valign=top><em>event</em> </td><td>Kind of event </td></tr>
|
|---|
| 740 | </table>
|
|---|
| 741 | </dl>
|
|---|
| 742 |
|
|---|
| 743 | <p>
|
|---|
| 744 | Definition 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>
|
|---|
| 746 | References <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 {
|
|---|
| 749 | 00613 <span class="keywordflow">if</span> (obj == <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>) {
|
|---|
| 750 | 00614 <span class="keywordflow">if</span> (event->type() == QEvent::KeyPress) {
|
|---|
| 751 | 00615 <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>->setFocus();
|
|---|
| 752 | 00616 }
|
|---|
| 753 | 00617 }
|
|---|
| 754 | 00618 <span class="keywordflow">if</span> (obj == <a class="code" href="classG4UIQt.html#r2">fCommandArea</a>) {
|
|---|
| 755 | 00619 <span class="keywordflow">if</span> (event->type() == QEvent::KeyPress) {
|
|---|
| 756 | 00620 QKeyEvent *e = static_cast<QKeyEvent*>(event);
|
|---|
| 757 | 00621 <span class="keywordflow">if</span> ((e->key() == (Qt::Key_Down)) ||
|
|---|
| 758 | 00622 (e->key() == (Qt::Key_PageDown)) ||
|
|---|
| 759 | 00623 (e->key() == (Qt::Key_Up)) ||
|
|---|
| 760 | 00624 (e->key() == (Qt::Key_PageUp))) {
|
|---|
| 761 | 00625 <span class="keywordtype">int</span> selection = <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->currentRow();
|
|---|
| 762 | 00626 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a<<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->count();a++) {
|
|---|
| 763 | 00627
|
|---|
| 764 | 00628 }
|
|---|
| 765 | 00629 <span class="keywordflow">if</span> (<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->count()) {
|
|---|
| 766 | 00630 <span class="keywordflow">if</span> (selection == -1) {
|
|---|
| 767 | 00631 selection = <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->count()-1;
|
|---|
| 768 | 00632 }
|
|---|
| 769 | 00633 <span class="keywordflow">if</span> (e->key() == (Qt::Key_Down)) {
|
|---|
| 770 | 00634 <span class="keywordflow">if</span> (selection <(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->count()-1))
|
|---|
| 771 | 00635 selection++;
|
|---|
| 772 | 00636 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (e->key() == (Qt::Key_PageDown)) {
|
|---|
| 773 | 00637 selection = <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->count()-1;
|
|---|
| 774 | 00638 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (e->key() == (Qt::Key_Up)) {
|
|---|
| 775 | 00639 <span class="keywordflow">if</span> (selection >0)
|
|---|
| 776 | 00640 selection --;
|
|---|
| 777 | 00641 } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (e->key() == (Qt::Key_PageUp)) {
|
|---|
| 778 | 00642 selection = 0;
|
|---|
| 779 | 00643 }
|
|---|
| 780 | 00644 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->clearSelection();
|
|---|
| 781 | 00645 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->item(selection)->setSelected(<span class="keyword">true</span>);
|
|---|
| 782 | 00646 <a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->setCurrentItem(<a class="code" href="classG4UIQt.html#r5">fCommandHistoryArea</a>->item(selection));
|
|---|
| 783 | 00647 }
|
|---|
| 784 | 00648 }
|
|---|
| 785 | 00649 }
|
|---|
| 786 | 00650 }
|
|---|
| 787 | 00651 <span class="comment">// pass the event on to the parent class</span>
|
|---|
| 788 | 00652 <span class="keywordflow">return</span> QObject::eventFilter(obj, event);
|
|---|
| 789 | 00653 }
|
|---|
| 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">( </td>
|
|---|
| 801 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 802 | <td class="md" valign="top"> ) </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 |
|
|---|
| 814 | </td>
|
|---|
| 815 | <td>
|
|---|
| 816 |
|
|---|
| 817 | <p>
|
|---|
| 818 | Implement <a class="el" href="classG4VBasicShell.html">G4VBasicShell</a> vurtual function
|
|---|
| 819 | <p>
|
|---|
| 820 | Implements <a class="el" href="classG4VBasicShell.html#b9">G4VBasicShell</a>.
|
|---|
| 821 | <p>
|
|---|
| 822 | Definition 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 {
|
|---|
| 825 | 00596 printf(<span class="stringliteral">"G4UIQt::ExitHelp SHOULD NEVER GO HERE"</span>);
|
|---|
| 826 | 00597 }
|
|---|
| 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">( </td>
|
|---|
| 838 | <td class="md" nowrap valign="top">G4UIcommand * </td>
|
|---|
| 839 | <td class="mdname1" valign="top" nowrap> <em>aCommand</em> </td>
|
|---|
| 840 | <td class="md" valign="top"> ) </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 |
|
|---|
| 852 | </td>
|
|---|
| 853 | <td>
|
|---|
| 854 |
|
|---|
| 855 | <p>
|
|---|
| 856 | Build 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> </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>
|
|---|
| 866 | Definition 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>
|
|---|
| 868 | Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00731">helpTreeCallback()</a>.
|
|---|
| 869 | <p>
|
|---|
| 870 | <div class="fragment"><pre>00529 {
|
|---|
| 871 | 00530
|
|---|
| 872 | 00531 QString txt;
|
|---|
| 873 | 00532 G4String commandPath = aCommand->GetCommandPath();
|
|---|
| 874 | 00533 G4String rangeString = aCommand->GetRange();
|
|---|
| 875 | 00534
|
|---|
| 876 | 00535 <span class="keywordflow">if</span>((commandPath.length()-1)!=<span class="charliteral">'/'</span>)
|
|---|
| 877 | 00536 {
|
|---|
| 878 | 00537 txt += <span class="stringliteral">"Command "</span> + QString((<span class="keywordtype">char</span>*)(commandPath).data()) + <span class="stringliteral">"\n"</span>;
|
|---|
| 879 | 00538 }
|
|---|
| 880 | 00539 txt += <span class="stringliteral">"Guidance :\n"</span>;
|
|---|
| 881 | 00540 G4int n_guidanceEntry = aCommand->GetGuidanceEntries();
|
|---|
| 882 | 00541
|
|---|
| 883 | 00542 <span class="keywordflow">for</span>( G4int i_thGuidance=0; i_thGuidance < n_guidanceEntry; i_thGuidance++ )
|
|---|
| 884 | 00543 { txt += QString((<span class="keywordtype">char</span>*)(aCommand->GetGuidanceLine(i_thGuidance)).data()) + <span class="stringliteral">"\n"</span>; }
|
|---|
| 885 | 00544 <span class="keywordflow">if</span>( ! rangeString.isNull() )
|
|---|
| 886 | 00545 { txt += <span class="stringliteral">" Range of parameters : "</span> + QString((<span class="keywordtype">char</span>*)(rangeString).data()) + <span class="stringliteral">"\n"</span>; }
|
|---|
| 887 | 00546 G4int n_parameterEntry = aCommand->GetParameterEntries();
|
|---|
| 888 | 00547 <span class="keywordflow">if</span>( n_parameterEntry > 0 )
|
|---|
| 889 | 00548 {
|
|---|
| 890 | 00549 G4UIparameter *param;
|
|---|
| 891 | 00550
|
|---|
| 892 | 00551 <span class="comment">// Re-implementation of G4UIparameter.cc</span>
|
|---|
| 893 | 00552
|
|---|
| 894 | 00553 <span class="keywordflow">for</span>( G4int i_thParameter=0; i_thParameter<n_parameterEntry; i_thParameter++ )
|
|---|
| 895 | 00554 { param = aCommand->GetParameter(i_thParameter);
|
|---|
| 896 | 00555 txt += <span class="stringliteral">"\nParameter : "</span> + QString((<span class="keywordtype">char</span>*)(param->GetParameterName()).data()) + <span class="stringliteral">"\n"</span>;
|
|---|
| 897 | 00556 <span class="keywordflow">if</span>( ! param->GetParameterGuidance().isNull() )
|
|---|
| 898 | 00557 txt += QString((<span class="keywordtype">char</span>*)(param->GetParameterGuidance()).data())+ <span class="stringliteral">"\n"</span> ;
|
|---|
| 899 | 00558 txt += <span class="stringliteral">" Parameter type : "</span> + QString(param->GetParameterType())+ <span class="stringliteral">"\n"</span>;
|
|---|
| 900 | 00559 <span class="keywordflow">if</span>(param->IsOmittable())
|
|---|
| 901 | 00560 { txt += <span class="stringliteral">" Omittable : True\n"</span>; }
|
|---|
| 902 | 00561 <span class="keywordflow">else</span>
|
|---|
| 903 | 00562 { txt += <span class="stringliteral">" Omittable : False\n"</span>; }
|
|---|
| 904 | 00563 <span class="keywordflow">if</span>( param->GetCurrentAsDefault() )
|
|---|
| 905 | 00564 { txt += <span class="stringliteral">" Default value : taken from the current value\n"</span>; }
|
|---|
| 906 | 00565 <span class="keywordflow">else</span> <span class="keywordflow">if</span>( ! param->GetDefaultValue().isNull() )
|
|---|
| 907 | 00566 { txt += <span class="stringliteral">" Default value : "</span> + QString((<span class="keywordtype">char</span>*)(param->GetDefaultValue()).data())+ <span class="stringliteral">"\n"</span>; }
|
|---|
| 908 | 00567 <span class="keywordflow">if</span>( ! param->GetParameterRange().isNull() )
|
|---|
| 909 | 00568 txt += <span class="stringliteral">" Parameter range : "</span> + QString((<span class="keywordtype">char</span>*)(param->GetParameterRange()).data())+ <span class="stringliteral">"\n"</span>;
|
|---|
| 910 | 00569 <span class="keywordflow">if</span>( ! param->GetParameterCandidates().isNull() )
|
|---|
| 911 | 00570 txt += <span class="stringliteral">" Candidates : "</span> + QString((<span class="keywordtype">char</span>*)(param->GetParameterCandidates()).data())+ <span class="stringliteral">"\n"</span>;
|
|---|
| 912 | 00571 }
|
|---|
| 913 | 00572 }
|
|---|
| 914 | 00573 <span class="keywordflow">return</span> txt;
|
|---|
| 915 | 00574 }
|
|---|
| 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">( </td>
|
|---|
| 927 | <td class="md" nowrap valign="top">G4int & </td>
|
|---|
| 928 | <td class="mdname1" valign="top" nowrap> <em>aInt</em> </td>
|
|---|
| 929 | <td class="md" valign="top"> ) </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 |
|
|---|
| 941 | </td>
|
|---|
| 942 | <td>
|
|---|
| 943 |
|
|---|
| 944 | <p>
|
|---|
| 945 | Implement <a class="el" href="classG4VBasicShell.html">G4VBasicShell</a> vurtual function
|
|---|
| 946 | <p>
|
|---|
| 947 | Implements <a class="el" href="classG4VBasicShell.html#b8">G4VBasicShell</a>.
|
|---|
| 948 | <p>
|
|---|
| 949 | Definition 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 {
|
|---|
| 952 | 00585 printf(<span class="stringliteral">"G4UIQt::GetHelpChoice SHOULD NEVER GO HERE"</span>);
|
|---|
| 953 | 00586 <span class="keywordflow">return</span> <span class="keyword">true</span>;
|
|---|
| 954 | 00587 }
|
|---|
| 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">( </td>
|
|---|
| 966 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 967 | <td class="md" valign="top"> ) </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 |
|
|---|
| 979 | </td>
|
|---|
| 980 | <td>
|
|---|
| 981 |
|
|---|
| 982 | <p>
|
|---|
| 983 | This callback is activated when user selected a item in the help tree
|
|---|
| 984 | <p>
|
|---|
| 985 | Definition 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>
|
|---|
| 987 | References <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>
|
|---|
| 989 | Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>.
|
|---|
| 990 | <p>
|
|---|
| 991 | <div class="fragment"><pre>00733 {
|
|---|
| 992 | 00734 <span class="comment">// G4bool GetHelpChoice(G4int&);</span>
|
|---|
| 993 | 00735 QTreeWidgetItem* item = NULL;
|
|---|
| 994 | 00736 <span class="keywordflow">if</span> (!<a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>)
|
|---|
| 995 | 00737 <span class="keywordflow">return</span> ;
|
|---|
| 996 | 00738
|
|---|
| 997 | 00739 <span class="keywordflow">if</span> (!<a class="code" href="classG4UIQt.html#r4">fHelpArea</a>)
|
|---|
| 998 | 00740 <span class="keywordflow">return</span>;
|
|---|
| 999 | 00741
|
|---|
| 1000 | 00742 QList<QTreeWidgetItem *> list =<a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->selectedItems();
|
|---|
| 1001 | 00743 <span class="keywordflow">if</span> (list.isEmpty())
|
|---|
| 1002 | 00744 <span class="keywordflow">return</span>;
|
|---|
| 1003 | 00745 item = list.first();
|
|---|
| 1004 | 00746 <span class="keywordflow">if</span> (!item)
|
|---|
| 1005 | 00747 <span class="keywordflow">return</span>;
|
|---|
| 1006 | 00748
|
|---|
| 1007 | 00749 G4UImanager* UI = G4UImanager::GetUIpointer();
|
|---|
| 1008 | 00750 <span class="keywordflow">if</span>(UI==NULL) <span class="keywordflow">return</span>;
|
|---|
| 1009 | 00751 G4UIcommandTree * treeTop = UI->GetTree();
|
|---|
| 1010 | 00752 G4UIcommand* command = treeTop->FindPath(item->text (1).toStdString().c_str());
|
|---|
| 1011 | 00753 <span class="keywordflow">if</span> (command) {
|
|---|
| 1012 | 00754 <a class="code" href="classG4UIQt.html#r4">fHelpArea</a>->setText(<a class="code" href="classG4UIQt.html#d3">GetCommandList</a>(command));
|
|---|
| 1013 | 00755 } <span class="keywordflow">else</span> {
|
|---|
| 1014 | 00756 <span class="comment">// this is not a command, this is a sub directory</span>
|
|---|
| 1015 | 00757 <span class="comment">// We display the Title</span>
|
|---|
| 1016 | 00758 <a class="code" href="classG4UIQt.html#r4">fHelpArea</a>->setText(item->text (1).toStdString().c_str());
|
|---|
| 1017 | 00759 }
|
|---|
| 1018 | 00760 }
|
|---|
| 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">( </td>
|
|---|
| 1030 | <td class="md" nowrap valign="top">const QString & </td>
|
|---|
| 1031 | <td class="mdname1" valign="top" nowrap> <em>text</em> </td>
|
|---|
| 1032 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1044 | </td>
|
|---|
| 1045 | <td>
|
|---|
| 1046 |
|
|---|
| 1047 | <p>
|
|---|
| 1048 |
|
|---|
| 1049 | <p>
|
|---|
| 1050 | Definition 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 {
|
|---|
| 1053 | 00095 <span class="keywordtype">void</span> *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
|---|
| 1054 | 00096 QMetaObject::activate(<span class="keyword">this</span>, &staticMetaObject, 0, _a);
|
|---|
| 1055 | 00097 }
|
|---|
| 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">( </td>
|
|---|
| 1067 | <td class="md" nowrap valign="top">G4String </td>
|
|---|
| 1068 | <td class="mdname1" valign="top" nowrap> <em>aState</em> </td>
|
|---|
| 1069 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1081 | </td>
|
|---|
| 1082 | <td>
|
|---|
| 1083 |
|
|---|
| 1084 | <p>
|
|---|
| 1085 | Called 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> </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>
|
|---|
| 1097 | Implements <a class="el" href="classG4VBasicShell.html#a3">G4VBasicShell</a>.
|
|---|
| 1098 | <p>
|
|---|
| 1099 | Definition 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>
|
|---|
| 1101 | References <a class="el" href="G4UIQt_8cc-source.html#l00268">SecondaryLoop()</a>.
|
|---|
| 1102 | <p>
|
|---|
| 1103 | <div class="fragment"><pre>00250 {
|
|---|
| 1104 | 00251 printf(<span class="stringliteral">"G4UIQt::PauseSessionStart\n"</span>);
|
|---|
| 1105 | 00252 <span class="keywordflow">if</span>(aState==<span class="stringliteral">"G4_pause> "</span>) { <span class="comment">// TO KEEP</span>
|
|---|
| 1106 | 00253 <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>
|
|---|
| 1107 | 00254 } <span class="comment">// TO KEEP</span>
|
|---|
| 1108 | 00255
|
|---|
| 1109 | 00256 <span class="keywordflow">if</span>(aState==<span class="stringliteral">"EndOfEvent"</span>) { <span class="comment">// TO KEEP</span>
|
|---|
| 1110 | 00257 <span class="comment">// Picking with feed back in event data Done here !!!</span>
|
|---|
| 1111 | 00258 <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>
|
|---|
| 1112 | 00259 } <span class="comment">// TO KEEP</span>
|
|---|
| 1113 | 00260 }
|
|---|
| 1114 | </pre></div> </td>
|
|---|
| 1115 | </tr>
|
|---|
| 1116 | </table>
|
|---|
| 1117 |
|
|---|
| 1118 | <p>
|
|---|
| 1119 | Here 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">( </td>
|
|---|
| 1135 | <td class="md" nowrap valign="top">G4String </td>
|
|---|
| 1136 | <td class="mdname1" valign="top" nowrap> <em>aPrompt</em> </td>
|
|---|
| 1137 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1149 | </td>
|
|---|
| 1150 | <td>
|
|---|
| 1151 |
|
|---|
| 1152 | <p>
|
|---|
| 1153 | Display 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> </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>
|
|---|
| 1160 | Definition 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>
|
|---|
| 1162 | References <a class="el" href="G4UIQt_8hh-source.html#l00117">fCommandLabel</a>.
|
|---|
| 1163 | <p>
|
|---|
| 1164 | Referenced 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 {
|
|---|
| 1167 | 00225 <a class="code" href="classG4UIQt.html#r1">fCommandLabel</a>->setText((<span class="keywordtype">char</span>*)aPrompt.data());
|
|---|
| 1168 | 00226 }
|
|---|
| 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">( </td>
|
|---|
| 1180 | <td class="md" nowrap valign="top">G4String </td>
|
|---|
| 1181 | <td class="mdname1" valign="top" nowrap> <em>aString</em> </td>
|
|---|
| 1182 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1194 | </td>
|
|---|
| 1195 | <td>
|
|---|
| 1196 |
|
|---|
| 1197 | <p>
|
|---|
| 1198 | Receive 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> </td><td>: label to add in the display area </td></tr>
|
|---|
| 1201 | </table>
|
|---|
| 1202 | </dl>
|
|---|
| 1203 |
|
|---|
| 1204 | <p>
|
|---|
| 1205 | Definition 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>
|
|---|
| 1207 | References <a class="el" href="G4UIQt_8hh-source.html#l00119">fTextArea</a>.
|
|---|
| 1208 | <p>
|
|---|
| 1209 | <div class="fragment"><pre>00307 {
|
|---|
| 1210 | 00308 QColor previousColor = <a class="code" href="classG4UIQt.html#r3">fTextArea</a>->textColor();
|
|---|
| 1211 | 00309 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>->setTextColor(Qt::red);
|
|---|
| 1212 | 00310 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>->append(QString((<span class="keywordtype">char</span>*)aString.data()).trimmed());
|
|---|
| 1213 | 00311 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>->setTextColor(previousColor);
|
|---|
| 1214 | 00312 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>->verticalScrollBar()->setSliderPosition(<a class="code" href="classG4UIQt.html#r3">fTextArea</a>->verticalScrollBar()->maximum());
|
|---|
| 1215 | 00313 <span class="keywordflow">return</span> 0;
|
|---|
| 1216 | 00314 }
|
|---|
| 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">( </td>
|
|---|
| 1228 | <td class="md" nowrap valign="top">G4String </td>
|
|---|
| 1229 | <td class="mdname1" valign="top" nowrap> <em>aString</em> </td>
|
|---|
| 1230 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1242 | </td>
|
|---|
| 1243 | <td>
|
|---|
| 1244 |
|
|---|
| 1245 | <p>
|
|---|
| 1246 | Receive 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> </td><td>: label to add in the display area </td></tr>
|
|---|
| 1249 | </table>
|
|---|
| 1250 | </dl>
|
|---|
| 1251 |
|
|---|
| 1252 | <p>
|
|---|
| 1253 | Definition 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>
|
|---|
| 1255 | References <a class="el" href="G4UIQt_8hh-source.html#l00119">fTextArea</a>.
|
|---|
| 1256 | <p>
|
|---|
| 1257 | <div class="fragment"><pre>00293 {
|
|---|
| 1258 | 00294 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>->append(QString((<span class="keywordtype">char</span>*)aString.data()).trimmed());
|
|---|
| 1259 | 00295 <a class="code" href="classG4UIQt.html#r3">fTextArea</a>->verticalScrollBar()->setSliderPosition(<a class="code" href="classG4UIQt.html#r3">fTextArea</a>->verticalScrollBar()->maximum());
|
|---|
| 1260 | 00296 <span class="keywordflow">return</span> 0;
|
|---|
| 1261 | 00297 }
|
|---|
| 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">( </td>
|
|---|
| 1273 | <td class="md" nowrap valign="top">G4String </td>
|
|---|
| 1274 | <td class="mdname1" valign="top" nowrap> <em>aPrompt</em> </td>
|
|---|
| 1275 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1287 | </td>
|
|---|
| 1288 | <td>
|
|---|
| 1289 |
|
|---|
| 1290 | <p>
|
|---|
| 1291 | Begin 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> </td><td>: label to display as the prompt label </td></tr>
|
|---|
| 1294 | </table>
|
|---|
| 1295 | </dl>
|
|---|
| 1296 |
|
|---|
| 1297 | <p>
|
|---|
| 1298 | Definition 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>
|
|---|
| 1300 | References <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>
|
|---|
| 1302 | Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00247">PauseSessionStart()</a>.
|
|---|
| 1303 | <p>
|
|---|
| 1304 | <div class="fragment"><pre>00271 {
|
|---|
| 1305 | 00272 printf(<span class="stringliteral">"G4UIQt::SecondaryLoop\n"</span>);
|
|---|
| 1306 | 00273 <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>
|
|---|
| 1307 | 00274 <a class="code" href="classG4UIQt.html#a5">Prompt</a>(aPrompt); <span class="comment">// TO KEEP</span>
|
|---|
| 1308 | 00275 <a class="code" href="G4UIQt_8cc.html#a1">exitPause</a> = <span class="keyword">false</span>; <span class="comment">// TO KEEP</span>
|
|---|
| 1309 | 00276 <span class="keywordtype">void</span>* event; <span class="comment">// TO KEEP</span>
|
|---|
| 1310 | 00277 <span class="keywordflow">while</span>((event = interactorManager-><a class="code" href="classG4Qt.html#a1">GetEvent</a>())!=NULL) { <span class="comment">// TO KEEP</span>
|
|---|
| 1311 | 00278 interactorManager-><a class="code" href="classG4VInteractorManager.html#a17">DispatchEvent</a>(event); <span class="comment">// TO KEEP</span>
|
|---|
| 1312 | 00279 <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>
|
|---|
| 1313 | 00280 } <span class="comment">// TO KEEP</span>
|
|---|
| 1314 | 00281 <a class="code" href="classG4UIQt.html#a5">Prompt</a>(<span class="stringliteral">"session"</span>); <span class="comment">// TO KEEP</span>
|
|---|
| 1315 | 00282 }
|
|---|
| 1316 | </pre></div> </td>
|
|---|
| 1317 | </tr>
|
|---|
| 1318 | </table>
|
|---|
| 1319 |
|
|---|
| 1320 | <p>
|
|---|
| 1321 | Here 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">( </td>
|
|---|
| 1336 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 1337 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1349 | </td>
|
|---|
| 1350 | <td>
|
|---|
| 1351 |
|
|---|
| 1352 | <p>
|
|---|
| 1353 | Start the Qt main loop
|
|---|
| 1354 | <p>
|
|---|
| 1355 | Implements <a class="el" href="classG4VBasicShell.html#a2">G4VBasicShell</a>.
|
|---|
| 1356 | <p>
|
|---|
| 1357 | Definition 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>
|
|---|
| 1359 | References <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 {
|
|---|
| 1362 | 00190
|
|---|
| 1363 | 00191 <a class="code" href="classG4Qt.html">G4Qt</a>* interactorManager = <a class="code" href="classG4Qt.html#e0">G4Qt::getInstance</a> ();
|
|---|
| 1364 | 00192 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->show();
|
|---|
| 1365 | 00193 <a class="code" href="classG4UIQt.html#a5">Prompt</a>(<span class="stringliteral">"session"</span>);
|
|---|
| 1366 | 00194 <a class="code" href="G4UIQt_8cc.html#a0">exitSession</a> = <span class="keyword">false</span>;
|
|---|
| 1367 | 00195
|
|---|
| 1368 | 00196
|
|---|
| 1369 | 00197 printf(<span class="stringliteral">"disable secondary loop\n"</span>);
|
|---|
| 1370 | 00198 interactorManager-><a class="code" href="classG4VInteractorManager.html#a13">DisableSecondaryLoop</a> (); <span class="comment">// TO KEEP</span>
|
|---|
| 1371 | 00199 ((QApplication*)interactorManager-><a class="code" href="classG4VInteractorManager.html#a5">GetMainInteractor</a>())->exec();
|
|---|
| 1372 | 00200 <span class="comment">// on ne passe pas le dessous ? FIXME ????</span>
|
|---|
| 1373 | 00201 <span class="comment">// je ne pense pas 13/06</span>
|
|---|
| 1374 | 00202
|
|---|
| 1375 | 00203 <span class="comment">// void* event; // TO KEEP</span>
|
|---|
| 1376 | 00204 <span class="comment">// while((event = interactorManager->GetEvent())!=NULL) { // TO KEEP</span>
|
|---|
| 1377 | 00205 <span class="comment">// interactorManager->DispatchEvent(event); // TO KEEP</span>
|
|---|
| 1378 | 00206 <span class="comment">// if(exitSession==true) break; // TO KEEP</span>
|
|---|
| 1379 | 00207 <span class="comment">// } // TO KEEP</span>
|
|---|
| 1380 | 00208
|
|---|
| 1381 | 00209 interactorManager-><a class="code" href="classG4VInteractorManager.html#a12">EnableSecondaryLoop</a> ();
|
|---|
| 1382 | 00210 printf(<span class="stringliteral">"enable secondary loop\n"</span>);
|
|---|
| 1383 | 00211 <span class="keywordflow">return</span> <span class="keyword">this</span>;
|
|---|
| 1384 | 00212 }
|
|---|
| 1385 | </pre></div> </td>
|
|---|
| 1386 | </tr>
|
|---|
| 1387 | </table>
|
|---|
| 1388 |
|
|---|
| 1389 | <p>
|
|---|
| 1390 | Here 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">( </td>
|
|---|
| 1406 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 1407 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1419 | </td>
|
|---|
| 1420 | <td>
|
|---|
| 1421 |
|
|---|
| 1422 | <p>
|
|---|
| 1423 |
|
|---|
| 1424 | <p>
|
|---|
| 1425 | Definition 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>
|
|---|
| 1427 | References <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>
|
|---|
| 1429 | Referenced 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 {
|
|---|
| 1432 | 00232 <a class="code" href="classG4Qt.html">G4Qt</a>* interactorManager = <a class="code" href="classG4Qt.html#e0">G4Qt::getInstance</a> ();
|
|---|
| 1433 | 00233 <a class="code" href="classG4UIQt.html#r0">fMainWindow</a>->close();
|
|---|
| 1434 | 00234 ((QApplication*)interactorManager-><a class="code" href="classG4VInteractorManager.html#a5">GetMainInteractor</a>())->exit();
|
|---|
| 1435 | 00235 }
|
|---|
| 1436 | </pre></div> </td>
|
|---|
| 1437 | </tr>
|
|---|
| 1438 | </table>
|
|---|
| 1439 |
|
|---|
| 1440 | <p>
|
|---|
| 1441 | Here 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">( </td>
|
|---|
| 1454 | <td class="mdname1" valign="top" nowrap> </td>
|
|---|
| 1455 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1467 | </td>
|
|---|
| 1468 | <td>
|
|---|
| 1469 |
|
|---|
| 1470 | <p>
|
|---|
| 1471 | Called when user give "help" command.
|
|---|
| 1472 | <p>
|
|---|
| 1473 | Definition 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>
|
|---|
| 1475 | References <a class="el" href="G4UIQt_8cc-source.html#l00368">TerminalHelp()</a>.
|
|---|
| 1476 | <p>
|
|---|
| 1477 | Referenced by <a class="el" href="G4UIQt_8cc-source.html#l00087">G4UIQt()</a>.
|
|---|
| 1478 | <p>
|
|---|
| 1479 | <div class="fragment"><pre>00669 {
|
|---|
| 1480 | 00670 <a class="code" href="classG4UIQt.html#d1">TerminalHelp</a>(<span class="stringliteral">""</span>);
|
|---|
| 1481 | 00671 }
|
|---|
| 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">( </td>
|
|---|
| 1493 | <td class="md" nowrap valign="top">G4String </td>
|
|---|
| 1494 | <td class="mdname1" valign="top" nowrap> <em>newCommand</em> </td>
|
|---|
| 1495 | <td class="md" valign="top"> ) </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 |
|
|---|
| 1507 | </td>
|
|---|
| 1508 | <td>
|
|---|
| 1509 |
|
|---|
| 1510 | <p>
|
|---|
| 1511 | Open 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> </td><td>: open the tree widget item on this command if is set </td></tr>
|
|---|
| 1517 | </table>
|
|---|
| 1518 | </dl>
|
|---|
| 1519 |
|
|---|
| 1520 | <p>
|
|---|
| 1521 | Reimplemented from <a class="el" href="classG4VBasicShell.html#b14">G4VBasicShell</a>.
|
|---|
| 1522 | <p>
|
|---|
| 1523 | Definition 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>
|
|---|
| 1525 | References <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>
|
|---|
| 1527 | Referenced 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 {
|
|---|
| 1530 | 00372 <span class="keywordflow">if</span> (!<a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>) {
|
|---|
| 1531 | 00373 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a> = <span class="keyword">new</span> QDialog;
|
|---|
| 1532 | 00374
|
|---|
| 1533 | 00375 QSplitter *splitter = <span class="keyword">new</span> QSplitter(Qt::Horizontal);
|
|---|
| 1534 | 00376 <a class="code" href="classG4UIQt.html#r4">fHelpArea</a> = <span class="keyword">new</span> QTextEdit();
|
|---|
| 1535 | 00377 QPushButton *exitButton = <span class="keyword">new</span> QPushButton(<span class="stringliteral">"Exit"</span>);
|
|---|
| 1536 | 00378 connect(exitButton, SIGNAL(clicked()), fHelpDialog,SLOT(close()));
|
|---|
| 1537 | 00379 <a class="code" href="classG4UIQt.html#r4">fHelpArea</a>->setReadOnly(<span class="keyword">true</span>);
|
|---|
| 1538 | 00380
|
|---|
| 1539 | 00381 <span class="comment">// the help tree</span>
|
|---|
| 1540 | 00382 G4UImanager* UI = G4UImanager::GetUIpointer();
|
|---|
| 1541 | 00383 <span class="keywordflow">if</span>(UI==NULL) <span class="keywordflow">return</span>;
|
|---|
| 1542 | 00384 G4UIcommandTree * treeTop = UI->GetTree();
|
|---|
| 1543 | 00385
|
|---|
| 1544 | 00386 <span class="comment">// build widget</span>
|
|---|
| 1545 | 00387 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a> = <span class="keyword">new</span> QTreeWidget();
|
|---|
| 1546 | 00388 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->setSelectionMode(QAbstractItemView::SingleSelection);
|
|---|
| 1547 | 00389 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->setColumnCount(2);
|
|---|
| 1548 | 00390 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->setColumnHidden(1,<span class="keyword">true</span>);
|
|---|
| 1549 | 00391 QStringList labels;
|
|---|
| 1550 | 00392 labels << QString(<span class="stringliteral">"Command"</span>) << QString(<span class="stringliteral">"Description"</span>);
|
|---|
| 1551 | 00393 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->setHeaderLabels(labels);
|
|---|
| 1552 | 00394
|
|---|
| 1553 | 00395 QList<QTreeWidgetItem *> items;
|
|---|
| 1554 | 00396 G4int treeSize = treeTop->GetTreeEntry();
|
|---|
| 1555 | 00397 QTreeWidgetItem * newItem;
|
|---|
| 1556 | 00398 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a<treeSize;a++) {
|
|---|
| 1557 | 00399 <span class="comment">// Creating new item</span>
|
|---|
| 1558 | 00400 QStringList stringList;
|
|---|
| 1559 | 00401 stringList << QString((<span class="keywordtype">char</span>*)(treeTop->GetTree(a+1)->GetPathName()).data()).trimmed() ;
|
|---|
| 1560 | 00402 stringList << QString((<span class="keywordtype">char</span>*)(treeTop->GetTree(a+1)->GetTitle()).data()).trimmed() ;
|
|---|
| 1561 | 00403
|
|---|
| 1562 | 00404 newItem = <span class="keyword">new</span> QTreeWidgetItem(stringList);
|
|---|
| 1563 | 00405
|
|---|
| 1564 | 00406 <span class="comment">// look for childs</span>
|
|---|
| 1565 | 00407 <a class="code" href="classG4UIQt.html#d2">CreateChildTree</a>(newItem,treeTop->GetTree(a+1));
|
|---|
| 1566 | 00408 items.append(newItem);
|
|---|
| 1567 | 00409 }
|
|---|
| 1568 | 00410 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->insertTopLevelItems(0, items);
|
|---|
| 1569 | 00411
|
|---|
| 1570 | 00412 <span class="comment">//connecting callback</span>
|
|---|
| 1571 | 00413 <span class="comment">// QSignalMapper signalMapper = new QSignalMapper(this);</span>
|
|---|
| 1572 | 00414
|
|---|
| 1573 | 00415 connect(fHelpTreeWidget, SIGNAL(itemSelectionChanged ()),<span class="keyword">this</span>, SLOT(<a class="code" href="classG4UIQt.html#k3">helpTreeCallback</a>()));
|
|---|
| 1574 | 00416
|
|---|
| 1575 | 00417 <span class="comment">// Set layouts</span>
|
|---|
| 1576 | 00418
|
|---|
| 1577 | 00419 QVBoxLayout *vLayout = <span class="keyword">new</span> QVBoxLayout;
|
|---|
| 1578 | 00420
|
|---|
| 1579 | 00421 splitter->addWidget(fHelpTreeWidget);
|
|---|
| 1580 | 00422 splitter->addWidget(fHelpArea);
|
|---|
| 1581 | 00423
|
|---|
| 1582 | 00424 vLayout->addWidget(splitter);
|
|---|
| 1583 | 00425 vLayout->addWidget(exitButton);
|
|---|
| 1584 | 00426 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>->setLayout(vLayout);
|
|---|
| 1585 | 00427
|
|---|
| 1586 | 00428 }
|
|---|
| 1587 | 00429
|
|---|
| 1588 | 00430 <span class="comment">// Look for the choosen command "newCommand"</span>
|
|---|
| 1589 | 00431 size_t i = newCommand.index(<span class="stringliteral">" "</span>);
|
|---|
| 1590 | 00432 G4String targetCom=<span class="stringliteral">""</span>;
|
|---|
| 1591 | 00433 <span class="keywordflow">if</span>( i != std::string::npos )
|
|---|
| 1592 | 00434 {
|
|---|
| 1593 | 00435 G4String newValue = newCommand(i+1,newCommand.length()-(i+1));
|
|---|
| 1594 | 00436 newValue.strip(G4String::both);
|
|---|
| 1595 | 00437 targetCom = <a class="code" href="classG4VBasicShell.html#b0">ModifyToFullPathCommand</a>( newValue );
|
|---|
| 1596 | 00438 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()));
|
|---|
| 1597 | 00439 }
|
|---|
| 1598 | 00440 <span class="keywordflow">if</span> (targetCom != <span class="stringliteral">""</span>) {
|
|---|
| 1599 | 00441 QList<QTreeWidgetItem *> list = <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->findItems(QString(((<span class="keywordtype">char</span>*)targetCom.data())),Qt::MatchFixedString,0);
|
|---|
| 1600 | 00442 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> a=0;a<13;a++) {
|
|---|
| 1601 | 00443 printf(<span class="stringliteral">"verif.... =%s= +%s+\n"</span>,<a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->topLevelItem(a)->text(0).toStdString().c_str(),((<span class="keywordtype">char</span>*)targetCom.data()));
|
|---|
| 1602 | 00444 }
|
|---|
| 1603 | 00445
|
|---|
| 1604 | 00446 <span class="keywordflow">if</span> (!list.isEmpty()) {
|
|---|
| 1605 | 00447 <span class="keywordflow">if</span> (list.first()->childCount() >0)
|
|---|
| 1606 | 00448 list.first()->setExpanded(<span class="keyword">true</span>);
|
|---|
| 1607 | 00449
|
|---|
| 1608 | 00450 <span class="comment">//collapsed open item</span>
|
|---|
| 1609 | 00451 QList<QTreeWidgetItem *> selected;
|
|---|
| 1610 | 00452 selected = <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->selectedItems();
|
|---|
| 1611 | 00453 <span class="keywordflow">if</span> ( selected.count() != 0 ) {
|
|---|
| 1612 | 00454 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->collapseItem (selected.at( 0 ) );
|
|---|
| 1613 | 00455 }
|
|---|
| 1614 | 00456
|
|---|
| 1615 | 00457 <span class="comment">// clear old selection</span>
|
|---|
| 1616 | 00458 <a class="code" href="classG4UIQt.html#r7">fHelpTreeWidget</a>->clearSelection();
|
|---|
| 1617 | 00459 list.first()->setSelected(<span class="keyword">true</span>);
|
|---|
| 1618 | 00460
|
|---|
| 1619 | 00461 <span class="comment">// Call the update of the right textArea</span>
|
|---|
| 1620 | 00462 <a class="code" href="classG4UIQt.html#k3">helpTreeCallback</a>();
|
|---|
| 1621 | 00463 }
|
|---|
| 1622 | 00464 }
|
|---|
| 1623 | 00465 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>->setWindowTitle(<span class="stringliteral">"Help on commands"</span>);
|
|---|
| 1624 | 00466 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>->resize(800,600);
|
|---|
| 1625 | 00467 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>->move(QPoint(400,150));
|
|---|
| 1626 | 00468 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>->show();
|
|---|
| 1627 | 00469 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>->raise();
|
|---|
| 1628 | 00470 <a class="code" href="classG4UIQt.html#r8">fHelpDialog</a>->activateWindow();
|
|---|
| 1629 | 00471 }
|
|---|
| 1630 | </pre></div> </td>
|
|---|
| 1631 | </tr>
|
|---|
| 1632 | </table>
|
|---|
| 1633 |
|
|---|
| 1634 | <p>
|
|---|
| 1635 | Here 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 |
|
|---|
| 1657 | </td>
|
|---|
| 1658 | <td>
|
|---|
| 1659 |
|
|---|
| 1660 | <p>
|
|---|
| 1661 |
|
|---|
| 1662 | <p>
|
|---|
| 1663 | Definition 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>
|
|---|
| 1665 | Referenced 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 |
|
|---|
| 1683 | </td>
|
|---|
| 1684 | <td>
|
|---|
| 1685 |
|
|---|
| 1686 | <p>
|
|---|
| 1687 |
|
|---|
| 1688 | <p>
|
|---|
| 1689 | Definition 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>
|
|---|
| 1691 | Referenced 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 |
|
|---|
| 1709 | </td>
|
|---|
| 1710 | <td>
|
|---|
| 1711 |
|
|---|
| 1712 | <p>
|
|---|
| 1713 |
|
|---|
| 1714 | <p>
|
|---|
| 1715 | Definition 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>
|
|---|
| 1717 | Referenced 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 |
|
|---|
| 1735 | </td>
|
|---|
| 1736 | <td>
|
|---|
| 1737 |
|
|---|
| 1738 | <p>
|
|---|
| 1739 |
|
|---|
| 1740 | <p>
|
|---|
| 1741 | Definition 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>
|
|---|
| 1743 | Referenced 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 |
|
|---|
| 1761 | </td>
|
|---|
| 1762 | <td>
|
|---|
| 1763 |
|
|---|
| 1764 | <p>
|
|---|
| 1765 |
|
|---|
| 1766 | <p>
|
|---|
| 1767 | Definition 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>
|
|---|
| 1769 | Referenced 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 |
|
|---|
| 1787 | </td>
|
|---|
| 1788 | <td>
|
|---|
| 1789 |
|
|---|
| 1790 | <p>
|
|---|
| 1791 |
|
|---|
| 1792 | <p>
|
|---|
| 1793 | Definition 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>
|
|---|
| 1795 | Referenced 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 |
|
|---|
| 1813 | </td>
|
|---|
| 1814 | <td>
|
|---|
| 1815 |
|
|---|
| 1816 | <p>
|
|---|
| 1817 |
|
|---|
| 1818 | <p>
|
|---|
| 1819 | Definition 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>
|
|---|
| 1821 | Referenced 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 |
|
|---|
| 1839 | </td>
|
|---|
| 1840 | <td>
|
|---|
| 1841 |
|
|---|
| 1842 | <p>
|
|---|
| 1843 |
|
|---|
| 1844 | <p>
|
|---|
| 1845 | Definition 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>
|
|---|
| 1847 | Referenced 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 |
|
|---|
| 1865 | </td>
|
|---|
| 1866 | <td>
|
|---|
| 1867 |
|
|---|
| 1868 | <p>
|
|---|
| 1869 |
|
|---|
| 1870 | <p>
|
|---|
| 1871 | Definition 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>
|
|---|
| 1873 | Referenced 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>
|
|---|