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">
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <title>Chess Clock: ChessClockWindow 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"/>
12 <body onload='searchBox.OnSelectItem(0);'>
13 <!-- Generated by Doxygen 1.6.3 -->
14 <script type="text/javascript"><!--
15 var searchBox = new SearchBox("searchBox", "search",false,'Search');
17 <div class="navigation" id="top">
20 <li><a href="index.html"><span>Main Page</span></a></li>
21 <li><a href="pages.html"><span>Related Pages</span></a></li>
22 <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
23 <li><a href="files.html"><span>Files</span></a></li>
25 <div id="MSearchBox" class="MSearchBoxInactive">
26 <img id="MSearchSelect" src="search/search.png"
27 onmouseover="return searchBox.OnSearchSelectShow()"
28 onmouseout="return searchBox.OnSearchSelectHide()"
30 <input type="text" id="MSearchField" value="Search" accesskey="S"
31 onfocus="searchBox.OnSearchFieldFocus(true)"
32 onblur="searchBox.OnSearchFieldFocus(false)"
33 onkeyup="searchBox.OnSearchFieldChange(event)"/>
34 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
41 <li><a href="annotated.html"><span>Class List</span></a></li>
42 <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
43 <li><a href="functions.html"><span>Class Members</span></a></li>
47 <div class="contents">
48 <h1>ChessClockWindow Class Reference</h1><!-- doxytag: class="ChessClockWindow" -->
49 <p><code>#include <<a class="el" href="chessclockwindow_8h_source.html">chessclockwindow.h</a>></code></p>
51 <p><a href="class_chess_clock_window-members.html">List of all members.</a></p>
52 <table border="0" cellpadding="0" cellspacing="0">
53 <tr><td colspan="2"><h2>Public Slots</h2></td></tr>
54 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#ad41259afb866585197ca82404f3ca8a2">startGame</a> (<a class="el" href="class_time_control.html">TimeControl</a> *timecontrol)</td></tr>
55 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#a4d8078d15e55c8382592fb077f6f7f0a">pause</a> ()</td></tr>
56 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#a03f2ad27ab2c6bbece256ee418931a91">newGame</a> ()</td></tr>
57 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#a15c6808b2409afbd724118bf6f229742">visitWeb</a> ()</td></tr>
58 <tr><td class="mdescLeft"> </td><td class="mdescRight">Visit <a class="el" href="class_chess_clock.html" title="Clock of a individual player.">ChessClock</a> web page. <a href="#a15c6808b2409afbd724118bf6f229742"></a><br/></td></tr>
59 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#ad89b82909aa0d0e36267f63dda7037ff">about</a> ()</td></tr>
60 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#a75b6f84823e87340bce8e11b2055cfdd">aboutQt</a> ()</td></tr>
61 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#a03405591ce4c5fc328805c8daea46529">dontEatMemory</a> (<a class="el" href="class_turn_information.html">TurnInformation</a> *turnInformation)</td></tr>
62 <tr><td class="mdescLeft"> </td><td class="mdescRight">Delete turn information to avoid memory leaks. <a href="#a03405591ce4c5fc328805c8daea46529"></a><br/></td></tr>
63 <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
64 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#a570589223bfda26e9818d3f2955e55f8">ChessClockWindow</a> (QWidget *parent=0)</td></tr>
65 <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#a7007da9dea854b3aab86fb36a4cb8c44">~ChessClockWindow</a> ()</td></tr>
66 <tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
67 <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#ac19fabe171848c0b02c533c6b4a9e2ab">initTimeControls</a> ()</td></tr>
68 <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#ad3b7644c66f9abda7d26a4d8846d4a52">eventFilter</a> (QObject *obj, QEvent *event)</td></tr>
69 <tr><td class="mdescLeft"> </td><td class="mdescRight">Pauses the game if the application main window is not active e.g. <a href="#ad3b7644c66f9abda7d26a4d8846d4a52"></a><br/></td></tr>
70 <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
71 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_clocks_widget.html">ClocksWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#a30333fd439f58a235ef14629466bffd3">clocks_</a></td></tr>
72 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_start_widget.html">StartWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#ad65c7b41fc1e1755af16476f2bda3309">start_</a></td></tr>
73 <tr><td class="memItemLeft" align="right" valign="top">QStackedWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_chess_clock_window.html#a058f37db2e25aa05fe87725e232a5133">stack_</a></td></tr>
75 <hr/><a name="_details"></a><h2>Detailed Description</h2>
77 <p>Definition at line <a class="el" href="chessclockwindow_8h_source.html#l00033">33</a> of file <a class="el" href="chessclockwindow_8h_source.html">chessclockwindow.h</a>.</p>
78 <hr/><h2>Constructor & Destructor Documentation</h2>
79 <a class="anchor" id="a570589223bfda26e9818d3f2955e55f8"></a><!-- doxytag: member="ChessClockWindow::ChessClockWindow" ref="a570589223bfda26e9818d3f2955e55f8" args="(QWidget *parent=0)" -->
81 <div class="memproto">
82 <table class="memname">
84 <td class="memname">ChessClockWindow::ChessClockWindow </td>
86 <td class="paramtype">QWidget * </td>
87 <td class="paramname"> <em>parent</em> = <code>0</code></td>
88 <td> ) </td>
95 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00046">46</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
99 <a class="anchor" id="a7007da9dea854b3aab86fb36a4cb8c44"></a><!-- doxytag: member="ChessClockWindow::~ChessClockWindow" ref="a7007da9dea854b3aab86fb36a4cb8c44" args="()" -->
100 <div class="memitem">
101 <div class="memproto">
102 <table class="memname">
104 <td class="memname">ChessClockWindow::~ChessClockWindow </td>
106 <td class="paramname"></td>
107 <td> ) </td>
114 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00153">153</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
118 <hr/><h2>Member Function Documentation</h2>
119 <a class="anchor" id="ad89b82909aa0d0e36267f63dda7037ff"></a><!-- doxytag: member="ChessClockWindow::about" ref="ad89b82909aa0d0e36267f63dda7037ff" args="()" -->
120 <div class="memitem">
121 <div class="memproto">
122 <table class="memname">
124 <td class="memname">void ChessClockWindow::about </td>
126 <td class="paramname"></td>
127 <td> ) </td>
128 <td><code> [slot]</code></td>
134 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00111">111</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
138 <a class="anchor" id="a75b6f84823e87340bce8e11b2055cfdd"></a><!-- doxytag: member="ChessClockWindow::aboutQt" ref="a75b6f84823e87340bce8e11b2055cfdd" args="()" -->
139 <div class="memitem">
140 <div class="memproto">
141 <table class="memname">
143 <td class="memname">void ChessClockWindow::aboutQt </td>
145 <td class="paramname"></td>
146 <td> ) </td>
147 <td><code> [slot]</code></td>
153 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00122">122</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
157 <a class="anchor" id="a03405591ce4c5fc328805c8daea46529"></a><!-- doxytag: member="ChessClockWindow::dontEatMemory" ref="a03405591ce4c5fc328805c8daea46529" args="(TurnInformation *turnInformation)" -->
158 <div class="memitem">
159 <div class="memproto">
160 <table class="memname">
162 <td class="memname">void ChessClockWindow::dontEatMemory </td>
164 <td class="paramtype"><a class="el" href="class_turn_information.html">TurnInformation</a> * </td>
165 <td class="paramname"> <em>turnInformation</em></td>
166 <td> ) </td>
167 <td><code> [slot]</code></td>
173 <p>Delete turn information to avoid memory leaks. </p>
174 <dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>Save turn log and function to show it. </dd></dl>
175 <dl class="since"><dt><b>Since:</b></dt><dd>1.1.2 </dd></dl>
177 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00169">169</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
181 <a class="anchor" id="ad3b7644c66f9abda7d26a4d8846d4a52"></a><!-- doxytag: member="ChessClockWindow::eventFilter" ref="ad3b7644c66f9abda7d26a4d8846d4a52" args="(QObject *obj, QEvent *event)" -->
182 <div class="memitem">
183 <div class="memproto">
184 <table class="memname">
186 <td class="memname">bool ChessClockWindow::eventFilter </td>
188 <td class="paramtype">QObject * </td>
189 <td class="paramname"> <em>obj</em>, </td>
192 <td class="paramkey"></td>
194 <td class="paramtype">QEvent * </td>
195 <td class="paramname"> <em>event</em></td><td> </td>
200 <td></td><td></td><td><code> [protected]</code></td>
206 <p>Pauses the game if the application main window is not active e.g. </p>
207 <p>the app is minimized </p>
209 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00158">158</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
213 <a class="anchor" id="ac19fabe171848c0b02c533c6b4a9e2ab"></a><!-- doxytag: member="ChessClockWindow::initTimeControls" ref="ac19fabe171848c0b02c533c6b4a9e2ab" args="()" -->
214 <div class="memitem">
215 <div class="memproto">
216 <table class="memname">
218 <td class="memname">void ChessClockWindow::initTimeControls </td>
220 <td class="paramname"></td>
221 <td> ) </td>
222 <td><code> [protected]</code></td>
228 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00129">129</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
232 <a class="anchor" id="a03f2ad27ab2c6bbece256ee418931a91"></a><!-- doxytag: member="ChessClockWindow::newGame" ref="a03f2ad27ab2c6bbece256ee418931a91" args="()" -->
233 <div class="memitem">
234 <div class="memproto">
235 <table class="memname">
237 <td class="memname">void ChessClockWindow::newGame </td>
239 <td class="paramname"></td>
240 <td> ) </td>
241 <td><code> [slot]</code></td>
247 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00087">87</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
251 <a class="anchor" id="a4d8078d15e55c8382592fb077f6f7f0a"></a><!-- doxytag: member="ChessClockWindow::pause" ref="a4d8078d15e55c8382592fb077f6f7f0a" args="()" -->
252 <div class="memitem">
253 <div class="memproto">
254 <table class="memname">
256 <td class="memname">void ChessClockWindow::pause </td>
258 <td class="paramname"></td>
259 <td> ) </td>
260 <td><code> [slot]</code></td>
266 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00081">81</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
270 <a class="anchor" id="ad41259afb866585197ca82404f3ca8a2"></a><!-- doxytag: member="ChessClockWindow::startGame" ref="ad41259afb866585197ca82404f3ca8a2" args="(TimeControl *timecontrol)" -->
271 <div class="memitem">
272 <div class="memproto">
273 <table class="memname">
275 <td class="memname">void ChessClockWindow::startGame </td>
277 <td class="paramtype"><a class="el" href="class_time_control.html">TimeControl</a> * </td>
278 <td class="paramname"> <em>timecontrol</em></td>
279 <td> ) </td>
280 <td><code> [slot]</code></td>
286 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00139">139</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
290 <a class="anchor" id="a15c6808b2409afbd724118bf6f229742"></a><!-- doxytag: member="ChessClockWindow::visitWeb" ref="a15c6808b2409afbd724118bf6f229742" args="()" -->
291 <div class="memitem">
292 <div class="memproto">
293 <table class="memname">
295 <td class="memname">void ChessClockWindow::visitWeb </td>
297 <td class="paramname"></td>
298 <td> ) </td>
299 <td><code> [slot]</code></td>
305 <p>Visit <a class="el" href="class_chess_clock.html" title="Clock of a individual player.">ChessClock</a> web page. </p>
307 <p>Definition at line <a class="el" href="chessclockwindow_8cpp_source.html#l00104">104</a> of file <a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a>.</p>
311 <hr/><h2>Member Data Documentation</h2>
312 <a class="anchor" id="a30333fd439f58a235ef14629466bffd3"></a><!-- doxytag: member="ChessClockWindow::clocks_" ref="a30333fd439f58a235ef14629466bffd3" args="" -->
313 <div class="memitem">
314 <div class="memproto">
315 <table class="memname">
317 <td class="memname"><a class="el" href="class_clocks_widget.html">ClocksWidget</a>* <a class="el" href="class_chess_clock_window.html#a30333fd439f58a235ef14629466bffd3">ChessClockWindow::clocks_</a><code> [protected]</code></td>
323 <p>Definition at line <a class="el" href="chessclockwindow_8h_source.html#l00062">62</a> of file <a class="el" href="chessclockwindow_8h_source.html">chessclockwindow.h</a>.</p>
327 <a class="anchor" id="a058f37db2e25aa05fe87725e232a5133"></a><!-- doxytag: member="ChessClockWindow::stack_" ref="a058f37db2e25aa05fe87725e232a5133" args="" -->
328 <div class="memitem">
329 <div class="memproto">
330 <table class="memname">
332 <td class="memname">QStackedWidget* <a class="el" href="class_chess_clock_window.html#a058f37db2e25aa05fe87725e232a5133">ChessClockWindow::stack_</a><code> [protected]</code></td>
338 <p>Definition at line <a class="el" href="chessclockwindow_8h_source.html#l00064">64</a> of file <a class="el" href="chessclockwindow_8h_source.html">chessclockwindow.h</a>.</p>
342 <a class="anchor" id="ad65c7b41fc1e1755af16476f2bda3309"></a><!-- doxytag: member="ChessClockWindow::start_" ref="ad65c7b41fc1e1755af16476f2bda3309" args="" -->
343 <div class="memitem">
344 <div class="memproto">
345 <table class="memname">
347 <td class="memname"><a class="el" href="class_start_widget.html">StartWidget</a>* <a class="el" href="class_chess_clock_window.html#ad65c7b41fc1e1755af16476f2bda3309">ChessClockWindow::start_</a><code> [protected]</code></td>
353 <p>Definition at line <a class="el" href="chessclockwindow_8h_source.html#l00063">63</a> of file <a class="el" href="chessclockwindow_8h_source.html">chessclockwindow.h</a>.</p>
357 <hr/>The documentation for this class was generated from the following files:<ul>
358 <li>/holvi/arto/ohjelmointi/ChessClock/chessclock/<a class="el" href="chessclockwindow_8h_source.html">chessclockwindow.h</a></li>
359 <li>/holvi/arto/ohjelmointi/ChessClock/chessclock/<a class="el" href="chessclockwindow_8cpp_source.html">chessclockwindow.cpp</a></li>
362 <!--- window showing the filter options -->
363 <div id="MSearchSelectWindow"
364 onmouseover="return searchBox.OnSearchSelectShow()"
365 onmouseout="return searchBox.OnSearchSelectHide()"
366 onkeydown="return searchBox.OnSearchSelectKey(event)">
367 <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerator</a></div>
369 <!-- iframe showing the search results (closed by default) -->
370 <div id="MSearchResultsWindow">
371 <iframe src="" frameborder="0"
372 name="MSearchResults" id="MSearchResults">
376 <hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Oct 12 20:52:59 2010 for Chess Clock by
377 <a href="http://www.doxygen.org/index.html">
378 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>