source: tspsg/docs/html/class_main_window.html @ 8af59c4aa3

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 8af59c4aa3 was 8af59c4aa3, checked in by Oleksii Serdiuk, 15 years ago

Adding documentation generated by doxygen.

  • Property mode set to 100644
File size: 9.2 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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
64      <li><a href="files.html"><span>Files</span></a></li>
65      <li>
66        <div id="MSearchBox" class="MSearchBoxInactive">
67        <img id="MSearchSelect" src="search/search.png"
68             onmouseover="return searchBox.OnSearchSelectShow()"
69             onmouseout="return searchBox.OnSearchSelectHide()"
70             alt=""/>
71        <input type="text" id="MSearchField" value="Search" accesskey="S"
72             onfocus="searchBox.OnSearchFieldFocus(true)" 
73             onblur="searchBox.OnSearchFieldFocus(false)" 
74             onkeyup="searchBox.OnSearchFieldChange(event)"/>
75        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
76        </div>
77      </li>
78    </ul>
79  </div>
80  <div class="tabs">
81    <ul>
82      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
83      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
84    </ul>
85  </div>
86</div>
87<div class="contents">
88<h1>MainWindow Class Reference</h1><!-- doxytag: class="MainWindow" -->
89<p>Class for handling Main Window UI and logic. 
90<a href="#_details">More...</a></p>
91
92<p><code>#include &lt;<a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>&gt;</code></p>
93<div class="dynheader">
94Collaboration diagram for MainWindow:</div>
95<div class="dynsection">
96<div class="center"><img src="class_main_window__coll__graph.png" border="0" usemap="#_main_window_coll__map" alt="Collaboration graph"/></div>
97<map name="_main_window_coll__map" id="_main_window_coll__map">
98<area shape="rect" id="node2" href="class_c_t_s_p_model.html" title="This class implements table model for manipulating a task." alt="" coords="8,6,99,34"/>
99</map>
100<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
101
102<p><a href="class_main_window-members.html">List of all members.</a></p>
103<table border="0" cellpadding="0" cellspacing="0">
104<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
105<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> (QWidget *parent=0)</td></tr>
106<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Class constructor.  <a href="#a8b244be8b7b7db1b08de2a2acb9409db"></a><br/></td></tr>
107<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a38edb88d43e844aca9d2e762c8706565">closeEvent</a> (QCloseEvent *)</td></tr>
108<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Handles Main Window close event.  <a href="#a38edb88d43e844aca9d2e762c8706565"></a><br/></td></tr>
109</table>
110<hr/><a name="_details"></a><h2>Detailed Description</h2>
111<p>Class for handling Main Window UI and logic. </p>
112<dl class="author"><dt><b>Author:</b></dt><dd>Copyright &copy; 2007-2009 Lёppa &lt;contacts[at]oleksii[dot]name&gt; </dd></dl>
113<hr/><h2>Constructor &amp; Destructor Documentation</h2>
114<a class="anchor" id="a8b244be8b7b7db1b08de2a2acb9409db"></a><!-- doxytag: member="MainWindow::MainWindow" ref="a8b244be8b7b7db1b08de2a2acb9409db" args="(QWidget *parent=0)" -->
115<div class="memitem">
116<div class="memproto">
117      <table class="memname">
118        <tr>
119          <td class="memname">MainWindow::MainWindow </td>
120          <td>(</td>
121          <td class="paramtype">QWidget *&nbsp;</td>
122          <td class="paramname"> <em>parent</em> = <code>0</code></td>
123          <td>&nbsp;)&nbsp;</td>
124          <td></td>
125        </tr>
126      </table>
127</div>
128<div class="memdoc">
129
130<p>Class constructor. </p>
131<dl><dt><b>Parameters:</b></dt><dd>
132  <table border="0" cellspacing="2" cellpadding="0">
133    <tr><td valign="top"></td><td valign="top"><em>parent</em>&nbsp;</td><td>Main Window parent widget.</td></tr>
134  </table>
135  </dd>
136</dl>
137<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>
138
139</div>
140</div>
141<hr/><h2>Member Function Documentation</h2>
142<a class="anchor" id="a38edb88d43e844aca9d2e762c8706565"></a><!-- doxytag: member="MainWindow::closeEvent" ref="a38edb88d43e844aca9d2e762c8706565" args="(QCloseEvent *)" -->
143<div class="memitem">
144<div class="memproto">
145      <table class="memname">
146        <tr>
147          <td class="memname">void MainWindow::closeEvent </td>
148          <td>(</td>
149          <td class="paramtype">QCloseEvent *&nbsp;</td>
150          <td class="paramname"> <em>event</em></td>
151          <td>&nbsp;)&nbsp;</td>
152          <td></td>
153        </tr>
154      </table>
155</div>
156<div class="memdoc">
157
158<p>Handles Main Window close event. </p>
159<dl><dt><b>Parameters:</b></dt><dd>
160  <table border="0" cellspacing="2" cellpadding="0">
161    <tr><td valign="top"></td><td valign="top"><em>event</em>&nbsp;</td><td>Close event.</td></tr>
162  </table>
163  </dd>
164</dl>
165<p>Checks whether or not a current task was saved and asks for saving if not. Saves TSPSG settings. </p>
166
167</div>
168</div>
169<hr/>The documentation for this class was generated from the following files:<ul>
170<li>src/<a class="el" href="mainwindow_8h_source.html">mainwindow.h</a></li>
171<li>src/mainwindow.cpp</li>
172</ul>
173</div>
174<!--- window showing the filter options -->
175<div id="MSearchSelectWindow"
176     onmouseover="return searchBox.OnSearchSelectShow()"
177     onmouseout="return searchBox.OnSearchSelectHide()"
178     onkeydown="return searchBox.OnSearchSelectKey(event)">
179<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>
180
181<!-- iframe showing the search results (closed by default) -->
182<div id="MSearchResultsWindow">
183<iframe src="" frameborder="0" 
184        name="MSearchResults" id="MSearchResults">
185</iframe>
186</div>
187
188<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;
189<a href="http://www.doxygen.org/index.html">
190<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
191</body>
192</html>
Note: See TracBrowser for help on using the repository browser.