23 |
#include <qdialog.h> |
#include <qdialog.h> |
24 |
#include <qdatetime.h> |
#include <qdatetime.h> |
25 |
#include <qtimer.h> |
#include <qtimer.h> |
26 |
|
//Added by qt3to4: |
27 |
|
#include <QLabel> |
28 |
|
#include <QContextMenuEvent> |
29 |
|
|
30 |
#include "guiupdate.h" |
#include "guiupdate.h" |
31 |
|
|
32 |
class QPushButton; |
class QPushButton; |
33 |
class QSpinBox; |
class QSpinBox; |
34 |
class QListBox; |
class Q3ListBox; |
35 |
class QLabel; |
class QLabel; |
36 |
class QString; |
class QString; |
37 |
class Solution; |
class Solution; |
40 |
class Queens; |
class Queens; |
41 |
class Board; |
class Board; |
42 |
|
|
43 |
enum SortingAlgorithm{SortVector, SortList, SortHash, SortMNVector}; |
enum SortingAlgorithm{SortVector, SortList, SortHash, SortMNVector, SortMinimalVector}; |
44 |
enum StorageClass{ StorageInt, StorageMatrix }; |
enum StorageClass{ StorageInt, StorageMatrix }; |
45 |
|
|
46 |
|
|
55 |
QPushButton *m_quit; |
QPushButton *m_quit; |
56 |
QPushButton *m_start; |
QPushButton *m_start; |
57 |
QPushButton *m_stop; |
QPushButton *m_stop; |
58 |
QListBox *m_list; |
Q3ListBox *m_list; |
59 |
QSpinBox *m_sizeSelector; |
QSpinBox *m_sizeSelector; |
60 |
QLabel *m_status; |
QLabel *m_status; |
61 |
QTime m_time; |
QTime m_time; |
92 |
void sortVector(); |
void sortVector(); |
93 |
void sortHash(); |
void sortHash(); |
94 |
void sortMNVector(); |
void sortMNVector(); |
95 |
|
void sortMinimalVector(); |
96 |
|
|
97 |
void storageInt(); |
void storageInt(); |
98 |
void storageMatrix(); |
void storageMatrix(); |