Index: docs/html/tspmodel_8h_source.html
===================================================================
--- docs/html/tspmodel_8h_source.html	(revision 8af59c4aa389691fe923a5215d4be599c4087ff5)
+++ docs/html/tspmodel_8h_source.html	(revision 8af59c4aa389691fe923a5215d4be599c4087ff5)
@@ -0,0 +1,144 @@
+<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<title>TSPSG: TSP Solver and Generator: src/tspmodel.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javaScript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head>
+<body onload='searchBox.OnSelectItem(0);'>
+<!-- Generated by Doxygen 1.6.1 -->
+<script type="text/javascript"><!--
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+--></script>
+<script type="text/javascript">
+<!--
+function changeDisplayState (e){
+  var num=this.id.replace(/[^[0-9]/g,'');
+  var button=this.firstChild;
+  var sectionDiv=document.getElementById('dynsection'+num);
+  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
+    sectionDiv.style.display='block';
+    button.src='open.gif';
+  }else{
+    sectionDiv.style.display='none';
+    button.src='closed.gif';
+  }
+}
+function initDynSections(){
+  var divs=document.getElementsByTagName('div');
+  var sectionCounter=1;
+  for(var i=0;i<divs.length-1;i++){
+    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
+      var header=divs[i];
+      var section=divs[i+1];
+      var button=header.firstChild;
+      if (button!='IMG'){
+        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
+        button=document.createElement('img');
+        divs[i].insertBefore(button,divs[i].firstChild);
+      }
+      header.style.cursor='pointer';
+      header.onclick=changeDisplayState;
+      header.id='dynheader'+sectionCounter;
+      button.src='closed.gif';
+      section.id='dynsection'+sectionCounter;
+      section.style.display='none';
+      section.style.marginLeft='14px';
+      sectionCounter++;
+    }
+  }
+}
+window.onload = initDynSections;
+-->
+</script>
+<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="annotated.html"><span>Classes</span></a></li>
+      <li class="current"><a href="files.html"><span>Files</span></a></li>
+      <li>
+        <div id="MSearchBox" class="MSearchBoxInactive">
+        <img id="MSearchSelect" src="search/search.png"
+             onmouseover="return searchBox.OnSearchSelectShow()"
+             onmouseout="return searchBox.OnSearchSelectHide()"
+             alt=""/>
+        <input type="text" id="MSearchField" value="Search" accesskey="S"
+             onfocus="searchBox.OnSearchFieldFocus(true)" 
+             onblur="searchBox.OnSearchFieldFocus(false)" 
+             onkeyup="searchBox.OnSearchFieldChange(event)"/>
+        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+        </div>
+      </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>
+<h1>src/tspmodel.h</h1><a href="tspmodel_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
+<a name="l00028"></a>00028 <span class="preprocessor">#ifndef TSPMODEL_H</span>
+<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define TSPMODEL_H</span>
+<a name="l00030"></a>00030 <span class="preprocessor"></span>
+<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="globals_8h.html" title="Contains TSPSG global defines.">globals.h</a>&quot;</span>
+<a name="l00032"></a>00032 
+<a name="l00037"></a><a class="code" href="class_c_t_s_p_model.html">00037</a> <span class="keyword">class </span><a class="code" href="class_c_t_s_p_model.html" title="This class implements table model for manipulating a task.">CTSPModel</a>: <span class="keyword">public</span> QAbstractTableModel
+<a name="l00038"></a>00038 {
+<a name="l00039"></a>00039     Q_OBJECT
+<a name="l00040"></a>00040 
+<a name="l00041"></a>00041 <span class="keyword">public</span>:
+<a name="l00042"></a>00042     <a class="code" href="class_c_t_s_p_model.html#a50a24986bc34b37c6c3b7bb52371b837" title="Class constructor.">CTSPModel</a>(QObject *parent = 0);
+<a name="l00043"></a>00043     <span class="keywordtype">void</span> <a class="code" href="class_c_t_s_p_model.html#a4944812fdf6d348735db401f966b4f4a" title="Resets the table, setting all its elements to 0.">clear</a>();
+<a name="l00044"></a>00044     <span class="keywordtype">int</span> <a class="code" href="class_c_t_s_p_model.html#a94b2639d6b65af914ce17b816ddc3572" title="Returns the column count in the table.">columnCount</a>(<span class="keyword">const</span> QModelIndex &amp;) <span class="keyword">const</span>;
+<a name="l00045"></a>00045     QVariant <a class="code" href="class_c_t_s_p_model.html#ab8ccba12783303f239f92fe72b48793e" title="Returns the data stored under the given role for the item referred to by the index...">data</a>(<span class="keyword">const</span> QModelIndex &amp;, <span class="keywordtype">int</span>) <span class="keyword">const</span>;
+<a name="l00046"></a>00046     Qt::ItemFlags <a class="code" href="class_c_t_s_p_model.html#a057b15ee4fc0f8c7b5648188b8173db6" title="Returns the item flags for the given index.">flags</a>(<span class="keyword">const</span> QModelIndex &amp;) <span class="keyword">const</span>;
+<a name="l00047"></a>00047     QVariant <a class="code" href="class_c_t_s_p_model.html#a425d9678b2c2c63cf00fabb5643a2615" title="Returns the data for the given role and section in the header with the specified...">headerData</a>(<span class="keywordtype">int</span>, Qt::Orientation, <span class="keywordtype">int</span>) <span class="keyword">const</span>;
+<a name="l00048"></a>00048     <span class="keywordtype">bool</span> <a class="code" href="class_c_t_s_p_model.html#ab2827e0bdb3246ade67df5a09805524a" title="Loads a task from fname.">loadTask</a>(QString);
+<a name="l00049"></a>00049     quint16 <a class="code" href="class_c_t_s_p_model.html#a4fcde91257e57ba0e9754418cb83148e" title="Returns the number of cities.">numCities</a>() <span class="keyword">const</span>;
+<a name="l00050"></a>00050     <span class="keywordtype">void</span> <a class="code" href="class_c_t_s_p_model.html#ad18e48dd0b0ad56d8e4ae3b1bc039e4a" title="Randomizes the table by setting all its values to random ones.">randomize</a>();
+<a name="l00051"></a>00051     <span class="keywordtype">int</span> <a class="code" href="class_c_t_s_p_model.html#a7f00cebe4cf0fed16f734544c81103f9" title="Returns the row count in the table.">rowCount</a>(<span class="keyword">const</span> QModelIndex &amp;) <span class="keyword">const</span>;
+<a name="l00052"></a>00052     <span class="keywordtype">bool</span> <a class="code" href="class_c_t_s_p_model.html#aae606273bf2ad5d76779e00901d76593" title="Saves current task to fname.">saveTask</a>(QString);
+<a name="l00053"></a>00053     <span class="keywordtype">bool</span> <a class="code" href="class_c_t_s_p_model.html#a4bb074d84c35fa350a55ca78b41e967f" title="Sets the role data for the item at index to value.">setData</a>(<span class="keyword">const</span> QModelIndex &amp;, <span class="keyword">const</span> QVariant &amp;, <span class="keywordtype">int</span>);
+<a name="l00054"></a>00054     <span class="keywordtype">void</span> <a class="code" href="class_c_t_s_p_model.html#a5c485ac77762dbf4e27fb6d8d0664e3c" title="Sets number of cities in the current task to n.">setNumCities</a>(<span class="keywordtype">int</span>);
+<a name="l00055"></a>00055 
+<a name="l00056"></a>00056 signals:
+<a name="l00062"></a>00062     <span class="keywordtype">void</span> <a class="code" href="class_c_t_s_p_model.html#a733908abe1ffabf49ad34ccdabaeeee9" title="This signal is emitted whenever the number of cities in the task changes.">numCitiesChanged</a>(<span class="keywordtype">int</span>);
+<a name="l00063"></a>00063 
+<a name="l00064"></a>00064 <span class="keyword">private</span>:
+<a name="l00065"></a>00065     QSettings *settings;
+<a name="l00066"></a>00066     QVector&lt;QVector&lt;double&gt; &gt; table;
+<a name="l00067"></a>00067     quint16 nCities;
+<a name="l00068"></a>00068     <span class="keywordtype">bool</span> loadError(QDataStream::Status);
+<a name="l00069"></a>00069     <span class="keywordtype">bool</span> loadTSPT(QDataStream *);
+<a name="l00070"></a>00070     <span class="keywordtype">bool</span> loadZKT(QDataStream *);
+<a name="l00071"></a>00071     <span class="keywordtype">int</span> rand(<span class="keywordtype">int</span>, <span class="keywordtype">int</span>) <span class="keyword">const</span>;
+<a name="l00072"></a>00072 };
+<a name="l00073"></a>00073 
+<a name="l00074"></a>00074 <span class="preprocessor">#endif // TSPMODEL_H</span>
+</pre></div></div>
+<!--- window showing the filter options -->
+<div id="MSearchSelectWindow"
+     onmouseover="return searchBox.OnSearchSelectShow()"
+     onmouseout="return searchBox.OnSearchSelectHide()"
+     onkeydown="return searchBox.OnSearchSelectKey(event)">
+<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>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="" frameborder="0" 
+        name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Oct 24 16:33:19 2009 for TSPSG: TSP Solver and Generator by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
+</body>
+</html>
