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/queensmain.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>queensmain.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 QUEENSMAIN_H</span> |
30 |
00021 <span class="preprocessor"></span><span class="preprocessor">#define QUEENSMAIN_H</span> |
31 |
00022 <span class="preprocessor"></span> |
32 |
00023 |
33 |
00024 |
34 |
00025 <span class="preprocessor">#include <qdialog.h></span> |
35 |
00026 <span class="preprocessor">#include <qdatetime.h></span> |
36 |
00027 |
37 |
00028 <span class="keyword">class </span>QPushButton; |
38 |
00029 <span class="keyword">class </span>QSpinBox; |
39 |
00030 <span class="keyword">class </span>QListBox; |
40 |
00031 <span class="keyword">class </span>QLabel; |
41 |
00032 <span class="keyword">class </span>QString; |
42 |
00033 |
43 |
00034 <span class="keyword">class </span><a class="code" href="classSolutionContainer.html">SolutionContainer</a>; |
44 |
00035 <span class="keyword">class </span><a class="code" href="classQueens.html">Queens</a>; |
45 |
00036 <span class="keyword">class </span><a class="code" href="classBoard.html">Board</a>; |
46 |
00037 <span class="keyword">class </span><a class="code" href="classUniqueWorker.html">UniqueWorker</a>; |
47 |
00038 |
48 |
00039 <span class="keyword">enum</span> SortingAlgorithm{SortVector, SortList, SortHash, SortMNVector}; |
49 |
00040 |
50 |
<a name="l00044"></a><a class="code" href="classQueensMain.html">00044</a> <span class="keyword">class </span><a class="code" href="classQueensMain.html">QueensMain</a> : <span class="keyword">public</span> QDialog |
51 |
00045 { |
52 |
00046 Q_OBJECT |
53 |
00047 <span class="keyword">private</span>: |
54 |
00048 <a class="code" href="classBoard.html">Board</a> *m_board; |
55 |
00049 QPushButton *m_quit; |
56 |
00050 QPushButton *m_start; |
57 |
00051 QPushButton *m_stop; |
58 |
00052 QPushButton *m_unique; |
59 |
00053 QListBox *m_list; |
60 |
00054 QSpinBox *m_sizeSelector; |
61 |
00055 QLabel *m_status; |
62 |
00056 QTime m_time; |
63 |
00057 |
64 |
00058 <a class="code" href="classSolutionContainer.html">SolutionContainer</a> *m_solutions; |
65 |
00059 <a class="code" href="classQueens.html">Queens</a> *m_queens; |
66 |
00060 <a class="code" href="classUniqueWorker.html">UniqueWorker</a> *m_uworker; |
67 |
00061 <span class="keywordtype">bool</span> m_uniq; |
68 |
00062 SortingAlgorithm m_sortalgo; |
69 |
00063 |
70 |
00064 <span class="keywordtype">void</span> contextMenuEvent(QContextMenuEvent *); |
71 |
00065 |
72 |
00066 <span class="keyword">public</span>: |
73 |
00067 <a class="code" href="classQueensMain.html">QueensMain</a>(QWidget *parent = 0, <span class="keyword">const</span> <span class="keywordtype">char</span> *name = 0); |
74 |
00068 |
75 |
00069 ~<a class="code" href="classQueensMain.html">QueensMain</a>(); |
76 |
00070 QString elapsed(); |
77 |
00071 <span class="keywordtype">void</span> uniqueSolutions(); |
78 |
00072 |
79 |
00073 <span class="keyword">public</span> slots: |
80 |
00074 <span class="keywordtype">void</span> start(); |
81 |
00075 <span class="keywordtype">void</span> stop(); |
82 |
00076 <span class="keywordtype">void</span> foundSolution(); |
83 |
00077 <span class="keywordtype">void</span> finishedSearch(); |
84 |
00078 <span class="keywordtype">void</span> showSolution(); |
85 |
00079 <span class="keywordtype">void</span> uniquePush(); |
86 |
00080 <span class="keywordtype">void</span> uniqueCallBack(); |
87 |
00081 <span class="keywordtype">void</span> resize(<span class="keywordtype">int</span> size); |
88 |
00082 |
89 |
00083 <span class="keywordtype">void</span> sortList(); |
90 |
00084 <span class="keywordtype">void</span> sortVector(); |
91 |
00085 <span class="keywordtype">void</span> sortHash(); |
92 |
00086 <span class="keywordtype">void</span> sortMNVector(); |
93 |
00087 }; |
94 |
00088 |
95 |
00089 <span class="preprocessor">#endif</span> |
96 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Aug 14 15:33:57 2005 for queensgui.kdevelop by |
97 |
<a href="http://www.doxygen.org/index.html"> |
98 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address> |
99 |
</body> |
100 |
</html> |