1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
3 |
<title>queensgui.kdevelop: development/queensgui/src/board.h Source File</title> |
4 |
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 |
</head><body> |
6 |
<!-- Generated by Doxygen 1.3.9.1 --> |
7 |
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a></div> |
8 |
<div class="nav"> |
9 |
<a class="el" href="dir_000000.html">development</a> / <a class="el" href="dir_000001.html">queensgui</a> / <a class="el" href="dir_000002.html">src</a></div> |
10 |
<h1>board.h</h1><div class="fragment"><pre class="fragment">00001 <span class="comment">/***************************************************************************</span> |
11 |
00002 <span class="comment"> * Copyright (C) 2005 by Torben Nielsen *</span> |
12 |
00003 <span class="comment"> * torben@t-hoerup.dk *</span> |
13 |
00004 <span class="comment"> * *</span> |
14 |
00005 <span class="comment"> * This program is free software; you can redistribute it and/or modify *</span> |
15 |
00006 <span class="comment"> * it under the terms of the GNU General Public License as published by *</span> |
16 |
00007 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or *</span> |
17 |
00008 <span class="comment"> * (at your option) any later version. *</span> |
18 |
00009 <span class="comment"> * *</span> |
19 |
00010 <span class="comment"> * This program is distributed in the hope that it will be useful, *</span> |
20 |
00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of *</span> |
21 |
00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *</span> |
22 |
00013 <span class="comment"> * GNU General Public License for more details. *</span> |
23 |
00014 <span class="comment"> * *</span> |
24 |
00015 <span class="comment"> * You should have received a copy of the GNU General Public License *</span> |
25 |
00016 <span class="comment"> * along with this program; if not, write to the *</span> |
26 |
00017 <span class="comment"> * Free Software Foundation, Inc., *</span> |
27 |
00018 <span class="comment"> * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *</span> |
28 |
00019 <span class="comment"> ***************************************************************************/</span> |
29 |
00020 <span class="preprocessor">#ifndef BOARD_H</span> |
30 |
00021 <span class="preprocessor"></span><span class="preprocessor">#define BOARD_H</span> |
31 |
00022 <span class="preprocessor"></span> |
32 |
00023 <span class="preprocessor">#include <qwidget.h></span> |
33 |
00024 <span class="preprocessor">#include "solution.h"</span> |
34 |
00025 <span class="preprocessor">#include "config.h"</span> |
35 |
<a name="l00029"></a><a class="code" href="classBoard.html">00029</a> <span class="keyword">class </span><a class="code" href="classBoard.html">Board</a> : <span class="keyword">public</span> QWidget |
36 |
00030 { |
37 |
00031 Q_OBJECT |
38 |
00032 <span class="keyword">public</span>: |
39 |
00033 <a class="code" href="classBoard.html">Board</a>(QWidget *parent = 0, <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0); |
40 |
00034 <span class="keywordtype">void</span> setMatrix(<span class="keywordtype">bool</span> matrix[MAX_SIZE][MAX_SIZE]); |
41 |
00035 <span class="keywordtype">void</span> setMatrix(<a class="code" href="classSolution.html">Solution</a> sol); |
42 |
00036 |
43 |
00037 ~<a class="code" href="classBoard.html">Board</a>(); |
44 |
00038 |
45 |
00039 <span class="keyword">public</span> slots: |
46 |
00040 <span class="keywordtype">void</span> setSize(<span class="keywordtype">int</span> size); |
47 |
00041 <span class="keywordtype">void</span> rotateLeft(); |
48 |
00042 <span class="keywordtype">void</span> rotateRight(); |
49 |
00043 <span class="keywordtype">void</span> mirrorV(); |
50 |
00044 <span class="keywordtype">void</span> mirrorH(); |
51 |
00045 |
52 |
00046 <span class="keyword">protected</span>: |
53 |
00047 <span class="keywordtype">void</span> paintEvent( QPaintEvent * ); |
54 |
00048 <span class="keywordtype">void</span> mousePressEvent( QMouseEvent * ); |
55 |
00049 <span class="keywordtype">void</span> contextMenuEvent( QContextMenuEvent * ); |
56 |
00050 |
57 |
00051 <span class="keyword">private</span>: |
58 |
00052 |
59 |
00053 <span class="keywordtype">int</span> m_size; |
60 |
00054 <span class="comment">// bool m_matrix[MAX_SIZE][MAX_SIZE];</span> |
61 |
00055 <a class="code" href="classSolution.html">Solution</a> m_sol; |
62 |
00056 <span class="keywordtype">bool</span> m_hasData; |
63 |
00057 }; |
64 |
00058 |
65 |
00059 <span class="preprocessor">#endif</span> |
66 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Aug 14 15:33:57 2005 for queensgui.kdevelop by |
67 |
<a href="http://www.doxygen.org/index.html"> |
68 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address> |
69 |
</body> |
70 |
</html> |