source: trunk/geant4/interfaces/html/G4UIGAG_8hh-source.html @ 574

Last change on this file since 574 was 571, checked in by garnier, 17 years ago

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

  • Property svn:mime-type set to text/html
File size: 14.0 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>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&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
8<h1>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>
900002 <span class="comment">// ********************************************************************</span>
1000003 <span class="comment">// * License and Disclaimer                                           *</span>
1100004 <span class="comment">// *                                                                  *</span>
1200005 <span class="comment">// * The  Geant4 software  is  copyright of the Copyright Holders  of *</span>
1300006 <span class="comment">// * the Geant4 Collaboration.  It is provided  under  the terms  and *</span>
1400007 <span class="comment">// * conditions of the Geant4 Software License,  included in the file *</span>
1500008 <span class="comment">// * LICENSE and available at  http://cern.ch/geant4/license .  These *</span>
1600009 <span class="comment">// * include a list of copyright holders.                             *</span>
1700010 <span class="comment">// *                                                                  *</span>
1800011 <span class="comment">// * Neither the authors of this software system, nor their employing *</span>
1900012 <span class="comment">// * institutes,nor the agencies providing financial support for this *</span>
2000013 <span class="comment">// * work  make  any representation or  warranty, express or implied, *</span>
2100014 <span class="comment">// * regarding  this  software system or assume any liability for its *</span>
2200015 <span class="comment">// * use.  Please see the license in the file  LICENSE  and URL above *</span>
2300016 <span class="comment">// * for the full disclaimer and the limitation of liability.         *</span>
2400017 <span class="comment">// *                                                                  *</span>
2500018 <span class="comment">// * This  code  implementation is the result of  the  scientific and *</span>
2600019 <span class="comment">// * technical work of the GEANT4 collaboration.                      *</span>
2700020 <span class="comment">// * By using,  copying,  modifying or  distributing the software (or *</span>
2800021 <span class="comment">// * any work based  on the software)  you  agree  to acknowledge its *</span>
2900022 <span class="comment">// * use  in  resulting  scientific  publications,  and indicate your *</span>
3000023 <span class="comment">// * acceptance of all terms of the Geant4 Software license.          *</span>
3100024 <span class="comment">// ********************************************************************</span>
3200025 <span class="comment">//</span>
3300026 <span class="comment">//</span>
3400027 <span class="comment">// $Id: G4UIGAG.hh,v 1.7 2006/06/29 19:09:18 gunter Exp $</span>
3500028 <span class="comment">// GEANT4 tag $Name: geant4-08-01-patch-01 $</span>
3600029 <span class="comment">//</span>
3700030 <span class="comment">// G4UIGAG.hh</span>
3800031 <span class="comment">// GAG(Geant4 adaptive GUI) interface class</span>
3900032 <span class="comment">// 18.Feb.98 Y.Nagamatu and T.Kodama created G4UIGAG from G4UIterminal</span>
4000033
4100034 <span class="comment">// If you want to use GAG (Tcl and JAVA version),</span>
4200035 <span class="comment">// read a document file README_Momo.html.</span>
4300036
4400037 <span class="preprocessor">#ifndef G4UIGAG_h</span>
4500038 <span class="preprocessor"></span><span class="preprocessor">#define G4UIGAG_h 1</span>
4600039 <span class="preprocessor"></span>
4700040 <span class="preprocessor">#include "G4UIsession.hh"</span>
4800041 <span class="preprocessor">#include "G4UImanager.hh"</span>
4900042 <span class="preprocessor">#include &lt;fstream&gt;</span>
5000043 <span class="preprocessor">#include &lt;vector&gt;</span>
5100044
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> };
5400047
5500048 <span class="comment">// class description:</span>
5600049 <span class="comment">//</span>
5700050 <span class="comment">// This class inherits the class G4UIsession.</span>
5800051 <span class="comment">// This is the class which is the front-end to GAG (Geant4 Adaptive GUI).</span>
5900052 <span class="comment">// Its usage is quite similar to G4UIterminal.</span>
6000053
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
6200055 {
6300056       <span class="keyword">public</span>: <span class="comment">// with description</span>
6400057       <a class="code" href="classG4UIGAG.html#a0">G4UIGAG</a>();
6500058       <a class="code" href="classG4UIGAG.html#a1">~G4UIGAG</a>();
6600059
6700060       G4UIsession * <a class="code" href="classG4UIGAG.html#a2">SessionStart</a>();
6800061
6900062       <span class="comment">// A GAG session  "gagSession" is instantiated.</span>
7000063       <span class="comment">// G4cout stream is redirected by default to the constructed instance.</span>
7100064       <span class="comment">// Usage:  G4UIsession * gagSession = new G4UIGAG;</span>
7200065       <span class="comment">// "gagSession" is started.</span>
7300066       <span class="comment">// Usage: gagSession-&gt;SessionStart();</span>
7400067       <span class="comment">// "gagSession"  is deleted.</span>
7500068       <span class="comment">// Usage: delete gagSession;</span>
7600069       <span class="comment">//</span>
7700070       <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#a3">PauseSessionStart</a>(G4String);
7800071       G4int <a class="code" href="classG4UIGAG.html#a4">ReceiveG4cout</a>(G4String);
7900072       G4int <a class="code" href="classG4UIGAG.html#a5">ReceiveG4cerr</a>(G4String);         
8000073       <span class="comment">// These methods are implementation of the virtual methods of</span>
8100074       <span class="comment">// G4UIsession class. </span>
8200075       <span class="comment">//</span>
8300076       <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#a6">SessionTerminate</a>();
8400077       <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#a7">Prompt</a>(G4String);
8500078       G4String <a class="code" href="classG4UIGAG.html#a8">GetCommand</a>();
8600079       <span class="comment">// These methods are not for users.</span>
8700080   <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>;
9400087
9500088   <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>;
9800091       <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d0">ExecuteCommand</a>(G4String);
9900092       <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d1">ChangeDirectory</a>(G4String);
10000093       <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d2">ListDirectory</a>(G4String);
10100094       <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d3">TerminalHelp</a>(G4String);
10200095       G4String <a class="code" href="classG4UIGAG.html#d4">ModifyPrefix</a>(G4String);
10300096       G4UIcommandTree * <a class="code" href="classG4UIGAG.html#d5">FindDirPath</a>(G4String);
10400097       <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d6">ShowCurrent</a>(G4String);
10500098       G4String <a class="code" href="classG4UIGAG.html#d7">GetFullPath</a>(G4String);
10600099
10700100     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d8">SendCommandProperties</a>(G4UIcommandTree *);
10800101     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d9">SendParameterProperties</a>(G4UIcommandTree *);
10900102     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d10">SendAParamProperty</a>(G4UIcommand *);
11000103     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d11">SendATclParamProperty</a>(G4UIcommand *);
11100104     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d12">CodeGenJavaTree</a>(G4UIcommandTree *,<span class="keywordtype">int</span> recursiveLevel);
11200105     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d13">CodeGenJavaParams</a>(G4UIcommandTree *,<span class="keywordtype">int</span> recursiveLevel);
11300106     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d14">CodeGenTclTree</a>(G4UIcommandTree *, <span class="keywordtype">int</span> recursiveLevel);
11400107     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d15">CodeGenTclParams</a>(G4UIcommandTree *, <span class="keywordtype">int</span> recursiveLevel);
11500108     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d16">SendDisableList</a>(G4UIcommandTree *, <span class="keywordtype">int</span> recursiveLevel);
11600109
11700110     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d17">NotifyStateChange</a>(<span class="keywordtype">void</span>);
11800111     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d18">NotifyCommandUpdate</a>(<span class="keywordtype">void</span>);
11900112     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d19">NotifyParameterUpdate</a>(G4UIcommand *);
12000113
12100114     <span class="keywordtype">int</span> <a class="code" href="classG4UIGAG.html#d20">CommandUpdated</a>(<span class="keywordtype">void</span>);
12200115     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d21">UpdateState</a>(<span class="keywordtype">void</span>);
12300116     <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>
12400117                                <span class="comment">// call NotifyParameterUpdate()</span>
12500118
12600119     <span class="comment">// --- the following are used by Notify*Update() and *Updated()</span>
12700120     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d23">GetNewTreeStructure</a>( G4UIcommandTree*,<span class="keywordtype">int</span> recursiveLevel);
12800121     <span class="keywordtype">void</span> <a class="code" href="classG4UIGAG.html#d24">GetNewTreeValues</a>( G4UIcommandTree*,<span class="keywordtype">int</span> recursiveLevel);
12900122     
130<a name="l00123"></a><a class="code" href="classG4UIGAG.html#r8">00123</a>     std::vector&lt;G4String&gt; <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&lt;G4String&gt; <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&lt;G4String&gt; <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&lt;G4String&gt; <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&lt;G4UIcommand*&gt; <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&lt;G4UIcommand*&gt; <a class="code" href="classG4UIGAG.html#r13">newTreePCP</a>;
13600129
13700130 };
13800131
13900132 <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>
Note: See TracBrowser for help on using the repository browser.