Sophie

Sophie

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

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>
  </div>
</div>
<div class="contents">
<h1>WindowController.h</h1><a href="WindowController_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: c++ -*- */</span>
<a name="l00002"></a>00002 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef WindowController_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define WindowController_H</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="libqthippo_8h.html">qt/libqthippo.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#include &lt;msdevstudio/MSconfig.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#endif</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;qglobal.h&gt;</span> <span class="comment">// for version</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">class </span><a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qassistantclient.html">QAssistantClient</a>;
<a name="l00029"></a>00029 <span class="keyword">class </span><a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qrect.html">QRect</a>;
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">namespace </span>hippodraw {
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="keyword">class </span>CanvasWindow;
<a name="l00034"></a>00034 <span class="keyword">class </span>Inspector;
<a name="l00035"></a>00035 
<a name="l00054"></a><a class="code" href="classhippodraw_1_1WindowController.html">00054</a> <span class="keyword">class </span><a class="code" href="libqthippo_8h.html#a5c61928b4caef50cebd70354f5e860d9">MDL_QTHIPPOPLOT_API</a> <a class="code" href="classhippodraw_1_1WindowController.html" title="A singleton class for keeping track the window components of HippoDraw.">WindowController</a>
<a name="l00055"></a>00055 {
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="keyword">private</span>:
<a name="l00058"></a>00058 
<a name="l00060"></a><a class="code" href="classhippodraw_1_1WindowController.html#a5487844b53a9d239cacf01301ea46ea7">00060</a>   <span class="keyword">static</span> <a class="code" href="classhippodraw_1_1WindowController.html" title="A singleton class for keeping track the window components of HippoDraw.">WindowController</a> * s_instance;
<a name="l00061"></a>00061 
<a name="l00063"></a><a class="code" href="classhippodraw_1_1WindowController.html#a2368d28ae38e1463e4ff60be9ce88504">00063</a>   std::list &lt; CanvasWindow * &gt; m_window_list;
<a name="l00064"></a>00064 
<a name="l00066"></a><a class="code" href="classhippodraw_1_1WindowController.html#aea72b92caeb54acdd68981476cd7abb2">00066</a>   <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * m_active_window;
<a name="l00067"></a>00067 
<a name="l00069"></a><a class="code" href="classhippodraw_1_1WindowController.html#a75772569a9fdaefb52414ce847f72204">00069</a>   <a class="code" href="classhippodraw_1_1Inspector.html" title="A derived class of InspectorBase class which is generated by the Qt designer.">Inspector</a> * m_inspector;
<a name="l00070"></a>00070 
<a name="l00073"></a><a class="code" href="classhippodraw_1_1WindowController.html#a5107958dd05375a8c547b15f4658cdf8">00073</a>   <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qassistantclient.html">QAssistantClient</a> * m_assistant;
<a name="l00074"></a>00074 
<a name="l00080"></a><a class="code" href="classhippodraw_1_1WindowController.html#a58f86ca77af28a0f586ad9cd56d471ce">00080</a>   <span class="keyword">static</span> std::string s_version;
<a name="l00081"></a>00081 
<a name="l00085"></a><a class="code" href="classhippodraw_1_1WindowController.html#a37b686f168c6fa15334cc023f37e5b83">00085</a>   <span class="keywordtype">bool</span> m_quit;
<a name="l00086"></a>00086 
<a name="l00088"></a>00088 <span class="preprocessor">#if QT_VERSION &lt; 0x040000</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>  <span class="keyword">const</span> <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qrect.html">QRect</a> &amp; getScreenRect ();
<a name="l00090"></a>00090 <span class="preprocessor">#else</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span>  <a class="codeRef" doxygen="qt.tag:http://doc.trolltech.com/3.3/" href="http://doc.trolltech.com/3.3/qrect.html">QRect</a> getScreenRect ();
<a name="l00092"></a>00092 <span class="preprocessor">#endif</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span>
<a name="l00096"></a>00096   <span class="keywordtype">void</span> positionCanvas ( <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * window );
<a name="l00097"></a>00097 
<a name="l00101"></a>00101   <span class="keywordtype">void</span> resizeCanvas ( <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * window );
<a name="l00102"></a>00102 
<a name="l00106"></a>00106   <span class="keywordtype">void</span> positionInspector ();
<a name="l00107"></a>00107 
<a name="l00110"></a>00110   <span class="keywordtype">void</span> moveInspector ( <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * window );
<a name="l00111"></a>00111 
<a name="l00112"></a>00112 <span class="keyword">public</span>:
<a name="l00113"></a>00113 
<a name="l00116"></a>00116   <a class="code" href="classhippodraw_1_1WindowController.html" title="A singleton class for keeping track the window components of HippoDraw.">WindowController</a> ( );
<a name="l00117"></a>00117 
<a name="l00119"></a>00119   ~<a class="code" href="classhippodraw_1_1WindowController.html" title="A singleton class for keeping track the window components of HippoDraw.">WindowController</a>();
<a name="l00120"></a>00120 
<a name="l00122"></a>00122   <span class="keyword">static</span> <a class="code" href="classhippodraw_1_1WindowController.html" title="A singleton class for keeping track the window components of HippoDraw.">WindowController</a> * instance ();
<a name="l00123"></a>00123 
<a name="l00125"></a>00125   <span class="keyword">static</span> <span class="keyword">const</span> std::string &amp; <a class="code" href="namespacehippodraw.html#a1eae27d6440004fbe5f5ee0544252ac0">version</a> ();
<a name="l00126"></a>00126 
<a name="l00128"></a>00128   <span class="keywordtype">void</span> createInspector ( );
<a name="l00129"></a>00129 
<a name="l00131"></a>00131   <span class="keywordtype">void</span> newWindow ( <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * );
<a name="l00132"></a>00132 
<a name="l00136"></a>00136   <span class="keywordtype">void</span> aboutToClose ( <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * window );
<a name="l00137"></a>00137 
<a name="l00141"></a>00141   <span class="keywordtype">void</span> quitOnLastWindowClose ( <span class="keywordtype">bool</span> yes = <span class="keyword">true</span> );
<a name="l00142"></a>00142 
<a name="l00147"></a>00147   <span class="keywordtype">void</span> hasBeenHidden ();
<a name="l00148"></a>00148 
<a name="l00151"></a>00151   <span class="keywordtype">void</span> unHide ( <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * window );
<a name="l00152"></a>00152 
<a name="l00157"></a>00157   <span class="keywordtype">bool</span> okToQuit ();
<a name="l00158"></a>00158 
<a name="l00160"></a>00160   <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * currentCanvas ();
<a name="l00161"></a>00161 
<a name="l00166"></a>00166   <span class="keywordtype">void</span> setCurrentCanvas ( <a class="code" href="classhippodraw_1_1CanvasWindow.html" title="A concrete window class that contains the canvas and responds to menu item and tool...">CanvasWindow</a> * canvas );
<a name="l00167"></a>00167 
<a name="l00169"></a>00169   <a class="code" href="classhippodraw_1_1Inspector.html" title="A derived class of InspectorBase class which is generated by the Qt designer.">Inspector</a> * getInspector();
<a name="l00170"></a>00170 
<a name="l00176"></a>00176   <span class="keywordtype">void</span> updateActions ();
<a name="l00177"></a>00177 
<a name="l00181"></a>00181   <span class="keywordtype">void</span> closeAllWindows ( <span class="keywordtype">bool</span> alsoDelete );
<a name="l00182"></a>00182 
<a name="l00185"></a>00185   <span class="keywordtype">void</span> setFirstWindow ();
<a name="l00186"></a>00186 
<a name="l00189"></a>00189   <span class="keywordtype">void</span> openAssistant ();
<a name="l00190"></a>00190 
<a name="l00191"></a>00191 };
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 } <span class="comment">// namespace hippodraw</span>
<a name="l00194"></a>00194 
<a name="l00195"></a>00195 <span class="preprocessor">#endif // WindowController_H</span>
</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>