source: tspsg-svn/trunk/docs/html/class_main_window.html @ 112

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

Updated translations and regenerated documentation.

File size: 15.3 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: MainWindow Class 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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
65      <li><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="annotated.html"><span>Class&nbsp;List</span></a></li>
84      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
85      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
86    </ul>
87  </div>
88</div>
89<div class="contents">
90<h1>MainWindow Class Reference</h1><!-- doxytag: class="MainWindow" --><!-- doxytag: inherits="QMainWindow" -->
91<p>Class for handling Main Window UI and logic. 
92<a href="#_details">More...</a></p>
93
94<p><code>#include &lt;<a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>&gt;</code></p>
95<div class="dynheader">
96Inheritance diagram for MainWindow:</div>
97<div class="dynsection">
98<div class="center"><img src="class_main_window__inherit__graph.png" border="0" usemap="#_main_window_inherit__map" alt="Inheritance graph"/></div>
99<map name="_main_window_inherit__map" id="_main_window_inherit__map">
100<area shape="rect" id="node2" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qmainwindow.html" title="QMainWindow" alt="" coords="5,6,109,34"/>
101</map>
102<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
103<div class="dynheader">
104Collaboration diagram for MainWindow:</div>
105<div class="dynsection">
106<div class="center"><img src="class_main_window__coll__graph.png" border="0" usemap="#_main_window_coll__map" alt="Collaboration graph"/></div>
107<map name="_main_window_coll__map" id="_main_window_coll__map">
108<area shape="rect" id="node2" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qmainwindow.html" title="QMainWindow" alt="" coords="320,8,424,36"/>
109<area shape="rect" id="node4" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qprinter.html" title="QPrinter" alt="" coords="337,59,407,87"/>
110<area shape="rect" id="node6" href="class_c_t_s_p_model.html" title="This class implements table model for manipulating a task." alt="" coords="327,110,417,138"/>
111<area shape="rect" id="node8" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qabstracttablemodel.html" title="QAbstractTableModel" alt="" coords="35,22,181,50"/>
112<area shape="rect" id="node10" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qvector.html" title="QVector\&lt; QVector\&lt; double \&gt; \&gt;" alt="" coords="7,72,209,100"/>
113<area shape="rect" id="node12" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qsettings.html" title="QSettings" alt="" coords="68,143,148,171"/>
114<area shape="rect" id="node14" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qactiongroup.html" title="QActionGroup" alt="" coords="320,224,424,252"/>
115<area shape="rect" id="node16" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qtextcharformat.html" title="QTextCharFormat" alt="" coords="311,290,433,318"/>
116<area shape="rect" id="node18" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qstring.html" title="QString" alt="" coords="340,340,404,368"/>
117<area shape="rect" id="node20" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qpicture.html" title="QPicture" alt="" coords="336,391,408,419"/>
118<area shape="rect" id="node22" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qtextblockformat.html" title="QTextBlockFormat" alt="" coords="307,450,437,478"/>
119<area shape="rect" id="node24" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qaction.html" title="QAction" alt="" coords="339,528,405,556"/>
120<area shape="rect" id="node26" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qtexttableformat.html" title="QTextTableFormat" alt="" coords="308,579,436,607"/>
121</map>
122<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
123
124<p><a href="class_main_window-members.html">List of all members.</a></p>
125<table border="0" cellpadding="0" cellspacing="0">
126<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
127<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a8b244be8b7b7db1b08de2a2acb9409db">MainWindow</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> *parent=0)</td></tr>
128<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Class constructor.  <a href="#a8b244be8b7b7db1b08de2a2acb9409db"></a><br/></td></tr>
129</table>
130<hr/><a name="_details"></a><h2>Detailed Description</h2>
131<p>Class for handling Main Window UI and logic. </p>
132<dl class="author"><dt><b>Author:</b></dt><dd>Copyright &copy; 2007-2010 Lёppa &lt;contacts[at]oleksii[dot]name&gt; </dd></dl>
133<hr/><h2>Constructor &amp; Destructor Documentation</h2>
134<a class="anchor" id="a8b244be8b7b7db1b08de2a2acb9409db"></a><!-- doxytag: member="MainWindow::MainWindow" ref="a8b244be8b7b7db1b08de2a2acb9409db" args="(QWidget *parent=0)" -->
135<div class="memitem">
136<div class="memproto">
137      <table class="memname">
138        <tr>
139          <td class="memname">MainWindow::MainWindow </td>
140          <td>(</td>
141          <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>
142          <td class="paramname"> <em>parent</em> = <code>0</code></td>
143          <td>&nbsp;)&nbsp;</td>
144          <td></td>
145        </tr>
146      </table>
147</div>
148<div class="memdoc">
149
150<p>Class constructor. </p>
151<dl><dt><b>Parameters:</b></dt><dd>
152  <table border="0" cellspacing="2" cellpadding="0">
153    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td>Main Window parent widget.</td></tr>
154  </table>
155  </dd>
156</dl>
157<p>Initializes Main Window and creates its layout based on target OS. Loads TSPSG settings and opens a task file if it was specified as a commandline parameter. </p>
158
159<p><div class="dynheader">
160Here is the call graph for this function:</div>
161<div class="dynsection">
162<div class="center"><img src="class_main_window_a8b244be8b7b7db1b08de2a2acb9409db_cgraph.png" border="0" usemap="#class_main_window_a8b244be8b7b7db1b08de2a2acb9409db_cgraph_map" alt=""></div>
163<map name="class_main_window_a8b244be8b7b7db1b08de2a2acb9409db_cgraph_map" id="class_main_window_a8b244be8b7b7db1b08de2a2acb9409db_cgraph">
164<area shape="rect" id="node3" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qcoreapplication.html#arguments" title="QCoreApplication::arguments" alt="" coords="232,5,424,33"/>
165<area shape="rect" id="node5" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qsettings.html#beginGroup" title="QSettings::beginGroup" alt="" coords="252,55,404,83"/>
166<area shape="rect" id="node7" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qapplication.html#desktop" title="QApplication::desktop" alt="" coords="253,106,403,134"/>
167<area shape="rect" id="node9" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qsettings.html#endGroup" title="QSettings::endGroup" alt="" coords="256,157,400,185"/>
168<area shape="rect" id="node11" href="class_c_t_s_p_model.html#ae25b1d25b13488fde89e381152c62549" title="Loads a task from fname." alt="" coords="253,207,403,235"/>
169<area shape="rect" id="node31" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qrect.html#moveCenter" title="QRect::moveCenter" alt="" coords="261,258,395,286"/>
170<area shape="rect" id="node33" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qmainwindow.html#restoreState" title="QMainWindow::restoreState" alt="" coords="236,309,420,337"/>
171<area shape="rect" id="node35" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qsettings.html#value" title="QSettings::value" alt="" coords="271,359,385,387"/>
172<area shape="rect" id="node13" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qapplication.html#activeWindow" title="QApplication::activeWindow" alt="" coords="496,5,677,33"/>
173<area shape="rect" id="node15" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qfile.html#close" title="QFile::close" alt="" coords="541,55,632,83"/>
174<area shape="rect" id="node17" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qmessagebox.html#critical" title="QMessageBox::critical" alt="" coords="511,106,663,134"/>
175<area shape="rect" id="node19" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qdatastream.html#device" title="QDataStream::device" alt="" coords="515,157,659,185"/>
176<area shape="rect" id="node21" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qfile.html#open" title="QFile::open" alt="" coords="543,207,631,235"/>
177<area shape="rect" id="node23" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qapplication.html#restoreOverrideCursor" title="QApplication::restoreOverrideCursor" alt="" coords="473,258,700,286"/>
178<area shape="rect" id="node25" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qapplication.html#setOverrideCursor" title="QApplication::setOverrideCursor" alt="" coords="484,309,689,337"/>
179<area shape="rect" id="node27" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qdatastream.html#setVersion" title="QDataStream::setVersion" alt="" coords="501,359,672,387"/>
180<area shape="rect" id="node29" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qdatastream.html#status" title="QDataStream::status" alt="" coords="515,410,659,438"/>
181</map>
182</div>
183</p>
184
185</div>
186</div>
187<hr/>The documentation for this class was generated from the following files:<ul>
188<li>src/<a class="el" href="mainwindow_8h_source.html">mainwindow.h</a></li>
189<li>src/mainwindow.cpp</li>
190</ul>
191</div>
192<!--- window showing the filter options -->
193<div id="MSearchSelectWindow"
194     onmouseover="return searchBox.OnSearchSelectShow()"
195     onmouseout="return searchBox.OnSearchSelectHide()"
196     onkeydown="return searchBox.OnSearchSelectKey(event)">
197<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>
198
199<!-- iframe showing the search results (closed by default) -->
200<div id="MSearchResultsWindow">
201<iframe src="" frameborder="0" 
202        name="MSearchResults" id="MSearchResults">
203</iframe>
204</div>
205
206<hr size="1"/><address style="text-align: right;"><small>Generated on Wed Apr 28 02:47:17 2010 for TSPSG: TSP Solver and Generator by&nbsp;
207<a href="http://www.doxygen.org/index.html">
208<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
209</body>
210</html>
Note: See TracBrowser for help on using the repository browser.