[571] | 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>G4UIGAG.hh Source File</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>G4UIGAG.hh</h1><a href="G4UIGAG_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">//</span> |
---|
| 9 | 00002 <span class="comment">// ********************************************************************</span> |
---|
| 10 | 00003 <span class="comment">// * License and Disclaimer *</span> |
---|
| 11 | 00004 <span class="comment">// * *</span> |
---|
| 12 | 00005 <span class="comment">// * The Geant4 software is copyright of the Copyright Holders of *</span> |
---|
| 13 | 00006 <span class="comment">// * the Geant4 Collaboration. It is provided under the terms and *</span> |
---|
| 14 | 00007 <span class="comment">// * conditions of the Geant4 Software License, included in the file *</span> |
---|
| 15 | 00008 <span class="comment">// * LICENSE and available at http://cern.ch/geant4/license . These *</span> |
---|
| 16 | 00009 <span class="comment">// * include a list of copyright holders. *</span> |
---|
| 17 | 00010 <span class="comment">// * *</span> |
---|
| 18 | 00011 <span class="comment">// * Neither the authors of this software system, nor their employing *</span> |
---|
| 19 | 00012 <span class="comment">// * institutes,nor the agencies providing financial support for this *</span> |
---|
| 20 | 00013 <span class="comment">// * work make any representation or warranty, express or implied, *</span> |
---|
| 21 | 00014 <span class="comment">// * regarding this software system or assume any liability for its *</span> |
---|
| 22 | 00015 <span class="comment">// * use. Please see the license in the file LICENSE and URL above *</span> |
---|
| 23 | 00016 <span class="comment">// * for the full disclaimer and the limitation of liability. *</span> |
---|
| 24 | 00017 <span class="comment">// * *</span> |
---|
| 25 | 00018 <span class="comment">// * This code implementation is the result of the scientific and *</span> |
---|
| 26 | 00019 <span class="comment">// * technical work of the GEANT4 collaboration. *</span> |
---|
| 27 | 00020 <span class="comment">// * By using, copying, modifying or distributing the software (or *</span> |
---|
| 28 | 00021 <span class="comment">// * any work based on the software) you agree to acknowledge its *</span> |
---|
| 29 | 00022 <span class="comment">// * use in resulting scientific publications, and indicate your *</span> |
---|
| 30 | 00023 <span class="comment">// * acceptance of all terms of the Geant4 Software license. *</span> |
---|
| 31 | 00024 <span class="comment">// ********************************************************************</span> |
---|
| 32 | 00025 <span class="comment">//</span> |
---|
| 33 | 00026 <span class="comment">//</span> |
---|
| 34 | 00027 <span class="comment">// $Id: G4UIGAG.hh,v 1.7 2006/06/29 19:09:18 gunter Exp $</span> |
---|
| 35 | 00028 <span class="comment">// GEANT4 tag $Name: geant4-08-01-patch-01 $</span> |
---|
| 36 | 00029 <span class="comment">//</span> |
---|
| 37 | 00030 <span class="comment">// G4UIGAG.hh</span> |
---|
| 38 | 00031 <span class="comment">// GAG(Geant4 adaptive GUI) interface class</span> |
---|
| 39 | 00032 <span class="comment">// 18.Feb.98 Y.Nagamatu and T.Kodama created G4UIGAG from G4UIterminal</span> |
---|
| 40 | 00033 |
---|
| 41 | 00034 <span class="comment">// If you want to use GAG (Tcl and JAVA version),</span> |
---|
| 42 | 00035 <span class="comment">// read a document file README_Momo.html.</span> |
---|
| 43 | 00036 |
---|
| 44 | 00037 <span class="preprocessor">#ifndef G4UIGAG_h</span> |
---|
| 45 | 00038 <span class="preprocessor"></span><span class="preprocessor">#define G4UIGAG_h 1</span> |
---|
| 46 | 00039 <span class="preprocessor"></span> |
---|
| 47 | 00040 <span class="preprocessor">#include "G4UIsession.hh"</span> |
---|
| 48 | 00041 <span class="preprocessor">#include "G4UImanager.hh"</span> |
---|
| 49 | 00042 <span class="preprocessor">#include <fstream></span> |
---|
| 50 | 00043 <span class="preprocessor">#include <vector></span> |
---|
| 51 | 00044 |
---|
| 52 | <a name="l00045"></a><a class="code" href="G4UIGAG_8hh.html#a7">00045</a> <span class="keyword">enum</span> <a class="code" href="G4UIGAG_8hh.html#a7">UImode</a> { <a class="code" href="G4UIGAG_8hh.html#a7a0">terminal_mode</a> , <a class="code" href="G4UIGAG_8hh.html#a7a1">java_mode</a>, <a class="code" href="G4UIGAG_8hh.html#a7a2">tcl_mode</a> }; |
---|
| 53 | <a name="l00046"></a><a class="code" href="G4UIGAG_8hh.html#a8">00046</a> <span class="keyword">enum</span> <a class="code" href="G4UIGAG_8hh.html#a8">ChangeOfTree</a> { <a class="code" href="G4UIGAG_8hh.html#a8a3">notChanged</a>=0, <a class="code" href="G4UIGAG_8hh.html#a8a4">added</a>, <a class="code" href="G4UIGAG_8hh.html#a8a5">deleted</a>, <a class="code" href="G4UIGAG_8hh.html#a8a6">addedAndDeleted</a> }; |
---|
| 54 | 00047 |
---|
| 55 | 00048 <span class="comment">// class description:</span> |
---|
| 56 | 00049 <span class="comment">//</span> |
---|
| 57 | 00050 <span class="comment">// This class inherits the class G4UIsession.</span> |
---|
| 58 | 00051 <span class="comment">// This is the class which is the front-end to GAG (Geant4 Adaptive GUI).</span> |
---|
| 59 | 00052 <span class="comment">// Its usage is quite similar to G4UIterminal.</span> |
---|
| 60 | 00053 |
---|
| 61 | <a name="l00054"></a><a class="code" href="classG4UIGAG.html">00054</a> <span class="keyword">class </span><a class="code" href="classG4UIGAG.html">G4UIGAG</a> : <span class="keyword">public</span> G4UIsession |
---|
| 62 | 00055 { |
---|
| 63 | 00056 <span class="keyword">public</span>: <span class="comment">// with description</span> |
---|
| 64 | 00057 <a class="code" href="classG4UIGAG.html#a0">G4UIGAG</a>(); |
---|
| 65 | 00058 <a class="code" href="classG4UIGAG.html#a1">~G4UIGAG</a>(); |
---|
| 66 | 00059 |
---|
| 67 | 00060 G4UIsession * <a class="code" href="classG4UIGAG.html#a2">SessionStart</a>(); |
---|
| 68 | 00061 |
---|
| 69 | 00062 <span class="comment">// A GAG session "gagSession" is instantiated.</span> |
---|
| 70 | 00063 <span class="comment">// G4cout stream is redirected by default to the constructed instance.</span> |
---|
| 71 | 00064 <span class="comment">// Usage: G4UIsession * gagSession = new G4UIGAG;</span> |
---|
| 72 | 00065 <span class="comment">// "gagSession" is started.</span> |
---|
| 73 | 00066 <span class="comment">// Usage: gagSession->SessionStart();</span> |
---|
| 74 | 00067 <span class="comment">// "gagSession" is deleted.</span> |
---|
| 75 | 00068 <span class="comment">// Usage: delete gagSession;</span> |
---|
| 76 | 00069 <span class="comment">//</span> |
---|
| 77 | 00070 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#a3">PauseSessionStart</a>(G4String); |
---|
| 78 | 00071 G4int <a class="code" href="classG4UIGAG.html#a4">ReceiveG4cout</a>(G4String); |
---|
| 79 | 00072 G4int <a class="code" href="classG4UIGAG.html#a5">ReceiveG4cerr</a>(G4String); |
---|
| 80 | 00073 <span class="comment">// These methods are implementation of the virtual methods of</span> |
---|
| 81 | 00074 <span class="comment">// G4UIsession class. </span> |
---|
| 82 | 00075 <span class="comment">//</span> |
---|
| 83 | 00076 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#a6">SessionTerminate</a>(); |
---|
| 84 | 00077 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#a7">Prompt</a>(G4String); |
---|
| 85 | 00078 G4String <a class="code" href="classG4UIGAG.html#a8">GetCommand</a>(); |
---|
| 86 | 00079 <span class="comment">// These methods are not for users.</span> |
---|
| 87 | 00080 <span class="keyword">private</span>: |
---|
| 88 | <a name="l00081"></a><a class="code" href="classG4UIGAG.html#r0">00081</a> G4String <a class="code" href="classG4UIGAG.html#r0">prefix</a>; |
---|
| 89 | <a name="l00082"></a><a class="code" href="classG4UIGAG.html#r1">00082</a> G4UImanager * <a class="code" href="classG4UIGAG.html#r1">UI</a>; |
---|
| 90 | <a name="l00083"></a><a class="code" href="classG4UIGAG.html#r2">00083</a> G4String <a class="code" href="classG4UIGAG.html#r2">promptCharacter</a>; |
---|
| 91 | <a name="l00084"></a><a class="code" href="classG4UIGAG.html#r3">00084</a> G4bool <a class="code" href="classG4UIGAG.html#r3">iExit</a>; |
---|
| 92 | <a name="l00085"></a><a class="code" href="classG4UIGAG.html#r4">00085</a> G4bool <a class="code" href="classG4UIGAG.html#r4">iCont</a>; |
---|
| 93 | <a name="l00086"></a><a class="code" href="classG4UIGAG.html#r5">00086</a> <a class="code" href="G4UIGAG_8hh.html#a7">UImode</a> <a class="code" href="classG4UIGAG.html#r5">uiMode</a>; |
---|
| 94 | 00087 |
---|
| 95 | 00088 <span class="keyword">private</span>: |
---|
| 96 | <a name="l00089"></a><a class="code" href="classG4UIGAG.html#r6">00089</a> G4String <a class="code" href="classG4UIGAG.html#r6">JVersion</a>; |
---|
| 97 | <a name="l00090"></a><a class="code" href="classG4UIGAG.html#r7">00090</a> G4String <a class="code" href="classG4UIGAG.html#r7">TVersion</a>; |
---|
| 98 | 00091 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d0">ExecuteCommand</a>(G4String); |
---|
| 99 | 00092 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d1">ChangeDirectory</a>(G4String); |
---|
| 100 | 00093 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d2">ListDirectory</a>(G4String); |
---|
| 101 | 00094 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d3">TerminalHelp</a>(G4String); |
---|
| 102 | 00095 G4String <a class="code" href="classG4UIGAG.html#d4">ModifyPrefix</a>(G4String); |
---|
| 103 | 00096 G4UIcommandTree * <a class="code" href="classG4UIGAG.html#d5">FindDirPath</a>(G4String); |
---|
| 104 | 00097 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d6">ShowCurrent</a>(G4String); |
---|
| 105 | 00098 G4String <a class="code" href="classG4UIGAG.html#d7">GetFullPath</a>(G4String); |
---|
| 106 | 00099 |
---|
| 107 | 00100 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d8">SendCommandProperties</a>(G4UIcommandTree *); |
---|
| 108 | 00101 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d9">SendParameterProperties</a>(G4UIcommandTree *); |
---|
| 109 | 00102 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d10">SendAParamProperty</a>(G4UIcommand *); |
---|
| 110 | 00103 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d11">SendATclParamProperty</a>(G4UIcommand *); |
---|
| 111 | 00104 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d12">CodeGenJavaTree</a>(G4UIcommandTree *,<span class="keywordtype">int</span> recursiveLevel); |
---|
| 112 | 00105 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d13">CodeGenJavaParams</a>(G4UIcommandTree *,<span class="keywordtype">int</span> recursiveLevel); |
---|
| 113 | 00106 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d14">CodeGenTclTree</a>(G4UIcommandTree *, <span class="keywordtype">int</span> recursiveLevel); |
---|
| 114 | 00107 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d15">CodeGenTclParams</a>(G4UIcommandTree *, <span class="keywordtype">int</span> recursiveLevel); |
---|
| 115 | 00108 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d16">SendDisableList</a>(G4UIcommandTree *, <span class="keywordtype">int</span> recursiveLevel); |
---|
| 116 | 00109 |
---|
| 117 | 00110 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d17">NotifyStateChange</a>(<span class="keywordtype">void</span>); |
---|
| 118 | 00111 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d18">NotifyCommandUpdate</a>(<span class="keywordtype">void</span>); |
---|
| 119 | 00112 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d19">NotifyParameterUpdate</a>(G4UIcommand *); |
---|
| 120 | 00113 |
---|
| 121 | 00114 <span class="keywordtype">int</span> <a class="code" href="classG4UIGAG.html#d20">CommandUpdated</a>(<span class="keywordtype">void</span>); |
---|
| 122 | 00115 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d21">UpdateState</a>(<span class="keywordtype">void</span>); |
---|
| 123 | 00116 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d22">UpdateParamVal</a>(<span class="keywordtype">void</span>); <span class="comment">// if param is updated,</span> |
---|
| 124 | 00117 <span class="comment">// call NotifyParameterUpdate()</span> |
---|
| 125 | 00118 |
---|
| 126 | 00119 <span class="comment">// --- the following are used by Notify*Update() and *Updated()</span> |
---|
| 127 | 00120 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d23">GetNewTreeStructure</a>( G4UIcommandTree*,<span class="keywordtype">int</span> recursiveLevel); |
---|
| 128 | 00121 <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d24">GetNewTreeValues</a>( G4UIcommandTree*,<span class="keywordtype">int</span> recursiveLevel); |
---|
| 129 | 00122 |
---|
| 130 | <a name="l00123"></a><a class="code" href="classG4UIGAG.html#r8">00123</a> std::vector<G4String> <a class="code" href="classG4UIGAG.html#r8">previousTreeCommands</a>; |
---|
| 131 | <a name="l00124"></a><a class="code" href="classG4UIGAG.html#r9">00124</a> std::vector<G4String> <a class="code" href="classG4UIGAG.html#r9">newTreeCommands</a>; |
---|
| 132 | <a name="l00125"></a><a class="code" href="classG4UIGAG.html#r10">00125</a> std::vector<G4String> <a class="code" href="classG4UIGAG.html#r10">previousTreeParams</a>; |
---|
| 133 | <a name="l00126"></a><a class="code" href="classG4UIGAG.html#r11">00126</a> std::vector<G4String> <a class="code" href="classG4UIGAG.html#r11">newTreeParams</a>; |
---|
| 134 | <a name="l00127"></a><a class="code" href="classG4UIGAG.html#r12">00127</a> std::vector<G4UIcommand*> <a class="code" href="classG4UIGAG.html#r12">previousTreePCP</a>; |
---|
| 135 | <a name="l00128"></a><a class="code" href="classG4UIGAG.html#r13">00128</a> std::vector<G4UIcommand*> <a class="code" href="classG4UIGAG.html#r13">newTreePCP</a>; |
---|
| 136 | 00129 |
---|
| 137 | 00130 }; |
---|
| 138 | 00131 |
---|
| 139 | 00132 <span class="preprocessor">#endif</span> |
---|
| 140 | </pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jun 22 11:07:02 2007 by |
---|
| 141 | <a href="http://www.doxygen.org/index.html"> |
---|
| 142 | <img src="doxygen.png" alt="doxygen" align="middle" border=0 > |
---|
| 143 | </a>1.3.4 </small></address> |
---|
| 144 | </body> |
---|
| 145 | </html> |
---|