source: tspsg-svn/trunk/docs/html/globals_8h.html @ 115

Last change on this file since 115 was 112, checked in by laleppa, 15 years ago

Updated translations and regenerated documentation.

File size: 19.0 KB
Line 
1<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6<title>TSPSG: TSP Solver and Generator: src/globals.h File Reference</title>
7<link href="tabs.css" rel="stylesheet" type="text/css"/>
8<link href="search/search.css" rel="stylesheet" type="text/css"/>
9<script type="text/javaScript" src="search/search.js"></script>
10<link href="doxygen.css" rel="stylesheet" type="text/css"/>
11</head>
12<body onload='searchBox.OnSelectItem(0);'>
13<!-- Generated by Doxygen 1.6.1 -->
14<script type="text/javascript"><!--
15var searchBox = new SearchBox("searchBox", "search",false,'Search');
16--></script>
17<script type="text/javascript">
18<!--
19function changeDisplayState (e){
20  var num=this.id.replace(/[^[0-9]/g,'');
21  var button=this.firstChild;
22  var sectionDiv=document.getElementById('dynsection'+num);
23  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
24    sectionDiv.style.display='block';
25    button.src='open.gif';
26  }else{
27    sectionDiv.style.display='none';
28    button.src='closed.gif';
29  }
30}
31function initDynSections(){
32  var divs=document.getElementsByTagName('div');
33  var sectionCounter=1;
34  for(var i=0;i<divs.length-1;i++){
35    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
36      var header=divs[i];
37      var section=divs[i+1];
38      var button=header.firstChild;
39      if (button!='IMG'){
40        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
41        button=document.createElement('img');
42        divs[i].insertBefore(button,divs[i].firstChild);
43      }
44      header.style.cursor='pointer';
45      header.onclick=changeDisplayState;
46      header.id='dynheader'+sectionCounter;
47      button.src='closed.gif';
48      section.id='dynsection'+sectionCounter;
49      section.style.display='none';
50      section.style.marginLeft='14px';
51      sectionCounter++;
52    }
53  }
54}
55window.onload = initDynSections;
56-->
57</script>
58<div class="navigation" id="top">
59  <div class="tabs">
60    <ul>
61      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
62      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
63      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
64      <li><a href="annotated.html"><span>Classes</span></a></li>
65      <li class="current"><a href="files.html"><span>Files</span></a></li>
66      <li>
67        <div id="MSearchBox" class="MSearchBoxInactive">
68        <img id="MSearchSelect" src="search/search.png"
69             onmouseover="return searchBox.OnSearchSelectShow()"
70             onmouseout="return searchBox.OnSearchSelectHide()"
71             alt=""/>
72        <input type="text" id="MSearchField" value="Search" accesskey="S"
73             onfocus="searchBox.OnSearchFieldFocus(true)" 
74             onblur="searchBox.OnSearchFieldFocus(false)" 
75             onkeyup="searchBox.OnSearchFieldChange(event)"/>
76        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
77        </div>
78      </li>
79    </ul>
80  </div>
81  <div class="tabs">
82    <ul>
83      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
84      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
85    </ul>
86  </div>
87</div>
88<div class="contents">
89<h1>src/globals.h File Reference</h1>
90<p>Contains TSPSG global defines. 
91<a href="#_details">More...</a></p>
92<code>#include &lt;QtCore&gt;</code><br/>
93<code>#include &lt;QtGui&gt;</code><br/>
94<code>#include &quot;<a class="el" href="version_8h_source.html">version.h</a>&quot;</code><br/>
95<code>#include &quot;<a class="el" href="os_8h_source.html">os.h</a>&quot;</code><br/>
96<code>#include &quot;<a class="el" href="defaults_8h_source.html">defaults.h</a>&quot;</code><br/>
97<code>#include &quot;<a class="el" href="tspsolver_8h_source.html">tspsolver.h</a>&quot;</code><br/>
98<code>#include &quot;<a class="el" href="qtwin_8h_source.html">qtwin.h</a>&quot;</code><br/>
99<div class="dynheader">
100Include dependency graph for globals.h:</div>
101<div class="dynsection">
102<div class="center"><img src="globals_8h__incl.png" border="0" usemap="#src_2globals_8h_map" alt=""/></div>
103<map name="src_2globals_8h_map" id="src_2globals_8h">
104<area shape="rect" id="node7" href="version_8h.html" title="Contains TSPSG version information defines." alt="" coords="105,83,177,111"/>
105<area shape="rect" id="node9" href="os_8h.html" title="Contains TSPSG target CPU architecture and OS detection." alt="" coords="201,83,246,111"/>
106<area shape="rect" id="node11" href="defaults_8h.html" title="Contains TSPSG defaults." alt="" coords="270,83,348,111"/>
107<area shape="rect" id="node13" href="tspsolver_8h.html" title="Defines TSPSolver namespace and everything needed for solving TSP tasks." alt="" coords="372,83,454,111"/>
108<area shape="rect" id="node18" href="qtwin_8h.html" title="qtwin.h" alt="" coords="478,83,540,111"/>
109</map>
110</div>
111<div class="dynheader">
112This graph shows which files directly or indirectly include this file:</div>
113<div class="dynsection">
114<div class="center"><img src="globals_8h__dep__incl.png" border="0" usemap="#src_2globals_8hdep_map" alt=""/></div>
115<map name="src_2globals_8hdep_map" id="src_2globals_8hdep">
116<area shape="rect" id="node3" href="mainwindow_8h.html" title="Defines MainWindow class." alt="" coords="26,161,149,189"/>
117<area shape="rect" id="node5" href="settingsdialog_8h.html" title="Defines SettingsDialog class." alt="" coords="21,83,154,111"/>
118<area shape="rect" id="node8" href="tspmodel_8h.html" title="Defines CTSPModel class." alt="" coords="178,83,285,111"/>
119</map>
120</div>
121
122<p><a href="globals_8h_source.html">Go to the source code of this file.</a></p>
123<table border="0" cellpadding="0" cellspacing="0">
124<tr><td colspan="2"><h2>Defines</h2></td></tr>
125<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70edda218af688662bb006cf0552544e"></a><!-- doxytag: member="globals.h::MAX_NUM_CITIES" ref="a70edda218af688662bb006cf0552544e" args="" -->
126#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a70edda218af688662bb006cf0552544e">MAX_NUM_CITIES</a>&nbsp;&nbsp;&nbsp;50</td></tr>
127<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Maximum available number of cities. <br/></td></tr>
128<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1703614f274735e91c1539048ef1093f"></a><!-- doxytag: member="globals.h::MAX_RAND_VALUE" ref="a1703614f274735e91c1539048ef1093f" args="" -->
129#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a1703614f274735e91c1539048ef1093f">MAX_RAND_VALUE</a>&nbsp;&nbsp;&nbsp;1000</td></tr>
130<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Maximum allowed value for random generation limits. <br/></td></tr>
131<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27fa861afe50713394493c32c26741b9"></a><!-- doxytag: member="globals.h::PATH_L10N" ref="a27fa861afe50713394493c32c26741b9" args="" -->
132#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a27fa861afe50713394493c32c26741b9">PATH_L10N</a>&nbsp;&nbsp;&nbsp;&quot;l10n&quot;</td></tr>
133<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="elRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/phonon-path.html">Path</a> to internationalization files. <br/></td></tr>
134<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a93de9563d724c12880c908961ca78dae"></a><!-- doxytag: member="globals.h::PATH_DOCS" ref="a93de9563d724c12880c908961ca78dae" args="" -->
135#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a93de9563d724c12880c908961ca78dae">PATH_DOCS</a>&nbsp;&nbsp;&nbsp;&quot;help&quot;</td></tr>
136<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Bath to documentation files. <br/></td></tr>
137<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd9c3c65456a20b4b281165a29583e78"></a><!-- doxytag: member="globals.h::TSPT" ref="abd9c3c65456a20b4b281165a29583e78" args="" -->
138#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#abd9c3c65456a20b4b281165a29583e78">TSPT</a>&nbsp;&nbsp;&nbsp;quint32(0x54535054)</td></tr>
139<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">TSPSG Task file signature - letters <code>TSPT</code>. <br/></td></tr>
140<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afc611d658b90f441ae837a2478b5bdb1"></a><!-- doxytag: member="globals.h::TSPT_VERSION" ref="afc611d658b90f441ae837a2478b5bdb1" args="" -->
141#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#afc611d658b90f441ae837a2478b5bdb1">TSPT_VERSION</a>&nbsp;&nbsp;&nbsp;quint8(1)</td></tr>
142<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">TSPSG Task file version. <br/></td></tr>
143<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c516e985c6e8edf1b54bcd7c15ad89c"></a><!-- doxytag: member="globals.h::TSPT_META_VERSION" ref="a4c516e985c6e8edf1b54bcd7c15ad89c" args="" -->
144#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a4c516e985c6e8edf1b54bcd7c15ad89c">TSPT_META_VERSION</a>&nbsp;&nbsp;&nbsp;quint8(1)</td></tr>
145<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">TSPSG Task file metadata version. <br/></td></tr>
146<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a98ea46119cfda59f7b9c6f50ef72636e"></a><!-- doxytag: member="globals.h::TSPT_META_SIZE" ref="a98ea46119cfda59f7b9c6f50ef72636e" args="" -->
147#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a98ea46119cfda59f7b9c6f50ef72636e">TSPT_META_SIZE</a>&nbsp;&nbsp;&nbsp;2</td></tr>
148<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">TSPSG Task file metadata size in bytes (incl. version). <br/></td></tr>
149<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a437bcbf6414d33f7a885a4507c1b9940"></a><!-- doxytag: member="globals.h::ZKT" ref="a437bcbf6414d33f7a885a4507c1b9940" args="" -->
150#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a437bcbf6414d33f7a885a4507c1b9940">ZKT</a>&nbsp;&nbsp;&nbsp;quint16(0x5A4B)</td></tr>
151<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ZKomModRd Task file signature - letters <code>ZK</code>. <br/></td></tr>
152<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6d630d0a03e4e53fceb0567653ca629"></a><!-- doxytag: member="globals.h::ZKT_VERSION" ref="ab6d630d0a03e4e53fceb0567653ca629" args="" -->
153#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#ab6d630d0a03e4e53fceb0567653ca629">ZKT_VERSION</a>&nbsp;&nbsp;&nbsp;quint8(1)</td></tr>
154<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ZKomModRd Task file version. <br/></td></tr>
155<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1ae8033146e07fa0bae37f148b90cd6b"></a><!-- doxytag: member="globals.h::INFSTR" ref="a1ae8033146e07fa0bae37f148b90cd6b" args="" -->
156#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a1ae8033146e07fa0bae37f148b90cd6b">INFSTR</a>&nbsp;&nbsp;&nbsp;&quot;---&quot;</td></tr>
157<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This string represents infinite value in the table. <br/></td></tr>
158<tr><td colspan="2"><h2>Functions</h2></td></tr>
159<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a594842d2fcaf774c3c42b944f3f031d2">isInteger</a> (double x)</td></tr>
160<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Checks whether <em>x</em> contains an integer value.  <a href="#a594842d2fcaf774c3c42b944f3f031d2"></a><br/></td></tr>
161<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="globals_8h.html#a3ffe98116f42de97041cde4a2b0404e6">toggleStyle</a> (<a class="elRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qwidget.html">QWidget</a> *widget, bool enable)</td></tr>
162<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enables or disables a mask for the <em>widget</em><a href="#a3ffe98116f42de97041cde4a2b0404e6"></a><br/></td></tr>
163</table>
164<hr/><a name="_details"></a><h2>Detailed Description</h2>
165<p>Contains TSPSG global defines. </p>
166<dl class="author"><dt><b>Author:</b></dt><dd>Copyright &copy; 2007-2010 Lёppa &lt;contacts[at]oleksii[dot]name&gt;</dd></dl>
167<dl class="rcs"><dt><b>Id</b></dt><dd><a class="el" href="globals_8h.html" title="Contains TSPSG global defines.">globals.h</a> 109 2010-04-27 07:12:55Z laleppa </dd></dl>
168<dl class="rcs"><dt><b>URL</b></dt><dd><a href="https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/globals.h">https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/globals.h</a> </dd></dl>
169<p><b>TSPSG: TSP Solver and Generator</b></p>
170<p>This file is part of TSPSG.</p>
171<p>TSPSG is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
172<p>TSPSG is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
173<p>You should have received a copy of the GNU General Public License along with TSPSG. If not, see &lt;<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;. </p>
174<hr/><h2>Function Documentation</h2>
175<a class="anchor" id="a594842d2fcaf774c3c42b944f3f031d2"></a><!-- doxytag: member="globals.h::isInteger" ref="a594842d2fcaf774c3c42b944f3f031d2" args="(double x)" -->
176<div class="memitem">
177<div class="memproto">
178      <table class="memname">
179        <tr>
180          <td class="memname">bool isInteger </td>
181          <td>(</td>
182          <td class="paramtype">double&nbsp;</td>
183          <td class="paramname"> <em>x</em></td>
184          <td>&nbsp;)&nbsp;</td>
185          <td><code> [inline]</code></td>
186        </tr>
187      </table>
188</div>
189<div class="memdoc">
190
191<p>Checks whether <em>x</em> contains an integer value. </p>
192<dl><dt><b>Parameters:</b></dt><dd>
193  <table border="0" cellspacing="2" cellpadding="0">
194    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>A value to check. </td></tr>
195  </table>
196  </dd>
197</dl>
198<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if <em>x</em> countains an integer, oherwise <code>false</code>. </dd></dl>
199
200</div>
201</div>
202<a class="anchor" id="a3ffe98116f42de97041cde4a2b0404e6"></a><!-- doxytag: member="globals.h::toggleStyle" ref="a3ffe98116f42de97041cde4a2b0404e6" args="(QWidget *widget, bool enable)" -->
203<div class="memitem">
204<div class="memproto">
205      <table class="memname">
206        <tr>
207          <td class="memname">void toggleStyle </td>
208          <td>(</td>
209          <td class="paramtype"><a class="elRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qwidget.html">QWidget</a> *&nbsp;</td>
210          <td class="paramname"> <em>widget</em>, </td>
211        </tr>
212        <tr>
213          <td class="paramkey"></td>
214          <td></td>
215          <td class="paramtype">bool&nbsp;</td>
216          <td class="paramname"> <em>enable</em></td><td>&nbsp;</td>
217        </tr>
218        <tr>
219          <td></td>
220          <td>)</td>
221          <td></td><td></td><td></td>
222        </tr>
223      </table>
224</div>
225<div class="memdoc">
226
227<p>Enables or disables a mask for the <em>widget</em>. </p>
228<dl><dt><b>Parameters:</b></dt><dd>
229  <table border="0" cellspacing="2" cellpadding="0">
230    <tr><td valign="top"></td><td valign="top"><em>widget</em>&nbsp;</td><td>A widget to toggle mask on. </td></tr>
231    <tr><td valign="top"></td><td valign="top"><em>enable</em>&nbsp;</td><td>Set to <code>true</code> to enable mask or <code>false</code> to disable it.</td></tr>
232  </table>
233  </dd>
234</dl>
235<p>This function is used to enable an outlined font effect for <code><a class="elRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qlabel.html">QLabel</a></code> with a static text. </p>
236
237<p><div class="dynheader">
238Here is the call graph for this function:</div>
239<div class="dynsection">
240<div class="center"><img src="globals_8h_a3ffe98116f42de97041cde4a2b0404e6_cgraph.png" border="0" usemap="#globals_8h_a3ffe98116f42de97041cde4a2b0404e6_cgraph_map" alt=""></div>
241<map name="globals_8h_a3ffe98116f42de97041cde4a2b0404e6_cgraph_map" id="globals_8h_a3ffe98116f42de97041cde4a2b0404e6_cgraph">
242<area shape="rect" id="node3" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qwidget.html#window" title="QWidget::window" alt="" coords="141,5,264,33"/>
243</map>
244</div>
245</p>
246
247</div>
248</div>
249</div>
250<!--- window showing the filter options -->
251<div id="MSearchSelectWindow"
252     onmouseover="return searchBox.OnSearchSelectShow()"
253     onmouseout="return searchBox.OnSearchSelectHide()"
254     onkeydown="return searchBox.OnSearchSelectKey(event)">
255<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>
256
257<!-- iframe showing the search results (closed by default) -->
258<div id="MSearchResultsWindow">
259<iframe src="" frameborder="0" 
260        name="MSearchResults" id="MSearchResults">
261</iframe>
262</div>
263
264<hr size="1"/><address style="text-align: right;"><small>Generated on Wed Apr 28 02:47:12 2010 for TSPSG: TSP Solver and Generator by&nbsp;
265<a href="http://www.doxygen.org/index.html">
266<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
267</body>
268</html>
Note: See TracBrowser for help on using the repository browser.