Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 4077

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_28fb57ed95c79fe5ed14c4f71fb4c2a2.html">qt</a>&nbsp;&raquo;&nbsp;<a class="el" href="dir_e4910f3a721d05cbd4c99e5fa1949672.html">app</a>
  </div>
</div>
<div class="contents">
<h1>main.cxx</h1><a href="main_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="comment">// for VERSION</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;config.h&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#else</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include &quot;msdevstudio/MSconfig.h&quot;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#endif</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00019"></a>00019 <span class="comment">// for dll interface warning</span>
<a name="l00020"></a>00020 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#include &quot;msdevstudio/MSconfig.h&quot;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#endif</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="QtApp_8h.html" title="hippodraw::QtApp class interface">qt/QtApp.h</a>&quot;</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">using</span> std::cout;
<a name="l00029"></a>00029 <span class="keyword">using</span> std::endl;
<a name="l00030"></a>00030 
<a name="l00035"></a>00035 <span class="keyword">using</span> <a class="code" href="classhippodraw_1_1QtApp.html" title="A derived class of QApplication that instantiates the components of HippoDraw.">hippodraw::QtApp</a>;
<a name="l00036"></a>00036 
<a name="l00037"></a><a class="code" href="main_8cxx.html#a3c04138a5bfe5d72780bb7e82a18e627">00037</a> <span class="keywordtype">int</span> <a class="code" href="main_8cxx.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a> ( <span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv)
<a name="l00038"></a>00038 {
<a name="l00039"></a>00039    <span class="keywordflow">if</span> ( argc &gt; 1 ) {
<a name="l00040"></a>00040     std::string arg1 ( argv[1] );
<a name="l00041"></a>00041     <span class="keywordflow">if</span> ( arg1 == <span class="stringliteral">&quot;--version&quot;</span> ) {
<a name="l00042"></a>00042       std::cout &lt;&lt; <span class="stringliteral">&quot;HippoDraw version &quot;</span> &lt;&lt; <a class="code" href="config_8h.html#a1c6d5de492ac61ad29aec7aa9a436bbf">VERSION</a>
<a name="l00043"></a>00043            &lt;&lt; std::endl;
<a name="l00044"></a>00044       <span class="keywordflow">return</span> 0;
<a name="l00045"></a>00045     }
<a name="l00046"></a>00046   }
<a name="l00047"></a>00047 
<a name="l00048"></a>00048   <a class="code" href="classhippodraw_1_1QtApp.html" title="A derived class of QApplication that instantiates the components of HippoDraw.">QtApp</a> app ( argc, argv );
<a name="l00049"></a>00049   app.<a class="code" href="classhippodraw_1_1QtApp.html#a509d79a419569049ae234b1f98aa595c" title="Sets up the first application main window.">setFirstWindow</a>();
<a name="l00050"></a>00050    <span class="keywordflow">return</span> app.<a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qapplication.html#exec">exec</a>();
<a name="l00051"></a>00051 }
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>